/* /tours/zakarpattia — public listing of Transcarpathian / bus tours.
 *
 * Look-and-feel mirrors the calendar / excursions pages: light-blue
 * .s-page-top wave background up top, then a soft-cream section that
 * holds a 2-up grid of white cards. Each card has a corner-anchored
 * orange date pill, navy title, muted subtitle, a teal "spring"
 * decorative SVG bottom-left and a white "ДЕТАЛІ" pill button bottom-right.
 */

/* --- title section -------------------------------------------------- */

.zak-tours-top {
	padding-bottom: 40px;
}

.s-zak-tours {
	background-color: #D7F0F5;
	padding: 40px 0 80px;
	min-height: 60vh;
}

/* --- empty state ---------------------------------------------------- */

.zt-empty {
	max-width: 560px;
	margin: 60px auto;
	text-align: center;
	color: #1b3b50;
	font-size: 1.05rem;
	line-height: 1.6;
}
.zt-empty p { margin: 0 0 12px; }
.zt-empty a {
	color: #F0621A;
	font-weight: 700;
	text-decoration: underline;
}

/* --- grid ----------------------------------------------------------- */

.zt-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 0 auto;
	max-width: 1080px;
}

@media (max-width: 720px) {
	.zt-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* --- card ----------------------------------------------------------- */

.zt-card {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 26px 28px 22px;
	box-shadow: 0 4px 18px rgba(27, 59, 80, 0.06);
	min-height: 200px;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .2s;
}

.zt-card:hover {
	box-shadow: 0 10px 28px rgba(27, 59, 80, 0.12);
	transform: translateY(-2px);
}

/* date pill anchored top-right */
.zt-date {
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #F0621A;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .3px;
	padding: 7px 18px;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(240, 98, 26, .25);
}
.zt-date-tba {
	background: #fff;
	color: #F0621A;
	border: 2px solid #F0621A;
	padding: 5px 16px;
}

/* body */
.zt-card-body {
	margin-top: 4px;
	padding-right: 110px; /* keep room for date pill on first line */
	flex: 1;
}
.zt-title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
	color: #1b3b50;
	text-transform: uppercase;
	letter-spacing: .2px;
}
.zt-subtitle {
	margin: 0;
	color: #4b5871;
	font-size: 15px;
	line-height: 1.5;
	/* 2-line clamp so descriptions of any length stay compact */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* foot: spring SVG left, button right */
.zt-card-foot {
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* hand-drawn cyan loop, inlined as data URI so we don't ship another asset */
.zt-spring {
	display: inline-block;
	width: 88px;
	height: 28px;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' fill='none' stroke='%2358B5C6' stroke-width='2' stroke-linecap='round'><ellipse cx='12' cy='18' rx='10' ry='14' transform='rotate(-15 12 18)'/><ellipse cx='32' cy='18' rx='10' ry='14' transform='rotate(-15 32 18)'/><ellipse cx='52' cy='18' rx='10' ry='14' transform='rotate(-15 52 18)'/><ellipse cx='72' cy='18' rx='10' ry='14' transform='rotate(-15 72 18)'/><ellipse cx='92' cy='18' rx='10' ry='14' transform='rotate(-15 92 18)'/></svg>");
}

/* ДЕТАЛІ pill button */
.zt-btn {
	display: inline-block;
	padding: 8px 22px;
	border: 2px solid #F0621A;
	border-radius: 999px;
	color: #F0621A;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .8px;
	text-decoration: none;
	transition: all .2s;
	flex-shrink: 0;
}
.zt-btn:hover {
	background: #F0621A;
	color: #fff;
	text-decoration: none;
}

/* --- scroll quick-nav ---------------------------------------------- */

.zt-scroll {
	margin: 50px auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}
.zt-scroll-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #F0621A;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(240, 98, 26, .25);
	transition: transform .15s, box-shadow .2s;
}
.zt-scroll-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(240, 98, 26, .35);
}
.zt-scroll-btn:active {
	transform: translateY(0);
}

/* --- mobile tightening --------------------------------------------- */

@media (max-width: 720px) {
	.zt-card {
		padding: 22px 20px 18px;
		min-height: 0;
	}
	.zt-card-body { padding-right: 0; margin-top: 56px; }
	.zt-title { font-size: 19px; }
	.zt-subtitle { font-size: 14px; }
	.zt-date { top: 14px; right: 14px; font-size: 12px; padding: 6px 14px; }
	.zt-card-foot { margin-top: 16px; }
	.zt-spring { width: 70px; height: 22px; }
	.zt-btn { padding: 7px 18px; font-size: 11px; }
}

/* =====================================================================
 * Detail page (/tours/zakarpattia/{slug})
 * Two-column card: left half is the info block (date pill, title, body
 * copy, meta rows, spring + ЗАЛИШИТИ ЗАЯВКУ button), right half is the
 * tour photo (or a placeholder "ФОТО" panel when no image is set).
 * ===================================================================== */

.ztd-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: #fff;
	border-radius: 8px;
	max-width: 1080px;
	margin: 0 auto;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(27, 59, 80, 0.08);
}

.ztd-info {
	position: relative;
	padding: 60px 40px 32px;
	display: flex;
	flex-direction: column;
}

.ztd-info .zt-date {
	top: 28px;
	left: 28px;
	right: auto;
}

.ztd-title {
	margin: 0 0 22px;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 800;
	color: #1b3b50;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.ztd-desc {
	color: #4b5871;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 26px;
	white-space: pre-line;
}

.ztd-meta {
	margin: 0 0 28px;
	padding: 0;
	font-size: 15px;
}
.ztd-meta-row {
	display: flex;
	gap: 6px;
	margin-bottom: 6px;
	color: #1b3b50;
}
.ztd-meta dt {
	font-weight: 700;
	color: #F0621A;
	margin: 0;
}
.ztd-meta dd {
	margin: 0;
	color: #1b3b50;
	font-weight: 600;
}

.ztd-foot {
	margin-top: auto;
	padding-top: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.zt-spring-big {
	width: 120px;
	height: 36px;
}

/* solid-orange variant of the pill button used on the detail page */
.zt-btn.zt-btn-filled {
	background: #F0621A;
	color: #fff;
	padding: 11px 26px;
	font-size: 12px;
}
.zt-btn.zt-btn-filled:hover {
	background: #d65414;
	border-color: #d65414;
}

/* --- right column photo / placeholder ------------------------------ */

.ztd-photo {
	position: relative;
	background: #c9ced6;
	min-height: 460px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ztd-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ztd-photo-placeholder {
	width: 100%;
	height: 100%;
	min-height: 460px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #c9ced6;
}
.ztd-photo-placeholder svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.ztd-photo-label {
	position: relative;
	z-index: 1;
	font-size: 22px;
	font-weight: 700;
	color: #1b3b50;
	background: #c9ced6;
	padding: 4px 18px;
}

/* --- prev / next nav -----------------------------------------------*/

.ztd-nav {
	margin: 40px auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}
.ztd-nav-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(27, 59, 80, .12);
	transition: transform .15s, box-shadow .2s;
	text-decoration: none;
}
.ztd-nav-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(27, 59, 80, .18);
}

/* --- "ЧОМУ MUSE?" section copy ------------------------------------ */

.ztd-why .ztd-why-inner {
	max-width: 760px;
	margin: 30px auto 0;
	text-align: center;
	color: #1b3b50;
	font-size: 16px;
	line-height: 1.7;
}
.ztd-why .ztd-why-inner p {
	margin: 0 0 14px;
}

/* --- mobile collapse ----------------------------------------------- */

@media (max-width: 820px) {
	.ztd-card {
		grid-template-columns: 1fr;
	}
	.ztd-info { padding: 60px 26px 26px; order: 2; }
	.ztd-photo, .ztd-photo-placeholder { min-height: 280px; order: 1; }
	.ztd-title { font-size: 21px; }
	.ztd-desc { font-size: 14px; }
	.ztd-meta { font-size: 14px; }
	.zt-spring-big { width: 90px; height: 28px; }
	.zt-btn.zt-btn-filled { padding: 9px 20px; font-size: 11px; }
}
