/* VCG Stay Design: single accommodation page.
   Colours come from the theme's global palette (Astra slots), so the same file suits any
   brand: 0 accent, 1 accent dark, 2 headings, 3 body text, 4 alt ground, 5 page ground,
   6 support tone, 7 deep ground, 8 white. */

.vsd {
	--vsd-accent: var(--ast-global-color-0, #1F7A6D);
	--vsd-accent-dark: var(--ast-global-color-1, #165E54);
	--vsd-ink: var(--ast-global-color-2, #1E2A32);
	--vsd-text: var(--ast-global-color-3, #3D4A52);
	--vsd-alt: var(--ast-global-color-4, #F3ECE1);
	--vsd-ground: var(--ast-global-color-5, #FBF7F1);
	--vsd-support: var(--ast-global-color-6, #D9B98A);
	--vsd-white: var(--ast-global-color-8, #FFFFFF);
	--vsd-line: color-mix(in srgb, var(--vsd-ink) 12%, transparent);
	--vsd-tint: color-mix(in srgb, var(--vsd-accent) 10%, var(--vsd-white));
	--vsd-radius: 20px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 16px 48px;
	color: var(--vsd-text);
}

/* Theme container: let the page use the full width on accommodation pages. */
.vsd-single .site-content > .ast-container { max-width: 100%; padding: 0; display: block; }
.vsd-single #primary { margin: 0; padding: 0; width: 100%; }
.vsd-single .ast-article-single, .vsd-single .ast-separate-container .ast-article-single { padding: 0; background: transparent; }

.vsd-back { margin: 8px 0 12px; font-size: 15px; }
.vsd-back a, .vsd a.vsd-mobilebar-btn, .vsd-contact a, .vsd-tabs a { text-decoration: none !important; }
.vsd-back a { color: var(--vsd-text); }
.vsd-back a:hover { color: var(--vsd-accent); }

.vsd .mphb-room-type-title, .vsd h1.entry-title { margin: 0 0 8px; color: var(--vsd-ink); }

.vsd-ico { width: 20px; height: 20px; flex: none; }

/* Facts line under the title */
.vsd-facts-line { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.vsd-facts-line li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.vsd-facts-line .vsd-ico { color: var(--vsd-accent); width: 18px; height: 18px; }

/* Photo mosaic: one large photograph and four smaller ones; the rest open in the viewer. */
.vsd-gallery-wrap { position: relative; margin-bottom: 8px; }
.vsd-gallery { display: grid; gap: 8px; border-radius: var(--vsd-radius); overflow: hidden; }
.vsd-photo { display: block; overflow: hidden; background: var(--vsd-alt); }
.vsd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vsd-photo:hover img { transform: scale(1.03); }
.vsd-gallery--1 { grid-template-columns: 1fr; }
.vsd-gallery--1 .vsd-photo { aspect-ratio: 16 / 9; }
.vsd-gallery--2 { grid-template-columns: 1fr 1fr; }
.vsd-gallery--2 .vsd-photo { aspect-ratio: 4 / 3; }
.vsd-gallery--3, .vsd-gallery--4, .vsd-gallery--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; }
.vsd-gallery--3 { grid-template-columns: 2fr 1fr; }
.vsd-gallery--3 .vsd-photo:first-child, .vsd-gallery--4 .vsd-photo:first-child, .vsd-gallery--5 .vsd-photo:first-child { grid-row: 1 / span 2; }
.vsd-gallery--4 .vsd-photo:nth-child(2) { grid-column: 2 / span 2; }
.vsd-gallery .vsd-photo:nth-of-type(n+6) { display: none; }
.vsd-all-photos { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--vsd-white); color: var(--vsd-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px color-mix(in srgb, var(--vsd-ink) 18%, transparent); }
.vsd-all-photos:hover { background: var(--vsd-alt); }
.vsd-all-photos .vsd-ico { width: 18px; height: 18px; }

/* Section tabs */
.vsd-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; background: var(--vsd-ground); border-bottom: 1px solid var(--vsd-line); }
.vsd-tabs::-webkit-scrollbar { display: none; }
.vsd-tabs a { flex: none; padding: 16px 0 14px; color: var(--vsd-text); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.vsd-tabs a:hover, .vsd-tabs a.is-active { color: var(--vsd-ink); border-bottom-color: var(--vsd-accent); }
.admin-bar .vsd-tabs { top: 32px; }

/* Two columns from tablet up */
.vsd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.vsd-section { padding: 36px 0 8px; scroll-margin-top: 72px; }
.vsd-section + .vsd-section { border-top: 1px solid var(--vsd-line); margin-top: 28px; }
.vsd-section h2 { margin: 0 0 18px; font-size: 28px; color: var(--vsd-ink); }
.vsd-section h3 { margin: 28px 0 10px; font-size: 20px; color: var(--vsd-ink); }
.vsd .vsd-lead { font-size: 26px; line-height: 1.2; margin-bottom: 16px; }
.vsd-prose { max-width: 68ch; }
.vsd-prose ul { margin: 0 0 1em 1.2em; }

/* Highlights */
.vsd-highlights { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.vsd-highlights li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.vsd-hl-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--vsd-tint); color: var(--vsd-accent); flex: none; }
.vsd-highlights strong { display: block; color: var(--vsd-ink); }
.vsd-highlights span { font-size: 16px; }

/* Amenities */
.vsd-amenities { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px 24px; grid-template-columns: 1fr 1fr; }
.vsd-amenities li { display: flex; align-items: center; gap: 10px; margin: 0; }
.vsd-amenities .vsd-ico { color: var(--vsd-accent); }

/* Label and value lists */
.vsd-kv { margin: 0; display: grid; gap: 0; }
.vsd-kv > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--vsd-line); }
.vsd-kv dt { font-weight: 600; color: var(--vsd-ink); }
.vsd-kv dd { margin: 0; }

.vsd-cancel { list-style: none; margin: 0; padding: 0; border: 1px solid var(--vsd-line); border-radius: 14px; overflow: hidden; }
.vsd-cancel li { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 16px; }
.vsd-cancel li + li { border-top: 1px solid var(--vsd-line); }
.vsd-cancel strong { color: var(--vsd-ink); }

/* Availability calendar: MotoPress's datepicker restyled to the brand. */
.vsd-legend[hidden] { display: none; }
.vsd-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; margin: -6px 0 14px; }
.vsd-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: -6px; border: 1px solid var(--vsd-line); }
.vsd-key--premium { background: color-mix(in srgb, var(--vsd-support) 45%, var(--vsd-white)); }
.vsd-key--economy { background: var(--vsd-white); }
.vsd .mphb-calendar-title, .vsd .mphb-reservation-form-title, .vsd .mphb-details-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vsd .mphb-calendar .datepick { width: 100% !important; border: 0; background: transparent; font-family: inherit; }
.vsd .mphb-calendar .datepick-nav { display: flex; justify-content: space-between; background: transparent !important; padding: 0 2px 10px; }
.vsd .mphb-calendar .datepick-nav a { color: var(--vsd-accent) !important; font-weight: 600; background: transparent !important; }
.vsd .mphb-calendar .datepick-month-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.vsd .mphb-calendar .datepick-month { width: auto !important; height: auto !important; float: none; border: 0; background: var(--vsd-white); border-radius: 16px; padding: 12px; box-shadow: inset 0 0 0 1px var(--vsd-line); }
.vsd .mphb-calendar .datepick-month-header, .vsd .mphb-calendar .datepick-month-header select { background: transparent !important; color: var(--vsd-ink) !important; font: inherit; font-weight: 600; border: 0; padding: 4px 0 8px; }
.vsd .mphb-calendar .datepick-month table { height: auto; border: 0; border-collapse: separate; border-spacing: 3px; width: 100%; margin: 0; }
.vsd .mphb-calendar .datepick-month th { background: transparent !important; color: var(--vsd-text) !important; font-weight: 600; font-size: 12px; border: 0; padding: 4px 0; }
.vsd .mphb-calendar .datepick-month td { border: 0; padding: 0; background: transparent; }
.vsd .mphb-calendar .mphb-date-cell { display: block; border-radius: 8px; padding: 6px 0 4px; text-align: center; font-size: 14px; line-height: 1.2; background: var(--vsd-white) !important; color: var(--vsd-ink) !important; box-shadow: inset 0 0 0 1px var(--vsd-line); text-decoration: none; }
.vsd .mphb-calendar .mphb-date-cell__price { display: block; font-size: 11px; color: var(--vsd-text); }
.vsd .mphb-calendar .mphb-available-date:hover { box-shadow: inset 0 0 0 2px var(--vsd-accent); }
.vsd .mphb-calendar td.vsd-premium .mphb-date-cell { background: color-mix(in srgb, var(--vsd-support) 45%, var(--vsd-white)) !important; }
.vsd .mphb-calendar .mphb-past-date { opacity: .35; box-shadow: none; background: transparent !important; }
.vsd .mphb-calendar .mphb-extra-date { visibility: hidden; }
.vsd .mphb-calendar .datepick-month tbody tr:not(:has(td > :not(.mphb-extra-date))) { display: none; }
.vsd .mphb-calendar [class*="mphb-booked-date"], .vsd .mphb-calendar [class*="not-available"] { background: var(--vsd-alt) !important; color: color-mix(in srgb, var(--vsd-ink) 45%, transparent) !important; text-decoration: line-through; box-shadow: none; }
.vsd .mphb-calendar a.datepick-today, .vsd .mphb-calendar .datepick-today .mphb-date-cell { box-shadow: inset 0 0 0 2px var(--vsd-ink); }
.vsd .mphb-calendar .datepick-ctrl { display: flex; justify-content: space-between; background: transparent !important; border: 0; padding: 10px 2px 0; font-size: 14px; }
.vsd .mphb-calendar .datepick-ctrl a, .vsd .mphb-calendar .datepick-ctrl span { background: transparent !important; color: var(--vsd-accent) !important; font-weight: 600; }
.vsd .mphb-calendar .datepick-ctrl .datepick-cmd-clear { color: var(--vsd-text) !important; }

/* Booking card */
.vsd-card { background: var(--vsd-white); border: 1px solid var(--vsd-line); border-radius: var(--vsd-radius); padding: 24px; box-shadow: 0 8px 28px color-mix(in srgb, var(--vsd-ink) 8%, transparent); }
.vsd-price { margin: 0; color: var(--vsd-text); }
.vsd-price strong { font-family: var(--vsd-heading-font, inherit); font-weight: 400; font-size: 32px; color: var(--vsd-ink); line-height: 1.1; }
.vsd-from, .vsd-per { font-size: 15px; }
.vsd-price-alt, .vsd-price-min { margin: 2px 0 0; font-size: 15px; }
.vsd-note { margin: 12px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--vsd-line); font-size: 14px; }
.vsd .mphb-booking-form p { margin: 0 0 12px; }
.vsd .mphb-booking-form br { display: none; }
.vsd .mphb-booking-form .mphb-required-fields-tip { display: none; }
.vsd .mphb-booking-form label { display: block; font-size: 14px; font-weight: 600; color: var(--vsd-ink); margin-bottom: 4px; }
.vsd .mphb-booking-form input[type=text], .vsd .mphb-booking-form select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--vsd-ink) 22%, transparent); border-radius: 12px; background: var(--vsd-white); font: inherit; font-size: 16px; }
.vsd .mphb-booking-form input:focus, .vsd .mphb-booking-form select:focus { outline: 2px solid var(--vsd-accent); outline-offset: 1px; border-color: var(--vsd-accent); }
.vsd .mphb-booking-form .mphb-reserve-btn, .vsd .mphb-booking-form input[type=submit], .vsd .mphb-booking-form button[type=submit] { width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--vsd-accent); color: var(--vsd-white); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.vsd .mphb-booking-form .mphb-reserve-btn:hover, .vsd .mphb-booking-form input[type=submit]:hover { background: var(--vsd-accent-dark); }
.vsd-contact { margin: 16px 0 0; text-align: center; font-size: 15px; }
.vsd-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--vsd-accent); font-weight: 600; text-decoration: none; }

/* Phone bar */
.vsd-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--vsd-white); border-top: 1px solid var(--vsd-line); box-shadow: 0 -6px 20px color-mix(in srgb, var(--vsd-ink) 10%, transparent); transition: transform .25s ease; }
.vsd-mobilebar p { margin: 0; font-size: 15px; }
.vsd-mobilebar strong { color: var(--vsd-ink); font-size: 18px; }
.vsd-mobilebar-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--vsd-accent); color: var(--vsd-white) !important; font-weight: 600; text-decoration: none; }
.vsd-mobilebar.is-hidden { transform: translateY(110%); }
.vsd-single { padding-bottom: 76px; }

/* Phones: the mosaic becomes a swipeable strip */
@media (max-width: 920px) {
	.vsd-tabs { gap: 14px; }
	.vsd-tabs a { font-size: 14px; }
	.vsd-gallery, .vsd-gallery--2, .vsd-gallery--3, .vsd-gallery--4, .vsd-gallery--5 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; grid-template-rows: none; border-radius: 16px; margin: 0; }
	.vsd-gallery::-webkit-scrollbar { display: none; }
	.vsd-gallery .vsd-photo, .vsd-gallery .vsd-photo:nth-of-type(n+6) { display: block; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
	.vsd-all-photos { position: static; margin-top: 10px; box-shadow: none; border: 1px solid var(--vsd-line); font-size: 14px; padding: 8px 14px; }
}

@media (min-width: 921px) {
	.vsd-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
	.vsd-booking { padding-top: 36px; }
	.vsd-card { position: sticky; top: 76px; }
	.admin-bar .vsd-card { top: 108px; }
	.vsd-highlights { grid-template-columns: 1fr 1fr; }
	.vsd-amenities { grid-template-columns: repeat(3, 1fr); }
	.vsd-kv--grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
	.vsd-kv > div { grid-template-columns: 1fr; }
	.vsd-mobilebar { display: none; }
	.vsd-single { padding-bottom: 0; }
}

/* Photograph viewer */
.vsd-lightbox { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ast-global-color-7, #14202A) 94%, transparent); padding: 56px 16px; }
.vsd-lightbox.is-open { display: flex; }
.vsd-lb-figure { margin: 0; text-align: center; }
.vsd-lb-figure img { max-width: min(1600px, 100%); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 12px; }
.vsd-lb-figure figcaption { color: #fff; opacity: .85; font-size: 15px; margin-top: 10px; }
.vsd-lb-counter { position: absolute; top: 16px; left: 20px; margin: 0; color: #fff; font-size: 15px; }
.vsd-lb-close, .vsd-lb-nav { position: absolute; display: grid; place-items: center; box-sizing: border-box; width: 48px; height: 48px; min-height: 0; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.14) !important; color: #fff !important; font-size: 26px; line-height: 1; cursor: pointer; }
.vsd-lb-close:hover, .vsd-lb-nav:hover, .vsd-lb-close:focus-visible, .vsd-lb-nav:focus-visible { background: rgba(255,255,255,.28) !important; }
.vsd-lb-close svg { display: block; width: 20px; height: 20px; }
.vsd-lb-close { top: 12px; right: 16px; }
.vsd-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.vsd-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.vsd-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.vsd-photo img, .vsd-mobilebar { transition: none; }
	.vsd-photo:hover img { transform: none; }
}
