/* ============================================================
   POOLANO.CSS — Design System Globale
   Versione 2.0 — Luglio 2026
   
   Questo file è l'unica fonte di verità per tutto il brand.
   Includilo in OGNI pagina PHP con:
   <link rel="stylesheet" href="/assets/css/poolano.css">
   ============================================================ */

/* ============================================================
   1. VARIABILI GLOBALI
   ============================================================ */
:root {
  /* Colori brand */
  --c-teal:        #204c67;   /* turchese primario */
  --c-teal-dark:   #1d8a88;   /* turchese hover */
  --c-teal-light:  #e8f8f8;   /* turchese sfondo chiaro */
  --c-night:       #111827;   /* testo principale */
  --c-dark:        #1f2937;   /* testo secondario */
  --c-gray:        #6b7280;   /* testo grigio */
  --c-gray-light:  #9ca3af;   /* testo grigio chiaro */
  --c-border:      #e5e7eb;   /* bordi */
  --c-bg:          #f0f2f5;   /* sfondo sezioni */
  --c-bg-soft:     #f9fafb;   /* sfondo card */
  --c-white:       #ffffff;

  /* Tipografia */
  --f-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spaziatura */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 999px;

  /* Ombre */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
}

/* ============================================================
   2. RESET E BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--f-body);
  color: var(--c-night);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--f-body); cursor: pointer; }

/* ============================================================
   3. HEADER
   ============================================================ */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
}

/* Logo */
.p-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.p-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--c-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.p-logo-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--c-night);
  letter-spacing: -.02em;
}

/* Header scroll attivo: sfondo turchese */
#main-nav.is-scrolled {
  background: var(--c-teal) !important;
  border-bottom-color: var(--c-teal-dark) !important;
}
#main-nav.is-scrolled #nav-logo-text { color: #fff !important; }
#main-nav.is-scrolled .p-logo-icon { background: rgba(255,255,255,.25) !important; }

/* Wishlist badge */
#wishlist-badge {
  background: #e11d48 !important;
  color: #fff !important;
}

/* ============================================================
   4. BOTTONI
   ============================================================ */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: var(--f-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
}

/* Primario turchese */
.p-btn-primary {
  background: var(--c-teal);
  color: #fff;
  border-radius: var(--radius-md);
  padding: .7rem 1.4rem;
  font-size: .88rem;
}
.p-btn-primary:hover {
  background: var(--c-teal-dark);
  transform: translateY(-1px);
}

/* Secondario outline */
.p-btn-outline {
  background: #fff;
  color: var(--c-night);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-full);
  padding: .55rem 1.1rem;
  font-size: .82rem;
}
.p-btn-outline:hover {
  border-color: var(--c-gray-light);
}

/* Bottone scuro */
.p-btn-dark {
  background: var(--c-night);
  color: #fff;
  border-radius: var(--radius-full);
  padding: .65rem 1.3rem;
  font-size: .82rem;
}
.p-btn-dark:hover {
  background: var(--c-dark);
}

/* ============================================================
   5. CARD HOTEL (usata in index, resultados, pagine geo)
   ============================================================ */
.hotel-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 16.5rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* CTA dentro card */
.hotel-card-cta {
  margin-top: .6rem;
  align-self: flex-start;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--c-teal);
  color: var(--c-teal);
  font-size: .72rem;
  font-weight: 800;
  padding: .45rem 1rem;
  transition: background .15s, color .15s;
}
.hotel-card:hover .hotel-card-cta {
  background: var(--c-teal);
  color: #fff;
}

/* Footer card: bottone + prezzo reale affiancati */
.hotel-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .7rem;
}
.hotel-card-footer .hotel-card-cta { margin-top: 0; }
.hotel-card-price-real {
  font-size: .78rem;
  color: #9ca3af;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  line-height: 1.25;
}
.hotel-card-price-real strong {
  font-size: 1rem;
  font-weight: 900;
  color: var(--c-night);
}
.hotel-card-price-real .hcpr-notte {
  font-size: .68rem;
  color: #9ca3af;
  font-weight: 600;
}

/* Bottoni azione card (condividi + cuore) */
.hotel-card-actions {
  position: absolute;
  top: .55rem;
  right: .55rem;
  display: flex;
  gap: .35rem;
  z-index: 3;
}
.hotel-card-action-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, background .15s;
}
.hotel-card-action-btn:hover { transform: scale(1.08); background: #fff; }
.hotel-card-heart-btn.is-saved svg path { fill: #e11d48; stroke: #e11d48; }

/* Badge info (i) — in basso a sinistra per non toccare il prezzo */
.hotel-card-info {
  position: absolute;
  left: .55rem;
  bottom: .55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(15,23,42,.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 900;
  font-style: italic;
  pointer-events: none;
  z-index: 3;
}

/* Rating badge */
.hotel-card-rating {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #fff;
  color: var(--c-night);
  border-radius: .65rem;
  padding: .3rem .55rem;
  font-size: .7rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}
.hotel-card-rating svg { color: #16a34a; }

/* ============================================================
   6. BADGE E LABEL
   ============================================================ */
.p-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-radius: var(--radius-full);
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 700;
}
.p-badge-green  { background: #dcfce7; color: #166534; }
.p-badge-teal   { background: var(--c-teal-light); color: var(--c-teal-dark); }
.p-badge-gray   { background: #f1f5f9; color: #64748b; }
.p-badge-dark   { background: rgba(15,23,42,.72); color: #fff; }

/* ============================================================
   7. FORM E INPUT
   ============================================================ */
.p-input {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: .65rem 1rem;
  font-size: .88rem;
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--c-night);
  background: #fff;
  width: 100%;
  outline: none;
  transition: border-color .15s;
}
.p-input:focus { border-color: var(--c-teal); }
.p-input::placeholder { color: var(--c-gray-light); font-weight: 400; }

/* Checkbox stile brand */
.p-checkbox-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--c-border);
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
input:checked ~ .p-checkbox-box,
.p-check.is-active .p-checkbox-box {
  background: var(--c-teal);
  border-color: var(--c-teal);
}

/* Filter sidebar checkbox */
.f-check:hover .f-box { border-color: var(--c-teal) !important; }
.f-check input:checked ~ .f-box,
.f-check.is-active .f-box {
  background: var(--c-teal) !important;
  border-color: var(--c-teal) !important;
}
.f-check.is-active .f-label { color: var(--c-teal) !important; }
.filter-section-title a { color: var(--c-teal) !important; }
.filter-price-range { background: var(--c-teal) !important; }
.filter-price-thumb::-webkit-slider-thumb { border-color: var(--c-teal) !important; }
.filter-price-thumb::-moz-range-thumb { border-color: var(--c-teal) !important; }
.filter-price-field input:focus { border-color: var(--c-teal) !important; }
.filter-price-apply {
  background: var(--c-teal) !important;
  border: none !important;
}
.filter-price-apply:hover { background: var(--c-teal-dark) !important; }

/* ============================================================
   8. SEZIONI HOME / PAGINE GEO
   ============================================================ */
/* Kicker (testo sopra titolo sezione) */
.p-kicker {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-teal);
}

/* Titolo sezione */
.p-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-night);
  letter-spacing: -.01em;
  margin: .3rem 0 .25rem;
}

/* Link "vedi tutti" */
.p-link-teal {
  color: var(--c-teal);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: color .15s;
}
.p-link-teal:hover { color: var(--c-teal-dark); }

/* Tab attivo (città, tipologie) */
.city-tab.is-active { color: var(--c-night); }
.city-tab::after { background: var(--c-teal) !important; }

/* Tip pill attivo (tipologie) — uguale ai filtri hero */
.tip-pill.is-active {
  border-color: var(--c-teal) !important;
  background: var(--c-teal-light) !important;
  color: var(--c-teal-dark) !important;
}
.tip-pill-icon { display: none !important; }

/* ============================================================
   9. MAPPA
   ============================================================ */
.home-map-search-btn {
  background: var(--c-teal) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
}
.home-map-search-suggestion:hover {
  background: var(--c-teal-light) !important;
  color: var(--c-teal) !important;
}
#hm-price-panel svg { color: var(--c-teal) !important; }
#hm-price-panel-val { color: var(--c-teal) !important; }
#hm-price-slider {
  background: linear-gradient(
    to right,
    var(--c-teal) 0%,
    var(--c-teal) var(--pct, 100%),
    #e2e8f0 var(--pct, 100%)
  ) !important;
}
#hm-price-slider::-webkit-slider-thumb { border-color: var(--c-teal) !important; }
#hm-price-slider::-moz-range-thumb { border-color: var(--c-teal) !important; }

/* ============================================================
   10. RESULTADOS — hotel row attivo
   ============================================================ */
.hotel-row.is-active {
  border-color: var(--c-teal) !important;
  box-shadow: 0 0 0 2px var(--c-teal-light) !important;
}

/* ============================================================
   11. AUTOCOMPLETE
   ============================================================ */
.hero-autocomplete-icon.is-hotel { color: var(--c-teal) !important; }
.hero-autocomplete-item:hover,
.hero-autocomplete-item.is-highlighted {
  background: var(--c-teal-light) !important;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.ft-brand-icon { background: var(--c-teal) !important; }
.ft-brand-name span { color: var(--c-teal) !important; }

/* ============================================================
   13. PAGINE REGIONE / AREA
   ============================================================ */
.geo-hero { background: linear-gradient(135deg, var(--c-teal), #0D1B2A); }
.geo-area-pill {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.geo-area-pill:hover {
  background: rgba(255,255,255,.15);
}
.geo-cities-toggle {
  border-color: var(--c-teal) !important;
  color: var(--c-teal) !important;
}
.geo-cities-toggle:hover {
  background: var(--c-teal) !important;
  color: #fff !important;
}
.geo-city:hover { border-color: var(--c-teal); }
.geo-city .cc { color: var(--c-teal); }

/* Search hero nelle pagine geo */
.geo-search-btn {
  background: var(--c-teal) !important;
  border-radius: var(--radius-md) !important;
}
.geo-search-btn:hover { background: var(--c-teal-dark) !important; }
.geo-search-field input:focus { outline-color: var(--c-teal) !important; }

/* ============================================================
   14. EXPLORER REGIONI (blocco home)
   ============================================================ */
.geox-kicker { color: var(--c-teal); }
.geox-tab.is-active { background: var(--c-teal) !important; color: #fff !important; }
.geox-area-row:hover .geox-area-name { color: var(--c-teal); }
.geox-area-row:hover .geox-area-arrow { color: var(--c-teal); }

/* ============================================================
   15. UTILITY CLASSI
   ============================================================ */
.u-teal { color: var(--c-teal) !important; }
.u-bg-teal { background: var(--c-teal) !important; }
.u-bg-teal-light { background: var(--c-teal-light) !important; }
.u-night { color: var(--c-night) !important; }
.u-gray { color: var(--c-gray) !important; }
.u-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.u-tracking-wide { letter-spacing: .025em; }
.u-cursor-pointer { cursor: pointer; }