/* ParkShare — Main Styles */

:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --border: #e8e3da;
  --ink: #1c1916;
  --ink2: #7a7368;
  --accent: #1a5c3a;
  --accent-light: #eaf4ee;
  --accent2: #e8621a;
  --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.04);
  --green: #1a5c3a;
  --green-light: #2d7a50;
  /* Consistent radius tokens (F23-F28) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 60px;
}
[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --border: #333333;
  --ink: #e8e6e3;
  --ink2: #a0998f;
  --accent: #4ade80;
  --accent-light: #1a2e1a;
  --accent2: #fb923c;
  --shadow: 0 2px 8px rgba(0,0,0,0.3), 0 8px 32px rgba(0,0,0,0.2);
  --green: #4ade80;
  --green-light: #22c55e;
}
/* === DARK MODE COMPLETO === */
[data-theme="dark"] body { background: #121212; }
/* Navbar */
[data-theme="dark"] nav { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .nav-bar { background: var(--surface) !important; border-color: var(--border) !important; }
/* Mobile bottom nav */
[data-theme="dark"] .mob-nav { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .mob-nav-btn { color: #888 !important; }
[data-theme="dark"] .mob-nav-btn.active { color: var(--accent) !important; }
[data-theme="dark"] .mobnav-center-btn { color: #888 !important; }
/* Mobile drawer */
[data-theme="dark"] .mob-drawer { background: var(--surface) !important; }
[data-theme="dark"] .mob-drawer-header { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .mob-drawer-close:hover { background: rgba(255,255,255,0.1) !important; }
[data-theme="dark"] .mob-drawer-item { color: var(--ink) !important; }
[data-theme="dark"] .mob-drawer-item:hover { background: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] .mob-drawer-user { border-color: var(--border) !important; }
[data-theme="dark"] .mob-drawer-section-title { color: var(--ink2) !important; }
/* Dashboard */
[data-theme="dark"] .chart-card,
[data-theme="dark"] .booking-card,
[data-theme="dark"] .dash-sidebar,
[data-theme="dark"] #reportCard,
[data-theme="dark"] #stripeConnectCard { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .dash-content { background: var(--bg); }
[data-theme="dark"] .dash-nav-item:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .dash-nav-item.active { background: rgba(74,222,128,0.1); color: var(--accent); }
/* Forms & inputs */
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border); }
[data-theme="dark"] .btn-social { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .btn-social[style*="background:#000"] { background: #000 !important; color: #fff !important; border-color: #000 !important; }
/* Hero */
[data-theme="dark"] .hero { background: linear-gradient(135deg, #0a1a0f 0%, #1a3a25 100%) !important; }
/* Modals */
[data-theme="dark"] .modal { background: var(--surface) !important; color: var(--ink) !important; }
[data-theme="dark"] .modal-header { border-color: var(--border) !important; }
[data-theme="dark"] .modal-footer { border-color: var(--border) !important; background: var(--surface) !important; }
/* Notification panel */
[data-theme="dark"] .notif-panel { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .notif-panel-header { border-color: var(--border) !important; }
[data-theme="dark"] .notif-item { border-color: var(--border) !important; }
[data-theme="dark"] .notif-item:hover { background: rgba(255,255,255,0.05) !important; }
/* Search & filters */
[data-theme="dark"] .search-filters { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .filter-select { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .filter-chip { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .filter-chip.active { background: var(--accent) !important; color: #000 !important; }
/* Autocomplete */
[data-theme="dark"] .ac-dropdown { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .ac-item { border-color: var(--border) !important; color: var(--ink) !important; }
[data-theme="dark"] .ac-item:hover { background: rgba(255,255,255,0.05) !important; }
/* Listing cards */
[data-theme="dark"] .listing-card { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .listing-title { color: var(--ink) !important; }
[data-theme="dark"] .listing-price-unit { color: var(--ink2) !important; }
/* Mobile booking bar */
[data-theme="dark"] .mobile-book-bar { background: var(--surface) !important; border-color: var(--border) !important; }
/* Parking page price box */
[data-theme="dark"] .parking-page-price-box { background: var(--surface) !important; border-color: var(--border) !important; }
/* Cookie banner */
[data-theme="dark"] #cookieBanner { background: #1e1e1e !important; }
[data-theme="dark"] #cookieBanner div { color: #e8e6e3 !important; }
[data-theme="dark"] #cookieBanner button { border-color: rgba(255,255,255,0.2) !important; }
/* Footer — has var(--ink) as bg which flips in dark; force dark bg */
[data-theme="dark"] footer { background: #0a0a0a !important; }
/* Show all photos button */
[data-theme="dark"] .show-all-btn { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--ink2) !important; }
/* Generic: all inline background:white elements via broad selectors */
[data-theme="dark"] .page [style*="background:white"],
[data-theme="dark"] .page [style*="background: white"],
[data-theme="dark"] .page [style*="background:#fff"],
[data-theme="dark"] .page [style*="background:#ffffff"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Generic: inline background light grays */
[data-theme="dark"] .page [style*="background:#f8f"],
[data-theme="dark"] .page [style*="background:#f0f"],
[data-theme="dark"] .page [style*="background:#fef"],
[data-theme="dark"] .page [style*="background:#eff"],
[data-theme="dark"] .page [style*="background:#fffb"] { background: rgba(255,255,255,0.05) !important; }
/* Generic: inline color dark text */
[data-theme="dark"] .page [style*="color:#222"],
[data-theme="dark"] .page [style*="color:#333"],
[data-theme="dark"] .page [style*="color:#000"] { color: var(--ink) !important; }
[data-theme="dark"] .page [style*="color:#666"],
[data-theme="dark"] .page [style*="color:#717"],
[data-theme="dark"] .page [style*="color:#888"],
[data-theme="dark"] .page [style*="color:#64748b"] { color: var(--ink2) !important; }
/* Generic: inline borders */
[data-theme="dark"] .page [style*="border:1.5px solid #e2e8f0"],
[data-theme="dark"] .page [style*="border:1px solid #e2e8f0"],
[data-theme="dark"] .page [style*="border:1px solid #e8e"],
[data-theme="dark"] .page [style*="border-bottom:1px solid #e"] { border-color: var(--border) !important; }
/* B2B page specific light backgrounds */
[data-theme="dark"] #page-business [style*="background:#f0fff4"],
[data-theme="dark"] #page-business [style*="background:#fffbeb"] { background: rgba(255,255,255,0.06) !important; }
/* Auth form card backgrounds */
[data-theme="dark"] .auth-divider { color: var(--ink2) !important; }
[data-theme="dark"] .auth-divider::before, [data-theme="dark"] .auth-divider::after { background: var(--border) !important; }
/* Lang toggle */
[data-theme="dark"] .lang-sep { color: var(--ink2) !important; }
/* Tab buttons */
[data-theme="dark"] .dash-tab-btn { background: var(--surface) !important; color: var(--ink2) !important; border-color: var(--border) !important; }
[data-theme="dark"] .dash-tab-btn.active { background: var(--accent) !important; color: #000 !important; }
/* FAQ accordion */
[data-theme="dark"] details { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] details summary { color: var(--ink) !important; }
/* How it works cards */
[data-theme="dark"] #page-howitworks [style*="background:white"] { background: var(--surface) !important; }
/* Owner page */
/* Dark mode: override inline background:white everywhere */
[data-theme="dark"] [style*="background:white"],
[data-theme="dark"] [style*="background:#fff"] { background: var(--surface) !important; }
[data-theme="dark"] [style*="color:#1c1916"],
[data-theme="dark"] [style*="color:#1e293b"],
[data-theme="dark"] [style*="color:#1a1a2e"] { color: var(--ink) !important; }
[data-theme="dark"] [style*="border:1px solid #e"],
[data-theme="dark"] [style*="border:1.5px solid #e"],
[data-theme="dark"] [style*="border-color:#e"] { border-color: var(--border) !important; }
[data-theme="dark"] details { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .owner-hero-section { background: #0f1a13 !important; }
[data-theme="dark"] #ownerTabParking, [data-theme="dark"] #ownerTabRental { color: rgba(255,255,255,0.7) !important; }
[data-theme="dark"] #ownerTabParking[style*="background:white"], [data-theme="dark"] #ownerTabRental[style*="background:white"] { background: var(--accent) !important; color: white !important; }
[data-theme="dark"] .owner-stats-grid { background: var(--surface); }
[data-theme="dark"] .owner-stats-grid > div { border-color: var(--border) !important; }
/* Dark mode: form containers, cards, modals */
[data-theme="dark"] .auth-container { background: var(--surface) !important; }
[data-theme="dark"] .faq-item, [data-theme="dark"] details[style*="background:white"] { background: var(--surface) !important; }
[data-theme="dark"] [style*="background:#f0fdf4"] { background: #0f2419 !important; }
[data-theme="dark"] [style*="background:#eff6ff"] { background: #0f1a2e !important; }
[data-theme="dark"] [style*="background:#fefce8"] { background: #2a2000 !important; }
[data-theme="dark"] [style*="background:#fef3c7"] { background: #2a2000 !important; }
[data-theme="dark"] [style*="background:var(--accent-light)"] { background: #0f2419 !important; }
[data-theme="dark"] .listing-card { background: var(--surface) !important; }
[data-theme="dark"] .modal-overlay .modal { background: var(--surface) !important; }
/* Calendar dark mode */
[data-theme="dark"] .cal-day { color: var(--ink); }
[data-theme="dark"] .cal-day.cal-past { color: #555; }
[data-theme="dark"] .cal-day:hover:not(.cal-empty):not(.cal-past) { background: rgba(74,222,128,0.1); }
[data-theme="dark"] .cal-day.cal-blocked { background: #3b1111; color: #f87171; }
[data-theme="dark"] .cal-day.cal-blocked:hover { background: #5b1a1a; }
[data-theme="dark"] .cal-day.cal-booked { background: #0c2d4a; color: #7dd3fc; }
/* Hero search box */
[data-theme="dark"] .hero-search-box { background: var(--surface) !important; box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1) !important; }
[data-theme="dark"] .hero-search-field { border-color: var(--border) !important; }
[data-theme="dark"] .hero-search-field label { color: var(--ink) !important; }
[data-theme="dark"] .hero-search-field input, [data-theme="dark"] .hero-search-field select { color: var(--ink2) !important; background: transparent !important; }
/* Search type tabs (A ore, Giornaliero, Mensile) */
[data-theme="dark"] .search-type-tabs { background: rgba(255,255,255,0.1) !important; }
[data-theme="dark"] .search-type-tab { color: #999 !important; }
[data-theme="dark"] .search-type-tab.active { background: var(--surface) !important; color: var(--ink) !important; }
/* SRP type tabs */
[data-theme="dark"] .srp-type-tabs { background: rgba(255,255,255,0.08) !important; }
[data-theme="dark"] .srp-type-tab { color: #999 !important; }
[data-theme="dark"] .srp-type-tab.active { background: var(--surface) !important; color: var(--ink) !important; }
/* Hero mode tabs (Per indirizzo, Per evento) */
[data-theme="dark"] .hero-mode-tabs { border-color: var(--border) !important; }
[data-theme="dark"] .hero-mode-tab { color: var(--ink2) !important; }
[data-theme="dark"] .hero-mode-tab.active { color: var(--ink) !important; }
[data-theme="dark"] .hero-mode-tab.active::after { background: var(--ink) !important; }
/* View toggle (Lista/Mappa) */
[data-theme="dark"] .home-map-toggle .view-toggle-btn { background: var(--surface) !important; color: var(--ink2) !important; border-color: var(--border) !important; }
[data-theme="dark"] .home-map-toggle .view-toggle-btn.active { background: var(--ink) !important; color: var(--bg) !important; border-color: var(--ink) !important; }
/* Map toggle button (mobile) */
[data-theme="dark"] .map-toggle-btn { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
/* Type filter chips (Tutti, Box chiuso, etc.) */
[data-theme="dark"] .mob-type-chip { background: var(--surface) !important; color: var(--ink2) !important; border-color: var(--border) !important; }
[data-theme="dark"] .mob-type-chip.active { background: var(--accent) !important; color: #000 !important; border-color: var(--accent) !important; }
[data-theme="dark"] .srp-type-chip { background: var(--surface) !important; color: var(--ink2) !important; border-color: var(--border) !important; }
[data-theme="dark"] .srp-type-chip.active { background: var(--accent) !important; color: #000 !important; border-color: var(--accent) !important; }
/* Mob search overlay */
[data-theme="dark"] .mob-search-overlay-footer { background: var(--surface) !important; border-color: var(--border) !important; }
/* Trust badges under hero */
[data-theme="dark"] .trust-badge, [data-theme="dark"] [style*="color:#555"] { color: var(--ink2) !important; }
/* Dashboard sidebar active and hover adjustments already done, but ensure bg for sidebar */
[data-theme="dark"] .dash-sidebar { background: var(--surface) !important; }
/* Home category strip (Tutti, Box chiuso, etc.) */
[data-theme="dark"] .home-category-strip { background: var(--surface) !important; }
[data-theme="dark"] .home-cat-item { color: var(--ink) !important; }
[data-theme="dark"] .home-cat-item.active { border-bottom-color: var(--accent) !important; }
/* Service pills in publish form */
[data-theme="dark"] .svc-pill { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .svc-pill.selected { background: rgba(74,222,128,0.1) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
/* Stripe connect card gradient */
[data-theme="dark"] #stripeConnectCard,
[data-theme="dark"] [style*="background:linear-gradient(135deg,#eff6ff"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Report card */
[data-theme="dark"] #reportCard { background: var(--surface) !important; }
/* Report summary stat boxes */
[data-theme="dark"] #reportSummary > div { background: rgba(255,255,255,0.05) !important; border-color: var(--border) !important; }
/* Referral section */
[data-theme="dark"] [style*="background:linear-gradient(135deg,#f0fdf4"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Business/owner stats cards */
[data-theme="dark"] #businessStats [style*="background:#f0fff4"],
[data-theme="dark"] #businessStats [style*="background:#f8fafc"] { background: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] #businessStats [style*="background:white"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Business parkings list and chart */
[data-theme="dark"] #businessParkings [style*="background:white"],
[data-theme="dark"] #businessChart [style*="background:white"],
[data-theme="dark"] [id*="business"] [style*="background:white"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Bulk actions card */
[data-theme="dark"] [style*="background:white"][style*="border:1px solid #e2e8f0"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* CSV button */
[data-theme="dark"] button[onclick*="CSV"],
[data-theme="dark"] button[onclick*="csv"] { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
/* Month selector / select elements in dashboard */
[data-theme="dark"] #page-dashboard select { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
/* All remaining white backgrounds in dashboard */
[data-theme="dark"] #page-dashboard [style*="background:white"],
[data-theme="dark"] #page-dashboard [style*="background:#fff"],
[data-theme="dark"] #page-dashboard [style*="background: white"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Light green/blue/pink backgrounds in dashboard */
[data-theme="dark"] #page-dashboard [style*="background:#f0f"],
[data-theme="dark"] #page-dashboard [style*="background:#f8f"],
[data-theme="dark"] #page-dashboard [style*="background:#eff"],
[data-theme="dark"] #page-dashboard [style*="background:#fdf"],
[data-theme="dark"] #page-dashboard [style*="background:#fef"] { background: rgba(255,255,255,0.05) !important; }
/* Dashboard inline borders */
[data-theme="dark"] #page-dashboard [style*="border:1.5px solid #b"],
[data-theme="dark"] #page-dashboard [style*="border:1.5px solid #d"],
[data-theme="dark"] #page-dashboard [style*="border:1px solid #e"] { border-color: var(--border) !important; }
/* Dashboard text colors */
[data-theme="dark"] #page-dashboard [style*="color:#1c1916"],
[data-theme="dark"] #page-dashboard [style*="color:#1a1a1a"] { color: var(--ink) !important; }
/* Referral share buttons */
[data-theme="dark"] #page-dashboard .referral-share-btn,
[data-theme="dark"] #page-dashboard [onclick*="shareRef"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Mobile dashboard bottom tabs */
[data-theme="dark"] .dash-mob-tabs { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .dash-mob-tab { color: var(--ink2) !important; }
[data-theme="dark"] .dash-mob-tab.active { color: var(--accent) !important; }
/* Earnings chart container */
[data-theme="dark"] #earningsChartCard { background: var(--surface) !important; border-color: var(--border) !important; }
/* Payout history items */
[data-theme="dark"] .payout-item { background: var(--surface) !important; border-color: var(--border) !important; }
/* Login/register form containers */
[data-theme="dark"] #page-login [style*="background:white"],
[data-theme="dark"] #page-register [style*="background:white"] { background: var(--surface) !important; }
/* Support page */
[data-theme="dark"] #page-supporto [style*="background:white"],
[data-theme="dark"] #page-supporto [style*="background:#f"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Privacy/terms/cookie pages */
[data-theme="dark"] #page-privacy [style*="background:white"],
[data-theme="dark"] #page-terms [style*="background:white"],
[data-theme="dark"] #page-cookie [style*="background:white"] { background: var(--surface) !important; }
/* How it works page */
[data-theme="dark"] #page-howitworks [style*="background:#f"],
[data-theme="dark"] #page-howitworks [style*="background:white"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Owner page */
[data-theme="dark"] #page-owner [style*="background:#f"],
[data-theme="dark"] #page-owner [style*="background:white"] { background: var(--surface) !important; border-color: var(--border) !important; }
/* Global: catch remaining light backgrounds in any page */
[data-theme="dark"] .page [style*="background:linear-gradient(135deg,#f"] { background: var(--surface) !important; }
[data-theme="dark"] .page [style*="background:linear-gradient(135deg,#e"] { background: var(--surface) !important; }
/* Skeleton loaders */
[data-theme="dark"] .skeleton-card, [data-theme="dark"] .skeleton-dash-card { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .skeleton-img, [data-theme="dark"] .skeleton-line, [data-theme="dark"] .skeleton-block { background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%) !important; background-size: 200% 100% !important; }
/* Mobile search pill */
[data-theme="dark"] .mob-search-pill { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .mob-search-pill-text strong { color: var(--ink) !important; }
[data-theme="dark"] .mob-search-pill-text span { color: var(--ink2) !important; }
[data-theme="dark"] .mob-search-pill svg { stroke: var(--ink) !important; }
/* Mobile search overlay */
[data-theme="dark"] .mob-search-overlay { background: var(--bg) !important; }
[data-theme="dark"] .mob-overlay-section { background: var(--surface) !important; }
[data-theme="dark"] .mob-overlay-input { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .mob-overlay-input:focus { background: var(--surface) !important; border-color: var(--accent) !important; }
[data-theme="dark"] .mob-date-box { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .mob-date-box label { color: var(--ink2) !important; }
[data-theme="dark"] .mob-date-box input { color: var(--ink) !important; }
[data-theme="dark"] .mob-date-box:focus-within { background: var(--surface) !important; border-color: var(--accent) !important; }
/* Chat UI */
[data-theme="dark"] .chat-layout { background: var(--bg) !important; }
[data-theme="dark"] .chat-msg.theirs .chat-bubble { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .chat-input-area { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .chat-input { background: var(--bg) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .chat-sidebar { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .chat-conv-item { border-color: var(--border) !important; }
[data-theme="dark"] .chat-conv-item:hover { background: rgba(255,255,255,0.05) !important; }
[data-theme="dark"] .chat-privacy-notice { background: rgba(255,255,255,0.05) !important; color: var(--ink2) !important; }
/* Toast notifications */
[data-theme="dark"] .toast { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
/* === END DARK MODE === */
* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--bg); color:var(--ink); font-family:Plus Jakarta Sans,sans-serif; overflow-x:hidden; }

/* TOAST */
/* GALLERIA FOTO FULLSCREEN */
.gallery-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.95); z-index:6000; align-items:center; justify-content:center; overflow:hidden; }
.gallery-overlay.open { display:flex; touch-action:pinch-zoom; -webkit-overflow-scrolling:auto; }
.gallery-main-img { max-width:90vw; max-height:80vh; object-fit:contain; border-radius:8px; }
.gallery-close { position:absolute; top:20px; right:24px; color:white; font-size:28px; cursor:pointer; background:none; border:none; font-weight:700; line-height:1; }
.gallery-prev, .gallery-next { position:absolute; top:50%; transform:translateY(-50%); color:white; font-size:32px; cursor:pointer; background:rgba(255,255,255,0.15); border:none; border-radius:50%; width:52px; height:52px; display:flex; align-items:center; justify-content:center; transition:background 0.2s; }
.gallery-prev { left:20px; } .gallery-next { right:20px; }
.gallery-prev:hover, .gallery-next:hover { background:rgba(255,255,255,0.3); }
@media(max-width:480px) { .gallery-prev { left:8px; } .gallery-next { right:8px; } }
.gallery-counter { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); color:white; font-size:13px; background:rgba(0,0,0,0.5); padding:4px 12px; border-radius:20px; }
.gallery-thumbs { position:absolute; bottom:60px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.gallery-thumb { width:48px; height:44px; object-fit:cover; border-radius:4px; cursor:pointer; opacity:0.5; transition:opacity 0.2s; border:2px solid transparent; }
.gallery-thumb.active { opacity:1; border-color:white; }
/* Foto multipla nel dettaglio — stile Airbnb */
.parking-photos-grid { display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:200px 200px; gap:8px; border-radius:16px; overflow:hidden; margin-bottom:24px; cursor:pointer; }
@media(max-width:768px) { .parking-photos-grid { grid-template-columns:1fr; grid-template-rows:250px; } .parking-photos-grid .photo-main { grid-row:1; } .parking-photos-grid > img:not(.photo-main), .parking-photos-grid .photo-show-all { display:none; } .parking-photos-grid .photo-show-all { display:block; } }
.parking-photos-grid img { width:100%; height:100%; object-fit:cover; transition:opacity 0.2s; }
.parking-photos-grid img:hover { opacity:0.9; }
.parking-photos-grid .photo-main { grid-row:1/3; }
.parking-photos-grid .photo-show-all { position:relative; }
.show-all-btn { position:absolute; bottom:12px; right:12px; background:white; color:#222; border:1.5px solid #222; border-radius:8px; padding:7px 14px; font-size:13px; font-weight:700; cursor:pointer; white-space:nowrap; }

.toast { position:fixed; bottom:24px; right:24px; padding:12px 20px; border-radius:8px; font-size:13px; font-weight:600; z-index:10000; transform:translateY(80px); opacity:0; transition:all 0.3s; box-shadow:0 4px 20px rgba(0,0,0,0.15); }
.toast.show { transform:translateY(0); opacity:1; }
.toast-success { background:#2d7a4f; color:white; }
.toast-error { background:#c0392b; color:white; }

/* NAVBAR */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  height: calc(64px + env(safe-area-inset-top, 0px));
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
}
.nav-logo { font-family:Fraunces,serif; font-size:24px; font-weight:900; cursor:pointer; flex-shrink:0; }
.nav-logo span { color:var(--accent); }
.nav-links { display:flex; gap:2px; margin:0 auto; }
.nav-link { padding:10px 16px; border-radius:24px; font-size:14px; font-weight:500; color:var(--ink2); cursor:pointer; transition:all 0.15s; border:none; background:none; font-family:Plus Jakarta Sans,sans-serif; }
.nav-link:hover, .nav-link.active { color:var(--ink); background:var(--bg); }
.nav-right { margin-left:auto; display:flex; align-items:center; gap:10px; flex-shrink:0; }

/* MOBILE BOTTOM NAV */
.mob-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family:Plus Jakarta Sans,sans-serif;
  color: #717171;
  font-size: 10px;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  min-width: 0;
}
.mob-nav-btn span {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-align: center;
}
.mob-nav-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.mob-nav-btn.active { color: #1a5c3a; }
.mob-nav-btn.active svg { stroke: #1a5c3a; }
.mob-nav-btn.active span { font-weight: 700; }
.mob-nav-btn.active::before { content: ''; display: block; width: 24px; height: 2px; background: #1a5c3a; border-radius: 2px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.mob-nav-btn { position: relative; }
.mobnav-center-btn { color: #717171; }
.mobnav-plus-icon { width:44px;height:44px;background:var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(26,92,58,0.3); }
.mob-nav-profile-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid #222; }

@media (max-width: 768px) {
  /* BOTTOM NAV: controlled by JS (iOS only) */
  .nav-links { display: none; }
  .nav-right { display: none; }
  .mob-hamburger { display: flex !important; }
  nav { padding: 0 16px; height: 56px; }
  .search-section { top: 56px !important; }
  .nav-logo { font-size: 22px; }
  body { padding-bottom: env(safe-area-inset-bottom, 0px); overflow-x: hidden; }
  .toast { bottom: calc(env(safe-area-inset-bottom,0px) + 16px); right: 12px; left: 12px; text-align: center; max-width: 100%; border-radius: 12px; font-size: 14px; }

  /* HERO */
  .hero { padding: 32px 20px 28px; min-height: unset; }
  .hero h1 { font-size: 28px; line-height: 1.15; }
  .hero p { font-size: 14px; margin-bottom: 20px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 15px; }
  .hero-stats { gap: 16px; margin-top: 32px; flex-wrap: wrap; }
  .hero-stat-value { font-size: 22px; }

  /* SEARCH SECTION — layout verticale su mobile */
  .search-section { padding: 10px 12px; top: 56px; overflow: visible; }
  .search-box { flex-direction: column; gap: 8px; }
  .search-box > div, .search-box > select, .search-box > input { flex: none !important; width: 100% !important; }
  .search-box .search-input { width: 100%; font-size: 16px; min-height: 48px; padding: 12px 14px; }
  .search-box select.search-input { width: 100% !important; min-height: 48px; }
  .search-box .btn { width: 100%; min-height: 48px; font-size: 16px; margin-top: 0; }
  /* Date su mobile: affiancate */
  .search-dates-row { display: flex; gap: 8px; width: 100%; }
  .search-dates-row .field-wrap { flex: 1; }

  /* HOME SEARCH BOX */
  .home-search-wrap { padding: 0 16px; }

  /* LISTINGS */
  .listings-section { padding: 20px 16px; }
  .listings-grid { grid-template-columns: 1fr; gap: 14px; }
  .listing-card-img { height: 200px !important; }

  /* FILTER BAR */
  .filter-bar { padding: 12px 16px; gap: 8px; overflow-x: auto; flex-wrap: nowrap; }
  .filter-dropdown { white-space: nowrap; }

  /* SECTIONS GENERAL */
  .section { padding: 48px 20px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-steps { grid-template-columns: 1fr; gap: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 48px 20px; }

  /* DASHBOARD MOBILE - sidebar nascosta, accesso via bottom nav */
  #page-dashboard.active { display:block !important; height:auto !important; overflow:visible !important; }
  .dashboard-layout { display:block !important; }
  .dash-sidebar { display: none !important; }
  .dash-content { padding: 16px !important; width: 100% !important; box-sizing: border-box !important; min-height:unset !important; overflow-y: auto !important; }
  #dashtab-newparking { overflow-y: auto !important; padding-bottom: 40px !important; }
  .field input, .field textarea, .field select { width: 100% !important; box-sizing: border-box; }
  .dash-content > div { max-width: 100% !important; }
  .publish-form-wrap { max-width: 100% !important; width: 100% !important; }
  .home-search-bar { flex-direction: column !important; border-radius: 14px !important; }
  .home-search-bar > div { border-right: none !important; border-bottom: 1.5px solid #e5e7eb; }
  .home-search-bar > div:last-child { border-bottom: none !important; }
  .home-search-bar > div[style*="padding:8px"] { border-bottom: none !important; padding: 12px !important; }
  .home-search-bar > div[style*="padding:8px"] .btn { width: 100% !important; }
  .dash-title { font-size: 20px !important; margin-bottom: 16px !important; }

  /* Form row verticale su mobile */
  .form-row { flex-direction: column !important; gap: 0 !important; }
  .form-row .field { width: 100% !important; margin-bottom: 16px !important; }
  .form-row .field:last-child { margin-bottom: 0 !important; }
  /* NO ZOOM SU SAFARI: tutti gli input >= 16px */
  input, select, textarea {
    font-size: 16px !important;
  }
  /* Touch target minimo 44px (linee guida Apple HIG) */
  .btn { min-height: 44px; }
  .mob-nav-btn { min-height: 50px; }
  .filter-chip { min-height: 44px; padding: 8px 14px; font-size: 13px; }

  /* MOBILE MENU OVERLAY */
  .mobile-menu-overlay { display: block; }
  .mobile-menu-drawer { transform: translateX(-100%); }
  .mobile-menu-drawer.open { transform: translateX(0); }

  /* MODALS */
  .modal-box { margin: 16px; width: calc(100% - 32px); max-height: 90vh; overflow-y: auto; }

  /* PARKING DETAIL */
  .parking-detail-layout { flex-direction: column; }
  .parking-detail-sidebar { width: 100%; }
}
.btn { padding:9px 20px; border-radius:8px; border:none; font-family:Plus Jakarta Sans,sans-serif; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.2s; min-height:38px; }
.btn-outline { background:none; border:1.5px solid var(--border); color:var(--ink); }
.btn-outline:hover { border-color:var(--accent); color:var(--accent); }
.btn-primary { background:var(--accent); color:white; }
.btn-primary:hover { background:#154d30; }
.btn-primary:active { background:#0f3d20; transform:scale(0.97); }
.btn-outline:active { background:var(--bg); transform:scale(0.97); }
.listing-card:active { transform:translateY(-1px); opacity:0.95; }

/* SKELETON LOADING */
.skeleton-card { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.skeleton-img { height: 200px; background: linear-gradient(90deg, #f1f5f9 25%, #e8edf2 50%, #f1f5f9 75%); background-size: 200% 100%; animation: skshimmer 1.4s infinite; }
.skeleton-body { padding: 14px; }
.skeleton-line { height: 13px; border-radius: 4px; background: linear-gradient(90deg, #f1f5f9 25%, #e8edf2 50%, #f1f5f9 75%); background-size: 200% 100%; animation: skshimmer 1.4s infinite; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.xshort { width: 40%; }
/* Skeleton per booking/parking card nel dashboard */
.skeleton-dash-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:16px; margin-bottom:12px; }
.skeleton-block { border-radius:6px; background:linear-gradient(90deg,#f1f5f9 25%,#e8edf2 50%,#f1f5f9 75%); background-size:200% 100%; animation:skshimmer 1.4s infinite; }
@keyframes skshimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── HAMBURGER BUTTON ── */
.mob-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  margin-left: auto;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: background 0.15s;
}
.mob-hamburger:hover { background: rgba(0,0,0,0.05); }
.mob-hamburger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── SLIDE DRAWER MOBILE (da destra, stile SpotHero) ── */
.mob-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1200;
  backdrop-filter: blur(2px);
}
.mob-drawer-overlay.open { display: block; animation: drawerFadeIn 0.25s ease; }
@keyframes drawerFadeIn { from{opacity:0} to{opacity:1} }

.mob-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--surface);
  z-index: 1201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}
.mob-drawer.open { transform: translateX(0); }

.mob-drawer-header {
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.mob-drawer-logo {
  font-family:Fraunces,serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}
.mob-drawer-logo span { color: var(--accent); }
.mob-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 8px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.mob-drawer-close:hover { background: #f5f5f5; }

.mob-drawer-user {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: none;
}
.mob-drawer-user.show { display: block; }
.mob-drawer-username { font-weight: 700; font-size: 15px; color: var(--ink); }
.mob-drawer-email { font-size: 12px; color: #888; margin-top: 2px; }

.mob-drawer-nav { padding: 8px 0 calc(80px + env(safe-area-inset-bottom, 0px)) 0; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mob-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family:Plus Jakarta Sans,sans-serif;
  transition: background 0.1s;
  border-bottom: 1px solid #f8f8f8;
}
.mob-drawer-item:hover { background: #f8f6f1; }
.mob-drawer-item:last-child { border-bottom: none; }
.mob-drawer-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; color: #666; }
.mob-drawer-item.primary { color: var(--accent); font-weight: 700; }
.mob-drawer-item.primary svg { color: var(--accent); }
.mob-drawer-item.danger { color: #dc2626; }
.mob-drawer-item.danger svg { color: #dc2626; }

.mob-drawer-section-title {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mob-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* ── SEARCH TYPE TABS (stile SpotHero) ── */
.search-type-tabs {
  display: flex;
  background: #e8e3da;
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 16px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.search-type-tab {
  padding: 8px 24px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: #717171;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family:Plus Jakarta Sans,sans-serif;
  white-space: nowrap;
}
.search-type-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.search-type-tab:hover:not(.active) { color: var(--ink); }

/* Tab nella SRP (su sfondo chiaro) */
.srp-type-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.srp-type-tab {
  padding: 9px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family:Plus Jakarta Sans,sans-serif;
  white-space: nowrap;
}
.srp-type-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Mob search tabs */
.mob-search-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 16px;
}
.mob-search-tab {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family:Plus Jakarta Sans,sans-serif;
  transition: all 0.2s;
}
.mob-search-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mob-nav-btn:active { opacity:0.7; transform:scale(0.93); }
.booking-card { transition: box-shadow 0.15s; }
.booking-card:active { box-shadow: 0 0 0 2px var(--accent); }
.btn-accent { background:var(--accent2); color:white; }
.btn-accent:hover { background:#cc5516; }
.btn-sm { padding:6px 14px; font-size:13px; }

/* PAGES */
.page { display:none; }
.page.active { display:block; overflow-x: hidden; }
/* Dashboard: nessun override speciale su page, il grid gestisce tutto */

/* HERO */
.hero {
  background: #f8f7f4;
  color: var(--ink);
  padding: 48px 40px 40px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  text-align: center;
  border-bottom: 1px solid #e8e3da;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 70% 50%, rgba(26,92,58,0.05) 0%, transparent 70%),
              radial-gradient(ellipse 60% 80% at 20% 80%, rgba(232,98,26,0.04) 0%, transparent 60%);
  overflow: hidden;
  pointer-events: none;
}
.hero-content { position:relative; max-width:720px; width:100%; }
.hero-tag {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(0,0,0,0.04);
  border:1px solid rgba(0,0,0,0.08);
  padding:6px 14px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.5px;
  margin-bottom:20px;
}
.hero h1 {
  font-family:Fraunces,serif;
  font-size:52px;
  font-weight:900;
  line-height:1.08;
  margin-bottom:12px;
}
.hero h1 em { color:#6dbb8a; font-style:normal; }
.hero p { font-size:17px; color:#717171; line-height:1.6; margin-bottom:32px; }
.hero-btns { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.hero-stats { display:flex; gap:32px; margin-top:40px; justify-content:center; }
.hero-stat-value { font-family:Fraunces,serif; font-size:28px; font-weight:700; }
.hero-stat-label { font-size:12px; color:#717171; margin-top:2px; }

/* Hero search bar — dentro la hero stile Airbnb */
.hero-search-wrap {
  margin-top:32px;
  position:relative;
  z-index:300;
}
.hero-search-box {
  display:flex;
  align-items:stretch;
  background:white;
  border-radius:60px;
  box-shadow:0 4px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  overflow:visible;
  max-width:760px;
  margin:0 auto;
  padding:8px 8px 8px 24px;
  gap:0;
}
.hero-search-field {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:8px 16px;
  border-right:1px solid #e0e0e0;
  min-width:0;
  cursor:pointer;
  position:relative;
}
.hero-search-field:last-of-type { border-right:none; }
.hero-search-field label {
  font-size:11px;
  font-weight:700;
  color:#1a1a1a;
  text-transform:uppercase;
  letter-spacing:0.4px;
  margin-bottom:2px;
  cursor:pointer;
}
.hero-search-field input, .hero-search-field select {
  border:none;
  outline:none;
  font-family:Plus Jakarta Sans,sans-serif;
  font-size:14px;
  color:#555;
  background:transparent;
  padding:0;
  width:100%;
  cursor:pointer;
}
.hero-search-btn {
  flex-shrink:0;
  background:var(--accent);
  color:white;
  border:none;
  border-radius:50px;
  padding:14px 24px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  font-family:Plus Jakarta Sans,sans-serif;
  transition:background 0.15s;
  align-self:center;
}
.hero-search-btn:hover { background:#14532d; }

/* Category chips stile Airbnb */
.home-category-strip {
  border-bottom:1px solid var(--border);
  padding:0 40px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  background:var(--surface);
  position:sticky;
  top:64px;
  z-index:200;
}
@media(max-width:768px) { .home-category-strip { top:56px; } }
.home-category-strip::-webkit-scrollbar { display:none; }
.home-category-inner {
  display:flex;
  gap:0;
  max-width:1200px;
  margin:0 auto;
}
.home-cat-item {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:16px 20px 12px;
  cursor:pointer;
  opacity:0.6;
  transition:all 0.15s;
  border-bottom:2px solid transparent;
  white-space:nowrap;
  flex-shrink:0;
  font-size:12px;
  font-weight:600;
  color:var(--ink);
}
.home-cat-item:hover { opacity:1; }
.home-cat-item.active { opacity:1; border-bottom-color:var(--ink); }
.home-cat-icon { font-size:22px; }

/* SEARCH BOX sticky (pagina search) */
.search-section {
  background:var(--surface);
  border-bottom:1px solid var(--border);
  padding:20px 40px;
  position:sticky;
  top:64px;
  z-index:200;
  box-shadow:var(--shadow);
  overflow:visible;
}
.search-box {
  display:flex;
  gap:10px;
  max-width:800px;
  margin:0 auto;
  align-items:center;
}
.search-input {
  flex:1;
  padding:12px 16px;
  border:1.5px solid var(--border);
  border-radius:10px;
  font-family:Plus Jakarta Sans,sans-serif;
  font-size:14px;
  color:var(--ink);
  background:var(--bg);
  outline:none;
  transition:border-color 0.2s;
}
.search-input:focus { border-color:var(--accent); background:white; }
select.search-input { cursor:pointer; }

/* LISTINGS */
.listings-section { padding:32px 40px; max-width:1200px; margin:0 auto; }
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.section-title { font-family:Fraunces,serif; font-size:24px; font-weight:700; }
.section-count { font-size:13px; color:var(--ink2); }

.listings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.listing-card {
  background:transparent;
  border:none;
  border-radius:0;
  overflow:visible;
  box-shadow:none;
  transition:all 0.2s;
  cursor:pointer;
  display:flex;
  flex-direction:column;
}
.listing-card:hover .listing-img img { transform:scale(1.04); }
.listing-img {
  height:220px;
  background:var(--bg);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:48px;
  position:relative;
}
.listing-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.3s; border-radius:16px; }
.listing-type {
  position:absolute;
  top:12px;
  left:12px;
  background:white;
  color:var(--ink);
  padding:4px 10px;
  border-radius:6px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
  box-shadow:0 1px 4px rgba(0,0,0,0.15);
}
.listing-heart {
  position:absolute;
  top:12px;
  right:12px;
  background:none;
  border:none;
  cursor:pointer;
  font-size:22px;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition:transform 0.15s;
  padding:10px;
  min-width:44px;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.listing-heart:hover { transform:scale(1.15); }
.listing-price {
  display:inline;
  font-weight:700;
  color:var(--ink);
  font-size:15px;
}
.listing-body { padding:12px 4px 0; }
.listing-title { font-weight:600; font-size:15px; margin-bottom:2px; color:var(--ink); }
.listing-addr { font-size:13px; color:var(--ink2); margin-bottom:6px; }
.listing-features { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:8px; }
.feat { background:var(--bg); border:1px solid var(--border); padding:2px 8px; border-radius:5px; font-size:11px; color:var(--ink2); font-weight:500; }
.listing-footer { display:flex; align-items:center; justify-content:space-between; padding-top:0; border-top:none; }
.listing-rating { font-size:13px; color:var(--ink); }
.listing-rating strong { color:var(--ink); }
.btn-book { padding:7px 16px; font-size:12px; }

/* MODAL */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:5000; align-items:center; justify-content:center; overflow-y:auto; padding:20px; }
.modal-overlay.open { display:flex; }
.modal { background:var(--surface); border-radius:16px; width:560px; max-width:min(560px, calc(100vw - 40px)); box-shadow:0 20px 60px rgba(0,0,0,0.3); overflow:hidden; }
.modal-header { padding:20px 24px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.modal-title { font-family:Fraunces,serif; font-size:22px; font-weight:700; }
.modal-close-btn { background:none; border:none; font-size:24px; cursor:pointer; color:var(--ink2); padding:4px; line-height:1; border-radius:6px; }
@media(max-width:768px) { .modal-close-btn { padding:10px; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; } }
.modal-body { padding:20px 24px; overflow-y:auto; }
.modal-footer { padding:16px 24px; border-top:1px solid var(--border); display:flex; gap:10px; justify-content:flex-end; }
@media(max-width:768px) {
  .modal-overlay { align-items:flex-end; padding:0; }
  /* BUG J+L FIX: safe-area su notch e home indicator */
  .modal { width:100%; max-width:100%; border-radius:20px 20px 0 0; max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); display:flex; flex-direction:column; overflow-x:hidden; }
  .modal-body { overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch; flex:1; padding:16px 20px; overscroll-behavior:contain; max-height:calc(100dvh - 180px); }
  .modal-header { padding:16px 20px 12px; }
  .modal-header::before { content:''; display:block; width:40px; height:4px; background:#d1d5db; border-radius:2px; margin:0 auto 12px; }
  .modal-footer { padding: 14px 20px calc(14px + env(safe-area-inset-bottom,0px)); flex-direction:column; gap:8px; }
  .modal-footer .btn { width:100%; min-height:50px; font-size:16px; justify-content:center; }
  .modal-title { font-size:18px; }
}
.field { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.field label { font-size:11px; font-weight:700; color:var(--ink2); letter-spacing:0.5px; text-transform:uppercase; }
.field input, .field select, .field textarea {
  padding:11px 14px;
  border:1.5px solid var(--border);
  border-radius:8px;
  font-family:Plus Jakarta Sans,sans-serif;
  font-size:14px;
  color:var(--ink);
  background:var(--bg);
  outline:none;
  transition:border-color 0.2s;
  width:100%;
  box-sizing:border-box;
}
.field input:focus, .field select:focus { border-color:var(--accent); background:white; }
.field input.field-error, .field select.field-error, .field textarea.field-error { border-color:#dc2626 !important; background:#fff5f5 !important; }
.field-error-msg { font-size:11px; color:#dc2626; margin-top:3px; display:none; }
.field input.field-error + .field-error-msg { display:block; }
input::-webkit-contacts-auto-fill-button, input::-webkit-credentials-auto-fill-button { visibility:hidden; display:none !important; pointer-events:none; }
.form-row { display:flex; flex-direction:row; gap:12px; align-items:flex-start; }
.form-row .field { margin-bottom:0; flex:1; min-width:0; }
@media(max-width:480px) { .form-row { flex-direction:column; } .form-row .field { width:100%; } }
@media(max-width:480px) { .form-row .field { margin-bottom:16px; width:100%; } }
.price-breakdown { background:var(--bg); border-radius:10px; padding:16px; margin:12px 0; }
.price-row { display:flex; justify-content:space-between; font-size:13px; padding:5px 0; }
.price-row.total { font-weight:700; font-size:15px; border-top:1px solid var(--border); padding-top:10px; margin-top:5px; }

/* AUTH PAGES */
.auth-container { max-width:460px; margin:60px auto; padding:20px; }
.auth-card { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:36px; box-shadow:var(--shadow); }
@media(max-width:768px) {
  .auth-container { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
.auth-title { font-family:Fraunces,serif; font-size:28px; font-weight:800; margin-bottom:6px; }
.auth-sub { font-size:14px; color:var(--ink2); margin-bottom:20px; }
.auth-switch { text-align:center; margin-top:20px; font-size:13px; color:var(--ink2); }
.auth-switch a { color:var(--accent); cursor:pointer; font-weight:600; text-decoration:none; }
.auth-switch a:hover { text-decoration:underline; }
.auth-err { color:#c0392b; font-size:13px; margin-bottom:12px; display:none; }
.social-login { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.btn-social { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:11px; border:1.5px solid var(--border); border-radius:10px; background:white; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.2s; color:var(--ink); }
.btn-social:hover { border-color:#aaa; background:#f8f8f8; }
.btn-social img { width:20px; height:20px; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:16px 0; color:var(--ink2); font-size:12px; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }

/* DASHBOARD CLIENTE */
.dashboard-layout { display:grid; grid-template-columns:220px 1fr; min-height:calc(100vh - 64px); }
.dash-sidebar { background:var(--surface); border-right:1px solid var(--border); padding:24px 0; display:flex; flex-direction:column; position:sticky; top:64px; height:calc(100vh - 64px); overflow-y:auto; align-self:start; }
.dash-content { padding:32px; max-width:100%; box-sizing:border-box; }
.dash-nav-item { padding:10px 24px; cursor:pointer; font-size:13px; font-weight:500; color:var(--ink2); transition:all 0.15s; display:flex; align-items:center; gap:8px; }
.dash-nav-item:hover { color:var(--ink); background:var(--bg); }
.dash-nav-item.active { color:var(--accent); background:var(--accent-light); font-weight:600; }
.dash-title { font-family:Fraunces,serif; font-size:24px; font-weight:700; margin-bottom:20px; }

/* BOOKING CARD */
.booking-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:16px; margin-bottom:12px; width:100%; box-sizing:border-box; }
.booking-card-top { display:flex; gap:12px; align-items:flex-start; width:100%; margin-bottom:12px; }

/* TIMELINE */
.booking-timeline { display:flex; align-items:center; width:100%; margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }
.tl-step { display:flex; flex-direction:column; align-items:center; gap:4px; flex-shrink:0; }
.tl-dot { width:32px; height:32px; border-radius:50%; background:var(--border); display:flex; align-items:center; justify-content:center; font-size:14px; color:var(--ink2); transition:all 0.2s; }
.tl-label { font-size:10px; font-weight:600; color:var(--ink2); text-align:center; white-space:nowrap; }
.tl-line { flex:1; height:2px; background:var(--border); margin:0 4px; margin-bottom:16px; transition:background 0.2s; }
.tl-line-done { background:var(--accent); }
.tl-done .tl-dot { background:var(--accent); color:white; font-size:12px; }
.tl-done .tl-label { color:var(--accent); }
.tl-active .tl-dot { background:var(--accent); color:white; box-shadow:0 0 0 4px var(--accent-light); }
.tl-active .tl-label { color:var(--accent); font-weight:700; }
.timeline-cancelled { font-size:13px; font-weight:600; color:#c0392b; padding:8px 12px; background:#fdecea; border-radius:8px; width:100%; text-align:center; }

/* SEARCH DATE */
.search-box { flex-wrap:wrap; }
@media(max-width:768px) { .search-box > div, .search-box > select, .search-box > input { flex:1 1 45% !important; min-width:140px; } }
.booking-icon { width:44px; height:44px; background:var(--bg); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.booking-info { flex:1; min-width:0; }
.booking-name { font-weight:700; font-size:15px; margin-bottom:4px; line-height:1.3; word-break:break-word; }
.booking-dates { font-size:13px; color:var(--ink2); margin-bottom:2px; line-height:1.4; }
.booking-status { margin-left:auto; }

/* SECTION */
.section-page { padding:48px 40px; max-width:1000px; margin:0 auto; }
/* LAYOUT CONSTRAINT SCHERMI LARGHI */
.listings-section { max-width:1400px; }
#page-search .search-list-panel { min-width:320px; }

/* EMPTY STATE */
.empty { text-align:center; padding:60px 20px; color:var(--ink2); }
.empty-icon { font-size:48px; margin-bottom:12px; }

/* HOW IT WORKS */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding:48px 40px; max-width:1000px; margin:0 auto; }
.step { text-align:center; }
.step-num { width:48px; height:48px; background:var(--accent); color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:Fraunces,serif; font-size:20px; font-weight:900; margin:0 auto 16px; }
.step h3 { font-family:Fraunces,serif; font-size:18px; font-weight:700; margin-bottom:8px; }
.step p { font-size:13px; color:var(--ink2); line-height:1.6; }

/* LOADING */
.loading { text-align:center; padding:40px; color:var(--ink2); }
.spinner { display:inline-block; width:18px; height:18px; border:2px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin 0.8s linear infinite; margin-right:8px; vertical-align:middle; }
@keyframes spin { to { transform:rotate(360deg); } }

.badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
.badge-green { background:#e8f5ee; color:#2d7a4f; }
.badge-gold { background:#fdf8e8; color:#b8860b; }
.badge-red { background:#fdecea; color:#c0392b; }
.badge-grey { background:#f0ede8; color:#7a7368; }
@media(max-width:768px) {
  .owner-stats-grid { grid-template-columns: 1fr !important; padding: 24px 16px !important; }
  .owner-stats-grid > div { border: none !important; border-bottom: 1px solid var(--border) !important; padding: 16px 8px !important; }
  .owner-stats-grid > div:last-child { border-bottom: none !important; }
}

/* ═══════════════════════════════════════════════
   MOBILE FIX COMPLETO — tutti i 28 problemi
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── HERO ── */
  .hero { padding: 36px 20px 32px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14px; margin-bottom: 20px; }
  .hero-stats { gap: 12px; margin-top: 24px; flex-wrap: wrap; }
  .hero-stat-value { font-size: 20px; }
  .hero-stat-label { font-size: 11px; }

  /* ── STEPS (3 colonne → 1) ── */
  .steps { grid-template-columns: 1fr !important; padding: 32px 20px !important; gap: 20px; }

  /* ── SEZIONI con padding 40px hardcoded ── */
  [style*="padding:48px 40px"], [style*="padding: 48px 40px"] { padding: 32px 16px !important; }
  [style*="padding:60px 40px"], [style*="padding: 60px 40px"] { padding: 40px 16px !important; }
  [style*="padding:40px"] { padding: 24px 16px !important; }
  [style*="max-width:700px"], [style*="max-width: 700px"] { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="max-width:980px"], [style*="max-width: 980px"] { padding-left: 16px !important; padding-right: 16px !important; }

  /* ── HOME: sezione I più richiesti ── */
  [style*="padding:48px 40px 16px"] { padding: 24px 16px 12px !important; }
  [style*="padding:48px 40px 24px"] { padding: 24px 16px 12px !important; }

  /* ── HOME/SEARCH search box ── */
  .search-box { flex-direction: column !important; gap: 6px !important; align-items: stretch !important; }
  .search-box > * { flex: none !important; width: 100% !important; }
  .search-box input, .search-box select { font-size: 16px !important; min-height: 44px !important; }
  /* date affiancate su mobile per risparmiare spazio */
  .search-box > div:has(input[type="date"]) { width: 100% !important; }
  .search-section { padding: 8px 12px 14px !important; }

  /* ── OWNER: griglia stat 3 col → 1 col ── */
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; gap: 0 !important; }
  [style*="border-left:1px solid var(--border);border-right:1px solid var(--border)"] {
    border-left: none !important; border-right: none !important;
    border-top: 1px solid var(--border) !important; border-bottom: 1px solid var(--border) !important;
  }

  /* ── OWNER: hero font e padding ── */
  .owner-hero-section { padding: 40px 20px !important; }
  [style*="font-size:48px"] { font-size: 28px !important; line-height: 1.15 !important; }
  [style*="font-size:42px"] { font-size: 24px !important; }

  /* ── OWNER / HOWITWORKS: FAQ padding ── */
  [style*="padding:40px 40px 60px"] { padding: 24px 16px 40px !important; }

  /* ── CTA buttons affiancati → colonna ── */
  [style*="display:flex;gap:12px;justify-content:center;flex-wrap:wrap"] { flex-direction: column !important; align-items: stretch !important; }
  [style*="display:flex;gap:12px;justify-content:center;flex-wrap:wrap"] .btn { width: 100% !important; text-align: center; }

  /* ── AUTH ── */
  .auth-container {
    margin: 24px auto !important;
    padding: 12px !important;
    /* spazio sotto per non finire sotto la bottom nav */
    padding-bottom: calc(env(safe-area-inset-bottom,0px) + 24px) !important;
  }
  .auth-card { padding: 24px 20px !important; }

  /* ── FILTRI RICERCA: mostra bottone toggle su mobile ── */
  #filterToggleBtn { display: block !important; }
  .filters-row { display: none; flex-direction: column; gap: 10px; }
  .filters-row.open { display: flex !important; }
  .filters-chips { margin-top: 14px; overflow-x: auto; flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filters-chips::after { content: ''; flex-shrink: 0; width: 1px; }
  .filter-input-sm { width: 100% !important; min-height: 44px; font-size: 16px !important; }
  .filter-select { width: 100% !important; min-height: 44px; font-size: 16px !important; }
  .search-filters { padding: 12px 16px !important; }
  .filter-field { width: 100%; }

  /* ── FILTRI: applica/reset a piena larghezza ── */
  .filters-row .btn { width: 100% !important; min-height: 44px; margin-top: 4px; }
  .filters-row button[onclick="resetFilters()"] { width: 100% !important; min-height: 36px; }

  /* ── DASHBOARD: stats 4 col → 2 col ── */
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* ── DASHBOARD: profilo Stripe buttons → colonna ── */
  #stripeDashBtn { margin-left: 0 !important; margin-top: 8px !important; display: block !important; }
  [id="dashtab-profile"] .btn { width: 100%; margin-bottom: 8px; }

  /* ── NOTIFICHE: panel a piena larghezza su mobile ── */
  .notif-panel { right: 8px !important; left: 8px !important; width: auto !important; top: 56px !important; max-height: calc(100vh - 120px); overflow-y: auto; }

  /* ── CHAT: bottone torna alle conversazioni ── */
  .chat-layout { height: calc(100vh - 56px) !important; overflow: hidden !important; display: grid !important; grid-template-rows: 1fr !important; }
  .chat-in-fullscreen .chat-layout { height: calc(100vh - 56px) !important; border-radius: 0 !important; border: none !important; }
  .chat-input { font-size: 16px !important; }
  .np-services-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .np-service-item { padding: 10px 12px !important; min-height: 52px; }
  /* Chat input area migliorata su mobile */
  .chat-input-area { padding: 10px 12px !important; gap: 8px !important; }
  .chat-input { border-radius: 22px !important; padding: 10px 16px !important; background: var(--bg) !important; border-color: var(--border) !important; }
  .chat-send-btn { border-radius: 50% !important; width: 44px !important; height: 44px !important; padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
  .chat-back-btn { display: flex !important; }

  /* ── BACK TO TOP: non sovrapporsi a mobile-book-bar ── */
  #backToTopBtn { bottom: 130px !important; }

  /* ── PARKING DETAIL: bottone torna ai risultati ── */
  .back-btn {
    min-height: 44px !important; font-size: 15px !important;
    padding: 10px 0 !important;
  }

  /* ── FEATURED GRID: 2 colonne Airbnb style (regola nel blocco sotto) ── */
  /* #featuredGrid — gestito da .mob-home-top section / Airbnb overhaul */

  /* ── TESTIMONIALS: griglia → colonna ── */
  [style*="grid-template-columns:repeat(auto-fill,minmax(280px"] { grid-template-columns: 1fr !important; }

  /* ── GARANZIE: griglia → colonna ── */
  [style*="grid-template-columns:repeat(auto-fill,minmax(180px"] { grid-template-columns: 1fr !important; }

  /* ── SEZIONE "I più richiesti": titolo e padding ── */
  [style*="padding:48px 40px 16px;max-width:1200px"] { padding: 24px 16px 12px !important; }

  /* ── FORM pubblica: max-width full ── */
  [id="dashtab-newparking"] > div { max-width: 100% !important; }

  /* Griglia servizi pubblica parcheggio */
  .np-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
  }
  .np-service-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    box-sizing: border-box;
    transition: all 0.15s;
    user-select: none;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    gap: 10px;
  }
  .np-service-item:hover { border-color: var(--accent); }
  .np-service-item input[type="checkbox"] {
    order: 2;
    width: 22px;
    height: 22px;
    min-width: 22px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
  }
  .np-service-item .svc-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
  }
  .np-service-item .svc-emoji { font-size: 18px; }
  .np-service-item .svc-text { font-size: 14px; font-weight: 500; }
  .np-service-item:has(input:checked) {
    border-color: var(--accent);
    background: #f0faf4;
  }
  .np-service-item:has(input:checked) .svc-text {
    color: var(--accent);
    font-weight: 600;
  }

  /* ── MOBILE BOOK BAR: padding e bottom gestiti nel blocco parking-page ── */
  /* padding-bottom rimosso: safe-area già incluso nel bottom:calc(64px + ...) */
}

/* ═══════════════════════════════════════════
   AIRBNB-STYLE MOBILE UX — complete overhaul
   ═══════════════════════════════════════════ */

/* ── 1. HERO: nascosto su mobile, sostituito da compact bar ── */
@media (max-width: 768px) {
  #page-home .hero { display: none !important; }
  #page-home .search-section { display: none !important; }
  .home-category-strip { display: none !important; }
  .desktop-only-block { display: none !important; }
  #page-home > div[style*="max-width:1280px"] { padding: 16px 16px 32px !important; }

  /* Compact mobile home top bar */
  .mob-home-top {
    background: #fff;
    padding: 12px 16px 0;
    position: sticky;
    top: 56px;
    z-index: 115;
    border-bottom: 1px solid #f0f0f0;
  }
  .mob-search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 40px;
    padding: 10px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.15s;
  }
  .mob-search-pill:active { box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
  .mob-search-pill svg { width: 18px; height: 18px; stroke: #222; fill: none; stroke-width: 2; flex-shrink: 0; }
  .mob-search-pill-text { flex: 1; }
  .mob-search-pill-text strong { display: block; font-size: 14px; font-weight: 700; color: #222; }
  .mob-search-pill-text span { font-size: 12px; color: #717171; }
  .mob-search-pill-filter {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; background: #fff;
  }
  .mob-search-pill-filter svg { width: 14px; height: 14px; stroke: #222; fill: none; stroke-width: 2; }

  /* City filter chips horizontal scroll */
  .mob-city-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mob-city-chips::-webkit-scrollbar { display: none; }
  .mob-city-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    font-size: 13px; font-weight: 500;
    background: #fff; color: #444;
    cursor: pointer; white-space: nowrap;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s;
  }
  .mob-city-chip.active {
    background: #222; color: #fff; border-color: #222;
  }

  /* Home page: full white bg, featured grid with padding */
  #page-home { background: #fff; }
  #page-home > div[style*="padding:48px 40px 16px"] { padding: 20px 16px 12px !important; }
  #page-home > div[style*="max-width:1440px"] { padding: 16px 16px 32px !important; }
  #featuredGrid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .listing-img { height: 200px !important; }
  .listing-title { font-size: 15px !important; line-height: 1.3 !important; }
  .listing-price-main { font-size: 15px !important; }
  #homeFeaturedTitle { font-size: 18px !important; }
  #homeFeaturedSub { display: none !important; }
  /* Spazio sufficiente sotto sticky bar per il titolo */
  #page-home > div[style*="max-width:1440px"] > div:first-child { margin-bottom: 16px !important; }
  #page-home .steps { display: none !important; }
  #page-home > div[style*="Come funziona"] { display: none; }
  #page-home > div[style*="text-align:center;padding:48px 40px 24px"] { display: none !important; }
  /* Come funziona — 1 colonna su mobile */
  #page-home > div[style*="background:white;padding:48px 40px"] { padding: 32px 16px !important; }
  #page-home > div[style*="background:white;padding:48px 40px"] [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; gap: 20px !important; }
  /* Nascondi app badges su mobile — spazio prezioso */
  .mob-home-top > div:last-child { display: none !important; }
  /* Nascondi home map section su mobile */
  .home-map-section { display: none !important; }
  /* Monthly CTA banner su mobile */
  .monthly-cta-pill { font-size: 13px !important; padding: 12px 16px !important; white-space: normal !important; line-height: 1.4 !important; }
  /* Compatta il search pill */
  .mob-home-top { padding: 10px 16px 0 !important; }
  .mob-search-pill { margin-bottom: 8px !important; }
  .mob-city-chips { padding-bottom: 8px !important; }
}

/* ── 2. MOBILE SEARCH OVERLAY (Airbnb full-screen) ── */
.mob-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  flex-direction: column;
  overflow-y: auto;
  /* Fix iOS keyboard push */
  max-height: 100vh;
  max-height: -webkit-fill-available;
}
.mob-search-overlay.open { display: flex; }
.mob-search-overlay-header {
  display: flex;
  align-items: center;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.mob-search-overlay-header button {
  background: none; border: none; padding: 6px; cursor: pointer;
  border-radius: 50%; color: #222;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.mob-search-overlay-header button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.mob-search-overlay-header h2 { font-family:Fraunces,serif; font-size: 18px; font-weight: 800; flex: 1; }
.mob-overlay-section {
  padding: 16px 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mob-overlay-section h3 {
  font-size: 13px; font-weight: 700; color: #717171;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.mob-overlay-section .mob-overlay-input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #e0e0e0; border-radius: 12px;
  font-size: 16px; font-family:Plus Jakarta Sans,sans-serif;
  color: #222; background: #fafafa; outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.mob-overlay-section .mob-overlay-input:focus { border-color: #222; background: #fff; }
.mob-date-row { display: flex; gap: 10px; margin-bottom: 16px; }
.mob-date-box {
  flex: 1; padding: 14px 12px;
  border: 1.5px solid #e0e0e0; border-radius: 12px;
  background: #fafafa; cursor: pointer;
  transition: border-color 0.2s;
}
.mob-date-box:focus-within { border-color: #222; background: #fff; }
.mob-date-box label { display: block; font-size: 12px; font-weight: 700; color: #717171; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.mob-date-box input { border: none; background: transparent; font-size: 14px; font-weight: 600; color: #222; width: 100%; outline: none; font-family:Plus Jakarta Sans,sans-serif; }
.mob-type-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; }

/* ── SERVIZI PILL (stile SpotHero) ── */
.svc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.svc-pill:hover { border-color: var(--accent); color: var(--accent); }
.svc-pill.selected { background: #f0faf4; border-color: var(--accent); color: var(--accent); font-weight: 600; }

.mob-type-chip {
  padding: 8px 16px; border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  font-size: 13px; font-weight: 500;
  background: #fff; color: #444;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
}
.mob-type-chip.active { background: #222; color: #fff; border-color: #222; }
.mob-search-overlay-footer {
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.mob-search-overlay-footer button {
  width: 100%; padding: 16px;
  background: #1a5c3a; color: #fff;
  border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700;
  font-family:Plus Jakarta Sans,sans-serif;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.mob-search-overlay-footer button:active { background: #154d30; }

/* ── 3. CARD REDESIGN — prezzo più visibile, cuore in alto a destra ── */
.listing-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
/* Prezzo: rimuovi dal badge verde sull'immagine, mettilo nel body */
.listing-price-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px; font-weight: 700;
}
.listing-body { padding: 10px 2px 0; display: flex; flex-direction: column; flex: 1; }
.listing-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; line-height: 1.3; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: auto; }
.listing-addr { font-size: 13px; color: #717171; margin-bottom: 4px; }
.listing-price-row {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 4px;
}
.listing-price-main { font-size: 15px; font-weight: 700; color: #222; }
.listing-price-unit { font-size: 13px; color: #717171; }
.listing-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 6px; border-top: none;
  margin-top: auto;
}
.listing-rating { font-size: 13px; color: #222; display: flex; align-items: center; gap: 3px; }
.listing-rating strong { color: #222; font-weight: 700; }

/* Card grid mobile: 2 colonne strette */
@media (max-width: 768px) {
  .listings-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .listing-card { border-radius: 12px; box-shadow: none; border: none; }
  .listing-img { height: 160px !important; border-radius: 12px; overflow: hidden; }
  .listing-body { padding: 8px 4px 10px !important; }
  .listing-title { font-size: 13px !important; font-weight: 700 !important; }
  .listing-addr { font-size: 11px !important; margin-bottom: 4px !important; }
  .listing-price-main { font-size: 13px !important; font-weight: 800 !important; }
  .listing-price-unit { font-size: 11px !important; }
  .btn-book { display: none !important; }
  .listing-footer { padding-top: 6px !important; border-top: none !important; }
  .listing-rating { font-size: 12px !important; }
  .fav-btn { font-size: 18px !important; top: 8px !important; right: 8px !important; width: 32px !important; height: 32px !important; display: flex !important; align-items: center !important; justify-content: center !important; background: rgba(255,255,255,0.9) !important; border-radius: 50% !important; }
  .listing-type { font-size: 9px !important; padding: 2px 6px !important; }
}

/* ── 4. BOTTOM NAV: pulita, uniforme, no verde sul pubblica ── */
.mob-nav-btn {
  color: #717171;
}
.mob-nav-btn.active {
  color: #222;
}
.mob-nav-btn svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.mob-nav-btn.active svg {
  stroke-width: 2.2;
}
/* Nessun cerchio verde sul pubblica */
.mobnav-plus-icon { display: none !important; }

/* ── 5. HOME BACKGROUND: bianco su mobile ── */
@media (max-width: 768px) {
  body { background: #fff; }
}
/* ── BUG 3 FIX: parking detail grid responsive ── */
@media (max-width: 768px) {
  .parking-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  /* price box su mobile: mostra sotto il contenuto, senza sticky */
  #page-parking .parking-detail-grid > div:last-child { display: block !important; }
  #page-parking .parking-page-price-box { position: static !important; box-shadow: none !important; border: 1.5px solid var(--border) !important; margin-top: 24px; }
  /* Per rental detail: mostra il form sotto il contenuto, senza sticky */
  #page-rentalDetail .parking-detail-grid > div:last-child { display: block !important; }
  #page-rentalDetail .parking-page-price-box { position: static !important; box-shadow: none !important; border: 1.5px solid var(--border) !important; margin-top: 24px; }
  .parking-page-title { font-size: 22px !important; }
  .parking-page-photos { aspect-ratio: 4/3 !important; }
}


/* ═══════════════════════════════════════════
   SEARCH PAGE — AIRBNB MOBILE OVERHAUL
   ═══════════════════════════════════════════ */

/* ── SRP compact bar: nascosta di default, visibile solo su mobile ── */
.srp-compact-bar  { display: none; }
.srp-chips-strip  { display: none; }
/* ── mob-home-top: nascosta di default, visibile solo su mobile ── */
.mob-home-top     { display: none; }
/* ── srp-filter-overlay: bottom sheet mobile, nascosto su desktop ── */
.srp-filter-overlay { display: none; }

@media (max-width: 768px) {
  /* Nasconde il form su mobile */
  #page-search .search-section { display: none !important; }

  /* Mostra compact bar e chips strip solo su mobile */
  .srp-compact-bar { display: flex; }
  .srp-chips-strip { display: flex; }
  /* Mostra mob-home-top solo su mobile */
  .mob-home-top    { display: block; }
}

@media (max-width: 768px) {
  .srp-compact-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 10px;
    position: sticky;
    top: 56px;
    z-index: 120;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
  }
  .srp-compact-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 40px;
    padding: 9px 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .srp-compact-pill svg { width:16px;height:16px;stroke:#222;fill:none;stroke-width:2.2;flex-shrink:0; }
  .srp-compact-pill-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
    color: #222;
  }
  .srp-compact-pill-sub {
    font-size: 11px;
    font-weight: 400;
    color: #717171;
  }
  .srp-filter-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .srp-filter-btn svg { width:15px;height:15px;stroke:#222;fill:none;stroke-width:2; }
  .srp-filter-dot {
    position: absolute; top: 3px; right: 3px;
    width: 7px; height: 7px;
    background: #1a5c3a; border-radius: 50%;
    display: none;
  }
  .srp-filter-dot.show { display: block; }

  /* ── CHIPS STRIP (tipo Airbnb categoria) ── */
  .srp-chips-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: calc(56px + 60px); /* nav + compact bar */
    z-index: 110;
  }
  .srp-chips-strip::-webkit-scrollbar { display: none; }
  .srp-chip {
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    font-size: 13px; font-weight: 600;
    background: #fff; color: #444;
    cursor: pointer; white-space: nowrap;
    min-height: 38px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s;
    display: flex; align-items: center; gap: 4px;
  }
  .srp-chip.active {
    background: #222; color: #fff; border-color: #222;
  }

  /* ── GRID: direttamente sotto i chips ── */
  #page-search .search-map-layout { margin-top: 0 !important; }
  #page-search .search-list-panel {
    padding: 16px 12px 0 !important;
    width: 100% !important;
  }
  #page-search .section-header {
    padding: 0 4px 10px !important;
    margin-bottom: 0 !important;
  }
  #page-search .section-title { font-size: 15px !important; }
  #page-search .section-count { font-size: 12px !important; }
  #page-search .listings-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  #page-search .listing-img { height: 140px !important; }
  #page-search .listing-body { padding: 8px 10px 10px !important; }
  #page-search .listing-title { font-size: 12px !important; line-height: 1.3 !important; }
  #page-search .listing-addr { font-size: 11px !important; margin-bottom: 3px !important; }
  #page-search .listing-price-main { font-size: 13px !important; }
  #page-search .listing-price-unit { font-size: 11px !important; }
  #page-search .listing-footer { padding-top: 5px !important; }
  #page-search .listing-rating { font-size: 11px !important; }
  #page-search .btn-book { display: none !important; }
  #page-search .fav-btn { font-size: 15px !important; top: 5px !important; right: 5px !important; }

  /* ── FILTRI OVERLAY (bottom sheet) ── */
  .srp-filter-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.4);
    align-items: flex-end;
  }
  .srp-filter-overlay.open { display: flex; }
  .srp-filter-sheet {
    background: #fff;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 0 0 env(safe-area-inset-bottom,0px);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .srp-filter-sheet-handle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky; top: 0; background: #fff; z-index: 2;
  }
  .srp-filter-sheet-handle h3 {
    font-family:Fraunces,serif;
    font-size: 17px; font-weight: 800; color: #222;
  }
  .srp-filter-sheet-handle button {
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: #717171; text-decoration: underline;
    font-family:Plus Jakarta Sans,sans-serif;
  }
  .srp-filter-section { padding: 16px 20px; border-bottom: 1px solid #f5f5f5; }
  .srp-filter-section h4 {
    font-size: 12px; font-weight: 700; color: #717171;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 12px;
  }
  .srp-filter-price-row { display: flex; gap: 10px; }
  .srp-filter-price-box {
    flex: 1; padding: 12px 14px;
    border: 1.5px solid #e0e0e0; border-radius: 12px;
    background: #fafafa;
  }
  .srp-filter-price-box label {
    display: block; font-size: 10px; font-weight: 700;
    color: #717171; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 4px;
  }
  .srp-filter-price-box input {
    border: none; background: transparent;
    font-size: 15px; font-weight: 600; color: #222;
    width: 100%; outline: none;
    font-family:Plus Jakarta Sans,sans-serif;
  }
  .srp-sort-chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .srp-sort-chip {
    padding: 7px 14px; border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    font-size: 12px; font-weight: 600;
    background: #fff; color: #444;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: all 0.15s;
  }
  .srp-sort-chip.active { background: #222; color: #fff; border-color: #222; }
  .srp-amenity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .srp-amenity-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 10px;
    border: 1.5px solid #e0e0e0; background: #fff;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    font-size: 13px; font-weight: 500; color: #444;
    transition: all 0.15s;
  }
  .srp-amenity-item.active { border-color: #222; background: #f5f5f5; font-weight: 700; color: #222; }
  .srp-filter-footer {
    padding: 12px 20px 20px;
    display: flex; gap: 10px;
    position: sticky; bottom: 0; background: #fff;
    border-top: 1px solid #f0f0f0;
  }
  .srp-filter-footer .srp-reset-btn {
    flex: 1; padding: 14px;
    background: none; border: 1.5px solid #e0e0e0;
    border-radius: 12px; font-size: 14px; font-weight: 700;
    color: #222; cursor: pointer; font-family:Plus Jakarta Sans,sans-serif;
    text-decoration: underline;
  }
  .srp-filter-footer .srp-apply-btn {
    flex: 2; padding: 14px;
    background: #1a5c3a; color: #fff;
    border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; font-family:Plus Jakarta Sans,sans-serif;
  }
}


/* ── Footer: scompare scrollando giù (stile Airbnb) ── */
#siteFooter {
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
  overflow: hidden;
}
#siteFooter.footer-hidden {
  opacity: 0;
  transform: translateY(16px);
  max-height: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}
@media (max-width: 768px) {
  #page-home.active ~ #siteFooter,
  body.page-home #siteFooter {
    display: none !important;
  }
}
/* Dark mode: SRP filter panel */
[data-theme="dark"] .srp-sort-chip { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .srp-sort-chip.active { background: var(--accent) !important; color: #000 !important; border-color: var(--accent) !important; }
[data-theme="dark"] .srp-amenity-item { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--border) !important; }
[data-theme="dark"] .srp-amenity-item.active { background: rgba(255,255,255,0.1) !important; border-color: var(--ink) !important; }
[data-theme="dark"] .srp-filter-footer { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .srp-reset-btn { color: var(--ink) !important; border-color: var(--border) !important; }
/* Dark mode: notif dot border */
[data-theme="dark"] .notif-dot { border-color: var(--surface) !important; }
[data-theme="dark"] .notif-item.unread { background: rgba(74,222,128,0.08) !important; }

/* Notifications, Autocomplete, Filters */
    /* NOTIFICHE */
    .notif-bell { position:relative; cursor:pointer; padding:6px; border-radius:50%; transition:background 0.15s; }
    .notif-bell:hover { background:var(--bg); }
    .notif-dot { position:absolute; top:2px; right:2px; width:10px; height:10px; background:#ef4444; border-radius:50%; border:2px solid white; display:none; }
    .notif-dot.show { display:block; }
    .notif-panel { position:fixed; top:64px; right:16px; width:340px; background:var(--surface); border:1.5px solid var(--border); border-radius:16px; box-shadow:0 12px 40px rgba(0,0,0,0.15); z-index:2000; display:none; overflow:hidden; }
    .notif-panel.open { display:block; }
    .notif-panel-header { padding:14px 18px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
    .notif-panel-title { font-weight:700; font-size:14px; }
    .notif-item { padding:12px 18px; border-bottom:1px solid var(--border); cursor:pointer; transition:background 0.15s; display:flex; gap:12px; align-items:flex-start; }
    .notif-item:hover { background:var(--bg); }
    .notif-item.unread { background:#f0faf4; }
    .notif-icon { font-size:20px; flex-shrink:0; margin-top:2px; }
    .notif-text { flex:1; }
    .notif-title { font-weight:600; font-size:13px; margin-bottom:2px; }
    .notif-msg { font-size:12px; color:var(--ink2); line-height:1.4; }
    .notif-time { font-size:11px; color:var(--ink2); margin-top:3px; }
    .notif-empty { padding:32px; text-align:center; color:var(--ink2); font-size:13px; }

    /* AUTOCOMPLETE CITTÀ */
    .ac-dropdown { position:absolute; top:calc(100% + 4px); left:0; right:0; background:var(--surface); border:1.5px solid var(--border); border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,0.15); z-index:9999; overflow-y:auto; display:none; max-height:220px; min-width:240px; -webkit-overflow-scrolling:touch; font-family:Plus Jakarta Sans,sans-serif; }
    .ac-dropdown.open { display:block; }
    @media(max-width:768px) { .ac-dropdown { max-height:180px; } }
    .ac-item { padding:10px 14px; cursor:pointer; font-size:14px; display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--border); transition:background 0.1s; font-family:Plus Jakarta Sans,sans-serif; }
    .ac-item:last-child { border-bottom:none; }
    .ac-item:hover, .ac-item.selected { background:var(--bg); }
    .event-ac-item:hover, .event-ac-item.active { background: #f0fdf4 !important; }
    .ac-item-icon { font-size:16px; flex-shrink:0; }
    .ac-item-main { font-weight:600; color:var(--ink); font-family:Plus Jakarta Sans,sans-serif; }
    .ac-item-sub { font-size:12px; color:var(--ink2); font-family:Plus Jakarta Sans,sans-serif; }
    .ac-loading { padding:12px 14px; font-size:13px; color:var(--ink2); text-align:center; font-family:Plus Jakarta Sans,sans-serif; }

    /* FILTRI RICERCA */
    .search-filters { background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:16px 20px; margin-bottom:16px; }
    .filters-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
    .filter-field { display:flex; flex-direction:column; gap:4px; }
    .filter-field label { font-size:11px; font-weight:600; color:var(--ink2); text-transform:uppercase; letter-spacing:0.5px; }
    .filter-select { border:1.5px solid var(--border); border-radius:8px; padding:0 12px; font-size:13px; font-family:Plus Jakarta Sans,sans-serif; background:var(--surface); cursor:pointer; outline:none; height:40px; }
    .filter-select:focus { border-color:var(--accent); }
    .filter-input-sm { border:1.5px solid var(--border); border-radius:8px; padding:0 12px; font-size:13px; font-family:Plus Jakarta Sans,sans-serif; width:90px; outline:none; height:40px; }
    .filter-input-sm:focus { border-color:var(--accent); }
    .filter-chip { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 16px; border-radius:20px; border:1.5px solid var(--border); font-size:13px; font-weight:500; cursor:pointer; transition:all 0.15s; background:var(--surface); white-space:nowrap; flex-shrink:0; height:40px; min-width:110px; }
    .filter-chip.active { background:var(--accent); color:white; border-color:var(--accent); font-weight:600; }
    .filters-chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; align-items:center; }

    /* PAGINA PARCHEGGIO */
    .parking-page { max-width:800px; margin:0 auto; padding:24px 16px; }
    .parking-page-photos { border-radius:16px; overflow:hidden; margin-bottom:24px; aspect-ratio:16/9; max-height:400px; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:80px; }
    .parking-page-photos img { width:100%; height:100%; object-fit:cover; }
    .parking-page-title { font-family:Fraunces,serif; font-size:28px; font-weight:900; margin-bottom:8px; }
    .parking-page-meta { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:20px; color:var(--ink2); font-size:14px; }
    .parking-page-section { margin-bottom:24px; }
    .parking-page-section-title { font-weight:700; font-size:16px; margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--border); }
    .parking-page-price-box { background:var(--surface); border:2px solid var(--border); border-radius:16px; padding:24px; position:sticky; top:80px; align-self:start; max-height:calc(100vh - 100px); overflow-y:auto; }
    #page-rentalDetail .parking-page { max-width:1100px; }
    .mobile-book-bar { display:none; position:fixed; bottom:0; left:0; right:0; background:var(--surface); border-top:1px solid var(--border); padding:12px 20px calc(20px + env(safe-area-inset-bottom,0px)); z-index:300; box-shadow:0 -4px 20px rgba(0,0,0,0.12); align-items:center; gap:12px; }
    @media(max-width:768px) { .mobile-book-bar { display:flex; bottom:calc(56px + env(safe-area-inset-bottom,0px)); padding-bottom:8px; z-index:2001; } .parking-page-price-box { display:block !important; position:static !important; box-shadow:none !important; border:1.5px solid var(--border) !important; margin-top:24px; } #page-parking .parking-page { padding-bottom:calc(130px + env(safe-area-inset-bottom,0px)); } #page-rentalDetail .parking-page { padding-bottom:calc(100px + env(safe-area-inset-bottom,0px)); } #page-rentalDetail .parking-page-price-box { display:none !important; } #page-rentalDetail .mobile-book-bar { bottom:0; padding-bottom:calc(12px + env(safe-area-inset-bottom,0px)); } #page-parking .mobile-book-bar { bottom:0; padding-bottom:calc(12px + env(safe-area-inset-bottom,0px)); } }
    /* map-toggle-btn override rimosso — gestito dal blocco CSS principale */

    /* DASHBOARD GRAFICI */
    .stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:24px; }
    .stat-card { background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:18px; text-align:center; }
    .stat-value { font-family:Fraunces,serif; font-size:26px; font-weight:900; color:var(--accent); }
    .stat-label { font-size:12px; color:var(--ink2); margin-top:4px; }
    .stat-delta { font-size:11px; margin-top:4px; }
    .stat-delta.up { color:#16a34a; }
    .stat-delta.down { color:#dc2626; }
    .chart-card { background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:20px; margin-bottom:16px; }
    .chart-title { font-weight:700; font-size:15px; margin-bottom:16px; }
    .chart-wrap { position:relative; height:220px; }
    .charts-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
    @media(max-width:768px) { .stats-grid{grid-template-columns:repeat(2,1fr);} .charts-row{grid-template-columns:1fr;} #reportSummary { grid-template-columns: repeat(2, 1fr) !important; } .chart-card { padding: 14px; } }
    @media(max-width:768px) {
      #page-business [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
      #page-business [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
    }
    @media(max-width:480px) { #reportSummary { gap: 8px !important; } #reportSummary > div { padding: 10px !important; } #reportSummary [style*="font-size:22px"] { font-size: 18px !important; } #businessStats > div { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; } #businessStats [style*="padding:16px"] { padding: 10px !important; } #businessStats [style*="font-size:24px"] { font-size: 18px !important; } #businessParkings [style*="padding:14px 16px"] { padding: 10px 12px !important; flex-direction: column !important; align-items: flex-start !important; } #businessParkings [style*="gap:16px"] { gap: 8px !important; flex-wrap: wrap !important; } #stripeConnectCard { padding: 16px !important; }
      #page-business [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
      #page-business [style*="padding:40px"] { padding: 24px 16px !important; }
      #page-business [style*="padding:48px"] { padding: 28px 16px !important; }
      .booking-card [style*="letter-spacing:4px"],
      [style*="letter-spacing:4px"] { font-size: 18px !important; letter-spacing: 2px !important; }
      .btn-social { min-height: 44px !important; }
      #page-business [style*="gap:24px"] { gap: 16px !important; }
    }

/* Search, Map, Listings */
    /* Servizi form pubblica — 2 colonne su tutti gli schermi */
    .np-services-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:4px; }
    /* SEARCH WITH MAP */
    .search-map-layout {
      display: flex;
      min-height: calc(100vh - 64px);
    }
    .search-list-panel {
      width: 44%;
      max-width: 640px;
      overflow-y: auto;
      padding: 20px 20px;
      flex-shrink: 0;
      background: var(--bg);
    }
    .search-map-panel {
      flex: 1;
      position: sticky;
      top: 64px;
      height: calc(100vh - 64px);
      min-height: 400px;
      background: #e2e8f0;
    }
    #searchMap {
      width: 100%;
      height: 100%;
      border-radius: 0;
    }
    .map-toggle-btn {
      display: none;
      position: fixed;
      bottom: calc(env(safe-area-inset-bottom,0px) + 12px);
      left: 50%;
      transform: translateX(-50%);
      z-index: 400;
      background: var(--ink);
      color: white;
      border: none;
      padding: 11px 20px;
      border-radius: 24px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      font-family:Plus Jakarta Sans,sans-serif;
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
      white-space: nowrap;
    }
    @media (max-width: 768px) {
      .search-map-layout { flex-direction: column; height: auto; overflow: visible; }
      .search-list-panel { width: 100%; padding: 12px 16px; padding-bottom: calc(80px + env(safe-area-inset-bottom,0px)); }
      .search-map-panel { height: 360px; position: relative; display: none; }
      .search-map-panel.map-open {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0;
        bottom: calc(env(safe-area-inset-bottom,0px));
        height: auto;
        z-index: 200;
        background: #fff;
      }
      .search-map-panel.map-open #searchMap { width: 100%; height: 100%; }
      .map-open-active .srp-compact-bar,
      .map-open-active .srp-chips-strip,
      .map-open-active .search-list-panel { display: none !important; }
      .map-toggle-btn { display: flex; align-items: center; justify-content: center; }
      #filterToggleBtn { display:block !important; }
      .filters-row { display:none !important; }
      .filters-row.open { display:flex !important; flex-direction:column; }
    }
    /* MAP POPUP */
    .map-popup { font-family: Plus Jakarta Sans, sans-serif; min-width: 180px; }
    .map-popup-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
    .map-popup-price { color: var(--accent); font-weight: 700; font-size: 16px; }
    .map-popup-addr { font-size: 12px; color: #666; margin-top: 2px; }
    .map-popup-btn { margin-top: 8px; background: var(--green); color: white; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; width: 100%; }
    /* PRICE MARKER */
    .price-marker {
      background: white;
      border: 2px solid var(--accent);
      border-radius: 20px;
      padding: 5px 11px;
      font-size: 13px;
      font-weight: 800;
      color: var(--accent);
      box-shadow: 0 3px 10px rgba(0,0,0,0.18);
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.15s;
      position: relative;
    }
    .price-marker::after {
      content: '';
      position: absolute;
      bottom: -7px;
      left: 50%;
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: var(--accent);
    }
    .price-marker:hover, .price-marker.active {
      background: var(--accent);
      color: white;
      transform: scale(1.15);
      z-index: 999;
    }
    .price-marker.active::after { border-top-color: var(--accent); }
    .map-popup-img { width:100%; height:80px; object-fit:cover; border-radius:6px; margin-bottom:8px; background:var(--bg); }
    .map-popup-rating { font-size:12px; color:#888; margin-top:2px; }
    /* CARD HOVER */
    .listing-card.highlighted { box-shadow: 0 0 0 3px var(--accent); transform: translateY(-2px); }

    /* PREFERITI */
    .fav-btn { position: absolute; top: 10px; right: 10px; background: white; border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: transform 0.2s; z-index: 2; }
    .fav-btn:hover { transform: scale(1.15); }
    .fav-btn.active { color: #ef4444; }
    .listing-img { position: relative; }

/* Chat, Dashboard, Booking */
    /* CHAT */
    .chat-layout { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 140px); min-height: 400px; gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
    .chat-sidebar { border-right: 1px solid var(--border); overflow-y: auto; }
    .chat-sidebar-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; }
    .chat-conv-item { padding: 14px 20px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.15s; }
    .chat-conv-item:hover { background: var(--bg); }
    .chat-conv-item.active { background: #f0faf4; border-left: 3px solid var(--accent); }
    .chat-conv-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
    .chat-conv-preview { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .chat-conv-badge { display: inline-block; background: var(--accent); color: white; border-radius: 10px; font-size: 10px; padding: 1px 6px; font-weight: 700; margin-left: 6px; }
    .chat-conv-date { font-size: 11px; color: var(--ink2); float: right; }
    .chat-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
    .chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
    .chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
    .chat-header-info .chat-header-name { font-weight: 700; font-size: 15px; }
    .chat-header-info .chat-header-sub { font-size: 12px; color: var(--ink2); margin-top: 2px; }
    .chat-header-badge { margin-left: auto; }
    .chat-back-btn { display: flex; background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px 8px; color: var(--ink2); flex-shrink: 0; min-width:44px; min-height:44px; align-items:center; justify-content:center; border-radius: 50%; transition: background 0.15s; }
    .chat-back-btn:hover { background: var(--bg); }
    .chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
    .chat-msg { display: flex; flex-direction: column; max-width: 70%; }
    .chat-msg.mine { align-self: flex-end; align-items: flex-end; }
    .chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
    .chat-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-break: break-word; }
    .chat-msg.mine .chat-bubble { background: var(--green); color: white; border-bottom-right-radius: 4px; }
    .chat-msg.theirs .chat-bubble { background: white; border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 4px; }
    .chat-msg-time { font-size: 11px; color: var(--ink2); margin-top: 3px; }
    .chat-input-area { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-end; background: var(--surface); }
    .chat-input { flex: 1; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 16px; font-family: Plus Jakarta Sans, sans-serif; resize: none; outline: none; max-height: 100px; transition: border-color 0.2s; }
    .chat-input:focus { border-color: var(--accent); }
    .chat-send-btn { background: var(--green); color: white; border: none; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-size: 18px; transition: background 0.2s; flex-shrink: 0; }
    .chat-send-btn:hover { background: var(--green-light, #2d7a50); }
    .chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--ink2); text-align: center; padding: 40px; }
    .chat-empty-icon { font-size: 48px; margin-bottom: 16px; }
    .chat-privacy-notice { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 10px 14px; font-size: 12px; color: #92400e; margin: 0 20px 12px; text-align: center; }
    .chat-no-conv { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--ink2); }
    .chat-typing { display: none; padding: 4px 20px 8px; font-size: 12px; color: var(--ink2); font-style: italic; min-height: 24px; background: var(--bg); }
    .chat-typing.show { display: block; }
    .typing-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
    .typing-dots span { width: 5px; height: 5px; background: var(--ink2); border-radius: 50%; animation: typingBounce 1.2s infinite; }
    .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
    .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes typingBounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-4px)} }

    /* CALENDARIO */
    .calendar-wrap { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; margin-top: 16px; }
    .calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); }
    .calendar-title { font-weight: 700; font-size: 15px; }
    .cal-nav { background: none; border: 1.5px solid var(--border); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 16px; }
    .cal-nav:hover { background: var(--bg); }
    .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
    .cal-day-label { text-align: center; font-size: 11px; font-weight: 600; color: var(--ink2); padding: 8px 4px; background: var(--bg); }
    .cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; position: relative; }
    .cal-day:hover:not(.cal-empty):not(.cal-past) { background: #f0faf4; border-color: var(--accent); border-radius: 8px; }
    .cal-day.cal-empty { cursor: default; }
    .cal-day.cal-past { color: #d1d5db; cursor: default; }
    .cal-day.cal-blocked { background: #fee2e2; color: #dc2626; border-radius: 8px; font-weight: 600; }
.cal-day[data-selectable='true'] { cursor: pointer; user-select: none; -webkit-user-select: none; }
    .cal-selecting { background: #dcfce7 !important; outline: 2px solid #16a34a; outline-offset: -2px; }
    .cal-day[data-date] { cursor: pointer; user-select: none; -webkit-user-select: none; }
    .cal-action-bar { display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#1a1a2e;color:white;border-radius:12px;padding:12px 16px;margin-top:12px;font-size:14px; }
    .cal-action-bar span { flex:1;font-weight:500; }
    .cal-action-bar .btn-outline { color:#fff !important; border-color:rgba(255,255,255,0.7) !important; background:transparent !important; }
    .cal-action-bar .btn-outline:hover { border-color:#fff !important; background:rgba(255,255,255,0.1) !important; }
    .cal-day.cal-blocked:hover { background: #fca5a5; }
    .cal-day.cal-booked { background: #e0f2fe; color: #0369a1; border-radius: 8px; cursor: default; }
    .cal-day.cal-today { font-weight: 700; }
    .cal-day.cal-today::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
    .cal-legend { display: flex; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
    .cal-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
    .cal-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
    .parking-cal-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
    @media(max-width:768px) {
      .parking-cal-card { border: none; border-radius: 0; padding: 0; background: transparent; margin-bottom: 24px; }
      .calendar-wrap { border-radius: 14px; margin-top: 8px; }
      .cal-day { font-size: 15px; }
      .cal-day-label { font-size: 12px; padding: 10px 2px; }
      #calendarParkingsList { padding: 0; }
      .parking-cal-title { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
      .parking-cal-addr { font-size: 13px; }
      .cal-action-bar { margin: 12px 0 0; border-radius: 12px; }
    }
    .parking-cal-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
    .parking-cal-addr { font-size: 13px; color: var(--ink2); margin-bottom: 12px; }
    /* DISCOUNT BADGES */
    .discount-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #f0fdf4;
      color: #16a34a;
      font-size: 12px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 20px;
      border: 1.5px solid #bbf7d0;
      white-space: nowrap;
    }
    [data-theme="dark"] .discount-badge {
      background: rgba(74,222,128,0.1);
      color: #4ade80;
      border-color: rgba(74,222,128,0.3);
    }
    /* Calendar available day (green tint) */
    .cal-day.cal-available {
      background: #f0fdf4;
      color: #16a34a;
    }
    [data-theme="dark"] .cal-day.cal-available {
      background: rgba(74,222,128,0.08);
      color: #4ade80;
    }
    .cal-selecting {
      border-radius: 8px;
    }
    .star-rating { display: flex; gap: 6px; }
    .star { font-size: 36px; cursor: pointer; color: #d1d5db; transition: color 0.15s, transform 0.1s; line-height: 1; }
    .star:hover, .star.active { color: #f59e0b; transform: scale(1.1); }
    .star.active { color: #f59e0b; }
    /* FAQ freccia animata */
    .faq-item .faq-arrow { transition: transform 0.2s; display:inline-block; font-size:18px; font-weight:400; color:var(--ink2); }
    .faq-item[open] .faq-arrow { transform: rotate(45deg); }
    .faq-item summary { cursor: pointer; user-select: none; }
    /* REVIEWS in listing */
    .reviews-section { margin-top: 20px; }
    .review-item { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
    .review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
    .review-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
    .review-meta { flex: 1; }
    .review-name { font-weight: 600; font-size: 13px; }
    .review-date { font-size: 11px; color: var(--ink2); }
    .review-stars { color: #f59e0b; font-size: 14px; margin-left: auto; }
    .review-text { font-size: 13px; color: var(--ink2); line-height: 1.5; }
    @media (max-width: 600px) {
      .chat-layout { grid-template-columns: 1fr; }
      .chat-sidebar { display: block; }
      .chat-area { display: none; }
      .chat-sidebar.hidden { display: none; }
      .chat-area.show { display: flex; flex-direction: column; }
    }

    /* === NEW: Homepage map === */
    .home-map-section { max-width:1440px;margin:0 auto;padding:0 40px 24px; }
    .home-map-toggle { display:flex;align-items:center;gap:8px;margin-bottom:12px; }
    .home-map-toggle .view-toggle-btn { padding:8px 16px;border-radius:20px;border:1.5px solid var(--border);background:white;font-size:13px;font-weight:600;cursor:pointer;font-family:Plus Jakarta Sans,sans-serif;transition:all .2s; }
    .home-map-toggle .view-toggle-btn.active { background:var(--ink);color:white;border-color:var(--ink); }
    #homeMapContainer { width:100%;height:260px;border-radius:16px;overflow:hidden;background:#e8e3da; }
    @media(max-width:768px) { .home-map-section { display:none; } }

    /* === NEW: Search page view toggle === */
    .search-view-toggle { display:flex;align-items:center;gap:8px;max-width:1200px;margin:0 auto; }
    .search-view-toggle .view-toggle-btn { padding:7px 14px;border-radius:20px;border:1.5px solid var(--border);background:white;font-size:13px;font-weight:600;cursor:pointer;font-family:Plus Jakarta Sans,sans-serif;transition:all .2s; }
    .search-view-toggle .view-toggle-btn.active { background:var(--ink);color:white;border-color:var(--ink); }
    @media(max-width:768px) { .search-view-toggle { display:none; } }
    .search-map-layout.view-list-only .search-map-panel { display:none; }
    .search-map-layout.view-list-only .search-list-panel { width:100%;max-width:100%; }
    .search-map-layout.view-map-only .search-list-panel { display:none; }
    .search-map-layout.view-map-only .search-map-panel { width:100%; }

    /* === NEW: Hero search mode tabs === */
    .hero-mode-tabs { display:flex;gap:0;margin-bottom:8px;border-bottom:2px solid #e8e3da; }
    .hero-mode-tab { padding:8px 18px;font-size:13px;font-weight:600;color:var(--ink2);background:none;border:none;cursor:pointer;font-family:Plus Jakarta Sans,sans-serif;position:relative;transition:color .2s; }
    .hero-mode-tab.active { color:var(--ink); }
    .hero-mode-tab.active::after { content:'';position:absolute;bottom:-2px;left:0;right:0;height:2px;background:var(--ink);border-radius:2px; }

    /* === NEW: Amenity badges === */
    .amenity-badges { display:flex;flex-wrap:wrap;gap:4px;margin:4px 0; }
    .amenity-badge { display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:600;padding:2px 7px;border-radius:10px;line-height:1.4; }
    .amenity-badge.badge-cctv { background:#fef3c7;color:#92400e; }
    .amenity-badge.badge-covered { background:#dbeafe;color:#1e40af; }
    .amenity-badge.badge-24h { background:#ede9fe;color:#5b21b6; }
    .amenity-badge.badge-free-entry { background:#d1fae5;color:#065f46; }
    .amenity-badge.badge-lit { background:#fef9c3;color:#854d0e; }

    /* === NEW: Monthly CTA banner === */
    .monthly-cta-banner { max-width:1440px;margin:0 auto;padding:0 40px 8px; }
    .monthly-cta-pill { display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46;padding:10px 20px;border-radius:100px;font-size:14px;font-weight:700;cursor:pointer;border:none;font-family:Plus Jakarta Sans,sans-serif;transition:transform .15s,box-shadow .15s; }
    .monthly-cta-pill:hover { transform:scale(1.03);box-shadow:0 4px 16px rgba(26,92,58,0.15); }
    @media(max-width:768px) { .monthly-cta-banner { display:none; } }

    /* === NEW: Price dynamic badge === */
    .listing-price-badge { display:none; }
    .listing-monthly-dot { display:inline-flex;align-items:center;gap:3px;font-size:11px;color:#059669;font-weight:600; }
    .listing-monthly-dot::before { content:'';width:6px;height:6px;border-radius:50%;background:#059669;flex-shrink:0; }

    /* === RENTAL SERVICE TABS === */
    .hero-service-tabs { display:flex;justify-content:center;gap:0;margin-bottom:20px; }
    .hero-service-tab { display:flex;align-items:center;gap:8px;padding:12px 28px;font-size:15px;font-weight:700;color:var(--ink2);background:none;border:none;border-bottom:3px solid transparent;cursor:pointer;font-family:Plus Jakarta Sans,sans-serif;transition:all .2s; }
    .hero-service-tab.active { color:var(--ink);border-bottom-color:var(--accent); }
    .hero-service-tab:hover:not(.active) { color:var(--ink);border-bottom-color:#ccc; }
    @media(max-width:768px) {
      .hero-service-tabs { gap:0;margin-bottom:16px; }
      .hero-service-tab { font-size:14px;padding:12px 20px; }
    }

    /* === RENTAL SEARCH FORM (inside hero) === */
    .rental-search-box { display:flex;align-items:stretch;background:white;border-radius:60px;box-shadow:0 4px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);overflow:visible;max-width:660px;margin:0 auto;padding:8px 8px 8px 24px;gap:0; }
    [data-theme="dark"] .rental-search-box { background:var(--surface) !important;box-shadow:0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1) !important; }
    @media(max-width:768px) {
      .rental-search-box { flex-direction:column;border-radius:16px;padding:16px;gap:12px; }
      .rental-search-box .hero-search-field { border-right:none !important;border-bottom:1px solid #e0e0e0;padding:10px 0; }
      .rental-search-box .hero-search-field:last-of-type { border-bottom:none; }
      .rental-search-box .hero-search-btn { width:100%;justify-content:center;border-radius:12px; }
    }

    /* === RENTAL RESULTS PAGE === */
    #page-rentals .rental-results-header { max-width:1200px;margin:0 auto;padding:24px 40px 16px;display:flex;align-items:baseline;justify-content:space-between; }
    #page-rentals .rental-results-header .section-title { font-size:22px;font-weight:700;color:var(--ink); }
    #page-rentals .rental-results-header .section-count { font-size:14px;color:var(--ink2); }
    #page-rentals .rental-grid { max-width:1200px;margin:0 auto;padding:0 40px 80px;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px 24px; }
    @media(max-width:768px) {
      #page-rentals .rental-results-header { padding:16px 16px 12px; }
      #page-rentals .rental-grid { padding:0 16px 80px;grid-template-columns:1fr;gap:20px; }
    }

    /* Rental card badges */
    .rental-cat-badge { display:inline-block;background:#e0f2fe;color:#0369a1;font-size:10px;font-weight:700;padding:3px 8px;border-radius:6px;text-transform:uppercase;letter-spacing:0.3px; }
    .rental-specs { display:flex;flex-wrap:wrap;gap:6px;margin:6px 0; }
    .rental-spec { display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--ink2);background:var(--bg);border:1px solid var(--border);padding:3px 8px;border-radius:6px; }

    /* Rental detail modal */
    .rental-detail-photos { display:flex;gap:8px;overflow-x:auto;margin-bottom:16px;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory; }
    .rental-detail-photos img { width:100%;max-width:320px;height:200px;object-fit:cover;border-radius:12px;scroll-snap-align:start;flex-shrink:0; }
    .rental-detail-features { display:flex;flex-wrap:wrap;gap:8px;margin:12px 0; }
    .rental-detail-feature { background:var(--bg);border:1px solid var(--border);padding:6px 12px;border-radius:8px;font-size:12px;color:var(--ink);font-weight:500; }
    .rental-price-breakdown { background:var(--bg);border-radius:12px;padding:16px;margin:16px 0; }
    .rental-price-breakdown .rpb-row { display:flex;justify-content:space-between;font-size:14px;color:var(--ink2);margin-bottom:8px; }
    .rental-price-breakdown .rpb-row.rpb-total { font-weight:700;font-size:16px;color:var(--ink);border-top:1px solid var(--border);padding-top:10px;margin-top:10px;margin-bottom:0; }

    /* Unified form style for both parking and rental publish forms */
    #rentalFormContainer label,
    #dashtab-newparking label { font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;color:var(--ink2);display:block;margin-bottom:4px; }
    #rentalFormContainer input[type="text"],
    #rentalFormContainer input[type="number"],
    #rentalFormContainer textarea,
    #rentalFormContainer select,
    #dashtab-newparking input[type="text"],
    #dashtab-newparking input[type="number"],
    #dashtab-newparking input[type="url"],
    #dashtab-newparking textarea,
    #dashtab-newparking select { font-size:15px;padding:12px 14px;border:1.5px solid var(--border);border-radius:10px;width:100%;box-sizing:border-box;font-family:inherit;background:var(--card);color:var(--ink);transition:border-color .2s; }
    #rentalFormContainer input:focus,
    #rentalFormContainer textarea:focus,
    #rentalFormContainer select:focus,
    #dashtab-newparking input:focus,
    #dashtab-newparking textarea:focus,
    #dashtab-newparking select:focus { border-color:var(--accent);outline:none; }

    /* Rental features checkbox grid */
    .rental-feat-check { display:flex;align-items:center;gap:8px;background:var(--bg);border:1.5px solid var(--border);border-radius:10px;padding:10px 12px;cursor:pointer;font-size:13px;color:var(--ink);transition:all .15s;user-select:none; }
    .rental-feat-check:hover { border-color:var(--accent);background:#f0fdf4; }
    .rental-feat-check input[type="checkbox"] { width:16px;height:16px;accent-color:var(--accent);flex-shrink:0;cursor:pointer; }
    .rental-feat-check input[type="checkbox"]:checked + span { font-weight:600; }
    /* Rental detail info cards */
    .rental-info-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin:12px 0; }
    .rental-info-card { background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:10px 12px;text-align:center; }
    .rental-info-card .ric-icon { font-size:20px;margin-bottom:4px; }
    .rental-info-card .ric-label { font-size:11px;color:var(--ink2);margin-bottom:2px; }
    .rental-info-card .ric-value { font-size:13px;font-weight:700;color:var(--ink); }

    /* DiscoverCars affiliate banner */
    .dc-affiliate-banner { grid-column:1/-1;background:linear-gradient(135deg,#0057b8 0%,#0078ff 100%);border-radius:20px;padding:32px 28px;color:white;display:flex;align-items:center;gap:24px;cursor:pointer;transition:transform 0.2s,box-shadow 0.2s;text-decoration:none; }
    .dc-affiliate-banner:hover { transform:translateY(-2px);box-shadow:0 8px 32px rgba(0,87,184,0.35); }
    .dc-affiliate-banner-icon { width:64px;height:64px;background:rgba(255,255,255,0.2);border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:32px;flex-shrink:0; }
    .dc-affiliate-banner-text { flex:1;min-width:0; }
    .dc-affiliate-banner-title { font-size:18px;font-weight:800;margin-bottom:4px; }
    .dc-affiliate-banner-sub { font-size:14px;opacity:0.9;line-height:1.5; }
    .dc-affiliate-banner-btn { background:white;color:#0057b8;font-weight:700;font-size:14px;padding:12px 24px;border-radius:12px;white-space:nowrap;flex-shrink:0;border:none; }
    @media(max-width:768px) {
      .dc-affiliate-banner { flex-direction:column;text-align:center;padding:24px 20px;gap:16px; }
      .dc-affiliate-banner-btn { width:100%;text-align:center; }
    }

    /* Dark mode: rental components */
    [data-theme="dark"] .rental-cat-badge { background:#1e3a5f;color:#7dd3fc; }
    [data-theme="dark"] .rental-feat-check:hover { background:#1a2e1a; }
    [data-theme="dark"] .dc-affiliate-banner { background:linear-gradient(135deg,#003d82 0%,#0057b8 100%); }
    [data-theme="dark"] .dc-affiliate-banner-btn { background:#1e293b;color:#60a5fa; }
    /* Dark mode: onboarding modal */
    [data-theme="dark"] .ob-card { background:var(--surface); }
    [data-theme="dark"] .ob-body { background:var(--surface); }
    [data-theme="dark"] .ob-option { background:var(--bg);border-color:var(--border); }
    [data-theme="dark"] .ob-option.green:hover { background:#0f2419;border-color:#1a5c3a; }
    [data-theme="dark"] .ob-option.orange:hover { background:#2a1a0f;border-color:#e8621a; }
    [data-theme="dark"] .ob-opt-title { color:var(--ink); }
    [data-theme="dark"] .ob-opt-sub { color:var(--ink2); }
    [data-theme="dark"] .ob-label { color:var(--ink2); }
    [data-theme="dark"] .ob-skip { color:var(--ink2); }
    [data-theme="dark"] .ob-skip:hover { color:var(--ink); }
    [data-theme="dark"] .ob-dot { background:var(--border); }
    [data-theme="dark"] .ob-arrow { color:var(--ink2); }
    [data-theme="dark"] .ob-option:hover .ob-arrow { color:var(--ink); }

/* Language toggle */
    .lang-toggle-btn { display:inline-flex; align-items:center; gap:2px; background:none; border:1.5px solid var(--border); border-radius:20px; padding:5px 10px; cursor:pointer; font-family:Plus Jakarta Sans,sans-serif; font-size:12px; font-weight:500; transition:all 0.15s; flex-shrink:0; }
    .lang-toggle-btn:hover { border-color:var(--accent); }
    .lang-toggle-btn .lang-sep { color:var(--ink2); margin:0 2px; }

/* Onboarding modal */
    #onboardingModal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.62); backdrop-filter:blur(3px); z-index:3000; align-items:center; justify-content:center; padding:20px; }
    #onboardingModal.open { display:flex; animation: obFadeIn 0.3s ease; }
    @keyframes obFadeIn { from{opacity:0} to{opacity:1} }
    .ob-card { background:white; border-radius:28px; width:100%; max-width:460px; overflow:hidden; box-shadow:0 32px 100px rgba(0,0,0,0.4); animation:obSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1); }
    @keyframes obSlideUp { from{opacity:0;transform:translateY(40px) scale(0.96)} to{opacity:1;transform:translateY(0) scale(1)} }
    .ob-header { background:#1c1916; padding:36px 32px 28px; text-align:center; position:relative; overflow:hidden; }
    .ob-header::before { content:''; position:absolute; top:-60px; right:-60px; width:220px; height:220px; border-radius:50%; background:radial-gradient(circle,rgba(26,92,58,0.5) 0%,transparent 70%); }
    .ob-header::after { content:''; position:absolute; bottom:-40px; left:-40px; width:160px; height:160px; border-radius:50%; background:radial-gradient(circle,rgba(232,98,26,0.3) 0%,transparent 70%); }
    .ob-emoji { font-size:52px; margin-bottom:16px; position:relative; z-index:1; display:block; animation:obBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s both; }
    @keyframes obBounce { from{transform:scale(0) rotate(-20deg)} to{transform:scale(1) rotate(0deg)} }
    .ob-header h2 { font-family:Fraunces,serif; font-size:28px; font-weight:900; color:white; margin-bottom:8px; position:relative; z-index:1; line-height:1.1; }
    .ob-header h2 em { color:#6dbb8a; font-style:normal; }
    .ob-header p { font-size:14px; color:rgba(255,255,255,0.55); position:relative; z-index:1; }
    .ob-body { padding:28px 28px 32px; }
    .ob-label { font-size:11px; color:#9a9186; text-align:center; margin-bottom:20px; font-weight:600; letter-spacing:0.5px; text-transform:uppercase; }
    .ob-options { display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
    .ob-option { display:flex; align-items:center; gap:16px; padding:18px 20px; border:1.5px solid #e8e3da; border-radius:18px; cursor:pointer; transition:all 0.2s cubic-bezier(0.34,1.2,0.64,1); background:#faf9f6; text-align:left; width:100%; font-family:Plus Jakarta Sans,sans-serif; }
    .ob-option:nth-child(1) { animation:obFadeUp 0.4s ease 0.15s both; }
    .ob-option:nth-child(2) { animation:obFadeUp 0.4s ease 0.25s both; }
    @keyframes obFadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
    .ob-option:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,0.1); }
    .ob-option.green:hover { border-color:#1a5c3a; background:#f0faf4; }
    .ob-option.orange:hover { border-color:#e8621a; background:#fff5f0; }
    .ob-icon { width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; transition:transform 0.2s; }
    .ob-option:hover .ob-icon { transform:scale(1.1) rotate(-5deg); }
    .ob-option.green .ob-icon { background:#e8f5ee; }
    .ob-option.orange .ob-icon { background:#fff0e8; }
    .ob-opt-title { font-weight:700; font-size:15px; color:#1c1916; margin-bottom:3px; }
    .ob-opt-sub { font-size:12px; color:#9a9186; line-height:1.4; }
    .ob-arrow { font-size:18px; color:#c8c3ba; margin-left:auto; transition:transform 0.2s, color 0.2s; }
    .ob-option:hover .ob-arrow { transform:translateX(4px); color:#1c1916; }
    .ob-skip { width:100%; background:none; border:none; font-size:13px; color:#b0aa9f; cursor:pointer; padding:8px; font-family:Plus Jakarta Sans,sans-serif; transition:color 0.15s; animation:obFadeUp 0.4s ease 0.35s both; }
    .ob-skip:hover { color:#1c1916; }
    .ob-dots { display:flex; justify-content:center; gap:6px; margin-bottom:20px; animation:obFadeUp 0.4s ease 0.1s both; }
    .ob-dot { width:6px; height:6px; border-radius:50%; background:#e8e3da; }
    .ob-dot.active { background:#1a5c3a; width:20px; border-radius:3px; transition:width 0.3s; }

/* ═══ F9 — Touch targets ═══ */
.mob-nav-btn { min-height: 44px; }
.gallery-thumb { min-height: 44px; }

/* ═══ F10 — Content behind bottom nav ═══ */
@media (max-width: 768px) {
  .dash-content { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
  #page-search { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  #page-dashboard { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ═══ F11 — Booking step indicator ═══ */
.booking-step {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ink2);
  transition: all 0.2s;
}
.booking-step.active {
  border-color: var(--accent); background: var(--accent); color: white;
}

/* ═══ F12 — Gallery touch-action pinch-zoom ═══ */
.gallery-overlay.open { touch-action: pinch-zoom; }

/* ═══ F13 — Toast dismissible ═══ */
.toast { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.toast-msg { flex: 1; }
.toast-close { background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; opacity: 0.7; }
.toast-close:hover { opacity: 1; }

/* ═══ F17 — Search title not hidden by sticky ═══ */
.section-title, .search-list-panel .section-header { scroll-margin-top: 140px; }
@media (max-width: 768px) {
  .section-title, .search-list-panel .section-header { scroll-margin-top: 120px; }
}

/* ═══ F18 — Payment Request Button (Apple Pay / Google Pay) ═══ */
#paymentRequestBtn, .rental-pr-btn {
  min-height: 48px;
}
#paymentRequestBtn iframe, .rental-pr-btn iframe {
  border-radius: var(--radius-md) !important;
}

/* ═══ F19 — Map "Search this area" button ═══ */
.map-search-area-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: none;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.map-search-area-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.map-search-area-btn:active {
  transform: translateX(-50%) scale(0.96);
}
.map-search-area-btn.visible {
  display: flex;
}
[data-theme="dark"] .map-search-area-btn {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
[data-theme="dark"] .map-search-area-btn:hover {
  background: var(--accent);
  color: #000;
}

/* ===== SUPERHOST BADGE ===== */
.superhost-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
  white-space: nowrap;
  line-height: 1.4;
}
.superhost-badge svg {
  flex-shrink: 0;
}
.superhost-badge-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  cursor: help;
  position: relative;
}
.superhost-badge-detail .superhost-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1c1917;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.superhost-badge-detail .superhost-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1c1917;
}
.superhost-badge-detail:hover .superhost-tooltip {
  display: block;
}
[data-theme="dark"] .superhost-badge,
[data-theme="dark"] .superhost-badge-detail {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fef3c7;
}

/* ===== WISHLIST ===== */
.wishlist-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.wishlist-card {
  background: var(--card, #fff);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.wishlist-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.wishlist-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.wishlist-card-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.wishlist-card-count {
  font-size: 12px;
  color: var(--ink2);
}
.wishlist-card-actions {
  display: flex;
  gap: 8px;
}
.wishlist-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #d1fae5;
  background: #f0fdf4;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.wishlist-share-btn:hover {
  background: #dcfce7;
}
.wishlist-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.wishlist-delete-btn:hover {
  background: #fee2e2;
}
.wishlist-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent, #1a5c3a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}
.wishlist-create-btn:hover {
  opacity: 0.9;
}
.wishlist-fav-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent, #1a5c3a);
  cursor: pointer;
}
.wishlist-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
}
.wishlist-share-modal-inner {
  background: var(--card, #fff);
  border-radius: 20px;
  padding: 28px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.wishlist-public-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== WELCOME ONBOARDING CAROUSEL ===== */
.welcome-carousel {
  position: fixed; inset: 0; z-index: 100000;
  background: var(--bg, #fff);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: wcFadeIn 0.4s ease;
}
@keyframes wcFadeIn { from { opacity: 0; } to { opacity: 1; } }
.welcome-carousel.closing { animation: wcFadeOut 0.35s ease forwards; }
@keyframes wcFadeOut { from { opacity: 1; } to { opacity: 0; } }
.wc-slides { position: relative; width: 100%; max-width: 400px; height: 340px; overflow: hidden; }
.wc-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  opacity: 0; transform: translateX(60px); transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.wc-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.wc-slide.exit-left { opacity: 0; transform: translateX(-60px); }
.wc-icon-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--accent-light, #f0fdf4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.wc-slide h2 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.wc-slide p { font-size: 15px; color: var(--ink2); line-height: 1.5; margin: 0; }
.wc-dots { display: flex; gap: 8px; margin-top: 24px; }
.wc-dot {
  width: 8px; height: 8px; border-radius: 8px;
  background: var(--border, #e2e8f0);
  transition: width 0.3s ease, background 0.3s ease;
}
.wc-dot.active { width: 24px; background: var(--accent); }
.wc-actions {
  display: flex; align-items: center; gap: 16px;
  margin-top: 40px; padding: 0 24px; width: 100%; max-width: 400px;
}
.wc-skip {
  background: none; border: none; color: var(--ink2); font-size: 15px;
  cursor: pointer; padding: 12px 16px; font-weight: 500;
}
.wc-next {
  flex: 1; padding: 14px 24px; border-radius: 12px;
  background: var(--accent); color: #fff; border: none;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.wc-next:hover { background: var(--accent-dark, #16a34a); }
[data-theme="dark"] .welcome-carousel { background: var(--bg); }

/* === PRICING SUGGESTION BOX === */
.pricing-suggestion-box {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #d1fae5;
  background: #f0fdf4;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.6;
  animation: fadeSlideIn 0.25s ease;
}
.pricing-suggestion-box.demand-high { border-color: #86efac; background: #f0fdf4; }
.pricing-suggestion-box.demand-low { border-color: #fed7aa; background: #fffbeb; }
.pricing-suggestion-box .suggestion-price { font-size: 20px; font-weight: 900; color: #1a5c3a; }
.pricing-suggestion-box.demand-low .suggestion-price { color: #d97706; }
.pricing-suggestion-box .suggestion-use-btn {
  display: inline-block; margin-top: 8px; padding: 6px 16px;
  border-radius: 8px; background: var(--accent); color: white;
  font-size: 12px; font-weight: 700; border: none; cursor: pointer;
  transition: background 0.15s;
}
.pricing-suggestion-box .suggestion-use-btn:hover { background: #154d30; }
.pricing-suggest-btn { transition: all 0.2s; }
.pricing-suggest-btn:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
@keyframes fadeSlideIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
[data-theme="dark"] .pricing-suggestion-box { background: #1a2e1a; border-color: #2d5a3d; color: var(--ink); }
[data-theme="dark"] .pricing-suggestion-box.demand-low { background: #2a1f0a; border-color: #5a4a2a; }

/* === DIRECTIONS BUTTON === */
.directions-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  background: #eff6ff; border: 1.5px solid #bfdbfe;
  color: #1d4ed8; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.directions-btn:hover { background: #dbeafe; border-color: #93c5fd; }
[data-theme="dark"] .directions-btn { background: #1e293b; border-color: #334155; color: #60a5fa; }
[data-theme="dark"] .directions-btn:hover { background: #334155; }

/* === REVIEW PROMPT (completed bookings) === */
.review-prompt-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b; border-radius: 12px;
  padding: 16px; margin-bottom: 16px; text-align: center;
  animation: fadeSlideIn 0.3s ease;
}
.review-prompt-banner .review-prompt-title {
  font-weight: 700; font-size: 15px; color: #92400e; margin-bottom: 6px;
}
.review-prompt-banner .review-prompt-sub {
  font-size: 13px; color: #a16207; margin-bottom: 12px;
}
.review-prompt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  background: #f59e0b; color: white; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s;
}
.review-prompt-btn:hover { background: #d97706; }
[data-theme="dark"] .review-prompt-banner { background: #2a1f0a; border-color: #92400e; }
[data-theme="dark"] .review-prompt-banner .review-prompt-title { color: #fbbf24; }
[data-theme="dark"] .review-prompt-banner .review-prompt-sub { color: #f59e0b; }

/* === iOS-STYLE FORM CARDS === */
.ios-form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.ios-form-card-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
.ios-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.ios-field:last-child { margin-bottom: 0; }
.ios-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}
.ios-field input, .ios-field select, .ios-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s;
}
.ios-field input:focus, .ios-field select:focus, .ios-field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.ios-field input::placeholder, .ios-field textarea::placeholder {
  color: #b0a99e;
}
.ios-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ios-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
@media(max-width:480px) {
  .ios-row { grid-template-columns: 1fr; }
  .ios-row-3 { grid-template-columns: 1fr 1fr; }
}

/* iOS Toggle Switch */
.ios-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.ios-toggle + .ios-toggle { border-top: 1px solid var(--border); }
.ios-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-right: 12px;
}
.ios-toggle-label .title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.ios-toggle-label .subtitle {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.4;
}
.ios-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
  flex-shrink: 0;
}
.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ios-switch .slider {
  position: absolute;
  inset: 0;
  background: #e0dbd4;
  border-radius: 30px;
  transition: background 0.3s;
  cursor: pointer;
}
.ios-switch .slider::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.ios-switch input:checked + .slider {
  background: var(--accent);
}
.ios-switch input:checked + .slider::before {
  transform: translateX(20px);
}
[data-theme="dark"] .ios-switch .slider { background: #444; }

/* iOS Segmented Control */
.ios-segmented {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ios-segmented-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink2);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
}
.ios-segmented-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* iOS Collapsible Section */
.ios-collapse-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  user-select: none;
  margin-bottom: 0;
}
.ios-collapse-header .title {
  font-weight: 800;
  font-size: 17px;
  color: var(--accent);
  letter-spacing: -0.2px;
}
.ios-collapse-header .chevron {
  font-size: 18px;
  color: var(--ink2);
  transition: transform 0.2s;
}
.ios-collapse-header.open .chevron { transform: rotate(180deg); }

/* iOS Price Grid Table */
.ios-price-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ios-price-grid th {
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  text-align: center;
}
.ios-price-grid th:first-child { text-align: left; }
.ios-price-grid td {
  padding: 6px;
}
.ios-price-grid td:first-child {
  font-weight: 600;
  font-size: 14px;
  padding-left: 0;
  white-space: nowrap;
}
.ios-price-grid input {
  width: 100%;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  box-sizing: border-box;
}
.ios-price-grid input:focus {
  border-color: var(--accent);
  outline: none;
}
.ios-price-grid input::placeholder { color: #c0b9b0; }

/* iOS Info Banner */
.ios-info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.4;
  margin-bottom: 14px;
}
.ios-info-banner svg { flex-shrink: 0; }

/* Photo add button (iOS green) */
.ios-photo-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.ios-photo-btn:hover { opacity: 0.85; }

/* Dark mode for iOS cards */
[data-theme="dark"] .ios-form-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .ios-form-card-title { color: var(--ink); }
[data-theme="dark"] .ios-segmented { background: #2a2a2a; border-color: var(--border); }
[data-theme="dark"] .ios-segmented-btn.active { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .ios-photo-btn { background: var(--accent-light); color: var(--accent); }
