/* =========================================================================
   Umrah Package Detail Page
   Colours come from Settings → Detail page (CSS variables on .upd-page).
   ========================================================================= */

body.upcards-detail-page { overflow-x: hidden; overflow-x: clip; }
html.upd-lock { overflow: hidden; }

.upcards-main { display: block; width: 100%; margin: 0; padding: 0; }

.upd-page,
.upd-lightbox {
	--upd-primary: #062d47;
	--upd-accent: #c5a65c;
	--upd-radius: 16px;
}

.upd-page {
	position: relative;
	display: block;
	flex: 1 1 100%;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--upd-ink, #1f3442);
	text-align: left;
}
.upd-page *,
.upd-page *::before,
.upd-page *::after,
.upd-lightbox *,
.upd-lightbox *::before,
.upd-lightbox *::after { box-sizing: border-box; }

/* Theme resets (scoped) */
.upd-page h1,
.upd-page h2,
.upd-page h3 {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--upd-display, inherit);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	background: none;
	line-height: 1.15;
}
.upd-page h1::before, .upd-page h1::after,
.upd-page h2::before,
.upd-page h3::before, .upd-page h3::after { display: none; }
.upd-page ul { margin: 0; padding: 0; list-style: none; }
.upd-page li { margin: 0; padding: 0; }
.upd-page li::before { display: none; }
.upd-page p { margin: 0; }
.upd-page img { max-width: 100%; height: auto; border: 0; box-shadow: none; }
.upd-page a { text-decoration: none; box-shadow: none; }
.upd-page svg { flex: 0 0 auto; }
.upd-page dl, .upd-page dt, .upd-page dd { margin: 0; padding: 0; }

.upd-shell {
	width: 100%;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ------------------------------------------------------------------ Buttons */
.upd-page .upd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 13px 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.upd-page .upd-btn:active { transform: scale(.98); }
.upd-page .upd-btn--wa,
.upd-page .upd-btn--wa:visited {
	color: var(--upd-primary) !important;
	background: var(--upd-accent);
	border: 1.5px solid var(--upd-accent);
}
.upd-page .upd-btn--wa:hover,
.upd-page .upd-btn--wa:focus-visible {
	color: var(--upd-primary) !important;
	background: #fff;
	border-color: #fff;
}
.upd-page .upd-btn--ghost,
.upd-page .upd-btn--ghost:visited {
	color: #fff !important;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, .5);
}
.upd-page .upd-btn--ghost:hover,
.upd-page .upd-btn--ghost:focus-visible {
	color: #fff !important;
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
}
.upd-page a:focus-visible,
.upd-page button:focus-visible {
	outline: 2px solid var(--upd-accent);
	outline-offset: 3px;
}

/* ------------------------------------------------------------------ Pattern
   8-point star lattice, drawn in the accent colour through a mask. */
.upd-pattern {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-color: var(--upd-accent);
	opacity: .13;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h6.2M57.8 32H64M32 0v6.2M32 57.8V64'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to left, #000 0%, transparent 62%);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h6.2M57.8 32H64M32 0v6.2M32 57.8V64'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to left, #000 0%, transparent 62%);
	-webkit-mask-size: 64px 64px, 100% 100%;
	mask-size: 64px 64px, 100% 100%;
	-webkit-mask-repeat: repeat, no-repeat;
	mask-repeat: repeat, no-repeat;
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

/* ------------------------------------------------------------------ Hero */
.upd-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100vw;
	max-width: 100vw;
	min-height: clamp(480px, 74vh, 740px);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 120px 0 124px;
	overflow: hidden;
	color: #fff;
	background: var(--upd-primary);
}
.upd-hero__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}
.upd-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(to top, var(--upd-primary) 0%, transparent 70%),
		linear-gradient(to right, var(--upd-primary) 0%, transparent 78%);
	opacity: .94;
}
.upd-hero:not(.has-image) .upd-hero__shade { display: none; }
.upd-hero .upd-pattern { opacity: .1; }
.upd-hero:not(.has-image) .upd-pattern { opacity: .16; }

.upd-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: end;
	gap: 48px;
}
.upd-badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 5px 12px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .02em;
	color: var(--upd-primary);
	background: var(--upd-accent);
	border-radius: 4px;
}
.upd-page .upd-hero__title {
	max-width: 17ch;
	font-size: clamp(36px, 5.4vw, 66px);
	line-height: 1.06;
	color: #fff;
	text-wrap: balance;
}
.upd-hero__tagline {
	max-width: 42ch;
	margin-top: 18px !important;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.5;
	color: rgba(255, 255, 255, .86);
}
.upd-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 26px;
	font-size: 15px;
	color: rgba(255, 255, 255, .9);
}
.upd-hero__fact { display: inline-flex; align-items: center; gap: 8px; }
.upd-hero__fact svg { color: var(--upd-accent); }

.upd-hero__book {
	padding: 24px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .18);
	border-top: 3px solid var(--upd-accent);
	border-radius: 4px 4px var(--upd-radius) var(--upd-radius);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.upd-price { display: flex; flex-direction: column; margin-bottom: 20px; }
.upd-price__label { font-size: 14px; color: rgba(255, 255, 255, .72); }
.upd-price__value {
	margin-top: 2px;
	font-family: var(--upd-display, inherit);
	font-size: clamp(30px, 3vw, 38px);
	line-height: 1.1;
	color: var(--upd-accent);
}
.upd-price__note { margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.upd-hero__actions { display: grid; gap: 10px; }
.upd-hero__actions .upd-btn { width: 100%; }

/* ------------------------------------------------------------------ Quick info */
.upd-quick-wrap { position: relative; z-index: 3; margin-top: -64px; }
.upd-page .upd-quick {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--upd-line);
	border-radius: var(--upd-radius);
	box-shadow: 0 18px 40px -18px rgba(6, 45, 71, .35);
}
.upd-page .upd-quick__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	background: #fff;
	/* Left/top dividers; the outer ones are clipped away, so empty cells stay white. */
	margin: -1px 0 0 -1px;
	box-shadow: inset 1px 0 0 0 var(--upd-line), inset 0 1px 0 0 var(--upd-line);
}
.upd-quick__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	color: var(--upd-primary);
	background: var(--upd-mist);
	border-radius: 50%;
}
.upd-quick__text { display: flex; flex-direction: column; min-width: 0; }
.upd-quick__label { font-size: 13px; line-height: 1.3; color: var(--upd-muted); }
.upd-quick__value { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--upd-primary); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ Sections */
.upd-sections { padding-top: 80px; }
.upd-section + .upd-section { margin-top: 80px; }
.upd-page .upd-h2 {
	margin-bottom: 28px;
	font-size: clamp(27px, 3vw, 38px);
	color: var(--upd-primary);
}
.upd-page .upd-h2::after {
	content: "";
	display: block;
	width: 44px;
	height: 2px;
	margin-top: 14px;
	background: var(--upd-accent);
}
.upd-page .upd-h3 { font-family: inherit; font-size: 17px; font-weight: 600; color: var(--upd-primary); }
.upd-lead { max-width: 60ch; margin: -12px 0 28px !important; color: var(--upd-muted); }

/* Overview */
.upd-prose { max-width: 72ch; font-size: 17px; line-height: 1.75; }
.upd-prose > * + * { margin-top: 1em !important; }
.upd-prose ul { padding-left: 1.2em; list-style: disc; }
.upd-prose ol { padding-left: 1.2em; }
.upd-prose li + li { margin-top: .35em; }
.upd-prose li::before { display: none; }
.upd-prose a { color: var(--upd-primary); text-decoration: underline; text-decoration-color: var(--upd-accent); text-underline-offset: 3px; }
.upd-prose strong { color: var(--upd-primary); }

/* Hotels */
.upd-hotels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.upd-hotels--1 { grid-template-columns: minmax(0, 720px); }
.upd-hotel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--upd-line);
	border-radius: 18px;
}
.upd-hotel__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--upd-mist);
}
.upd-hotel__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
.upd-hotel__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--upd-line);
}
.upd-hotel__placeholder svg { width: 56px; height: 56px; color: var(--upd-muted); opacity: .4; }
.upd-hotel__city {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 14px;
	font-family: var(--upd-display, inherit);
	font-size: 16px;
	line-height: 1.2;
	color: var(--upd-accent);
	background: var(--upd-primary);
	border-radius: 999px;
}
.upd-hotel__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 14px; padding: 24px 26px 26px; }
.upd-page .upd-hotel__name { font-size: 25px; line-height: 1.2; color: var(--upd-primary); }
.upd-stars { display: flex; gap: 3px; margin-top: -6px; color: var(--upd-accent); }
.upd-hotel__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid var(--upd-line);
	border-bottom: 1px solid var(--upd-line);
}
.upd-hotel__facts dt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 400;
	color: var(--upd-muted);
}
.upd-hotel__facts dt svg { color: var(--upd-accent-deep); }
.upd-hotel__facts dd { margin-top: 2px !important; font-size: 15.5px; font-weight: 600; color: var(--upd-primary); }
.upd-hotel__desc { font-size: 15px; line-height: 1.65; color: var(--upd-ink); }
.upd-hotel__map {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--upd-primary) !important;
}
.upd-hotel__map span { text-decoration: underline; text-decoration-color: var(--upd-accent); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ Distance
   Mosque fixed on the right; hotel placed along the path by real distance. */
.upd-dist {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	overflow: hidden;
	padding: 36px 40px 30px;
	background: var(--upd-mist);
	border-radius: 20px;
}
.upd-dist__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.upd-dist__city { flex: 0 0 100%; font-size: 14px; color: var(--upd-muted); }
.upd-dist__value { font-family: var(--upd-display, inherit); font-size: clamp(28px, 3vw, 36px); font-weight: 400; line-height: 1.1; color: var(--upd-primary); }
.upd-dist__walk { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--upd-ink); }
.upd-dist__walk svg { color: var(--upd-accent-deep); }

.upd-dist__track {
	--line: 50px;
	position: relative;
	height: 96px;
	margin: 6px 20px 0;
}
.upd-dist__rail,
.upd-dist__path {
	position: absolute;
	top: var(--line);
	height: 2px;
	transform: translateY(-50%);
}
.upd-dist__rail {
	left: 0;
	right: 0;
	background-image: repeating-linear-gradient(to right, var(--upd-line) 0 8px, transparent 8px 14px);
}
.upd-dist__path {
	left: min(calc((1 - var(--p)) * 100%), calc(100% - 48px));
	right: 0;
	height: 4px;
	background: var(--upd-accent);
	border-radius: 4px;
	transform-origin: right center;
	transition: transform 1.2s cubic-bezier(.3, .7, .2, 1) .15s;
}
.upd-dist.is-armed .upd-dist__path { transform: translateY(-50%) scaleX(0); }
.upd-dist.is-armed.is-drawn .upd-dist__path { transform: translateY(-50%) scaleX(1); }

.upd-dist__hotel,
.upd-dist__mosque { position: absolute; top: var(--line); }
.upd-dist__hotel { left: min(calc((1 - var(--p)) * 100%), calc(100% - 48px)); }
.upd-dist__mosque { right: 0; }
.upd-dist__dot {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--upd-primary);
	background: #fff;
	border: 2px solid var(--upd-primary);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}
.upd-dist__dot--mosque {
	left: auto;
	right: 0;
	width: 44px;
	height: 44px;
	color: var(--upd-accent);
	background: var(--upd-primary);
	border-color: var(--upd-primary);
	transform: translate(50%, -50%);
}
.upd-dist__tag {
	position: absolute;
	max-width: 220px;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--upd-ink);
}
.upd-dist__hotel .upd-dist__tag { bottom: 26px; left: -19px; }
/* Hotel close to the mosque: put its label on the left of the pin. */
.upd-dist__track.is-near .upd-dist__hotel .upd-dist__tag { left: auto; right: -19px; text-align: right; }
.upd-dist__mosque .upd-dist__tag { top: 30px; right: -20px; font-weight: 600; color: var(--upd-primary); }

/* ------------------------------------------------------------------ Services */
.upd-page .upd-services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.upd-services li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px 14px 14px;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--upd-primary);
	background: #fff;
	border: 1px solid var(--upd-line);
	border-radius: 14px;
}
.upd-services__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	color: var(--upd-primary);
	background: var(--upd-accent-soft);
	border-radius: 12px;
}
.upd-excluded { margin-top: 32px; }
.upd-excluded ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 12px !important; }
.upd-excluded li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--upd-muted); }
.upd-excluded li svg { color: #b0523f; }

/* ------------------------------------------------------------------ Important info */
.upd-info {
	padding: 34px 38px;
	background: #fff;
	border: 1px solid var(--upd-line);
	border-left: 4px solid var(--upd-accent);
	border-radius: 4px var(--upd-radius) var(--upd-radius) 4px;
}
.upd-info ul { display: grid; gap: 14px; max-width: 80ch; }
.upd-info li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.6; }
.upd-info li svg { margin-top: 3px; color: var(--upd-accent-deep); }

/* ------------------------------------------------------------------ CTA band */
.upd-cta {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin: 96px calc(50% - 50vw) 0;
	padding: 76px 0;
	overflow: hidden;
	color: #fff;
	background: var(--upd-primary);
}
.upd-cta .upd-pattern {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h6.2M57.8 32H64M32 0v6.2M32 57.8V64'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to right, #000 0%, transparent 55%);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Crect x='18' y='18' width='28' height='28'/%3E%3Crect x='18' y='18' width='28' height='28' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h6.2M57.8 32H64M32 0v6.2M32 57.8V64'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to right, #000 0%, transparent 55%);
}
.upd-cta__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
}
.upd-page .upd-cta__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; color: #fff; }
.upd-cta__text p { max-width: 52ch; margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .8); }
.upd-cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.upd-page .upd-cta__mail {
	display: inline-flex;
	flex: 0 0 100%;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-size: 15px;
	color: rgba(255, 255, 255, .85) !important;
}
.upd-page .upd-cta__mail:hover span { text-decoration: underline; text-decoration-color: var(--upd-accent); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ Gallery */
.upd-gallery-section { padding: 88px 0 96px; margin: 0 !important; }
.upd-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 190px;
	gap: 12px;
}
.upd-gallery--1 { grid-template-columns: 1fr; grid-auto-rows: clamp(260px, 42vw, 480px); }
.upd-gallery--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(220px, 28vw, 360px); }
.upd-gallery--3 { grid-template-columns: 2fr 1fr; grid-auto-rows: 210px; }
.upd-gallery--4 { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; }
.upd-gallery--3 .upd-gallery__item:first-child,
.upd-gallery--4 .upd-gallery__item:first-child { grid-row: span 2; }
.upd-gallery--4 .upd-gallery__item:nth-child(4) { grid-column: span 2; }
.upd-gallery--5 .upd-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }

.upd-page .upd-gallery__item {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	cursor: zoom-in;
	background: var(--upd-mist);
	border: 0;
	border-radius: 12px;
	box-shadow: none;
}
.upd-gallery__item img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform .5s ease;
}
.upd-gallery__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--upd-primary);
	background: var(--upd-accent);
	border-radius: 50%;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s ease, transform .25s ease;
}
.upd-gallery__item:hover img { transform: scale(1.05); }
.upd-gallery__item:hover .upd-gallery__zoom,
.upd-gallery__item:focus-visible .upd-gallery__zoom { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Lightbox */
.upd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 80px;
	background: rgba(3, 20, 32, .95);
	opacity: 0;
	transition: opacity .25s ease;
}
.upd-lightbox[hidden] { display: none; }
.upd-lightbox.is-open { opacity: 1; }
.upd-lightbox__figure { margin: 0; text-align: center; }
.upd-lightbox__img {
	display: block;
	max-width: min(1200px, 100%);
	max-height: calc(100vh - 150px);
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
	opacity: 0;
	transition: opacity .25s ease;
}
.upd-lightbox__img.is-loaded { opacity: 1; }
.upd-lightbox__count { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.upd-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: 0;
	padding: 0;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.upd-lightbox button:hover { color: var(--upd-primary); background: var(--upd-accent); border-color: var(--upd-accent); }
.upd-lightbox button:focus-visible { outline: 2px solid var(--upd-accent); outline-offset: 3px; }
.upd-lightbox button[hidden] { display: none; }
.upd-lightbox__close { top: 18px; right: 18px; }
.upd-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.upd-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ Sticky bar */
.upd-sticky { display: none; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 960px) {
	.upd-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.upd-hero__book { max-width: 440px; }
	.upd-cta__inner { grid-template-columns: minmax(0, 1fr); }
	.upd-cta__actions { justify-content: flex-start; }
	.upd-page .upd-cta__mail { justify-content: flex-start; }
	.upd-gallery,
	.upd-gallery--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.upd-shell { padding-left: 16px; padding-right: 16px; }
	.upd-hero { min-height: 0; padding: 96px 0 100px; }
	.upd-hero__shade { background: linear-gradient(to top, var(--upd-primary) 8%, transparent 100%); opacity: .96; }
	.upd-quick-wrap { margin-top: -52px; }
	.upd-page .upd-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.upd-page .upd-quick__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
	.upd-quick__icon { width: 38px; height: 38px; flex-basis: 38px; }
	.upd-sections { padding-top: 56px; }
	.upd-section + .upd-section { margin-top: 60px; }
	.upd-hotels { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.upd-hotel__body { padding: 20px; }
	.upd-dist { padding: 26px 20px 20px; gap: 32px; }
	.upd-dist__track { margin: 6px 22px 0 18px; }
	.upd-dist__tag { max-width: 46vw; }
	.upd-info { padding: 24px 20px; }
	.upd-cta { margin-top: 72px; padding: 56px 0; }
	.upd-cta__actions .upd-btn { flex: 1 1 100%; }
	.upd-gallery-section { padding: 64px 0 72px; }
	.upd-gallery,
	.upd-gallery--3,
	.upd-gallery--4,
	.upd-gallery--5 { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 8px; }
	.upd-gallery .upd-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
	.upd-gallery--4 .upd-gallery__item:nth-child(4) { grid-column: auto; }
	.upd-gallery--2 .upd-gallery__item:first-child { grid-row: auto; }
	.upd-lightbox { padding: 64px 12px 90px; }
	.upd-lightbox__prev,
	.upd-lightbox__next { top: auto; bottom: 20px; transform: none; }
	.upd-lightbox__prev { left: calc(50% - 62px); }
	.upd-lightbox__next { right: calc(50% - 62px); }

	.upd-sticky {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--upd-line);
		box-shadow: 0 -8px 24px rgba(6, 45, 71, .12);
	}
	.upd-sticky__price { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
	.upd-sticky__price span { font-size: 12px; color: var(--upd-muted); }
	.upd-sticky__price strong { font-size: 18px; color: var(--upd-primary); white-space: nowrap; }
	.upd-page .upd-sticky .upd-btn { min-height: 46px; padding: 11px 20px; }
	.upd-sticky .upd-btn--wa:hover { background: var(--upd-primary); color: #fff !important; border-color: var(--upd-primary); }
	.upd-page:has(.upd-sticky) { padding-bottom: 72px; }
}

@media (max-width: 420px) {
	.upd-page .upd-quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.upd-quick__value { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.upd-dist__path,
	.upd-gallery__item img,
	.upd-gallery__zoom,
	.upd-lightbox,
	.upd-lightbox__img { transition: none !important; }
	.upd-dist.is-armed .upd-dist__path { transform: translateY(-50%) scaleX(1); }
}
