    /* ===== BASE ===== */
    body { font-family: Arial; margin: 0; }
    section { margin-bottom: 60px; scroll-margin-top: 180px; }
    html { scroll-behavior: smooth; }
    img { max-width: 100%; }
    
    /* ===== HEADER ===== */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: linear-gradient(135deg, #6d4aff 0%, #4a2cb3 100%);
      box-shadow: 0 4px 20px rgba(109, 76, 255, 0.3);
      padding: 0 2rem;
      height: 72px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .site-header .logo {
      font-size: 1.5rem;
      font-weight: bold;
      color: white;
      letter-spacing: -0.5px;
    }

    #userBox { display: flex; align-items: center; height: 100%; }

    /* Link Accedi/Registrati */
    .user-auth-links { display: flex; align-items: center; gap: 12px; }
    .user-auth-links .accedi-link {
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      font-size: 1rem;
      padding: 0 4px;
      border-bottom: 1px solid transparent;
    }
    .user-auth-links .accedi-link:hover { color: white; border-bottom-color: white; }
    .user-auth-links .separator { color: rgba(255, 255, 255, 0.4); }
    .user-auth-links .registrati-btn {
      color: white;
      font-size: 1rem;
      padding: 8px 16px;
      border: 2px solid rgba(255, 255, 255, 0.9);
      border-radius: 8px;
      transition: background 0.2s;
    }
    .user-auth-links .registrati-btn:hover { background: rgba(255, 255, 255, 0.15); }

    /* Menu utente loggato */
    .user-menu {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      cursor: pointer;
      padding: 0 8px;
      height: 100%;
    }
    .user-menu:hover { background: rgba(255, 255, 255, 0.1); border-radius: 50px; }
    .user-menu .avatar {
      width: 40px; height: 40px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.9);
    }
    .user-menu > span {
      color: white;
      font-size: 0.95rem;
      font-weight: 500;
      display: none;
    }
    .user-menu .dropdown {
      display: none;
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      background: white;
      border-radius: 12px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
      overflow: hidden;
      min-width: 180px;
      z-index: 1001;
    }
    .user-menu .dropdown.open { display: block; }
    .user-menu .dropdown a {
      display: block;
      padding: 0.75rem 1rem;
      color: #333;
      text-decoration: none;
      font-size: 0.9rem;
      border-bottom: 1px solid #f0f0f0;
    }
    .user-menu .dropdown a:last-child { border-bottom: none; }
    .user-menu .dropdown a:hover { background: #f5f5f5; }

    /* ===== NOTIFICATION BAR ===== */
    #notificationBar {
      position: fixed;
      top: 72px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1200;
      max-width: 90%;
      min-width: 300px;
      padding: 12px 20px;
      border-radius: 12px;
      font-size: 0.9rem;
      text-align: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    #notificationBar.show { opacity: 1; pointer-events: auto; }
    #notificationBar.success { background: #d4edda; color: #155724; }
    #notificationBar.error { background: #f8d7da; color: #721c24; }
    #notificationBar.info { background: #d1ecf1; color: #0c5460; }

    /* ===== SUMMARY ===== */
    .property-summary {
      max-width: 1200px;
      margin: 30px auto;
      padding: 0 20px;
    }

    .property-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      color: #666;
      font-size: 0.9rem;
      background: #f9f9f9;
      padding: 14px 20px;
      border-radius: 12px;
    }

    .property-meta span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* ===== HERO ===== */
    .hero-container {
      max-width: 1200px;
      margin: 30px auto;
      padding: 0 20px;
    }

    .hero-image {
      height: 480px;
      background-size: cover;
      background-position: center;
      position: relative;
      border-radius: 16px;
      overflow: hidden;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-end;
      text-align: left;
      padding: 40px;
      color: white;
    }

    .hero-overlay h1 {
      margin: 0 0 8px 0;
      font-size: 2rem;
      font-weight: 700;
      text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .hero-overlay p {
      margin: 0 0 10px 0;
      font-size: 1.1rem;
    }

    .hero-rating {
      background: rgba(255,255,255,0.95);
      color: #333;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
      display: inline-block;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    /* ===== GALLERY ===== */
    .gallery-container {
      max-width: 1200px;
      margin: 0 auto 60px;
      padding: 0 20px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      grid-auto-rows: 240px;
      gap: 12px;
    }

    .gallery-grid img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 12px;
      display: block;
      cursor: pointer;
      transition: transform 0.3s;
    }

    .gallery-grid img:hover {
      transform: scale(1.02);
    }

    .gallery-main { grid-row: span 2; }

    /* ===== NAV BAR STICKY (ORIGINARIA SOTTO GALLERY) ===== */
.nav-container {
  max-width: 1200px;
  margin: 0 auto 60px; /* Top: 0, Bottom: 60px */
  padding: 0 20px;
  position: relative;
  z-index: 100;
}

.property-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: sticky;
  top: 82px; /* Header 72px + 10px gap */
  z-index: 900;
}

    .property-nav a {
      font-size: 0.85rem;
      color: #555;
      text-decoration: none;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      transition: all 0.2s;
      font-weight: 500;
      white-space: nowrap;
    }

    .property-nav a:hover {
      background: #6d4aff;
      color: white;
    }

    /* ===== LAYOUT DUE COLONNE ===== */
    .property-layout {
      max-width: 1200px;
      margin: 0 auto 60px;
      display: grid;
      grid-template-columns: 1.8fr 380px;
      gap: 40px;
      padding: 0 20px;
    }

    .property-content {
      min-width: 0;
      overflow-x: hidden;
    }

    /* Scroll margin per evitare sovrapposizione con nav bar sticky */
    .property-content > section {
      scroll-margin-top: 140px; /* Altezza header + nav bar */
    }

    #gallery {
      scroll-margin-top: 140px;
    }

    /* ===== BOOKING BOX ===== */
    .booking-box {
      position: sticky;
      top: 136px; /* Dopo header (72px) + nav bar (~64px) */
      background: white;
      border: 1px solid #e8e8e8;
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    .bookBtn {
      background: linear-gradient(135deg, #6d4aff 0%, #4a2cb3 100%);
      color: white;
      padding: 12px;
      font-weight: 600;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      width: 100%;
      margin-top: 0.5rem;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .bookBtn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(109, 76, 255, 0.3);
    }

    .checkin, .checkout {
      background: #f5f5f5;
      border: 1px solid #ddd;
      border-radius: 4px;
      padding: 0.5rem;
      width: 100%;
      margin-top: 0.5rem;
      box-sizing: border-box;
    }

    textarea {
      width: 100%;
      margin-top: 0.5rem;
      padding: 0.5rem;
      border-radius: 4px;
      box-sizing: border-box;
    }

    /* ===== SERVICES ===== */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 16px;
    }

    .services-grid > div {
      background: #fafafa;
      border: 1px solid #eee;
      border-radius: 12px;
      padding: 20px 16px;
      text-align: center;
      font-size: 0.9rem;
      transition: all 0.2s;
    }

    .services-grid > div:hover {
      background: white;
      border-color: #6d4aff;
      box-shadow: 0 4px 12px rgba(109, 76, 255, 0.15);
      transform: translateY(-2px);
    }

    /* ===== CARDS ===== */
    .card {
      border: 1px solid #ccc;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1rem;
    }

    /* ===== MODALS ===== */
    .modal {
      display: none;
      position: fixed;
      z-index: 2000;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
    }
    .modal-content {
      background: #fff;
      margin: 20% auto;
      padding: 1rem;
      width: 90%;
      max-width: 400px;
      border-radius: 8px;
      box-sizing: border-box;
    }
    .close { float: right; font-size: 1.5rem; cursor: pointer; }

    #loginModal {
      display: flex;
      opacity: 0;
      pointer-events: none;
      align-items: flex-end;
      justify-content: center;
      transition: 0.3s;
    }
    #loginModal.active { opacity: 1; pointer-events: auto; }
    #loginModal .modal-content {
      transform: translateY(100%);
      transition: 0.3s;
      border-radius: 16px 16px 0 0;
    }
    #loginModal.active .modal-content { transform: translateY(0); }

    /* FORM ELEMENTS */
    input, button {
      width: 100%;
      margin-top: 0.5rem;
      padding: 0.5rem;
      box-sizing: border-box;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    input[type="file"] {
      padding: 0.5rem 0;
    }

    /* MAPPA */
    #mapContainer {
      width: 100%;
      height: 400px;
      border-radius: 12px;
      overflow: hidden;
    }

    .directions-btn {
      display: block;
      margin-top: 15px;
      padding: 10px 20px;
      background: #6d4aff;
      color: white;
      text-decoration: none;
      text-align: center;
      border-radius: 8px;
      font-weight: 500;
    }

    /* ===== LITEPICKER CALENDARIO ===== */
    #availabilityCalendar {
      padding: 20px 0;
      overflow: visible;
    }

    #availabilityCalendar .litepicker {
      overflow: visible;
    }

    /* Giorno con font più grande */
    .litepicker .container__days .day-item {
      width: 36px !important;
      height: 36px !important;
      line-height: 36px !important;
      font-size: 15px !important;
      font-weight: 500 !important;
    }

    .litepicker .container__days .weekdays div {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #666 !important;
    }

    .litepicker .container__months .month-name {
      font-size: 16px !important;
      font-weight: 600 !important;
    }

    .litepicker .month-item-name {
      white-space: nowrap !important;
      writing-mode: horizontal-tb !important;
      display: inline-block !important;
    }

    .day-item * {
      box-shadow: none !important;
      outline: none !important;
    }

    /* Desktop: mesi affiancati */
    @media (min-width: 769px) {
      .litepicker .container__months {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow: visible !important;
      }

      .litepicker .container__months__month {
        min-width: 280px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
      }

      .litepicker .container__days {
        overflow: visible !important;
      }
    }

    /* Mobile: mesi impilati */
    @media (max-width: 768px) {
      .litepicker .container__months {
        flex-direction: column !important;
        gap: 20px !important;
      }

      .litepicker .container__months__month {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
      }

      .litepicker .month-item-name {
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
      }
    }

    /* Rimuovi bordo del calendario */
    #availabilityCalendar .litepicker,
    .container__months,
    .container__months__month,
    .container__days {
      border: none !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    /* ===== RESPONSIVE GENERALE ===== */
    @media (max-width: 768px) {
      .site-header { padding: 0 1rem; }
      .site-header .logo { font-size: 1.2rem; }
      .user-menu .avatar { width: 36px; height: 36px; }
      .user-menu > span { display: none; }
      
      .hero-container,
      .gallery-container,
      .nav-container,
      .property-summary,
      .property-layout {
        padding: 0 16px;
      }
      
      .hero-image {
        height: 320px;
        border-radius: 12px;
      }
      
      .hero-overlay {
        padding: 24px;
      }
      
      .hero-overlay h1 {
        font-size: 1.5rem;
      }
      
      .gallery-grid {
        grid-auto-rows: 160px;
        grid-template-columns: 1fr 1fr;
      }
      
      .property-nav {
        padding: 0.6rem 1rem;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
        top: 72px; /* Sticky subito sotto header su mobile */
      }
      
      .property-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 40px auto 40px;
      }
      
      .booking-box {
        position: relative;
        top: 0;
        margin-top: 20px;
      }
      
      .property-content > section,
      #gallery {
        scroll-margin-top: 100px;
      }
      
      .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }
      
      #mapContainer {
        height: 300px;
      }
      
      .directions-btn {
        padding: 12px 16px;
      }
    }

    @media (min-width: 769px) {
      .user-menu > span {
        display: block;
      }
    }
  
