/* ============================================
   CLASSBNB — MOBILE LAYER
   Breakpoint principale: ≤ 768px (smartphone)
   Tablet intermedio: 769-1024px (semplificato desktop)
   ============================================ */

/* ============ DEFAULTS (hidden on desktop) ============
   Mobile-only chrome: hide completely until viewport is mobile.
   Position/transform rules live inside @media (≤ 768px) to avoid
   any accidental flow impact on desktop. */
.hamburger,
.mobile-menu,
.mobile-menu-backdrop,
.bottom-sheet,
.sheet-backdrop,
.map-fullscreen,
.sticky-book-bar,
.gallery-carousel-mobile {
  display: none;
}

/* ============ TABLET (769-1024px) ============ */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-header { padding: 0 24px; }
  .brand-tagline { font-size: 15px; }
  .brand-block { gap: 14px; }
  .brand-block .divider { height: 22px; }
}

/* ============ MOBILE (≤ 768px) ============ */
@media (max-width: 768px) {

  html, body { font-size: 15px; }
  /* Clip horizontal overflow only on html — body keeps default overflow so vertical scroll works.
     "clip" is preferred over "hidden" because it doesn't create a scroll context.
     Older Safari (pre-16) falls back to hidden which still allows vertical scroll on body. */
  html { overflow-x: clip; }
  @supports not (overflow-x: clip) { html { overflow-x: hidden; } }
  body { padding-bottom: env(safe-area-inset-bottom); }

  /* Tap-to-highlight off (gold flash too distracting on iOS) */
  a, button, .chip, .hs-field, .sheet-field, .field, .house-card { -webkit-tap-highlight-color: transparent; }

  /* Body scroll lock when sheet/menu open is set via JS; prevent iOS overscroll bounce when locked */
  body.cb-no-scroll { overflow: hidden !important; touch-action: none; }

  /* Hero compact on phone */
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 18px 28px !important; gap: 22px !important; }
  .hero h1 { font-size: 32px !important; line-height: 1.15 !important; white-space: normal !important; }
  .hero-sub { font-size: 13.5px; }
  .hero-eyebrow { font-size: 9.5px !important; letter-spacing: 0.14em !important; }
  .hero-offer { font-size: 12px !important; padding: 10px 14px !important; }

  /* Trust band: scrollable cards */
  .trust-inner { padding: 0 16px !important; gap: 22px !important; }
  .trust-side .rating .num { font-size: 56px !important; }
  .tc-track { gap: 12px !important; }

  /* Map band on home */
  .map-band { min-height: auto !important; }
  .map-band-side { padding: 26px 18px !important; }
  .map-band-cities { font-size: 14px !important; }

  /* Section padding */
  .section-pad { padding: 48px 16px 0 !important; }
  .section-head h2 { font-size: 24px !important; line-height: 1.2; }

  /* Featured cards on home */
  .featured-grid { gap: 18px !important; }
  .feat-card .feat-img { aspect-ratio: 4/3; }
  .feat-card h3 { font-size: 19px !important; }

  /* Support block on contatti */
  .support-card { padding: 18px 16px !important; }
  .support-card .number { font-size: 17px !important; }
  .support-card .country { font-size: 12.5px !important; }

  /* -------- HEADER -------- */
  .site-header {
    height: 64px;
    padding: 0 16px;
    justify-content: space-between;
  }
  .brand-block { gap: 0; }
  .brand-block .divider { display: none; }
  .brand-tagline { display: none; }
  .logo { height: 28px; }
  .logo .part-class { width: 84px; }
  .logo .part-bnb { width: 56px; }

  /* Simplified nav: hamburger + flag only */
  .nav {
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }
  .nav a:not(.btn-book-header):not(.hamburger) { display: none; }
  .nav .flag { width: 18px; height: 13px; margin-right: 0; }
  .nav .lang { display: none; }
  .btn-book-header {
    padding: 9px 18px;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    margin-left: 0;
  }
  .btn-book-reveal { display: none !important; }

  .hamburger {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
  }
  .hamburger:hover { background: rgba(255,255,255,0.08); }
  .hamburger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

  /* Mobile menu drawer */
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--ink);
    color: #fff;
    z-index: 500;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 24px 22px;
    flex-direction: column;
    gap: 2px;
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu .menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-menu .menu-head .logo { height: 24px; }
  .mobile-menu .menu-head .logo .part-class { width: 72px; }
  .mobile-menu .menu-head .logo .part-bnb { width: 48px; }
  .mobile-menu .menu-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 22px;
    cursor: pointer;
  }
  .mobile-menu a {
    padding: 14px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.02em;
  }
  .mobile-menu a:hover { color: var(--gold-light); }
  .mobile-menu a .chev { opacity: 0.4; font-size: 12px; }
  .mobile-menu .menu-tagline {
    margin-top: auto;
    padding-top: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    text-align: center;
  }
  .mobile-menu-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 499;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }

  /* -------- SEARCH BAR → compatta a CTA unica -------- */
  .search-bar {
    padding: 14px 16px;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .search-bar .search-field { display: none; }
  .search-bar .btn-search {
    width: 100%;
    padding: 14px 22px;
    justify-content: flex-start;
    gap: 14px;
    letter-spacing: 0.1em;
    font-size: 12.5px;
  }
  .search-bar .btn-search .icon {
    width: 18px; height: 18px;
    flex: 0 0 18px;
  }
  /* pseudo content to show what the sheet will ask */
  .search-bar .btn-search .label::after {
    content: attr(data-mobile-hint);
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    margin-top: 3px;
    text-transform: none;
  }

  /* -------- FILTER ROW -------- */
  .filter-row {
    padding: 10px 14px;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .chip {
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 7px 12px;
  }

  /* -------- SUPPORT / FOOTER -------- */
  .support-block { padding: 36px 20px 28px; }
  .support-block .lead, .support-block .languages { font-size: 13px; }
  .site-footer { padding: 22px 18px; font-size: 11.5px; line-height: 1.7; }

  /* -------- BOTTOM SHEETS (generic) -------- */
  .sheet-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(10,10,10,0.55);
    z-index: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
  .bottom-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 601;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.2);
  }
  .bottom-sheet.open { transform: translateY(0); }
  .sheet-grabber {
    width: 44px; height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin: 10px auto 6px;
    flex-shrink: 0;
  }
  .sheet-head {
    padding: 12px 20px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    flex-shrink: 0;
  }
  .sheet-head h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
  }
  .sheet-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
  }
  .sheet-body {
    padding: 18px 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }
  .sheet-foot {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--line-soft);
    flex-shrink: 0;
    background: var(--white);
  }

  /* -------- SEARCH SHEET (home) -------- */
  .search-sheet .sheet-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s;
  }
  .search-sheet .sheet-field:hover { border-color: var(--gold); }
  .search-sheet .sheet-field .ico {
    color: var(--gold);
    font-size: 18px;
    width: 22px;
    text-align: center;
  }
  .search-sheet .sheet-field .lab {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
  }
  .search-sheet .sheet-field .val {
    font-size: 14px;
    color: var(--text);
  }
  .search-sheet .sheet-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d4b570 0%, #b8954a 65%, #9b7a3b 100%);
    color: #fff;
    border-radius: var(--radius);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(184,149,74,0.35);
  }

  /* ======================================================
     INDEX PAGE
     ====================================================== */
  .main-layout { grid-template-columns: 1fr; }
  .map-col { display: none; }
  .list-col { padding: 0 14px 20px; }

  .plus-section { margin: 14px 0 18px; border-radius: var(--radius); }
  .plus-header { padding: 14px 16px; }
  .plus-header h2 { font-size: 18px; }
  .plus-header .eyebrow { font-size: 9.5px; letter-spacing: 0.18em; }
  .plus-intro { padding: 12px 16px 14px; font-size: 13px; }
  .plus-v1 .plus-grid, .plus-v2 .plus-grid, .plus-v3 .plus-grid { grid-template-columns: 1fr; }
  .plus-v1 .plus-item, .plus-v3 .plus-item {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 14px 16px;
  }
  .plus-v3 .plus-item { border-bottom-color: rgba(255,255,255,0.08); }
  .plus-v1 .plus-item:last-child, .plus-v3 .plus-item:last-child { border-bottom: none; }
  .plus-v2 .plus-grid { padding: 4px; gap: 0; }
  .plus-v2 .plus-item { padding: 12px 14px; }
  .plus-v1 .plus-thumb { width: 52px; height: 52px; }

  /* results */
  .results-header { padding: 6px 0 12px; }
  .results-count strong { font-size: 18px; }
  .results-count { font-size: 12px; }
  .sort-select { font-size: 11px; }
  .results-grid { grid-template-columns: 1fr !important; gap: 20px; }

  .house-card .img-wrap { aspect-ratio: 16 / 11; }
  .house-card .title { font-size: 22px; }
  .house-card .body { padding: 14px 16px 18px; }

  .show-more { padding: 30px 0 24px; }
  .show-more button { padding: 13px 28px; font-size: 11px; width: 100%; }

  /* Hide floating variant switcher on mobile (dev-only anyway) */
  .variant-switcher {
    bottom: 80px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  /* ======================================================
     PROPERTY PAGE
     ====================================================== */

  /* Gallery → carousel full-width */
  .gallery-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    padding: 0 !important;
    position: relative;
  }
  .gallery-hero .g:not(.big):not(:nth-child(2)) { display: none; }
  .gallery-carousel-mobile {
    display: block;                /* override .gallery-carousel-mobile { display: none } default */
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-dark);
    border-radius: var(--radius);
    margin: 0 0 22px;              /* spacing below gallery before the booking-block */
  }
  .gallery-carousel-mobile .track {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .gallery-carousel-mobile .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
  }
  .gallery-carousel-mobile .counter {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,10,0.72);
    color: #fff;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
  }
  .gallery-carousel-mobile .top-actions {
    position: absolute;
    top: 14px; right: 14px;
    display: flex; gap: 8px;
    z-index: 5;
  }
  .gallery-carousel-mobile .top-actions .btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.94);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(4px);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .gallery-carousel-mobile .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .gallery-carousel-mobile:hover .arrow,
  .gallery-carousel-mobile.show-arrows .arrow { opacity: 0.95; }
  .gallery-carousel-mobile .arrow.prev { left: 10px; }
  .gallery-carousel-mobile .arrow.next { right: 10px; }

  /* hide original desktop gallery children - we'll generate a mobile carousel via JS */
  .gallery-hero > .g { display: none !important; }
  .gallery-hero > .top-left { display: none !important; }
  .gallery-hero > .view-all { display: none !important; }

  /* Page grid → single column */
  .page {
    grid-template-columns: 1fr !important;
    padding: 20px 16px 100px !important;  /* pad bottom for sticky bar */
    gap: 0 !important;
  }
  /* Force grid items to not exceed track size — default min-width:auto would let
     children with white-space:nowrap (e.g. booking-block buttons) push the track wider. */
  .page > * { min-width: 0; }
  .booking-block { min-width: 0; }
  /* Buttons side-by-side on mobile (no wrap), shrink-to-fit text */
  .booking-block .actions { flex-wrap: nowrap; min-width: 0; gap: 8px; }
  .booking-block .btn-outline, .booking-block .btn-filled { min-width: 0; flex: 1 1 0; }
  .title-block { margin-bottom: 18px; margin-top: 4px; }
  .title-block h1 { font-size: 24px; line-height: 1.2; }
  .title-block .sub { font-size: 12.5px; }

  /* Booking rating block — stacked */
  .booking-block {
    padding: 18px 18px;
    margin-bottom: 24px;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    text-align: left;
  }
  .booking-block .score-display { gap: 14px; justify-content: flex-start !important; }
  .booking-block .big-score {
    font-size: 34px;
    padding: 12px 14px;
    min-width: 72px;
  }
  .booking-block .score-label { font-size: 18px; }
  .booking-block .actions {
    flex-direction: row !important;
    gap: 8px !important;
  }
  .booking-block .btn-outline,
  .booking-block .btn-filled {
    flex: 1;
    justify-content: center;
    padding: 11px 12px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  /* Sections */
  .section { margin-bottom: 28px; }
  .section h2 { font-size: 20px; margin-bottom: 12px; }
  .section p { font-size: 13.5px; }
  .quick-info {
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
  }
  .checks { gap: 8px; }
  .checks .pill { font-size: 11px; padding: 5px 10px; }

  /* Gallery strip → 3 cols */
  .gallery-strip { grid-template-columns: repeat(3, 1fr); gap: 5px; }

  /* Amenities → 1 col */
  .amenities { grid-template-columns: 1fr !important; gap: 2px 0; }
  .amenity { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
  .amenity:last-child { border-bottom: none; }

  /* Location map hidden by default, "Vedi sulla mappa" button */
  #location-map { display: none; }
  .section.location-section .map-cta {
    display: block;
    width: 100%;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8f5ed 0%, #ebe4d4 100%);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
  }
  .section.location-section .map-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><path d='M0 40 Q50 20 100 35 T200 30' fill='none' stroke='%23b8954a' stroke-width='0.5' opacity='0.3'/><path d='M0 60 Q50 50 100 55 T200 55' fill='none' stroke='%23b8954a' stroke-width='0.5' opacity='0.2'/><circle cx='150' cy='45' r='2' fill='%23b8954a' opacity='0.4'/></svg>");
    background-size: cover;
    opacity: 0.5;
  }
  .section.location-section .map-cta .pin {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(184,149,74,0.4);
  }
  .section.location-section .map-cta .lab {
    position: relative;
    z-index: 1;
    flex: 1;
  }
  .section.location-section .map-cta .lab strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 2px;
  }
  .section.location-section .map-cta .lab span {
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }
  .section.location-section .map-cta .chev {
    color: var(--gold);
    font-size: 16px;
    position: relative;
    z-index: 1;
  }

  /* Full-screen map overlay */
  .map-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 700;
    background: var(--white);
    display: none;
    flex-direction: column;
  }
  .map-fullscreen.open { display: flex; }
  .map-fullscreen .map-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    flex-shrink: 0;
  }
  .map-fullscreen .map-head .back {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: var(--cream);
  }
  .map-fullscreen .map-head .info {
    flex: 1;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: var(--ink);
  }
  .map-fullscreen .map-head .info small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.02em;
  }
  #location-map-fullscreen { flex: 1; }

  /* Sidebar booking card → hidden on mobile (replaced by sticky bar + booking sheet).
     IMPORTANT: deve matchare sia l'ID #booking-card sia entrambe le classi (vecchia e nuova).
     Inoltre nascondiamo l'<aside> contenitore: anche se vuoto, occupa una traccia grid
     e il widget Krossbooking interno espande il track via min-width (overflow → testo tagliato). */
  .booking-card,
  .booking-card-luxe,
  #booking-card,
  .page > aside {
    display: none !important;
  }
  /* Ensure description and other sections never overflow horizontally on mobile */
  .section, .section p, .booking-block { min-width: 0; max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }

  /* Cookie banner / floating icon must not overlap sticky-book-bar on property mobile */
  body:has(.sticky-book-bar) .cb-cc-banner { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
  body:has(.sticky-book-bar) .cb-cc-icon { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }

  /* Sticky "Prenota" bar */
  .sticky-book-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 400;
    width: 100%;
    box-sizing: border-box;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
  }
  .sticky-book-bar .price-col {
    display: flex; flex-direction: column; gap: 2px;
    line-height: 1.2;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  .sticky-book-bar .price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--ink);
    font-weight: 500;
  }
  .sticky-book-bar .price small {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 400;
  }
  .sticky-book-bar .rating-mini {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sticky-book-bar .rating-mini strong { color: var(--gold-dark); font-weight: 600; }
  .sticky-book-bar .rating-mini small { color: var(--text-muted); font-size: 11px; }
  .sticky-book-bar .dates {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sticky-book-bar .cta {
    flex: 0 0 auto;
    flex-shrink: 0;
    padding: 13px 22px;
    background: linear-gradient(135deg, #d4b570 0%, #b8954a 65%, #9b7a3b 100%);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(184,149,74,0.35);
    white-space: nowrap;
  }

  /* Booking sheet content (reuses bottom-sheet shell) */
  .booking-sheet .field,
  .booking-sheet .field-row .field {
    padding: 14px 14px;
    font-size: 14px;
    margin-bottom: 10px;
  }
  .booking-sheet .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }
  .booking-sheet .field-row .arrow { display: none; }
  .booking-sheet h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    margin: 18px 0 10px;
    color: var(--ink);
  }
  .booking-sheet .buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  .booking-sheet .btn {
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
  }
  .booking-sheet .btn-primary {
    background: linear-gradient(135deg, #d4b570 0%, #b8954a 65%, #9b7a3b 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(184,149,74,0.35);
  }
  .booking-sheet .btn-outline {
    background: transparent;
    color: var(--gold-dark);
    border: 1px solid var(--gold);
  }

  /* Reviews modal on mobile → full screen */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal {
    max-height: 100vh !important;
    height: 100vh;
    border-radius: 0;
    max-width: none !important;
  }
  .modal-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
  }
  .modal-summary {
    border-right: none !important;
    border-bottom: 1px solid var(--line-soft);
    padding: 18px 18px;
  }
  .modal-summary .big { font-size: 36px; padding: 10px 0; }
  .modal-reviews { padding: 16px 18px; }
  .review-body { margin-left: 0; margin-top: 8px; }
  .modal-head { padding: 16px 18px; }
  .modal-head h2 { font-size: 18px; }
  .modal-foot { padding: 12px 18px; flex-direction: column; gap: 6px; align-items: flex-start; }

  /* ======================================================
     BOOK / GUEST / CHECKOUT / CONFIRMATION PAGES
     ====================================================== */
  .booking-page, .checkout-page, .confirm-page {
    padding: 20px 14px 40px !important;
  }
  .booking-page > *, .checkout-page > * {
    grid-template-columns: 1fr !important;
  }

  /* Multi-col layouts → single */
  .two-col, .grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ============ NARROW PHONES (≤ 400px — most Android) ============ */
@media (max-width: 400px) {
  .sticky-book-bar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .sticky-book-bar .cta { padding: 12px 18px; font-size: 11px; letter-spacing: 0.14em; }
  .sticky-book-bar .rating-mini { font-size: 12.5px; }
  .sticky-book-bar .rating-mini small { display: none; }   /* hide "(194 rec.)" so PRENOTA non viene tagliato */
  .sticky-book-bar .dates { font-size: 10.5px; }
}

/* ============ VERY SMALL (≤ 360px) ============ */
@media (max-width: 360px) {
  .brand-block { gap: 0; }
  .logo .part-class { width: 72px; }
  .logo .part-bnb { width: 48px; }
  .btn-book-header { padding: 8px 14px; font-size: 10px; letter-spacing: 0.14em; }
  .title-block h1 { font-size: 22px; }
  .house-card .title { font-size: 20px; }
  .sticky-book-bar .cta { padding: 11px 14px; font-size: 10.5px; }
  .sticky-book-bar .rating-mini { font-size: 12px; }
}
