/*
Theme Name: My Stay in Mexico 2027
Theme URI: https://mystayinmexico.com.mx
Author: Jesus Lopez V.
Author URI: https://mystayinmexico.com.mx
Description: Editorial-style vacation rental theme for My Stay in Mexico. Full-width bands, accessible mega menu, direct-booking search, property showcase and a WCAG 2.2 AA / SEO-first foundation (semantic landmarks, ARIA labels, structured data, Open Graph).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mystay2027
Tags: accessibility-ready, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, translation-ready, blog, one-column, two-columns, block-styles, wide-blocks
*/

/* ==========================================================================
   0. Design tokens
   Palette contrast (WCAG 2.2, measured against the surface it sits on):
     ink        #12232B on #FFFFFF ....... 14.9:1  (AAA)
     ink-soft   #41565F on #FFFFFF .......  7.6:1  (AAA)
     ink-mute   #546A72 on #FFFFFF .......  5.8:1  (AA)
     brand      #0B5266 on #FFFFFF .......  9.5:1  (AAA)
     brand      #FFFFFF on #0B5266 .......  9.5:1  (AAA)
     accent-br  #4FE0EE on #07303F ....... 10.0:1 (AAA)
     accent     #00A8BC  -> decorative/graphics only (2.7:1) never body text
   ========================================================================== */
:root {
  color-scheme: light;

  --ink: #12232b;
  --ink-soft: #41565f;
  --ink-mute: #546a72;
  --surface: #ffffff;
  --surface-sand: #f8f4ec;
  --surface-mist: #e8f1f3;
  --surface-brand: #0b5266;
  --surface-night: #07303f;
  --surface-night-2: #0c4356;
  --line: #cbdbdf;
  --line-strong: #a7bcc2;
  --brand: #0b5266;
  --brand-deep: #07303f;
  --accent: #00a8bc;
  --accent-bright: #4fe0ee;
  --accent-soft: #d6f3f7;
  --focus: #0b5266;
  --focus-on-dark: #8fe8f2;
  --success: #186b46;
  --notice: #8a4b00;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --t-h3: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  --t-h2: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
  --t-h1: clamp(2.125rem, 1.35rem + 3.9vw, 3.75rem);

  --w-page: 1200px;
  --w-narrow: 46rem;
  --gutter: clamp(16px, 4vw, 48px);
  --sec-y: clamp(56px, 7.5vw, 108px);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --header-h: 68px;

  --shadow-1: 0 2px 6px -2px rgba(7, 48, 63, 0.14), 0 10px 24px -18px rgba(7, 48, 63, 0.35);
  --shadow-2: 0 24px 48px -30px rgba(7, 48, 63, 0.55);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

/* Dark theme: mirrors the reference's night mode. Every pair below is AA+ too. */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9f1f4;
  --ink-soft: #bccbd2;
  --ink-mute: #9db0b8;
  --surface: #0e1c23;
  --surface-sand: #10222a;
  --surface-mist: #142b34;
  --line: #2a4650;
  --line-strong: #3d606c;
  --brand: #7cd8e8;
  --brand-deep: #06232e;
  --accent: #3fc9dc;
  --accent-bright: #8fe8f2;
  --accent-soft: #14333d;
  --focus: #8fe8f2;
  --surface-brand: #0a3441;
  --surface-night: #071c25;
  --surface-night-2: #0a3441;
  --success: #7fd3a4;
  --notice: #f0b872;
  --shadow-1: 0 2px 6px -2px rgba(0, 0, 0, 0.5), 0 10px 24px -18px rgba(0, 0, 0, 0.8);
  --shadow-2: 0 24px 48px -30px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   1. Base / reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, dl, dd, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
table { border-collapse: collapse; width: 100%; }
:where(hr) { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Visible, high-contrast focus ring — never removed. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
[data-theme="dark"] :focus-visible { outline-color: var(--focus-on-dark); }
.on-dark :focus-visible,
.band--night :focus-visible,
.band--brand :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

::selection { background: var(--accent-soft); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   2. Accessibility utilities
   ========================================================================== */
/* Every inline icon. Component rules below can override the size. */
.icon { width: 20px; height: 20px; flex: none; }

.visually-hidden,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  background: var(--surface-night);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-2);
  transition: translate 0.18s var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: calc(var(--w-page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.wrap--narrow { max-width: calc(var(--w-narrow) + 2 * var(--gutter)); }

.band { padding-block: var(--sec-y); }
.band--tight { padding-block: clamp(36px, 5vw, 64px); }
.band--mist { background: var(--surface-mist); }
.band--sand { background: var(--surface-sand); }
.band--brand { background: var(--surface-brand); color: #fff; }
.band--night {
  background:
    radial-gradient(circle at 1px 1px, rgba(143, 232, 242, 0.14) 1px, transparent 0) 0 0 / 20px 20px,
    linear-gradient(165deg, var(--surface-night-2) 10%, var(--surface-night));
  color: #fff;
}
.band--edge { border-top: 1px solid var(--line); }

.stack { display: grid; gap: 16px; }
.stack--lg { gap: clamp(24px, 3vw, 40px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cluster--between { justify-content: space-between; }
.muted { color: var(--ink-soft); }
.text-sm { font-size: var(--t-sm); }
.tabular { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   4. Typography
   ========================================================================== */
.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.2; }

.display em,
.h1 em,
.h2 em,
.h3 em {
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--brand);
}
.band--night .eyebrow,
.band--brand .eyebrow,
.site-footer .eyebrow { color: var(--accent-bright); }

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.lead {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38em;
}
.band--night .lead,
.band--brand .lead,
.site-footer .lead { color: #d5e7eb; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head__text { display: grid; gap: 14px; max-width: 42em; }
.section-head__link { flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--brand);
  text-decoration: none;
  text-underline-offset: 4px;
}
.link-arrow svg { width: 18px; height: 18px; flex: none; transition: translate 0.2s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { translate: 3px 0; }
.band--night .link-arrow,
.band--brand .link-arrow { color: var(--accent-bright); }

/* ==========================================================================
   5. Buttons, chips, badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), translate 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { translate: 0 -1px; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
[data-theme="dark"] .btn--primary { background: var(--accent); color: #06232e; }
[data-theme="dark"] .btn--primary:hover { background: var(--accent-bright); }

.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--surface-mist); }
[data-theme="dark"] .btn--outline { border-color: var(--accent); color: var(--accent); }

.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--accent-soft); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.14); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--t-xs); }
.btn--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-mist);
  color: var(--ink);
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
a.chip:hover { border-color: var(--brand); background: var(--surface); }
.band--night .chip,
.band--brand .chip { background: rgba(255, 255, 255, 0.12); color: #eaf6f8; }
.chip--accent { background: var(--accent-soft); color: #05414f; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #05414f;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge--solid { background: var(--brand); color: #fff; }
.badge--light { background: rgba(255, 255, 255, 0.92); color: var(--brand-deep); }

/* ==========================================================================
   6. Header
   ========================================================================== */
.utility {
  background: var(--surface-night);
  color: #d9eaee;
  font-size: var(--t-xs);
}
.utility .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 40px;
  padding-block: 6px;
}
.utility__note { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.utility__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex: none;
}
.utility__note strong { color: #fff; font-weight: 700; }
.utility__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0; }
.utility__links a,
.utility__links span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: #d9eaee;
  text-decoration: none;
}
.utility__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.utility__links svg { width: 15px; height: 15px; flex: none; opacity: 0.9; }
.utility__links li { display: inline-flex; }
.utility__theme { display: none; }

/* Oversized decorative icon (empty hero, placeholders) */
.icon--xl { width: 48px; height: 48px; stroke-width: 1.3; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(2px)) {
  .site-header { background: var(--surface); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.brand__mark { display: grid; place-items: center; flex: none; }
.brand img,
.brand svg { height: 40px; width: auto; }
.brand__mark img { height: 40px; width: auto; max-width: none; }

/* The bundled mark is navy + orange + cyan, so on dark surfaces it sits on a
   light plate: every part of the logo keeps its contrast there. */
.site-footer .brand__mark,
[data-theme="dark"] .site-header .brand__mark,
[data-theme="dark"] .drawer .brand__mark,
.band--night .brand__mark {
  background: #fff;
  border-radius: 10px;
  padding: 3px;
}
.site-footer .brand__mark img,
[data-theme="dark"] .site-header .brand__mark img,
[data-theme="dark"] .drawer .brand__mark img { height: 34px; }
.brand__text { display: grid; gap: 0; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 13px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav__link svg { width: 14px; height: 14px; transition: rotate 0.2s var(--ease); }
.nav__link:hover { color: var(--ink); background: var(--surface-mist); }
.nav__item.is-open > .nav__link { color: var(--ink); background: var(--surface-mist); }
.nav__item.is-open > .nav__link svg { rotate: 180deg; }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 320px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  display: none;
  z-index: 10;
}
.nav__item.is-open > .nav__panel { display: block; }
.nav__panel-list { display: grid; gap: 2px; }
.nav__panel-link {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
}
.nav__panel-link:hover { background: var(--surface-mist); }
.nav__panel-link strong {
  font-size: var(--t-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__panel-link span {
  font-size: var(--t-xs);
  color: var(--ink-soft);
  line-height: 1.4;
}

.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface-mist); border-color: var(--line-strong); }

.nav__toggle { display: none; }

/* Icon swap for the theme switch */
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
[data-theme="dark"] .utility__theme { color: #d9eaee; }

/* ==========================================================================
   7. Mobile drawer + search dialog
   ========================================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s var(--ease), visibility 0.22s;
}
.drawer[open] { visibility: visible; opacity: 1; }
.drawer::backdrop { background: rgba(7, 48, 63, 0.55); }
.drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) 10px max(var(--gutter), env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}
.drawer__body {
  overflow-y: auto;
  padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 32px max(var(--gutter), env(safe-area-inset-left, 0px));
  display: grid;
  align-content: start;
  gap: 4px;
}
.drawer__cta { display: grid; gap: 10px; padding-block: 16px 8px; }
.drawer__item { border-bottom: 1px solid var(--line); }
.drawer__list { display: grid; }
.drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.drawer__link[aria-current="page"] { color: var(--brand); }
.drawer__group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary svg { width: 18px; height: 18px; flex: none; transition: rotate 0.2s var(--ease); }
.drawer__group[open] summary svg { rotate: 180deg; }
.drawer__sub { display: grid; padding: 0 0 8px 14px; }
.drawer__sub .drawer__link {
  min-height: 44px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.drawer__sub .drawer__list > li:last-child .drawer__link { border-bottom: 0; }
.drawer__foot {
  display: grid;
  gap: 8px;
  padding-top: 20px;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.drawer__foot a { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; }

.search-dialog {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.search-dialog::backdrop { background: rgba(7, 48, 63, 0.55); }
.search-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}
.search-dialog__title { font-family: var(--font-display); font-size: 1.375rem; }
.search-dialog__body { padding: 16px 20px 20px; display: grid; gap: 14px; }
.search-dialog__hint { font-size: var(--t-sm); color: var(--ink-soft); }
.search-dialog__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-dialog__chips .chip { min-height: 36px; }

/* ==========================================================================
   8. Search form (hero + dialogs + archives)
   ========================================================================== */
.searchbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
  padding: 8px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.searchbar__field {
  flex: 1 1 200px;
  max-width: 360px;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  min-width: 0;
}
.searchbar__field--wide { flex-grow: 1.4; max-width: 460px; }
.searchbar__field:focus-within { background: var(--surface-mist); }
.searchbar__actions { flex: 0 0 auto; display: flex; align-items: center; margin-left: auto; }
.searchbar__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.searchbar__input,
.searchbar__select {
  width: 100%;
  min-height: 30px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
}
.searchbar__input::placeholder { color: var(--ink-soft); font-weight: 500; opacity: 1; }
.searchbar__select { cursor: pointer; }
.searchbar__actions .btn { min-height: 52px; padding-inline: 22px; }
@media (max-width: 780px) {
  .searchbar { display: grid; grid-template-columns: 1fr 1fr; }
  .searchbar__field--wide { grid-column: 1 / -1; }
  .searchbar__actions { grid-column: 1 / -1; }
  .searchbar__actions .btn { width: 100%; }
}

/* ==========================================================================
   9. Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 168, 188, 0.18) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(150deg, var(--surface-sand) 0%, var(--surface) 55%, var(--surface-mist) 100%);
  padding-block: clamp(36px, 6vw, 72px) clamp(44px, 7vw, 88px);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(143, 232, 242, 0.14) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(150deg, var(--surface-sand) 0%, var(--surface) 60%, var(--surface-mist) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__content { display: grid; gap: 22px; min-width: 0; }
.hero__title { font-size: var(--t-h1); }
.hero__title em { color: var(--brand); }
.hero__lead { font-size: var(--t-lg); color: var(--ink-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin: 0;
}
.hero__fact { display: grid; gap: 2px; }
.hero__fact dt {
  order: 2;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  line-height: 1.35;
}
.hero__fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  color: var(--brand);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero__fact dd small { font-family: var(--font-body); font-size: 0.5em; font-weight: 700; color: var(--ink-soft); }

.hero__media { position: relative; display: grid; gap: 14px; }
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--surface-mist);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(79, 224, 238, 0.5), transparent 60%),
    linear-gradient(140deg, #0b5266, #07303f 70%);
  color: #fff;
  text-align: center;
  padding: 24px;
}
.hero__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: #0a2b36;
  font-size: var(--t-xs);
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero__caption b { font-weight: 800; }
.hero__stamp {
  position: absolute;
  top: -14px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-night);
  color: #fff;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  rotate: 8deg;
  box-shadow: var(--shadow-1);
  padding: 10px;
}
.hero__stamp span { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; color: var(--accent-bright); }

/* ==========================================================================
   10. Cards
   ========================================================================== */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), translate 0.25s var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
  translate: 0 -3px;
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-mist);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease); }
.card:hover .card__media img { scale: 1.04; }
.card__media--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 25%, rgba(79, 224, 238, 0.35), transparent 55%),
    linear-gradient(140deg, var(--surface-brand), var(--surface-night));
  color: #eaf6f8;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}
.card__badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.card__body { display: grid; align-content: start; gap: 10px; padding: 18px 20px 20px; }
.card__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.card__title { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 600; line-height: 1.2; }
.card__title a { text-decoration: none; color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--brand); }
.card__text { font-size: var(--t-sm); color: var(--ink-soft); }
.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin: 0;
  font-size: var(--t-xs);
  color: var(--ink-soft);
}
.card__fact { display: inline-flex; align-items: center; gap: 6px; }
.card__fact svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.price { display: grid; gap: 0; line-height: 1.1; }
.price__num {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price__unit { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }

.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; color: var(--ink); }
.rating svg { width: 15px; height: 15px; color: #b26a00; }
[data-theme="dark"] .rating svg { color: #f0b872; }
.rating .rating__count { font-weight: 600; color: var(--ink-soft); }

/* Destination tiles */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.dest {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 20px;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface-night);
  isolation: isolate;
}
.dest img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: scale 0.7s var(--ease);
}
.dest::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 48, 63, 0.05) 30%, rgba(7, 48, 63, 0.88) 100%);
}
.dest:hover img { scale: 1.05; }
.dest__name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
.dest__count { font-size: var(--t-xs); font-weight: 600; color: #d5e7eb; }
.dest--empty {
  background:
    radial-gradient(circle at 30% 20%, rgba(79, 224, 238, 0.4), transparent 60%),
    linear-gradient(150deg, var(--surface-brand), var(--surface-night));
}

/* Feature / value props */
.feature { display: grid; gap: 10px; align-content: start; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #05414f;
}
.feature__icon svg { width: 24px; height: 24px; }
.band--night .feature__icon,
.band--brand .feature__icon { background: rgba(143, 232, 242, 0.16); color: var(--accent-bright); }
.feature__title { font-size: 1.0625rem; font-weight: 700; }
.feature__text { font-size: var(--t-sm); color: var(--ink-soft); }
.band--night .feature__text,
.band--brand .feature__text { color: #cfe3e8; }

/* Testimonials */
.testi {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.testi__quote { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.5; }
.testi__quote::before { content: "\201C"; }
.testi__quote::after { content: "\201D"; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; color: #b26a00; }
[data-theme="dark"] .stars svg { color: #f0b872; }
.testi__cite {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.testi__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-mist); }
.testi__avatar--letter {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand);
}
.testi__name { font-weight: 700; color: var(--ink); }

/* ==========================================================================
   11. Page header / breadcrumbs / prose
   ========================================================================== */
.page-head {
  padding-block: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 40px);
  background: var(--surface-sand);
  border-bottom: 1px solid var(--line);
}
.page-head__inner { display: grid; gap: 14px; max-width: 52em; }
.page-head__title { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); }
.page-head__lead { color: var(--ink-soft); font-size: var(--t-lg); max-width: 40em; }

.breadcrumbs { font-size: var(--t-xs); color: var(--ink-soft); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}
.breadcrumbs a { min-height: 24px; display: inline-flex; align-items: center; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.prose { max-width: 68ch; font-size: var(--t-base); color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2,
.prose h3 { margin-top: 1.7em; font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.prose h2 { font-size: var(--t-h3); }
.prose h3 { font-size: 1.125rem; }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--ink-soft);
}
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: var(--t-xs); color: var(--ink-soft); }
.prose img { border-radius: var(--radius-sm); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-mist);
}
.prose pre {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-night);
  color: #eaf6f8;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { font-size: var(--t-sm); }
.prose th,
.prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-mist); }

/* ==========================================================================
   12. Single post / property
   ========================================================================== */
.article { padding-block: clamp(32px, 5vw, 64px); }
.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.article__layout--single { grid-template-columns: minmax(0, 1fr); }
.article__title { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3rem); }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.article__meta svg { width: 16px; height: 16px; }
.article__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article__hero {
  margin-block: clamp(24px, 3vw, 36px);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article__hero img { width: 100%; height: auto; }
.article__footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Property detail */
.prop { padding-block: clamp(24px, 3.5vw, 44px) clamp(40px, 6vw, 80px); }
.prop__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(20px, 3vw, 32px);
}
.gallery { display: grid; gap: 10px; }
.gallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--surface-mist);
  border: 1px solid var(--line);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s var(--ease); }
.gallery__main-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery__main-btn:hover img { scale: 1.01; }
.gallery__main-btn:focus-visible { outline-offset: -4px; }
.gallery__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0a2b36;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.gallery__hint svg { width: 15px; height: 15px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; }
.gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-mist);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--brand); }
.gallery__thumb:hover { border-color: var(--line-strong); }

.booking-card {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.booking-card__price { display: flex; align-items: baseline; gap: 8px; }
.booking-card__price .price__num { font-size: 2rem; }
.booking-card__note { font-size: var(--t-xs); color: var(--ink-soft); }
.booking-card__actions { display: grid; gap: 10px; }
.booking-card__trust {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--ink-soft);
}
.booking-card__trust li { display: flex; align-items: flex-start; gap: 8px; }
.booking-card__trust svg { width: 16px; height: 16px; flex: none; color: var(--brand); margin-top: 2px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-sand);
  border: 1px solid var(--line);
  margin: 0;
}
.fact { display: grid; gap: 2px; }
.fact dt {
  order: 2;
  font-size: var(--t-xs);
  color: var(--ink-soft);
}
.fact dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}
.fact dd svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

.block { margin-top: clamp(28px, 4vw, 44px); }
.block__title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  margin-bottom: 14px;
}
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 24px; }
.amenity { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-sm); padding-block: 4px; }
.amenity svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 1px; }
.amenity--off { color: var(--ink-soft); }
.amenity--off svg { color: var(--line-strong); }

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-mist);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Property: Lodging distribution, Amenities photos and Nearby places */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.photo-card {
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--surface);
}
.photo-card__media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-mist);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}
.photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s var(--ease);
}
.photo-card__media:hover img { scale: 1.03; }
.photo-card__media--empty {
  cursor: default;
  background:
    radial-gradient(circle at 30% 25%, rgba(79, 224, 238, 0.28), transparent 60%),
    linear-gradient(150deg, var(--surface-brand), var(--surface-night));
}
.photo-card__body {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px 18px 18px;
}
.photo-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}
.photo-card__text {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}
.photo-card__text p { margin: 0; }
.photo-card__text p + p { margin-top: 0.6em; }

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.nearby-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--surface);
}
.nearby-card__media { aspect-ratio: 16 / 10; background: var(--surface-mist); }
.nearby-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nearby-card__body {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 16px 18px;
}
.nearby-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}
.nearby-card__text { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.5; }
.nearby-card__text p { margin: 0; }
.nearby-card__text p + p { margin-top: 0.5em; }
.badge--distance { justify-self: start; }

@media (max-width: 900px) {
  .nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .nearby-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Photo viewer (native dialog) */
.lightbox {
  width: min(1080px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-night);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.lightbox:not([open]) { display: none; }
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lightbox::backdrop { background: rgba(4, 20, 27, 0.84); }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}
.lightbox__count {
  margin: 0;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe3e8;
}
.lightbox__close { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 0 14px;
}
.lightbox__figure img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 230px);
  object-fit: contain;
  border-radius: 10px;
  background: #04141b;
}
.lightbox__caption {
  font-size: var(--t-sm);
  color: #dcebee;
  line-height: 1.5;
  padding-bottom: 4px;
}
.lightbox__nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 14px 14px;
}
.lightbox__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__arrow:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.lightbox__arrow[hidden] { display: none; }

/* ==========================================================================
   13. CTA band
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 1px 1px, rgba(143, 232, 242, 0.16) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(150deg, var(--surface-night-2), var(--surface-night));
  color: #fff;
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px 40px;
  align-items: center;
}
.cta__title { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 600; line-height: 1.1; }
.cta__text { margin-top: 12px; color: #d5e7eb; max-width: 42em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 780px) {
  .cta__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   14. Pagination, forms, comments
   ========================================================================== */
.pagination { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--brand); }
.pagination .page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
[data-theme="dark"] .pagination .page-numbers.current { color: #06232e; }

.field { display: grid; gap: 6px; }
.field__label { font-size: var(--t-sm); font-weight: 700; }
.field__req { font-size: var(--t-xs); font-weight: 600; color: var(--ink-soft); text-transform: lowercase; }
.field__hint { font-size: var(--t-xs); color: var(--ink-soft); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: #9a2b12;
}
[data-theme="dark"] .field__error { color: #ffab8f; }
.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible { outline-offset: 1px; }
.textarea { min-height: 140px; resize: vertical; }
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: #9a2b12; }
[data-theme="dark"] .input[aria-invalid="true"] { border-color: #ffab8f; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-sm); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; }

.comments { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); padding-top: 32px; }
.comment-list { display: grid; gap: 20px; }
.comment-list .comment { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.comment-list .children { margin-top: 16px; padding-left: 18px; display: grid; gap: 12px; }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.comment-meta { font-size: var(--t-xs); color: var(--ink-soft); }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer {
  background:
    radial-gradient(circle at 1px 1px, rgba(143, 232, 242, 0.1) 1px, transparent 0) 0 0 / 20px 20px,
    linear-gradient(180deg, var(--surface-night-2), var(--surface-night));
  color: #dcebee;
  padding-block: clamp(40px, 6vw, 72px) 24px;
  font-size: var(--t-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__name { color: #fff; }
.footer__about { color: #c3d8de; max-width: 30em; line-height: 1.6; }
.footer__address { font-style: normal; color: #c3d8de; line-height: 1.6; }
.footer__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.footer__list { display: grid; gap: 2px; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #dcebee;
  text-decoration: none;
  border-radius: 4px;
}
.footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact { display: grid; gap: 4px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 8px; min-height: 36px; padding-block: 6px; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent-bright); }
.footer__legal {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(185, 210, 216, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: var(--t-xs);
  color: #b9d2d8;
}
.footer__legal a { color: #dcebee; }
.footer__legal p { margin: 0; }
.footer__legal nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 32px; }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(185, 210, 216, 0.35);
  color: #dcebee;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.social a:hover { background: rgba(143, 232, 242, 0.16); border-color: var(--accent-bright); color: #fff; }
.social svg { width: 19px; height: 19px; }

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   16. Responsive header / article / property
   ========================================================================== */
@media (min-width: 1024px) {
  .nav__panel { left: -16px; }
}
@media (max-width: 1180px) {
  .nav__link { padding-inline: 9px; font-size: 0.875rem; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .nav__toggle { display: inline-grid; }
  .nav__actions .btn--primary { display: none; }
  .site-header__inner { gap: 12px; }
  .article__layout,
  .prop__layout { grid-template-columns: minmax(0, 1fr); }
  .booking-card { position: static; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; }
  .hero__frame { aspect-ratio: 16 / 10; }
  .hero__stamp { width: 78px; height: 78px; font-size: 0.625rem; top: -10px; }
}
@media (max-width: 640px) {
  .utility__links li:not(.utility__keep) { display: none; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__fact:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .brand__name { font-size: 1rem; }
  .brand img, .brand svg { height: 34px; }
  .site-header__inner { gap: 10px; }
}
@media (max-width: 400px) {
  .utility__note { font-size: 0.75rem; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ==========================================================================
   16b. Dialogs, floating actions, extras
   ========================================================================== */
.drawer,
.search-dialog {
  margin: auto;
  max-width: calc(100vw - 2px);
  max-height: 100vh;
  border: 0;
}
.drawer {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0;
}
dialog.drawer:not([open]),
.search-dialog:not([open]) { display: none; }
.search-dialog[open] { animation: dialog-in 0.2s var(--ease); }
.drawer[open] { animation: drawer-in 0.22s var(--ease); }
@keyframes dialog-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes drawer-in { from { opacity: 0; } to { opacity: 1; } }
.search-dialog__body { overflow-y: auto; }
.drawer__nav { margin-top: 18px; }

/* Floating WhatsApp action (skip it in print, and keep it out of the tab
   order until the main content has been read). */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  box-shadow: var(--shadow-2);
  transition: scale 0.2s var(--ease), background-color 0.2s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #0d6d62; scale: 1.04; }
.wa-float:focus-visible { outline: 3px solid var(--focus-on-dark); outline-offset: 3px; }

/* Contact form card + status notices */
.form-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  color: var(--ink);
}
.form-card .h3 { margin-bottom: 0; }

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand);
  background: var(--surface-mist);
  color: var(--ink);
  font-size: var(--t-sm);
}
.notice p { margin: 0; }
.notice--success { background: #e6f4ec; border-left-color: var(--success); color: #103f2a; }
.notice--error { background: #fdeeea; border-left-color: #9a2b12; color: #6f1f0e; }
[data-theme="dark"] .notice--success { background: #10312a; color: #c7efd8; }
[data-theme="dark"] .notice--error { background: #3a1c16; color: #ffc9b8; }

/* Check lists (services, offers) */
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 1px; }
.checklist--light li { color: #e3f1f4; }
.checklist--light svg { color: var(--accent-bright); }

/* Widgets inside the article sidebar */.article__aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 16px;
  align-content: start;
}
.widget { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.widget + .widget { margin-top: 16px; }
.widget__title { font-family: var(--font-display); font-size: 1.125rem; }
.widget ul { display: grid; gap: 2px; }
.widget a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.widget a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   17. Print (property sheet / article)
   ========================================================================== */
@media print {
  .utility,
  .site-header,
  .site-footer,
  .booking-card,
  .skip-link,
  .searchbar,
  .cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band,
  .prop,
  .article { padding-block: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .card,
  .gallery__main { break-inside: avoid; }
}
