/* ================================================================
   BB SALENTO — Stylesheet v2
   Palette: crema caldo · azzurro Mediterraneo · terracotta · sabbia
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colori base */
  --cream:        #FEFCF7;
  --sand:         #F5EDD8;
  --sand-light:   #FBF6EC;
  --white:        #FFFFFF;
  --border:       #E8DFD0;
  --border-light: #F0E9DC;

  /* Testo */
  --text-dark:    #1C1917;
  --text-medium:  #44403C;
  --text-light:   #78716C;

  /* Brand */
  --sea:          #0C7EA0;      /* azzurro Mediterraneo */
  --sea-dark:     #085F78;
  --sea-light:    #E0F4FB;
  --terra:        #D4714A;      /* terracotta */
  --terra-dark:   #B55A38;
  --terra-light:  #FDEEE8;
  --gold:         #D4A84B;      /* giallo sabbia/sole */
  --gold-light:   #FEF6E4;

  /* Stato */
  --green:        #15803D;
  --green-light:  #DCFCE7;
  --red:          #B91C1C;
  --red-light:    #FEE2E2;

  /* Ombre */
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.12);
  --shadow-card:  0 4px 20px rgba(28,25,23,0.09);

  /* Radii */
  --r:    14px;
  --r-sm:  8px;
  --r-xs:  6px;
  --r-pill: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.serif { font-family: 'Playfair Display', Georgia, serif; }

h1, h2 { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254,252,247,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; font-weight: 800;
  color: var(--text-dark); letter-spacing: -0.02em;
}
.logo-main .dot-it { color: var(--sea); }
.logo-tagline {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-light);
}
.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-medium);
  padding: 7px 14px; border-radius: var(--r-pill);
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--sand); color: var(--text-dark); }
.nav-links .nav-cta {
  background: var(--sea); color: white; padding: 8px 18px;
}
.nav-links .nav-cta:hover { background: var(--sea-dark); color: white; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1D4E73 0%, #3A82AF 50%, #7BB8D4 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(58,130,175,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 15%, rgba(123,184,212,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(29,78,115,0.55) 0%, transparent 60%);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22; mix-blend-mode: luminosity;
}
.hero-content {
  position: relative; z-index: 1;
  padding: 80px 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.hero-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: block; }
.hero h1 {
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero h1 em { font-style: italic; color: rgba(255,255,255,0.85); }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.78);
  max-width: 520px; line-height: 1.75; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stat-row {
  display: flex; gap: 32px; margin-top: 52px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat-val { font-size: 1.8rem; font-weight: 800; color: white; font-family: 'Playfair Display', serif; }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ================================================================
   FILTERS
   ================================================================ */
.filters-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 72px; z-index: 50;
  box-shadow: var(--shadow-xs);
}
.filters-inner {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center; padding: 14px 0;
}
.filter-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light);
  margin-right: 4px;
}
.filter-btn {
  padding: 7px 16px; border: 1.5px solid var(--border);
  border-radius: var(--r-pill); background: var(--white);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  color: var(--text-medium); transition: all 0.18s; font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 5px;
}
.filter-btn .fi { font-size: 0.9rem; }
.filter-btn:hover { background: var(--sand-light); border-color: var(--border); color: var(--text-dark); }
.filter-btn.active { background: var(--sea); color: white; border-color: var(--sea); }
.filter-btn.active-terra { background: var(--terra); color: white; border-color: var(--terra); }
.filter-count {
  margin-left: auto; font-size: 0.8rem; color: var(--text-light);
  font-weight: 500; white-space: nowrap;
}

/* ================================================================
   SECTION — Alloggi
   ================================================================ */
.properties-section { padding: 56px 0 88px; background: var(--cream); }
.section-head { margin-bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { color: var(--text-light); font-size: 0.95rem; }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

/* ================================================================
   PROPERTY CARD
   ================================================================ */
.property-card {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: transform 0.25s cubic-bezier(.2,.8,.4,1), box-shadow 0.25s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Image area */
.card-img-wrap {
  position: relative; height: 230px; overflow: hidden;
  background: var(--sand);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.8,.4,1);
}
.property-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-tipo {
  position: absolute; top: 14px; left: 14px;
  background: var(--white);
  border-radius: var(--r-pill); padding: 4px 13px;
  font-size: 0.7rem; font-weight: 700; color: var(--text-dark);
  text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
}
.card-avail {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border-radius: var(--r-pill); padding: 4px 10px;
  font-size: 0.7rem; font-weight: 700;
}
.card-avail .dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.card-avail.avail-si { color: var(--green); }
.card-avail.avail-si .dot { background: var(--green); }
.card-avail.avail-no { color: var(--red); }
.card-avail.avail-no .dot { background: var(--red); }

/* Card body */
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 0; }

.card-host-row {
  display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
}
.card-host-badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 2px 9px; border-radius: var(--r-pill);
}
.host1-badge { background: var(--sea-light); color: var(--sea-dark); }
.host2-badge { background: var(--terra-light); color: var(--terra-dark); }

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-dark); line-height: 1.25; margin-bottom: 8px;
}
.card-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.83rem; color: var(--text-light); margin-bottom: 16px;
}
.card-location svg { flex-shrink: 0; }

.card-divider { height: 1px; background: var(--border-light); margin-bottom: 16px; }

.card-features { display: flex; gap: 20px; margin-bottom: 16px; }
.feat { display: flex; align-items: center; gap: 5px; font-size: 0.79rem; color: var(--text-light); }

.card-footer-row {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.card-price-from { font-size: 0.78rem; color: var(--text-light); margin-bottom: 2px; }
.card-price-main { font-size: 1.35rem; font-weight: 800; color: var(--text-dark); font-family: 'Playfair Display', serif; }
.card-price-per  { font-size: 0.78rem; color: var(--text-light); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px; border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  transition: all 0.18s; border: none; font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}
.btn-sea    { background: var(--sea); color: white; }
.btn-sea:hover { background: var(--sea-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(12,126,160,0.35); }
.btn-terra  { background: var(--terra); color: white; }
.btn-terra:hover { background: var(--terra-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,113,74,0.35); }
.btn-white  { background: white; color: var(--text-dark); }
.btn-white:hover { background: var(--sand-light); }
.btn-ghost  { background: rgba(255,255,255,0.15); color: white; border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-outline{ background: transparent; color: var(--text-dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text-dark); background: var(--sand-light); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px; border-radius: var(--r-pill);
  background: #22C55E; color: white;
  font-size: 0.95rem; font-weight: 700; font-family: 'Inter', sans-serif;
  border: none; cursor: pointer; transition: all 0.18s;
  box-shadow: 0 2px 12px rgba(34,197,94,0.3);
}
.btn-wa:hover { background: #16A34A; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(34,197,94,0.4); }

.btn-mail {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border-radius: var(--r-pill);
  background: var(--sand-light); color: var(--text-dark);
  border: 1.5px solid var(--border); font-size: 0.875rem;
  font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all 0.18s;
}
.btn-mail:hover { background: var(--sand); border-color: var(--text-medium); }

/* ================================================================
   SKELETON
   ================================================================ */
.skeleton { background: var(--white); border-radius: var(--r); border: 1px solid var(--border-light); overflow: hidden; }
.skel-img  { height: 230px; background: linear-gradient(90deg, var(--sand) 25%, #ede5d4 50%, var(--sand) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skel-body { padding: 22px; }
.skel-line { height: 13px; border-radius: 4px; margin-bottom: 12px; background: linear-gradient(90deg, var(--sand) 25%, #ede5d4 50%, var(--sand) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skel-line.s  { width: 55%; }
.skel-line.xs { width: 35%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ================================================================
   SEZIONE "COME FUNZIONA"
   ================================================================ */
.how-section {
  background: var(--sand-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 0;
}
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 48px;
}
.how-step { text-align: center; padding: 0 16px; }
.how-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.8rem;
}
.how-icon.sea-bg  { background: var(--sea-light); }
.how-icon.terra-bg{ background: var(--terra-light); }
.how-icon.gold-bg { background: var(--gold-light); }
.how-step h3 { margin-bottom: 10px; }
.how-step p  { color: var(--text-light); font-size: 0.9rem; line-height: 1.75; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #1C1917; color: rgba(255,255,255,0.65);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 4px;
}
.footer-logo-main .dot-it { color: var(--sea); }
.footer-tagline { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-desc { font-size: 0.875rem; line-height: 1.8; color: rgba(255,255,255,0.45); max-width: 300px; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: white; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.28);
}

/* ================================================================
   PROPERTY DETAIL PAGE
   ================================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--text-light);
  padding: 18px 0 24px;
}
.breadcrumb a:hover { color: var(--sea); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text-dark); font-weight: 500; }


.property-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 56px; align-items: start; padding-bottom: 80px;
}
.property-main { min-width: 0; }
.property-sidebar { position: sticky; top: 144px; }

.prop-tipo {
  display: inline-block;
  background: var(--sea-light); color: var(--sea-dark);
  border-radius: var(--r-pill); padding: 4px 14px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.prop-nome {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 12px;
}
.prop-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-light); font-size: 0.875rem; margin-bottom: 0; }
.prop-meta span { display: flex; align-items: center; gap: 5px; }

.info-block { padding: 32px 0; border-bottom: 1px solid var(--border-light); }
.info-block:last-child { border-bottom: none; }
.info-block h3 { margin-bottom: 16px; }
.info-block p { color: var(--text-medium); line-height: 1.85; }

.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.amenity-item  { display: flex; align-items: center; gap: 9px; font-size: 0.875rem; color: var(--text-medium); }
.amenity-icon  { width: 32px; height: 32px; border-radius: var(--r-xs); background: var(--sea-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ================================================================
   BOOKING CARD & FORM
   ================================================================ */
.booking-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.booking-card-head {
  background: linear-gradient(135deg, #1D4E73 0%, #3A82AF 100%);
  padding: 22px 24px;
  color: white;
}
.booking-card-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: white; margin-bottom: 4px;
}
.booking-card-head p { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.booking-card-body { padding: 22px 24px; }
.booking-divider { height: 1px; background: var(--border-light); margin: 18px 0; }

/* Date inputs */
.booking-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bf-group { display: flex; flex-direction: column; gap: 5px; }
.bf-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light);
}
.bf-input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.875rem; font-family: 'Inter', sans-serif;
  color: var(--text-dark); background: var(--cream);
  outline: none; transition: border-color 0.18s, background 0.18s;
}
.bf-input:focus { border-color: var(--sea); background: white; }

/* Guest counters */
.guest-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.guest-row:last-child { border-bottom: none; }
.guest-info { display: flex; flex-direction: column; }
.guest-name { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }
.guest-sub  { font-size: 0.72rem; color: var(--text-light); }
.guest-counter { display: flex; align-items: center; gap: 12px; }
.counter-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--border); background: white;
  font-size: 1.1rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dark); transition: all 0.18s; line-height: 1;
}
.counter-btn:hover { border-color: var(--sea); color: var(--sea); }
.counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.counter-val { font-size: 1rem; font-weight: 700; min-width: 20px; text-align: center; }

/* Result box */
.booking-result { border-radius: var(--r-sm); padding: 16px; margin-top: 16px; }
.booking-result.available {
  background: var(--green-light);
  border: 1.5px solid #86EFAC;
}
.booking-result.unavailable {
  background: var(--red-light);
  border: 1.5px solid #FCA5A5;
}
.booking-result.warning {
  background: var(--gold-light);
  border: 1.5px solid #FDE68A;
}
.result-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.result-title.green { color: var(--green); }
.result-title.red   { color: var(--red); }
.result-title.gold  { color: #92400E; }
.result-detail { font-size: 0.82rem; color: var(--text-medium); line-height: 1.6; }
.result-price-row {
  display: flex; align-items: baseline; gap: 6px;
  margin: 10px 0 4px;
}
.result-price-total {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--text-dark);
}
.result-price-detail { font-size: 0.78rem; color: var(--text-light); }
.result-extras {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  font-size: 0.80rem;
  color: var(--text-medium);
  background: rgba(0,0,0,0.04);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  margin: 4px 0 8px;
}
.result-extras span:nth-child(odd)  { font-weight: 600; white-space: nowrap; }
.result-extras span:nth-child(even) { color: var(--text-light); }

/* Discount code */
.discount-label {
  font-size: 0.78rem; font-weight: 600; color: var(--text-medium);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.discount-row {
  display: flex; gap: 8px; align-items: center;
}
.discount-input {
  flex: 1; font-family: monospace; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.discount-btn { flex-shrink: 0; }
.discount-msg {
  margin-top: 8px; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 0.82rem; line-height: 1.5;
}
.discount-msg.warning { background: #FEF9C3; color: #92400E; }
.discount-msg.error   { background: #FEE2E2; color: #991B1B; }
.discount-msg.success { background: #DCFCE7; color: #166534; }
.discount-saving      { font-size: 0.88rem; }

/* Host result message */
.host-result-msg {
  padding: 12px 16px; border-radius: var(--r-sm);
  font-size: 0.875rem; line-height: 1.55;
  background: var(--cream); border: 1px solid var(--border);
}
.host-result-msg.success { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.host-result-msg.error   { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.host-result-msg.warning { background: #FEF9C3; color: #92400E; border-color: #FDE68A; }

/* Period table (tariffe) */
.period-table { width: 100%; border-collapse: collapse; }
.period-table th {
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-light); text-align: left;
  padding: 6px 0; border-bottom: 1px solid var(--border-light);
}
.period-table td { padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 0.82rem; vertical-align: middle; }
.period-table td:last-child { text-align: right; font-weight: 600; }

.status-badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 0.67rem; font-weight: 700; }
.status-badge.available { background: var(--green-light); color: var(--green); }
.status-badge.occupied  { background: var(--red-light);   color: var(--red); }

/* ================================================================
   ADMIN
   ================================================================ */
body.admin-body { background: #F7F5F2; }

.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  background: white; border-radius: var(--r); padding: 48px;
  width: 100%; max-width: 400px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.login-logo { margin-bottom: 28px; }
.login-card h2 { margin-bottom: 4px; }
.login-card .sub { color: var(--text-light); font-size: 0.9rem; margin-bottom: 32px; }
.form-group  { margin-bottom: 16px; }
.form-label  { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.form-input  {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-size: 0.9rem; outline: none;
  transition: border-color 0.18s; font-family: 'Inter', sans-serif;
  background: var(--cream);
}
.form-input:focus { border-color: var(--sea); background: white; }
.login-error { display: none; background: var(--red-light); color: var(--red); padding: 12px 16px; border-radius: var(--r-sm); font-size: 0.875rem; margin-bottom: 16px; }

.admin-header {
  background: white; border-bottom: 1px solid var(--border-light);
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-xs);
}
.admin-logo { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1rem; }
.admin-logo .dot-it { color: var(--sea); }
.admin-header-right { display: flex; align-items: center; gap: 14px; }
.admin-content { padding: 36px 28px; max-width: 1400px; margin: 0 auto; }
.admin-page-title { margin-bottom: 28px; }
.admin-page-title h2 { font-size: 1.5rem; margin-bottom: 4px; }
.admin-page-title p { color: var(--text-light); font-size: 0.875rem; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--r-sm); border: 1px solid var(--border-light); padding: 22px 26px; }
.stat-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 10px; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--text-dark); line-height: 1; }
.stat-value.green { color: var(--green); }
.stat-value.red   { color: var(--red); }
.stat-sub { font-size: 0.77rem; color: var(--text-light); margin-top: 6px; }

.admin-panel { background: white; border-radius: var(--r); border: 1px solid var(--border-light); overflow: hidden; box-shadow: var(--shadow-xs); }
.admin-panel-head { padding: 20px 26px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.admin-panel-head h3 { font-size: 1rem; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); text-align: left; padding: 12px 24px; background: #FAF8F5; border-bottom: 1px solid var(--border-light); }
.admin-table td { padding: 16px 24px; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FDFBF8; }

.host-tag { display: inline-block; padding: 3px 11px; border-radius: var(--r-pill); font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.host-tag.host1 { background: var(--sea-light); color: var(--sea-dark); }
.host-tag.host2 { background: var(--terra-light); color: var(--terra-dark); }

.sheets-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--sea); font-weight: 600; transition: color 0.18s; }
.sheets-link:hover { color: var(--sea-dark); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .property-layout { grid-template-columns: 1fr; }
  .property-sidebar { position: static; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links .nav-cta { display: none; }
  .nav-links li:not(:last-child) { display: none; }
  .hero { min-height: 460px; }
  .hero-stat-row { gap: 24px; }
  .properties-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-table th, .admin-table td { padding: 12px 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .filters-wrap { top: 72px; }
}
