/* ==========================================================================
   Atlas — design tokens and palettes
   The flagship marketplace theme (10+ listings). Every colour on the site
   comes from the tokens below. `:root` holds the shared derived tokens and
   the default palette ("midnight"); each [data-palette="<id>"] block on
   <html> overrides the palette-level tokens. Platform-rendered widgets read
   the same names as var(--token, <fallback>), so the token list is a
   contract — never rename one. On-photo overlays stay raw dark on purpose.
   Palette ids are declared in theme.md and must match these blocks. Atlas is
   dark by default (canvas rows 08–09); `daylight` is the light option.
   Extra tokens: --accent-ink (accent readable as text on the ground),
   --pill-border, --font-display-weight.
   ========================================================================== */
:root,
[data-palette="midnight"] {
  /* Derived tokens — palette blocks only set the primitives below them */
  --btn-primary-bg: var(--text);
  --btn-primary-text: var(--bg);
  --btn-primary-hover-bg: var(--accent);
  --btn-primary-border: transparent;
  --btn-primary-hover-border: transparent;
  --brand: var(--text);
  --footer-separator: var(--footer-muted);
  --announcement-accent: var(--accent);
  --announcement-accent-hover: var(--accent-hover);
  --shadow-sm: 0 2px 8px var(--shadow-color);
  --shadow-md: 0 12px 32px var(--shadow-color);
  --shadow-lg: 0 24px 60px var(--shadow-color-strong);
  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --pill-border: var(--border);
  --header-bg: var(--bg);
  --header-text: var(--text);
  --header-border: var(--line);
  --font-display-weight: 800;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* ---- midnight (default): near-black, lime ---- */
  color-scheme: dark;
  --bg: #0C0D0F;
  --card: #17181B;
  --card-hover: #1D1E22;
  --border: #2A2B30;
  --line: #1F2024;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.12);
  --overlay: rgba(0, 0, 0, 0.7);
  --text: #F4F4F2;
  --subtle: #A3A5AB;
  --text-disabled: rgba(244, 244, 242, 0.3);
  --band: #17181B;
  --muted-surface: #2A2B30;
  --muted-text: #F4F4F2;
  --accent: #C6F135;
  --accent-hover: #D8F76A;
  --accent-text: #0C0D0F;
  --accent-soft: rgba(198, 241, 53, 0.14);
  --accent-ink: #C6F135;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-color-strong: rgba(0, 0, 0, 0.6);
  --footer-bg: #0C0D0F;
  --footer-border: #1F2024;
  --footer-text: #F4F4F2;
  --footer-muted: #A3A5AB;
  --success: #86EFAC;
  --success-bg: rgba(134, 239, 172, 0.12);
  --warning: #FCD34D;
  --warning-bg: rgba(252, 211, 77, 0.12);
  --danger: #FCA5A5;
  --danger-bg: rgba(252, 165, 165, 0.12);
  --danger-border: rgba(252, 165, 165, 0.3);
  --star: #C6F135;
  --map-bg: #121418;
}
[data-palette="midnight-teal"] { --accent: #5EEAD4; --accent-hover: #8AF2E2; --accent-soft: rgba(94, 234, 212, 0.14); --accent-ink: #5EEAD4; --star: #5EEAD4; }
[data-palette="midnight-coral"] { --accent: #FF7A59; --accent-hover: #FF9A80; --accent-text: #0C0D0F; --accent-soft: rgba(255, 122, 89, 0.16); --accent-ink: #FF9A80; --star: #FF7A59; }
[data-palette="midnight-periwinkle"] { --accent: #8B9CFF; --accent-hover: #A9B6FF; --accent-soft: rgba(139, 156, 255, 0.16); --accent-ink: #A9B6FF; --star: #8B9CFF; }

/* ---- harbour: deep navy, aqua ---- */
[data-palette="harbour"] {
  color-scheme: dark;
  --bg: #0A0F17;
  --card: #121A25;
  --card-hover: #17212E;
  --border: #1F2A38;
  --line: #182230;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.12);
  --overlay: rgba(4, 8, 14, 0.7);
  --text: #F1F4F8;
  --subtle: #93A0B2;
  --text-disabled: rgba(241, 244, 248, 0.3);
  --band: #121A25;
  --muted-surface: #1F2A38;
  --muted-text: #F1F4F8;
  --accent: #5EEAD4;
  --accent-hover: #8AF2E2;
  --accent-text: #0A0F17;
  --accent-soft: rgba(94, 234, 212, 0.14);
  --accent-ink: #5EEAD4;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-color-strong: rgba(0, 0, 0, 0.6);
  --footer-bg: #0A0F17;
  --footer-border: #1F2A38;
  --footer-text: #F1F4F8;
  --footer-muted: #93A0B2;
  --star: #5EEAD4;
  --map-bg: #0F1720;
}

/* ---- ember: warm black, ember orange ---- */
[data-palette="ember"] {
  color-scheme: dark;
  --bg: #100E0D;
  --card: #1A1615;
  --card-hover: #211C1A;
  --border: #2C2624;
  --line: #231E1C;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.12);
  --overlay: rgba(8, 6, 5, 0.7);
  --text: #F5F0EA;
  --subtle: #A89F96;
  --text-disabled: rgba(245, 240, 234, 0.3);
  --band: #1A1615;
  --muted-surface: #2C2624;
  --muted-text: #F5F0EA;
  --accent: #FF7A59;
  --accent-hover: #FF9A80;
  --accent-text: #100E0D;
  --accent-soft: rgba(255, 122, 89, 0.16);
  --accent-ink: #FF9A80;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-color-strong: rgba(0, 0, 0, 0.6);
  --footer-bg: #100E0D;
  --footer-border: #2C2624;
  --footer-text: #F5F0EA;
  --footer-muted: #A89F96;
  --star: #FF7A59;
  --map-bg: #17130F;
}

/* ---- aurora: indigo night, lavender ---- */
[data-palette="aurora"] {
  color-scheme: dark;
  --bg: #0C0D1A;
  --card: #151729;
  --card-hover: #1B1D33;
  --border: #23253D;
  --line: #1B1D31;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.12);
  --overlay: rgba(6, 7, 16, 0.7);
  --text: #F2F2FA;
  --subtle: #9A9DB8;
  --text-disabled: rgba(242, 242, 250, 0.3);
  --band: #151729;
  --muted-surface: #23253D;
  --muted-text: #F2F2FA;
  --accent: #9DA8FF;
  --accent-hover: #B8C0FF;
  --accent-text: #0C0D1A;
  --accent-soft: rgba(157, 168, 255, 0.16);
  --accent-ink: #B8C0FF;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-color-strong: rgba(0, 0, 0, 0.6);
  --footer-bg: #0C0D1A;
  --footer-border: #23253D;
  --footer-text: #F2F2FA;
  --footer-muted: #9A9DB8;
  --star: #9DA8FF;
  --map-bg: #111327;
}

/* ---- goldline: pine night, gold ---- */
[data-palette="goldline"] {
  color-scheme: dark;
  --bg: #0B120E;
  --card: #131C16;
  --card-hover: #18231C;
  --border: #223027;
  --line: #19241D;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.12);
  --overlay: rgba(4, 8, 6, 0.7);
  --text: #EEF3EE;
  --subtle: #98A79C;
  --text-disabled: rgba(238, 243, 238, 0.3);
  --band: #131C16;
  --muted-surface: #223027;
  --muted-text: #EEF3EE;
  --accent: #F5C242;
  --accent-hover: #F8D06B;
  --accent-text: #0B120E;
  --accent-soft: rgba(245, 194, 66, 0.16);
  --accent-ink: #F5C242;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-color-strong: rgba(0, 0, 0, 0.6);
  --footer-bg: #0B120E;
  --footer-border: #223027;
  --footer-text: #EEF3EE;
  --footer-muted: #98A79C;
  --star: #F5C242;
  --map-bg: #0F1712;
}

/* ---- daylight: the light option ---- */
[data-palette="daylight"] {
  color-scheme: light;
  --btn-primary-bg: var(--text);
  --btn-primary-text: #FFFFFF;
  --bg: #F7F7F4;
  --card: #FFFFFF;
  --card-hover: #F2F2EE;
  --border: #E4E4DF;
  --line: #E9E9E4;
  --surface-hover: rgba(18, 19, 22, 0.04);
  --surface-active: rgba(18, 19, 22, 0.08);
  --overlay: rgba(18, 19, 22, 0.6);
  --text: #121316;
  --subtle: #6B6E76;
  --text-disabled: rgba(18, 19, 22, 0.3);
  --band: #EFEFEA;
  --muted-surface: #E4E4DF;
  --muted-text: #121316;
  --accent: #2F5BFF;
  --accent-hover: #1E42CC;
  --accent-text: #FFFFFF;
  --accent-soft: rgba(47, 91, 255, 0.12);
  --accent-ink: #1E42CC;
  --shadow-color: rgba(18, 19, 22, 0.08);
  --shadow-color-strong: rgba(0, 0, 0, 0.25);
  --footer-bg: #121316;
  --footer-border: #2A2B30;
  --footer-text: #FFFFFF;
  --footer-muted: #B8BAC2;
  --success: #2E7D5B;
  --success-bg: rgba(46, 125, 91, 0.12);
  --warning: #B7791F;
  --warning-bg: rgba(183, 121, 31, 0.12);
  --danger: #B42318;
  --danger-bg: rgba(180, 35, 24, 0.1);
  --danger-border: rgba(180, 35, 24, 0.3);
  --star: #2F5BFF;
  --map-bg: #E4E4DF;
}

/* Per-scheme logos: the layout renders one <img> per scheme only when they differ.
   Doubled class keeps these ahead of the plain .site-logo { display: block } rule. */
.site-logo.site-logo--light { display: none; }
[data-theme="light"] .site-logo.site-logo--light { display: block; }
[data-theme="light"] .site-logo.site-logo--dark { display: none; }
@media (prefers-color-scheme: light) {
  [data-theme="auto"] .site-logo.site-logo--light { display: block; }
  [data-theme="auto"] .site-logo.site-logo--dark { display: none; }
}

/* Announcements banner (e.g. pending verification) */
.nv-announcements {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nv-announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
}

.nv-announcement-message {
  margin: 0;
  color: var(--text);
}

.nv-announcement-cta {
  color: var(--announcement-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nv-announcement-cta:hover {
  color: var(--announcement-accent-hover);
  background: rgba(230, 30, 77, 0.12);
}

/* Pending verification: slight emphasis */
.nv-announcement--pending_verification {
  background: linear-gradient(to right, rgba(230, 30, 77, 0.08) 0%, var(--card) 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
body {
  overflow-x: hidden;
}

.container {
  max-width: 1800px;
  margin: 32px auto 0;
  background: var(--bg);
  border: none;
  border-radius: 12px;
  padding: 0 32px 32px;
}

h1 {
  margin: 0 0 8px 0;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--subtle);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

/* Wide desktop: nav and dropdown align to viewport right edge */
@media (min-width: 1024px) {
  .header-inner {
    position: relative;
    padding-right: 0;
  }
  .site-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-right: 16px;
  }
}

/* Footer Styles - tokens follow the colour scheme */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 24px 0;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-copyright {
  color: var(--footer-muted);
  font-size: 14px;
}

.footer-separator {
  color: var(--footer-separator);
  font-size: 14px;
}

.footer-link {
  color: var(--footer-text);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-currency {
  color: var(--footer-text);
  font-size: 14px;
  font-weight: 500;
}

.footer-social-icon {
  color: var(--footer-text);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-icon:hover {
  color: var(--text);
}

/* Mobile: 20px padding globally, prevent horizontal scroll */
@media (max-width: 767px) {
  .header-inner {
    padding: 12px 20px;
  }
  .container {
    margin-top: 0;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
  }
  .site-footer {
    padding: 20px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }
  .footer-right {
    width: 100%;
    justify-content: flex-start;
  }
}

.brand {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.site-logo {
  height: 32px;
  width: auto;
  display: block;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 16px;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-login:hover {
  background: var(--surface-hover);
  border-color: var(--subtle);
}

/* Account dropdown */
.account-dropdown {
  position: relative;
}

.btn-account {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-account:hover {
  background: var(--surface-hover);
  border-color: var(--subtle);
}

.account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 100;
}

.account-menu.open {
  display: block;
}

.account-menu-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.account-menu-item:hover {
  background: var(--surface-hover);
}

/* Site menu button */
.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.btn-menu {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-menu:hover {
  background: var(--surface-hover);
  border-color: var(--subtle);
}

/* Menu dropdown (Airbnb-style: drops down from header, right-aligned) */
.nv-menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.nv-menu-modal[style*="flex"] {
  pointer-events: auto;
}

.nv-menu-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: pointer;
  z-index: 0;
}

.nv-menu-content {
  position: fixed;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 220px;
  max-width: 280px;
  box-shadow: var(--shadow-md);
  /* top and right set by JS to align with menu button (like account dropdown) */
}

/* Hide X – close via off-click or hamburger toggle */
.nv-menu-close {
  display: none;
}

.nv-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nv-menu-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
}

.nv-menu-item:hover {
  background: var(--surface-hover);
}

/* Form container */
.nv-form-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.nv-form-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.nv-form-description {
  margin: 0 0 24px 0;
  color: var(--subtle);
  font-size: 14px;
}

.nv-form-error {
  padding: 16px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  color: var(--danger);
  font-size: 14px;
}

.nv-form-success {
  padding: 24px;
  text-align: center;
  color: var(--success);
  font-size: 16px;
}

/* Form fields */
.nv-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nv-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nv-form-field-checkbox {
  flex-direction: row;
  align-items: center;
}

.nv-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.nv-form-required {
  color: var(--danger);
  margin-left: 4px;
}

.nv-form-help {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 4px;
}

.nv-form-input,
.nv-form-textarea,
.nv-form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.nv-form-input:focus,
.nv-form-textarea:focus,
.nv-form-select:focus {
  outline: none;
  border-color: var(--text);
}

.nv-form-input:disabled,
.nv-form-select:disabled {
  background: var(--surface-hover);
  cursor: not-allowed;
  opacity: 0.6;
}

.nv-form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio and checkbox */
.nv-form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nv-form-radio,
.nv-form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nv-form-radio input[type="radio"],
.nv-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Location field */
.nv-location-field {
  display: flex;
  gap: 12px;
}

.nv-location-field .nv-form-input {
  flex: 1;
}

.nv-location-unit {
  max-width: 150px;
}

/* Section breaks */
.nv-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nv-form-section-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.nv-form-section-desc {
  margin: 0 0 16px 0;
  color: var(--subtle);
  font-size: 14px;
}

.nv-form-section-break {
  border-top: 2px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
}

.nv-form-section-break h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Progress indicator */
.nv-form-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.nv-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, width 0.2s;
}

.nv-progress-dot.active {
  background: var(--text);
  width: 32px;
  border-radius: 5px;
}

/* Form navigation */
.nv-form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.nv-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.nv-form-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.nv-form-btn-primary {
  background: var(--text);
  color: var(--bg);
}

.nv-form-btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

.nv-form-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nv-form-btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.nv-form-btn-secondary:hover {
  background: var(--surface-hover);
}

/* Auth modal */
.nv-auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nv-auth-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  cursor: pointer;
}

.nv-auth-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.nv-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  background: none;
  border: none;
  color: var(--subtle);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
}

.nv-auth-close:hover {
  color: var(--text);
}

.nv-auth-title {
  margin: 0 0 24px 0;
  font-size: 22px;
  font-weight: 600;
}

.nv-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.nv-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nv-auth-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
}
.nv-auth-country-full,
.nv-auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  box-sizing: border-box;
}
.nv-auth-country-full {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.nv-auth-input::placeholder {
  color: var(--subtle);
}

/* Shared button classes – use .nv-btn plus .nv-btn-primary or .nv-btn-secondary */
.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
  border: 1px solid transparent;
}
.nv-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-border);
}
.nv-btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  border-color: var(--btn-primary-hover-border);
}
.nv-btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.nv-btn-secondary:hover {
  background: var(--surface-hover);
}

.nv-auth-continue {
  margin-top: 4px;
}

#nv-auth-verify.nv-auth-form {
  gap: 10px;
}
#nv-auth-verify .nv-auth-verify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nv-auth-verify-msg {
  margin: 0;
  font-size: 14px;
  color: var(--subtle);
}
#nv-auth-verify .nv-auth-input {
  width: 100%;
  box-sizing: border-box;
}
.nv-auth-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.nv-auth-verify-actions .nv-btn {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}
#nv-auth-verify .nv-auth-resend {
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.nv-auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 16px;
}

.nv-auth-divider::before,
.nv-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.nv-auth-divider span {
  font-size: 12px;
  color: var(--subtle);
}

.nv-auth-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nv-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.nv-social-btn:hover {
  background: var(--surface-hover);
}

.nv-google svg {
  flex-shrink: 0;
}

.nv-auth-profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nv-auth-email-display {
  font-size: 14px;
  color: var(--subtle);
}

.nv-auth-password-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.nv-auth-password-wrap .nv-auth-input {
  padding-right: 44px;
  flex: 1;
}

.nv-auth-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--subtle);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.nv-auth-password-toggle:hover {
  color: var(--text);
}

#nv-auth-email-exists.nv-auth-form {
  gap: 12px;
}

#nv-auth-email-exists .nv-auth-password-wrap {
  margin-bottom: 4px;
}

.nv-auth-code-link {
  background: none;
  border: none;
  color: var(--subtle);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nv-auth-code-link:hover {
  color: var(--text);
}

/* Property list */
.property-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.property-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.property-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.property-title {
  margin: 0 0 4px 0;
  font-size: 1rem;
}

.property-address {
  margin: 0;
  color: var(--subtle);
  font-size: .9rem;
}

/* Search widget dark theme overrides */
.nv-search-bar {
  background: var(--card) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
.nv-search-bar:focus-within {
  box-shadow: var(--shadow-md) !important;
}
.nv-search-field:hover {
  background: var(--surface-hover) !important;
}
.nv-search-field label {
  color: var(--subtle) !important;
}
.nv-search-field input {
  color: var(--text) !important;
}
.nv-search-field input::placeholder {
  color: var(--subtle) !important;
}
.nv-search-divider {
  background: var(--border) !important;
}

/* Shared button style – white background, hover effect */
.btn,
.nv-search-button,
.nv-mobile-action {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-border) !important;
  border-radius: 50px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover,
.nv-search-button:hover,
.nv-mobile-action:hover {
  background: var(--btn-primary-hover-bg) !important;
  border-color: var(--btn-primary-hover-border) !important;
  box-shadow: var(--shadow-sm);
}
.nv-search-button {
  margin-left: 8px;
  flex-shrink: 0;
}
.nv-search-button svg {
  flex-shrink: 0;
}
.nv-mobile-action {
  min-width: 120px;
  border-radius: 24px;
}
.nv-mobile-action svg {
  flex-shrink: 0;
}

/* Search dropdown dark theme */
.nv-dropdown {
  background: var(--card) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-md) !important;
}
.nv-location-item {
  color: var(--text) !important;
}
.nv-location-item:hover {
  background: var(--surface-hover) !important;
}
.nv-cal-header {
  color: var(--text) !important;
}
.nv-cal-day-header {
  color: var(--subtle) !important;
}
.nv-cal-day {
  color: var(--text) !important;
}
.nv-cal-day:hover:not(.disabled) {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
}
.nv-cal-day.disabled {
  color: var(--text-disabled) !important;
}
.nv-cal-day.selected {
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
}
.nv-cal-day.in-range:not(.selected) {
  background: var(--surface-hover) !important;
}
.nv-cal-nav-btn {
  background: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.nv-cal-nav-btn:hover:not(:disabled) {
  border-color: var(--text) !important;
  background: var(--surface-hover) !important;
}
.nv-guest-row {
  border-color: var(--border) !important;
}
.nv-guest-label strong {
  color: var(--text) !important;
}
.nv-guest-label small {
  color: var(--subtle) !important;
}
.nv-guest-count {
  color: var(--text) !important;
}
.nv-guest-btn {
  background: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
.nv-guest-btn:hover:not(:disabled) {
  border-color: var(--text) !important;
  background: var(--surface-active) !important;
  color: var(--text) !important;
}
.nv-guest-btn:disabled {
  color: var(--text-disabled) !important;
}

/* Mobile search modal – dark theme (≤1024px) */
@media (max-width: 1024px) {
  .nv-mobile-modal {
    background: var(--bg) !important;
  }
  .nv-mobile-header {
    background: var(--card) !important;
    border-bottom-color: var(--border) !important;
  }
  .nv-mobile-close {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
  }
  .nv-mobile-content {
    background: var(--bg) !important;
  }
  .nv-mobile-footer {
    background: var(--card) !important;
    border-top-color: var(--border) !important;
  }
  .nv-mobile-clear {
    color: var(--text) !important;
  }
  .nv-mobile-section {
    border-color: var(--border) !important;
    background: var(--card) !important;
  }
  .nv-mobile-section-header {
    background: var(--card) !important;
  }
  .nv-mobile-section-header:hover {
    background: var(--surface-hover) !important;
  }
  .nv-mobile-section-header h2 {
    color: var(--text) !important;
  }
  .nv-mobile-section-summary {
    color: var(--subtle) !important;
  }
  .nv-mobile-section input {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
  }
  .nv-mobile-section input::placeholder {
    color: var(--subtle) !important;
  }
  .nv-mobile-where-item {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
  }
  .nv-mobile-where-item:hover {
    background: var(--surface-hover) !important;
    border-color: var(--subtle) !important;
  }
  .nv-mobile-where-item.selected {
    background: var(--surface-active) !important;
    border-color: var(--text) !important;
  }
  .nv-mobile-where-item strong {
    color: var(--text) !important;
  }
  /* Mobile summary bar (collapsed search on mobile) */
  .nv-search-summary {
    background: var(--card) !important;
    color: var(--text) !important;
  }
  .nv-search-summary-content {
    color: var(--text) !important;
  }
  .nv-search-summary-location {
    color: var(--text) !important;
  }
  .nv-search-summary-details {
    color: var(--subtle) !important;
  }
}

/* Search page header: widget + Filters button (filters only on search page) */
.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 0 24px;
}
.search-header .search-widget-container {
  flex: 1;
  min-width: 0;
}
.nv-filters-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nv-filters-button:hover {
  background: var(--border);
  border-color: var(--subtle);
}

/* Filters modal */
.nv-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.nv-filters-modal--open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.nv-filters-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  cursor: pointer;
}
.nv-filters-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.nv-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nv-filters-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.nv-filters-close {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--subtle);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nv-filters-close:hover {
  color: var(--text);
  background: var(--border);
}
.nv-filters-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.nv-filters-section {
  margin-bottom: 24px;
}
.nv-filters-section:last-child {
  margin-bottom: 0;
}
.nv-filters-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.nv-filters-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--subtle);
}
.nv-filters-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nv-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nv-filter-pill:hover {
  border-color: var(--subtle);
}
.nv-filter-pill input {
  margin: 0 8px 0 0;
  cursor: pointer;
}
.nv-filters-price {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nv-filters-price input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.nv-filters-price input::placeholder {
  color: var(--subtle);
}
.nv-filters-price-sep {
  color: var(--subtle);
  flex-shrink: 0;
}
.nv-filters-rooms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nv-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nv-filter-label {
  font-size: 14px;
  color: var(--text);
}
.nv-filter-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nv-filter-step {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nv-filter-step:hover {
  border-color: var(--subtle);
}
.nv-filter-value {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
}
.nv-filters-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nv-filters-clear {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--subtle);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.nv-filters-clear:hover {
  color: var(--text);
}
.nv-filters-apply {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--announcement-accent);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.nv-filters-apply:hover {
  background: var(--announcement-accent-hover);
}

/* Search widget container – match homepage spacing (no extra top padding) */
.search-widget-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0;
}

/* Search results page – no extra horizontal padding (aligns with header) */
.search-results {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 0 32px;
}
.search-results h1 {
  color: var(--text);
  margin-bottom: 24px;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-tag {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--subtle);
}
/* Carousel sections – align with header (same width, no extra horizontal padding) */
.nv-carousel-section {
  max-width: 1800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Carousel cards: flat, no drop shadow (the platform widget's fallback shadow is off here) */
.nv-carousel-card {
  box-shadow: none !important;
}

/* Carousel track: full-bleed scroll – initial padding, scrolls to viewport edges */
.nv-carousel-track-wrap {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
}

.nv-carousel-track {
  padding-left: max(32px, calc((100vw - 1800px) / 2 + 32px)) !important;
  padding-right: max(32px, calc((100vw - 1800px) / 2 + 32px)) !important;
}
@media (max-width: 767px) {
  .nv-carousel-section {
    margin: 1rem -20px !important;
    max-width: none !important;
  }
  .nv-carousel-header {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .nv-carousel-track-wrap {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .nv-carousel-track {
    padding-left: 20px !important;
    padding-right: 0 !important;
  }
  .nv-carousel-track::after {
    content: '' !important;
    flex: 0 0 20px !important;
  }
  .nv-carousel-card {
    flex: 0 0 220px !important;
    max-width: 220px !important;
    overflow: hidden !important;
  }
}

/* Properties list: grid, 4 → 2 → 1 columns (fixed width per item) */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Airbnb-style property cards */
.property-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.property-card .property-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--border);
}
.property-card .property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.property-card .property-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.property-card .property-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-card-stars {
  font-size: 14px;
  color: var(--star);
  margin: 2px 0 4px 0;
}
.property-card .property-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--subtle);
}
.property-card .property-meta span:not(:last-child)::after {
  content: " · ";
  color: var(--subtle);
}
.property-card .property-price {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.property-card .property-availability {
  font-size: 13px;
  color: var(--subtle);
  margin: 2px 0 0;
}
.no-results {
  color: var(--subtle);
}

.nv-search-sentinel {
  height: 1px;
  width: 100%;
  visibility: hidden;
  pointer-events: none;
}

/* ===== Single Property Page ===== */
.property-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.property-page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.property-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.property-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-active);
  color: var(--text);
  margin-bottom: 8px;
}
.property-highlight-blurb {
  margin: -12px 0 20px;
  font-size: 16px;
  color: var(--subtle);
  line-height: 1.5;
}
.property-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.property-action-btn:hover {
  background: var(--surface-hover);
  border-color: var(--subtle);
}
.property-save-btn .heart-icon {
  fill: none;
}
.property-save-btn.saved .heart-icon {
  fill: currentColor;
}

/* Property gallery grid – Airbnb style: 1 large + 4 small (2x2) */
.property-gallery {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--bg);
}
.property-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 480px;
  min-height: 360px;
}
.property-gallery-main {
  grid-column: 1;
  grid-row: 1 / -1;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
}
.property-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-gallery-grid-right {
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.property-gallery-thumb {
  cursor: pointer;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
  min-height: 0;
}
.property-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-gallery-placeholder {
  background: var(--bg);
  min-width: 0;
  min-height: 0;
}
.property-gallery-placeholder-inner {
  width: 100%;
  height: 100%;
  min-height: 80px;
  background: var(--border);
}
.property-gallery-show-all {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  color: #222;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s;
}
.property-gallery-show-all:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.property-gallery-placeholder-full {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  color: var(--subtle);
  border-radius: 12px;
}
/* Meta row with reviews badge on the right */
.property-meta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.property-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.property-review-badge:hover {
  background: var(--surface-hover);
  border-color: var(--subtle);
}
.property-review-badge .property-review-stars {
  color: var(--star);
}

/* Reviews section on property page */
.property-reviews-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.property-reviews-heading {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.property-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .property-reviews-grid {
    grid-template-columns: 1fr;
  }
}
.property-review-block {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  min-height: 140px;
}
.property-review-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.property-review-block-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.property-review-block-stars {
  font-size: 13px;
  color: var(--star);
}
.property-review-block-body {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.property-review-read-more {
  margin-top: 8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--subtle);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
}
.property-review-read-more:hover {
  color: var(--text);
}
.property-reviews-see-all {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.property-reviews-see-all:hover {
  background: var(--surface-hover);
  border-color: var(--subtle);
}

/* Property map section – Darkula style, interactions disabled */
/* Property amenities section */
.property-amenities-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.property-amenities-heading {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.property-amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}
@media (max-width: 640px) {
  .property-amenities-grid {
    grid-template-columns: 1fr;
  }
}
.property-amenities-category {
  margin: 0;
}
.property-amenities-category-title {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.property-amenities-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.property-amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
}
.property-amenity-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--subtle);
}
.property-amenity-icon-fallback {
  font-size: 14px;
}
.property-amenity-label {
  flex: 1;
}
.property-amenities-show-all {
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.property-amenities-show-all:hover {
  background: var(--card);
  border-color: var(--subtle);
}

/* Amenities modal */
.nv-amenities-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.nv-amenities-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.nv-amenities-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.nv-amenities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nv-amenities-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.nv-amenities-close {
  padding: 4px 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--subtle);
  background: none;
  border: none;
  cursor: pointer;
}
.nv-amenities-close:hover {
  color: var(--text);
}
.nv-amenities-modal .nv-amenities-list {
  overflow-y: auto;
  padding: 20px 24px 24px;
}
.nv-amenities-modal .nv-amenities-modal-category {
  margin-bottom: 20px;
}
.nv-amenities-modal .nv-amenities-modal-category:last-child {
  margin-bottom: 0;
}

.property-map-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.property-map-heading {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.property-map-container {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--map-bg);
}

/* Reviews modal */
.nv-reviews-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.nv-reviews-modal[style*="flex"] {
  display: flex !important;
}
.nv-reviews-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  cursor: pointer;
}
.nv-reviews-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nv-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nv-reviews-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.nv-reviews-close {
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  border-radius: 8px;
}
.nv-reviews-close:hover {
  background: var(--surface-active);
}
.nv-reviews-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nv-reviews-modal-block {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.nv-reviews-modal-block:last-child {
  border-bottom: none;
}
.nv-reviews-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.nv-reviews-modal-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.nv-reviews-modal-time {
  font-size: 13px;
  color: var(--subtle);
}
.nv-reviews-modal-stars {
  font-size: 13px;
  color: var(--star);
}
.nv-reviews-modal-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}
.nv-reviews-sentinel {
  height: 1px;
  visibility: hidden;
}
.nv-reviews-loading {
  text-align: center;
  color: var(--subtle);
  font-size: 14px;
  padding: 12px;
  margin: 0;
}

/* Mobile swipe gallery – hidden on desktop */
.property-gallery-swipe {
  display: none;
}
.property-gallery-swipe-counter {
  display: none;
}
.property-gallery-overlay-actions {
  display: none;
}

/* Mobile: swipeable gallery, title below, overlay icons */
@media (max-width: 767px) {
  /* Gallery: full-width, no border-radius, no side padding */
  .property-gallery {
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 20px;
  }
  /* Hide desktop grid, show swipe carousel */
  .property-gallery-grid {
    display: none;
  }
  .property-gallery-show-all {
    display: none;
  }
  .property-gallery-swipe {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    height: 280px;
  }
  .property-gallery-swipe::-webkit-scrollbar {
    display: none;
  }
  .property-gallery-swipe-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 0;
  }
  .property-gallery-swipe-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
  }
  .property-gallery-swipe-counter {
    display: block;
    position: absolute;
    bottom: 12px;
    right: 32px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
  }
  /* Overlay share/save icons */
  .property-gallery-overlay-actions {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    gap: 8px;
    z-index: 3;
  }
  .property-overlay-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }
  .property-overlay-btn:hover {
    background: rgba(0, 0, 0, 0.7);
  }
  .property-overlay-btn.saved .heart-icon {
    fill: currentColor;
  }
  /* Hide desktop header actions, move title below gallery */
  .property-page-actions {
    display: none;
  }
  .property-page-header {
    order: 2;
    margin-bottom: 16px;
  }
  .property-gallery {
    order: 1;
  }
  .property-content-layout {
    order: 3;
  }
  .property-page-title {
    font-size: 22px;
  }
}

/* Property content layout – 2/3 left, 1/3 right */
.property-content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .property-content-layout {
    grid-template-columns: 1fr;
  }
}
.property-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.property-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.property-meta-row span:not(:last-child)::after {
  content: " · ";
  color: var(--subtle);
}
.property-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}
.property-description p {
  margin: 0 0 12px 0;
}

/* Property booking sidebar */
.property-booking-sidebar {
  position: sticky;
  top: 100px;
  overflow: visible;
}
/* overflow-anchor: none prevents browser scroll anchoring from shifting page when price/Reserve updates */
.nv-booking-widget {
  overflow-anchor: none;
  background: var(--card);
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.nv-booking-price-block {
  text-align: left;
  margin-bottom: 16px;
}
.nv-booking-price {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 0;
}
.nv-booking-price strong {
  text-decoration: underline;
}
.nv-price-breakdown-toggle {
  display: block;
  margin-top: 4px;
  margin-bottom: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.nv-price-breakdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.nv-price-breakdown-inner {
  font-size: 14px;
  color: var(--text);
}
.nv-price-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}
.nv-price-breakdown-row:last-child {
  margin-bottom: 0;
}
.nv-price-breakdown-label {
  flex-shrink: 0;
}
.nv-price-breakdown-value {
  flex-shrink: 0;
  text-align: right;
}
.nv-price-breakdown-subtotal {
  font-weight: 600;
  margin-bottom: 8px;
}
.nv-price-breakdown-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 16px;
}
.nv-booking-fields {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.nv-booking-field {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.nv-booking-field:last-child {
  border-bottom: none;
}
.nv-booking-field:hover {
  background: var(--surface-hover);
}
.nv-booking-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--subtle);
  margin-bottom: 4px;
}
.nv-booking-field input {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.nv-booking-guests-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text);
}
.nv-booking-cal-dropdown {
  position: absolute;
  z-index: 1100;
  top: 50px;
  right: 0;
  left: auto;
  min-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.nv-booking-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.nv-booking-cal-nav .nv-cal-nav-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.nv-booking-cal-nav .nv-cal-nav-btn:hover:not(:disabled) {
  background: var(--surface-hover);
}
.nv-booking-cal-container {
  display: flex;
  gap: 24px;
}
.nv-booking-cal-month {
  flex: 1;
}
.nv-booking-cal-month .nv-cal-header {
  text-align: center;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
}
.nv-booking-cal-month .nv-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.nv-booking-cal-month .nv-cal-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--subtle);
  padding: 4px 0;
}
.nv-booking-cal-month .nv-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  min-height: 36px;
}
.nv-booking-cal-month .nv-cal-day:hover:not(.disabled) {
  background: var(--surface-active);
}
.nv-booking-cal-month .nv-cal-day.disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
}
.nv-booking-cal-month .nv-cal-day.disabled.booked:not(.selected) {
  text-decoration: line-through;
}
.nv-booking-cal-month .nv-cal-day.selected {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.nv-booking-cal-month .nv-cal-day.in-range:not(.selected) {
  background: var(--surface-hover);
}
.nv-booking-cal-month .nv-cal-day.disabled[title] {
  position: relative;
}
.nv-booking-cal-month .nv-cal-day.disabled[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
}
.nv-cal-minstay-tip {
  display: none;
  text-align: center;
  font-size: 13px;
  color: var(--text);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0 0;
}
.nv-booking-cal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nv-booking-cal-footer button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.nv-reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.nv-reserve-btn:hover {
  background: var(--btn-primary-hover-bg);
}
.nv-reserve-btn.nv-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
}
.nv-reserve-btn.nv-btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  border-color: var(--btn-primary-hover-border);
  opacity: 1;
}
.nv-booking-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--subtle);
  text-align: center;
}
.nv-booking-widget {
  position: relative;
}
.nv-booking-guests-dropdown {
  position: absolute;
  z-index: 100;
  top: 100%;
  right: 0;
  left: auto;
  margin-top: 8px;
  min-width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 16px;
}
.nv-booking-guests-dropdown .nv-guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nv-booking-guests-dropdown .nv-guest-row:last-of-type {
  border-bottom: none;
}
.nv-booking-guests-dropdown .nv-guest-label strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}
.nv-booking-guests-dropdown .nv-guest-label small {
  display: block;
  font-size: 14px;
  color: var(--subtle);
  margin-top: 2px;
}
.nv-booking-guests-dropdown .nv-guest-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nv-booking-guests-dropdown .nv-guest-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nv-booking-guests-dropdown .nv-guest-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--subtle);
}
.nv-booking-guests-dropdown .nv-guest-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.nv-booking-guests-dropdown .nv-guest-count {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
  color: var(--text);
}
.nv-booking-guests-dropdown .nv-guest-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nv-booking-guests-dropdown .nv-guest-close {
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

/* Share modal – Airbnb-style platform options */
.nv-share-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.nv-share-modal[style*="flex"] {
  display: flex !important;
}
.nv-share-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  cursor: pointer;
}
.nv-share-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.nv-share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.nv-share-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.nv-share-close {
  background: none;
  border: none;
  color: var(--subtle);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
}
.nv-share-close:hover {
  color: var(--text);
}
.nv-share-preview {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.nv-share-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.nv-share-thumb-placeholder {
  background: var(--border);
}
.nv-share-meta {
  min-width: 0;
  flex: 1;
}
.nv-share-location {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.nv-share-details {
  margin: 0;
  font-size: 14px;
  color: var(--subtle);
  line-height: 1.4;
}
.nv-share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.nv-share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: left;
}
.nv-share-option:hover {
  background: var(--surface-hover);
  border-color: var(--subtle);
  color: var(--text);
}
.nv-share-option svg {
  flex-shrink: 0;
}

/* Gallery modal */
.nv-gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
}
.nv-gallery-modal[style*="flex"] {
  display: flex !important;
}
.nv-gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.nv-gallery-modal-content {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  z-index: 1;
}
.nv-gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  flex-shrink: 0;
}
.nv-gallery-close {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 0;
}
.nv-gallery-close:hover {
  text-decoration: underline;
}
.nv-gallery-counter {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.nv-gallery-header-actions {
  display: flex;
  gap: 16px;
}
.nv-gallery-header-actions button {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
}
.nv-gallery-header-actions button:hover {
  text-decoration: underline;
}
/* Panoramic style grid – dense masonry layout */
.nv-gallery-grid-view {
  columns: 5;
  column-gap: 8px;
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  break-inside: avoid;
}
.nv-gallery-grid-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.nv-gallery-grid-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
@media (max-width: 1024px) {
  .nv-gallery-grid-view { columns: 4; }
}
@media (max-width: 767px) {
  .nv-gallery-modal-content {
    padding: 0;
  }
  .nv-gallery-modal-header {
    padding: 12px 20px;
  }
  .nv-gallery-grid-view {
    columns: unset;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nv-gallery-grid-item {
    border-radius: 0;
    margin-bottom: 10px;
    flex-shrink: 0;
  }
  .nv-gallery-grid-item img {
    width: 100%;
    height: auto;
  }
}
.nv-gallery-single-view {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  touch-action: pan-y;
}
.nv-gallery-single-image-wrap {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nv-gallery-single-image-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.nv-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}
.nv-gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.nv-gallery-prev { left: 24px; }
.nv-gallery-next { right: 24px; }
@media (max-width: 767px) {
  .nv-gallery-single-view { min-height: 60vh; }
  .nv-gallery-single-image-wrap img { max-height: 70vh; }
  .nv-gallery-nav { width: 40px; height: 40px; font-size: 28px; }
  .nv-gallery-prev { left: 12px; }
  .nv-gallery-next { right: 12px; }
}
.nv-gallery-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 8px 0 0;
}

/* Favorites page */
.favorites-page {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 0 48px;
}
.favorites-title {
  margin: 0 0 32px 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.favorites-grid.has-items .favorites-empty {
  display: none;
}
.favorites-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--subtle);
  font-size: 16px;
}
.favorite-card-wrap {
  position: relative;
}
.favorite-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.favorite-card-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.favorite-card-remove:hover {
  background: rgba(0, 0, 0, 0.85);
}
.favorite-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--border);
}
.favorite-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.favorite-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  background: var(--border);
}
.favorite-card-info {
  padding: 16px;
}
.favorite-card-info h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.favorite-card-address {
  margin: 0;
  font-size: 14px;
  color: var(--subtle);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .favorites-grid {
    grid-template-columns: 1fr;
  }
}

/* Bookings page */
.bookings-page {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 0 48px;
}
.bookings-title {
  margin: 0 0 32px 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bookings-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--subtle);
  font-size: 16px;
}
.booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.booking-card-details {
  min-width: 0;
  flex: 1;
}
.booking-card-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.booking-card-address {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--subtle);
}
.booking-card-dates {
  margin: 0;
  font-size: 14px;
  color: var(--subtle);
}
.booking-card-dates i {
  margin-right: 4px;
}
.booking-card-status {
  flex-shrink: 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}
.booking-card-status--confirmed {
  background: var(--success-bg);
  color: var(--success);
}
.booking-card-status--pending {
  background: var(--warning-bg);
  color: var(--warning);
}
.booking-card-status--canceled {
  background: var(--danger-bg);
  color: var(--danger);
}
@media (max-width: 767px) {
  .booking-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .booking-card-status {
    align-self: flex-start;
  }
}

/* Collection template - Airbnb-style */
.collection-page {
  margin: -32px -32px 0;
}
.collection-hero {
  height: 50vh;
  min-height: 320px;
  max-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg) center/cover no-repeat;
  background-color: var(--card);
}
.collection-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.collection-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1800px;
  padding: 24px 32px;
  text-align: center;
}
.collection-hero-title {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.collection-hero-search {
  max-width: 850px;
  margin: 0 auto;
}
.collection-hero-search .nv-search-widget {
  margin: 0;
}
.collection-editorial {
  max-width: 1800px;
  margin: 0 auto;
  padding: 32px;
}
.collection-editorial .nv-carousel-section {
  max-width: 1800px;
}
.collection-editorial-row {
  margin-bottom: 48px;
}
.collection-editorial-row:last-child {
  margin-bottom: 0;
}
.collection-properties-section,
.collection-faq-section {
  max-width: 1800px;
  margin: 0 auto;
  padding: 32px;
}
.collection-properties-section .nv-carousel-section,
.collection-editorial .nv-carousel-section {
  max-width: 1800px;
}
.collection-section-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.collection-section-desc {
  margin: 0 0 24px;
  color: var(--subtle);
}
.collection-faq-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.collection-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.collection-faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.collection-faq-question {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.collection-faq-question::-webkit-details-marker {
  display: none;
}
.collection-faq-question::before {
  content: '›';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s;
}
.collection-faq-item[open] .collection-faq-question::before {
  transform: rotate(90deg);
}
.collection-faq-answer {
  margin-top: 12px;
  padding-left: 24px;
  color: var(--subtle);
  line-height: 1.5;
}
@media (max-width: 1023px) {
  .collection-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile Booking: Bottom Bar + Full-Screen Calendar ===== */

/* Mobile bottom bar – hidden by default, shown via media query */
.nv-mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .property-booking-sidebar {
    display: none;
  }
  .property-content-layout {
    padding-bottom: 80px;
  }
  .nv-mobile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }
  .nv-mbb-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nv-mbb-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nv-mbb-dates {
    font-weight: 400;
    color: var(--subtle);
    font-size: 13px;
  }
  .nv-mbb-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    border: 1px solid var(--btn-primary-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: background 0.2s;
  }
  .nv-mbb-btn:hover {
    background: var(--btn-primary-hover-bg);
  }
}

/* Slide-up price details sheet – mobile only */
.nv-mbb-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1600;
  flex-direction: column;
  justify-content: flex-end;
}
.nv-mbb-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.nv-mbb-sheet-content {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  color: var(--text);
}
.nv-mbb-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.nv-mbb-sheet-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.nv-mbb-sheet-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
}
.nv-mbb-sheet-rows {
  font-size: 14px;
}
.nv-mbb-sheet-rows .nv-price-breakdown-row {
  margin-bottom: 8px;
}
.nv-mbb-sheet-rows .nv-price-breakdown-total {
  margin-top: 10px;
  padding-top: 10px;
}
.nv-mbb-sheet-dates {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nv-mbb-sheet-dates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.nv-mbb-sheet-dates-label {
  font-size: 14px;
  font-weight: 600;
}
.nv-mbb-sheet-change {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  color: var(--text);
  padding: 0;
}
.nv-mbb-sheet-date-range {
  font-size: 14px;
  color: var(--subtle);
}
.nv-mbb-sheet-reserve {
  margin-top: 20px;
  width: 100%;
}

/* Full-screen calendar overlay – hidden by default, shown via JS on mobile */
.nv-mobile-cal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  flex-direction: column;
  color: var(--text);
}
.nv-mco-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.nv-mco-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  line-height: 1;
}
.nv-mco-clear {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--subtle);
  text-decoration: underline;
}
.nv-mco-title-area {
  padding: 16px 16px 12px;
  flex-shrink: 0;
}
.nv-mco-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.nv-mco-subtitle {
  font-size: 14px;
  color: var(--subtle);
  margin: 0;
}
.nv-mco-weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  padding: 8px 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
  border-bottom: 1px solid var(--border);
}
.nv-mco-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}
.nv-mco-month {
  margin-bottom: 24px;
}
.nv-mco-month-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: 16px 0 12px;
}
.nv-mco-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.nv-mco-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  position: relative;
}
.nv-mco-day.nv-mco-empty {
  cursor: default;
}
.nv-mco-day:not(.disabled):not(.nv-mco-empty):hover {
  background: var(--surface-active);
}
.nv-mco-day.disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
}
.nv-mco-day.disabled.booked:not(.selected) {
  text-decoration: line-through;
}
.nv-mco-day.selected {
  background: var(--text);
  color: var(--bg);
}
.nv-mco-day.in-range:not(.selected) {
  background: var(--surface-active);
  border-radius: 0;
}
.nv-mco-load-more {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: center;
}
.nv-mco-load-more:hover {
  background: var(--surface-hover);
}
.nv-mco-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}
.nv-mco-footer-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.nv-mco-save {
  flex-shrink: 0;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--text);
  color: var(--bg);
  transition: opacity 0.2s;
}
.nv-mco-save:disabled {
  background: var(--surface-active);
  color: var(--subtle);
  cursor: not-allowed;
}
.nv-mco-save:not(:disabled):hover {
  opacity: 0.85;
}

/* Booking card link */
a.booking-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
a.booking-card-link:hover {
  border-color: var(--subtle);
  background: var(--card-hover);
}

/* ===== Booking Detail Page ===== */
.booking-detail-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 48px;
}
.booking-detail-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.booking-detail-back:hover {
  color: var(--text);
}
.booking-detail-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.booking-detail-address {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--subtle);
}
.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.booking-detail-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.booking-detail-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.booking-detail-info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.booking-detail-info-sub {
  font-size: 13px;
  color: var(--subtle);
  margin-top: 2px;
}
.booking-detail-conf-id {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.booking-detail-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.booking-detail-message-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.booking-detail-message-btn:hover {
  opacity: 0.85;
}
.booking-detail-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 16px;
}

/* Purchased upsells */
.upsell-purchased-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.upsell-purchased-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}
.upsell-purchased-info {
  min-width: 0;
  flex: 1;
}
.upsell-purchased-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.upsell-purchased-variation {
  font-size: 13px;
  color: var(--subtle);
}
.upsell-purchased-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.upsell-purchased-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.upsell-purchased-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.upsell-status--confirmed {
  background: var(--success-bg);
  color: var(--success);
}
.upsell-status--pending {
  background: var(--warning-bg);
  color: var(--warning);
}
.upsell-status--refunded {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Available upsells grid */
.upsell-available-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.upsell-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.upsell-card:hover {
  border-color: var(--subtle);
}
.upsell-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--border) center/cover no-repeat;
}
.upsell-card-body {
  padding: 14px 16px;
}
.upsell-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.upsell-card-desc {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.4;
  margin-bottom: 10px;
}
.upsell-card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.upsell-card-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.upsell-card-btn:hover {
  opacity: 0.85;
}

/* Upsell purchase modal */
.upsell-purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay);
}
.upsell-purchase-modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text);
}
.upsell-purchase-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--subtle);
  cursor: pointer;
  line-height: 1;
}
.upsell-purchase-modal-close:hover {
  color: var(--text);
}
.upsell-purchase-modal-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.upsell-purchase-modal-content p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--subtle);
  line-height: 1.5;
}
.upsell-modal-price {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.upsell-variation-label,
.upsell-dates-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.upsell-variation-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.upsell-variation-btn {
  padding: 10px 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upsell-variation-btn:hover {
  border-color: var(--subtle);
  background: var(--surface-hover);
}
.upsell-variation-btn.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.upsell-date-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.upsell-date-cb {
  accent-color: var(--text);
  width: 16px;
  height: 16px;
}
#upsell-modal-dates {
  margin-bottom: 16px;
}
#upsell-modal-variations {
  margin-bottom: 4px;
}
#upsell-modal-payment {
  margin-bottom: 16px;
}
#upsell-payment-element {
  min-height: 40px;
}
.upsell-pm-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a0a0a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.upsell-pm-select:focus {
  border-color: var(--subtle);
}

/* Responsive */
@media (max-width: 767px) {
  .booking-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .upsell-available-grid {
    grid-template-columns: 1fr;
  }
  .upsell-purchased-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .upsell-purchased-meta {
    align-self: flex-start;
  }
}




/* ==========================================================================
   Atlas — theme rules (class prefix at-)
   Everything above is the shared component CSS (booking widget, search
   widget, modals, filters, favorites, bookings) driven by the tokens. Below:
   header, home blocks, search page + map, property page, about, footer.
   40 px gutters, pill buttons, 16–20 px radii, one typeface.
   ========================================================================== */
body.at-body { font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body.at-body .container { max-width: none; margin: 0; padding: 0; }
.at-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.at-h1 { margin: 0; font-size: 68px; font-weight: var(--font-display-weight); line-height: 0.98; letter-spacing: -0.04em; color: var(--text); }
.at-h2 { margin: 0; font-size: 30px; font-weight: var(--font-display-weight); line-height: 1.1; letter-spacing: -0.03em; color: var(--text); }
.at-h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--text); }
.at-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.at-sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--subtle); }
.at-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.at-section-head > div { display: flex; flex-direction: column; gap: 4px; }
.at-link { font-size: 14px; font-weight: 700; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.at-link:hover { color: var(--text); }
.at-link--title { display: inline-flex; align-items: center; gap: 8px; font-size: 30px; font-weight: var(--font-display-weight); letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.at-link--title:hover { color: var(--accent-ink); }
.at-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--pill-border); border-radius: var(--radius-pill); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.at-pill:hover { background: var(--surface-hover); }
.at-pill[aria-pressed="true"], .at-pill--active { border-color: var(--accent); }
.at-pill--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.at-pill--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.at-btn:hover { background: var(--accent); color: var(--accent-text); }
.at-btn--accent { background: var(--accent); color: var(--accent-text); }
.at-btn--accent:hover { background: var(--accent-hover); color: var(--accent-text); }
.at-btn--outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.at-btn--outline:hover { background: var(--surface-hover); color: var(--text); }
.at-btn--sm { height: 40px; padding: 0 16px; font-size: 13px; }
.at-icon-btn { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: transparent; color: var(--header-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.at-icon-btn:hover { background: var(--surface-hover); }
.at-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 800; background: var(--card); color: var(--text); border: 1px solid var(--border); }
.at-badge--accent { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.at-stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text); }
.at-stars svg { color: var(--star); }
.at-avatar { width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--muted-surface); color: var(--muted-text); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.at-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-border); }
.at-header { max-width: 1280px; margin: 0 auto; padding: 0 40px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-sizing: border-box; }
.at-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--header-text); flex-shrink: 0; }
.at-brand .site-logo { height: 30px; width: auto; display: block; }
.at-brand__mark { display: inline-flex; color: var(--accent); }
.at-brand__name { font-size: 20px; font-weight: 800; font-style: italic; letter-spacing: -0.03em; text-transform: uppercase; }
.at-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.at-nav a { color: var(--header-text); text-decoration: none; }
.at-nav a:hover { color: var(--accent-ink); }
.at-header__search { flex: 0 1 620px; min-width: 0; }
.at-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.at-header .site-auth { display: flex; align-items: center; gap: 8px; }
.at-header .btn-login.at-icon-btn { display: inline-flex !important; padding: 0; font-size: 0; }
.at-header .btn-login.at-icon-btn[style*="display:none"], .at-header .btn-login.at-icon-btn[style*="display: none"] { display: none !important; }
.at-header .btn-menu { display: inline-flex; }
/* The platform search widget as Atlas draws it: dark pill bar (home) / compact header bar */
.at-search .nv-search-widget, .at-header__search .nv-search-widget { max-width: none; margin: 0; }
.at-search .nv-search-bar, .at-header__search .nv-search-bar { background: var(--card) !important; border: 1px solid var(--border) !important; box-shadow: var(--shadow-lg) !important; border-radius: var(--radius-pill); padding: 8px 8px 8px 24px; }
.at-search .nv-search-field, .at-header__search .nv-search-field { border-radius: var(--radius-pill); }
.at-search .nv-search-field label, .at-header__search .nv-search-field label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle) !important; }
.at-search .nv-search-field input, .at-header__search .nv-search-field input { font-size: 15px; font-weight: 600; color: var(--text) !important; }
.at-search .nv-search-button, .at-header__search .nv-search-button { border-radius: var(--radius-pill); height: 56px; padding: 0 26px; font-size: 15px; background: var(--text) !important; color: var(--bg) !important; }
.at-search .nv-search-button:hover, .at-header__search .nv-search-button:hover { background: var(--accent) !important; color: var(--accent-text) !important; }
.at-header__search .nv-search-bar { box-shadow: none !important; padding: 4px 4px 4px 20px; }
.at-header__search .nv-search-button { height: 40px; width: 40px; padding: 0; font-size: 0; justify-content: center; }
.at-header__search .nv-search-button svg { width: 16px; height: 16px; margin: 0; }
.at-header__search .nv-search-field { padding: 4px 14px; }
.at-header__search .nv-search-field label { display: none; }
.at-header__search .nv-search-field input { font-size: 14px; }

/* Blocks */
.at-block { position: relative; }
.at-block + .at-block { margin-top: 56px; }

/* Hero */
.at-block--hero { padding-top: 48px; }
.at-hero { display: grid; grid-template-columns: 1fr 560px; gap: 40px; align-items: stretch; }
.at-hero__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-bottom: 8px; }
.at-hero__text { display: flex; flex-direction: column; gap: 20px; }
.at-hero__badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 32px; padding: 0 12px 0 6px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; color: var(--subtle); }
.at-hero__badge span { width: 20px; height: 20px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.at-hero__title { max-width: 620px; }
.at-hero__sub { margin: 0; font-size: 18px; line-height: 1.55; color: var(--subtle); max-width: 520px; }
.at-hero__cta { display: flex; gap: 12px; }
.at-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 544px; }
.at-tile { position: relative; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #F4F4F2; text-decoration: none; background: var(--muted-surface); min-height: 180px; }
.at-tile:first-child { grid-row: span 2; padding: 18px; }
.at-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.at-tile__fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,13,15,0.85) 0%, rgba(12,13,15,0.05) 55%); }
.at-tile__label { position: relative; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.at-tile__title { position: relative; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
.at-tile:first-child .at-tile__title { font-size: 24px; }
.at-tile__meta { position: relative; font-size: 12px; color: rgba(244,244,242,0.8); margin-top: 4px; }
/* hero — full */
.at-block--hero-full { padding-top: 16px; }
.at-block--hero-full .at-hero { display: block; position: relative; min-height: 600px; border-radius: 24px; overflow: hidden; background: var(--muted-surface); }
.at-block--hero-full .at-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.at-block--hero-full .at-hero__fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,13,15,0.88) 0%, rgba(12,13,15,0.35) 55%, rgba(12,13,15,0.1) 100%); }
.at-block--hero-full .at-hero__copy { position: relative; padding: 56px 56px 40px; justify-content: flex-end; min-height: 600px; box-sizing: border-box; color: #F4F4F2; }
.at-block--hero-full .at-hero__title, .at-block--hero-full .at-hero__sub { color: #F4F4F2; }
.at-block--hero-full .at-hero__sub { color: rgba(244,244,242,0.85); }
.at-block--hero-full .at-hero__badge { border-color: rgba(255,255,255,0.3); color: rgba(244,244,242,0.85); }
.at-block--hero-full .at-tiles { display: none; }
.at-block--hero-full .at-search { max-width: 880px; }

/* Quick filters */
.at-block--quick_filters { margin-top: 20px !important; }
.at-quick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.at-quick__label { font-size: 13px; font-weight: 600; color: var(--subtle); margin-right: 8px; }

/* Destinations */
.at-destinations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.at-dest { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.at-dest__img { width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 16px; background: var(--muted-surface); }
.at-dest__name { font-size: 16px; font-weight: 700; }
.at-dest__meta { font-size: 13px; color: var(--subtle); }
.at-dest:hover .at-dest__name { color: var(--accent-ink); }

/* Property cards (rows, featured, search results) */
.at-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.at-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.at-card__media { position: relative; height: 270px; border-radius: 18px; overflow: hidden; background: var(--muted-surface); }
.at-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.at-card:hover .at-card__media img { transform: scale(1.03); }
.at-card__badge { position: absolute; top: 12px; left: 12px; }
.at-card__save { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: var(--radius-pill); background: rgba(12,13,15,0.6); color: #F4F4F2; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.at-card__body { display: flex; flex-direction: column; gap: 4px; }
.at-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.at-card__title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-card__meta { font-size: 13px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-card__price { font-size: 14px; color: var(--subtle); }
.at-card__price strong { color: var(--text); font-size: 15px; }
.at-cards--carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; margin-right: -40px; padding-right: 40px; scrollbar-width: none; }
.at-cards--carousel::-webkit-scrollbar { display: none; }
.at-cards--carousel .at-card { flex: 0 0 300px; scroll-snap-align: start; }
.at-row-nav { display: flex; gap: 8px; }

/* Why direct */
.at-why { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: center; }
.at-why__lead { display: flex; flex-direction: column; gap: 10px; }
.at-why__lead .at-h2 { font-size: 32px; line-height: 1.05; }
.at-why__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.at-stat { padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.at-stat__num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-ink); }
.at-stat__title { font-size: 15px; font-weight: 700; color: var(--text); }
.at-stat__body { font-size: 13px; line-height: 1.5; color: var(--subtle); }

/* CTA band */
.at-cta { border-radius: 24px; background: var(--accent); color: var(--accent-text); display: grid; grid-template-columns: 1fr 360px; align-items: center; padding: 40px 48px; gap: 40px; }
.at-cta__text { display: flex; flex-direction: column; gap: 10px; }
.at-cta__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.at-cta__title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.at-cta__body { font-size: 15px; font-weight: 500; opacity: 0.8; }
.at-cta__actions { display: flex; flex-direction: column; gap: 10px; }
.at-cta .at-btn { background: var(--accent-text); color: var(--accent); height: 52px; }
.at-cta .at-btn:hover { background: var(--accent-text); color: var(--accent-hover); }
.at-cta .at-btn--outline { background: transparent; color: var(--accent-text); border-color: var(--accent-text); }
.at-cta .at-btn--outline:hover { background: rgba(0,0,0,0.08); }
.at-block--cta-quiet .at-cta { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.at-block--cta-quiet .at-cta__eyebrow { color: var(--accent-ink); opacity: 1; }
.at-block--cta-quiet .at-cta__body { color: var(--subtle); opacity: 1; }
.at-block--cta-quiet .at-cta .at-btn { background: var(--text); color: var(--bg); }
.at-block--cta-quiet .at-cta .at-btn:hover { background: var(--accent); color: var(--accent-text); }
.at-block--cta-quiet .at-cta .at-btn--outline { background: transparent; color: var(--text); border-color: var(--text); }

/* Search page */
.at-search-page { display: flex; flex-direction: column; min-height: calc(100vh - 72px); }
.at-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 40px; border-bottom: 1px solid var(--line); }
.at-filterbar__pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.at-filterbar__sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--subtle); flex-shrink: 0; }
.at-select { height: 38px; padding: 0 36px 0 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A5AB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.at-select option { color: #121316; }
.at-results { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 520px; min-height: 0; }
.at-results__list { padding: 24px 24px 40px 40px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.at-results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.at-results__count { font-size: 15px; font-weight: 700; color: var(--text); }
.at-results__note { font-size: 13px; color: var(--subtle); }
.at-results .at-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.at-results .at-card__media { height: 210px; border-radius: 16px; }
.at-results__empty { padding: 48px 0; color: var(--subtle); }
.at-map { position: sticky; top: 72px; height: calc(100vh - 72px); background: var(--map-bg); border-left: 1px solid var(--line); overflow: hidden; }
.at-map__canvas { position: absolute; inset: 0; }
.at-map__card { position: absolute; left: 16px; right: 16px; top: 16px; display: none; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); z-index: 2; max-width: 300px; }
.at-map__card.is-open { display: block; }
.at-map__card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.at-map__card div { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.at-map__card strong { font-size: 14px; }
.at-map__card span { color: var(--subtle); }
.at-map__note { position: absolute; left: 16px; bottom: 16px; font-size: 11px; color: var(--subtle); z-index: 2; }
.at-map__toggle { display: none; }
.at-card.is-active .at-card__media { outline: 2px solid var(--accent); outline-offset: 2px; }
.at-results .nv-search-sentinel { height: 1px; }
.at-results .nv-search-loading { text-align: center; color: var(--subtle); }
/* filters modal: Atlas draws pills darker */
.at-body .nv-filters-button { border-radius: var(--radius-pill); }

/* Category (destinations) page */
.at-page { padding-top: 40px; }
.at-page__head { display: flex; flex-direction: column; gap: 8px; }
.at-page__head .at-h1 { font-size: 44px; }

/* Property page */
.at-prop { padding-top: 24px; }
.at-crumbs { display: flex; gap: 6px; font-size: 12px; font-weight: 600; color: var(--subtle); flex-wrap: wrap; }
.at-crumbs a { color: var(--subtle); text-decoration: none; background: none; border: 0; padding: 0; }
.at-crumbs a:hover { color: var(--text); }
.at-crumbs span:last-child { color: var(--text); }
.at-prop__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 8px; }
.at-prop__title h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.at-prop__title-actions { display: flex; gap: 8px; flex-shrink: 0; }
.at-gallery { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: repeat(2, 240px); gap: 10px; margin-top: 20px; }
.at-gallery button { position: relative; padding: 0; border: 0; background: var(--muted-surface); overflow: hidden; cursor: pointer; width: 100%; height: 100%; }
.at-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-gallery > :nth-child(1) { grid-row: span 2; border-radius: 20px 0 0 20px; }
.at-gallery > :nth-child(3) { border-radius: 0 20px 0 0; }
.at-gallery > :nth-child(5) { border-radius: 0 0 20px 0; }
.at-gallery__badge { position: absolute; top: 14px; left: 14px; }
.at-gallery__all { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #F4F4F2; color: #0C0D0F; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.at-prop__body { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; margin-top: 32px; }
.at-prop__main { display: flex; flex-direction: column; }
.at-prop__section { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.at-prop__section:first-child { padding-top: 0; }
.at-prop__lead { display: flex; flex-direction: column; gap: 6px; }
.at-prop__lead strong { font-size: 20px; font-weight: 700; }
.at-prop__lead span { font-size: 14px; color: var(--subtle); }
.at-highlight { display: flex; gap: 14px; align-items: flex-start; }
.at-highlight__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--card); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-ink); font-size: 16px; }
.at-highlight__text { display: flex; flex-direction: column; gap: 2px; }
.at-highlight__title { font-size: 15px; font-weight: 700; }
.at-highlight__body { font-size: 13px; color: var(--subtle); }
.at-prop .nv-property-description, .at-prop .property-description { font-size: 15px; line-height: 1.65; color: var(--text); }
.at-amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-size: 14px; }
.at-amenities div { display: flex; align-items: center; gap: 10px; color: var(--text); }
.at-amenities i { color: var(--subtle); width: 18px; text-align: center; }
.at-prop-map { position: relative; height: 260px; border-radius: 18px; background: var(--map-bg); border: 1px solid var(--line); overflow: hidden; }
.at-prop-map .property-map-container { width: 100%; height: 100%; }
.at-prop-map__note { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: var(--subtle); z-index: 2; }
.at-nearby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 14px; }
.at-nearby div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.at-nearby div span:last-child { color: var(--subtle); white-space: nowrap; }
.at-rating { display: flex; align-items: baseline; gap: 10px; }
.at-rating strong { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.at-rating span { font-size: 14px; color: var(--subtle); }
.at-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.at-review { padding: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.at-review__who { display: flex; align-items: center; gap: 10px; }
.at-review__who div { display: flex; flex-direction: column; }
.at-review__name { font-size: 13px; font-weight: 700; }
.at-review__when { font-size: 12px; color: var(--subtle); }
.at-review__body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.at-review__more { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; align-self: flex-start; }
.at-faq { display: flex; flex-direction: column; }
.at-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.at-faq details:last-child { border-bottom: 1px solid var(--line); }
.at-faq summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 15px; font-weight: 700; list-style: none; }
.at-faq summary::-webkit-details-marker { display: none; }
.at-faq summary svg { flex-shrink: 0; transition: transform 0.2s; }
.at-faq details[open] summary svg { transform: rotate(180deg); }
.at-faq p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--subtle); }
.at-prop__book { position: sticky; top: 96px; }
.at-prop__book .nv-booking-widget { border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.at-more { margin-top: 56px; }

/* About page */
.at-story { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; padding-top: 56px; }
.at-story__text { display: flex; flex-direction: column; gap: 20px; }
.at-story__text .at-h1 { font-size: 52px; }
.at-story__body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--subtle); white-space: pre-line; }
.at-story__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 200px); gap: 10px; }
.at-story__grid img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px; }
.at-story__grid img:first-child { grid-column: span 2; }
.at-contact { padding: 32px; border-radius: 24px; background: var(--accent); color: var(--accent-text); display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.at-contact strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.at-contact p { margin: 0; font-size: 14px; line-height: 1.5; color: inherit; opacity: 0.8; }
.at-contact .at-btn { align-self: flex-start; background: var(--accent-text); color: var(--accent); }

/* Empty states */
.at-empty { padding: 120px 0; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.at-empty p { color: var(--subtle); margin: 0; }

/* Footer — overrides the base `.site-footer` */
.site-footer { margin-top: 56px; padding: 0; background: var(--footer-bg); border-top: 1px solid var(--footer-border); }
.at-footer { max-width: 1280px; margin: 0 auto; padding: 40px 40px 32px; box-sizing: border-box; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; font-size: 13px; color: var(--footer-muted); }
.at-footer__brand, .at-footer__col { display: flex; flex-direction: column; gap: 8px; }
.at-footer__brand p { margin: 0; line-height: 1.5; max-width: 260px; color: var(--footer-muted); }
.at-brand--footer { color: var(--footer-text); }
.at-brand--footer .at-brand__name { font-size: 16px; }
.at-footer__head { font-weight: 700; color: var(--footer-text); }
.at-footer a { color: var(--footer-muted); text-decoration: none; }
.at-footer a:hover { color: var(--footer-text); }
.at-footer__meta { display: inline-flex; gap: 10px; margin-top: 6px; align-items: center; }
.at-footer__chip { padding: 4px 8px; border: 1px solid var(--footer-border); border-radius: 6px; color: var(--footer-text); font-weight: 700; }
.at-footer .footer-social-icon { font-size: 15px; }

/* Tablet */
@media (max-width: 1100px) {
  .at-wrap, .at-header, .at-footer, .at-filterbar { padding-left: 24px; padding-right: 24px; }
  .at-hero { grid-template-columns: 1fr; }
  .at-hero__title { font-size: 52px; }
  .at-tiles { min-height: 0; grid-template-rows: 220px 220px; }
  .at-destinations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .at-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at-why { grid-template-columns: 1fr; }
  .at-cta { grid-template-columns: 1fr; }
  .at-cta__actions { flex-direction: row; }
  .at-results { grid-template-columns: 1fr; }
  .at-map { position: fixed; inset: 72px 0 0 0; height: auto; display: none; z-index: 25; }
  .at-map.is-open { display: block; }
  .at-map__toggle { display: inline-flex; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 26; box-shadow: var(--shadow-lg); }
  .at-results__list { padding: 20px 24px 100px; }
  .at-prop__body { grid-template-columns: 1fr; }
  .at-prop__book { position: static; }
  .at-story { grid-template-columns: 1fr; }
  .at-footer { grid-template-columns: 1fr 1fr; }
  .at-header__search { display: none; }
  .at-nav { display: none; }
  .at-cards--carousel { margin-right: -24px; padding-right: 24px; }
}

/* Mobile */
@media (max-width: 767px) {
  .at-wrap, .at-header, .at-footer, .at-filterbar { padding-left: 16px; padding-right: 16px; }
  .at-header { height: 56px; }
  .at-brand__name { font-size: 17px; }
  .at-block + .at-block { margin-top: 40px; }
  .at-h1, .at-hero__title { font-size: 42px; }
  .at-h2, .at-link--title { font-size: 24px; }
  .at-block--hero { padding-top: 16px; }
  .at-hero__copy { gap: 20px; }
  .at-hero__sub { font-size: 14px; }
  .at-search .nv-search-bar { border-radius: 18px; padding: 6px; }
  .at-tiles { grid-template-rows: 160px 160px; gap: 8px; }
  .at-tile:first-child { grid-row: span 1; grid-column: span 2; }
  .at-block--hero-full .at-hero { min-height: 480px; border-radius: 20px; }
  .at-block--hero-full .at-hero__copy { padding: 24px 20px; min-height: 480px; }
  .at-quick { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .at-quick::-webkit-scrollbar { display: none; }
  .at-quick__label { display: none; }
  .at-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .at-row-nav { display: none; }
  .at-destinations { display: flex; overflow-x: auto; gap: 10px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .at-destinations::-webkit-scrollbar { display: none; }
  .at-dest { flex: 0 0 200px; }
  .at-dest__img { height: 140px; }
  .at-cards { display: flex; overflow-x: auto; gap: 12px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .at-cards::-webkit-scrollbar { display: none; }
  .at-cards .at-card { flex: 0 0 260px; }
  .at-card__media { height: 200px; }
  .at-why__cards { grid-template-columns: 1fr; }
  .at-cta { padding: 24px 20px; }
  .at-cta__title { font-size: 24px; }
  .at-cta__actions { flex-direction: column; }
  .at-filterbar { flex-direction: column; align-items: flex-start; padding: 10px 16px; }
  .at-filterbar__pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .at-filterbar__pills::-webkit-scrollbar { display: none; }
  .at-results__list { padding: 16px 16px 100px; }
  .at-results .at-cards { display: grid; grid-template-columns: 1fr; margin-right: 0; padding-right: 0; }
  .at-results .at-cards .at-card { flex: none; }
  .at-map { inset: 56px 0 0 0; }
  .at-page__head .at-h1 { font-size: 32px; }
  .at-prop__title { flex-direction: column; align-items: flex-start; }
  .at-prop__title h1 { font-size: 26px; }
  .at-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 200px 120px; gap: 6px; }
  .at-gallery > :nth-child(1) { grid-column: span 2; grid-row: span 1; border-radius: 16px 16px 0 0; }
  .at-gallery > :nth-child(2) { border-radius: 0 0 0 16px; }
  .at-gallery > :nth-child(3) { border-radius: 0 0 16px 0; }
  .at-gallery > :nth-child(n+4) { display: none; }
  .at-gallery > :nth-child(3) .at-gallery__all { display: inline-flex; }
  .at-amenities, .at-nearby, .at-reviews { grid-template-columns: 1fr; }
  .at-story__text .at-h1 { font-size: 34px; }
  .at-story__grid { grid-template-rows: repeat(2, 120px); }
  .site-footer { margin-top: 40px; }
  .at-footer { grid-template-columns: 1fr; padding: 24px 16px 96px; }
}
