/* ============================================================
   LA SEBORGHINA — DESIGN SYSTEM
   Premium Mediterranean Vacation Rental Website
   ============================================================ */

/* ---- RESET & ROOT ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --teal:       #1a5c5c;
  --teal-light: #2a8585;
  --teal-dark:  #0d3333;
  --coral:      #c9614a;
  --coral-dk:   #a84838;
  --gold:       #d4a843;
  --sand:       #f0e6d3;
  --sand-dark:  #e0cdb4;
  --cream:      #faf7f2;
  --white:      #ffffff;
  --ink:        #1c2426;
  --ink-light:  #3d4f50;
  --muted:      #6b7c7d;

  /* Fonts */
  --ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Sizing */
  --nav-h: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button { font-family: var(--ff-body); cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.text-center { text-align: center; }

/* ---- TYPOGRAPHY ---- */
.section-seal {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto -1.5rem auto;
  opacity: 0.95;
}
.eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--teal-dark);
  margin-bottom: 1.5rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 1rem;
}
.section-header { margin-bottom: 3.5rem; }

/* ---- BUTTONS ---- */
.btn-primary, .btn-ghost, .btn-outline, .btn-book-main, .btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s var(--ease);
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201,97,74,.35);
}
.btn-primary:hover { background: var(--coral-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,97,74,.4); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-book-main {
  width: 100%;
  justify-content: center;
  background: var(--teal);
  color: var(--white);
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(26,92,92,.3);
  margin-bottom: .75rem;
}
.btn-book-main:hover:not(:disabled) { background: var(--teal-dark); transform: translateY(-2px); }
.btn-book-main:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.btn-wa {
  width: 100%;
  justify-content: center;
  background: #25D366;
  color: var(--white);
  font-size: .95rem;
  padding: .9rem 2rem;
  border-radius: var(--radius-md);
  margin-bottom: .5rem;
}
.btn-wa:hover { background: #1da850; transform: translateY(-2px); }

.btn-clear {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding: .4rem;
  margin-bottom: 1rem;
  text-decoration: underline;
}
.btn-clear:hover { color: var(--coral); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.navbar.scrolled {
  background: rgba(13,51,51,.96);
  box-shadow: 0 2px 30px rgba(0,0,0,.2);
}
/* Move backdrop-filter to pseudo-element to avoid breaking position:fixed context on iOS */
.navbar.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  font-weight: 400;
  color: var(--white);
  margin-right: auto;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: opacity .2s, text-shadow .3s var(--ease);
}
.nav-logo:hover { opacity: .85; }
.nav-logo em { 
  color: var(--gold); 
  font-style: normal; 
}
.navbar.scrolled .nav-logo {
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  background: var(--coral);
  color: var(--white);
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--coral-dk); }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .2s;
}
.lang-current:hover { background: rgba(255,255,255,.1); }
.lang-current i { font-size: .85rem; transition: transform .2s; }
.lang-switcher.open .lang-current i { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--teal-dark);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 160px;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.lang-switcher.open .lang-dropdown {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: all;
}
.lang-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: .75rem 1rem;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  transition: background .15s;
}
.lang-dropdown button:hover { background: rgba(255,255,255,.1); color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh; min-height: 650px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.04);
  animation: heroZoom 8s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes heroZoom { to { transform: scale(1); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,51,51,.72) 0%,
    rgba(13,51,51,.4) 60%,
    rgba(13,51,51,.65) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding: .4rem 1rem;
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 50px;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.75rem;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
/* --- Desktop: pills centered row, payment badge same row as buttons --- */
.hero-pills-wrapper { display: none; } /* legacy, unused */

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.hero-pills > span {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  padding: .4rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  color: var(--white);
  white-space: nowrap;
}

/* Payment badge: full width, above CTA buttons */
.hero-pill-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .75rem 1.5rem;
  background: rgba(44, 110, 106, 0.9);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.hero-pill-payment:hover {
  background: rgba(44, 110, 106, 1);
  transform: translateY(-2px);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block; width: 22px; height: 38px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::before {
  content: '';
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 50% { top: 18px; opacity: 0; } }

/* ---- PROPERTY ---- */
#property { padding-top: 2rem; }
.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.property-text p { color: var(--ink-light); margin-bottom: 1rem; }
.prop-stats {
  display: flex; gap: 1.5rem;
  padding: 1.5rem 0; margin-top: 1rem;
  border-top: 1px solid var(--sand-dark);
}
.prop-stat { display: flex; flex-direction: column; align-items: center; }
.stat-n { font-size: 2.25rem; font-weight: 700; color: var(--teal); font-family: var(--ff-display); }
.prop-stat span:last-child { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.property-imgs { display: flex; flex-direction: column; gap: 1rem; }
.prop-img-main img {
  width: 100%; height: 380px; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.prop-img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.prop-img-duo img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ---- GALLERY ---- */
.gallery-section { background: var(--sand); }
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item.span-row { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,51,51,.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: .85rem; font-weight: 500; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.93); }
.lb-body {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 90vh;
  text-align: center;
}
.lb-body img { max-height: 85vh; max-width: 90vw; border-radius: var(--radius-md); object-fit: contain; }
.lb-body p { color: rgba(255,255,255,.7); margin-top: .75rem; font-size: .9rem; }
#lbCounter { color: rgba(255,255,255,.4); font-size: .8rem; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; z-index: 2;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---- AMENITIES ---- */
.amen-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.amen-hi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.amen-hi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.amen-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white);
  margin: 0 auto 1rem;
}
.amen-hi-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--teal-dark); margin-bottom: .35rem; }
.amen-hi-card p  { font-size: .875rem; color: var(--muted); }

.amen-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.amen-group {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.amen-group h4 {
  display: flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 600;
  color: var(--teal-dark); margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--sand);
}
.amen-group ul li {
  font-size: .875rem; color: var(--ink-light);
  padding: .3rem 0;
  display: flex; align-items: center; gap: .5rem;
}
.amen-group ul li::before { content: '✓'; color: var(--teal-light); font-weight: 700; font-size: .8rem; }

/* ---- BOOKING / CALENDAR ---- */
.booking-section { background: var(--teal-dark); color: var(--white); }
.booking-section .eyebrow { color: var(--gold); }
.booking-section .section-title { color: var(--white); }
.booking-section .section-desc  { color: rgba(255,255,255,.7); }

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

/* Calendar */
.cal-wrapper {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cal-head button {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cal-head button:hover { background: rgba(255,255,255,.2); }
.cal-month-label { font-weight: 600; font-size: 1rem; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day-name {
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem 0;
}
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s, color .15s;
  color: rgba(255,255,255,.85);
  border: none;
  background: transparent;
  z-index: 20;
  user-select: none;
  -webkit-user-select: none;
}
@media (hover: hover) {
  .cal-day:hover:not(.past):not(.blocked) { background: rgba(255,255,255,.15); }
}
.cal-day.past    { color: rgba(255,255,255,.2); cursor: not-allowed; }
.cal-day.blocked { color: rgba(255,255,255,.2); cursor: not-allowed; text-decoration: line-through; }
.cal-day.blocked::after {
  content: '';
  position: absolute; inset: 4px;
  background: rgba(201,97,74,.2);
  border-radius: 50%;
}
.cal-day.checkin, .cal-day.checkout {
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(201,97,74,.5);
  z-index: 1;
}
.cal-day.inrange {
  background: rgba(201,97,74,.2);
  color: var(--white);
  border-radius: 0;
}
.cal-day.inrange:first-child, .cal-day.checkin  { border-radius: 50% 0 0 50%; }
.cal-day.inrange:last-child,  .cal-day.checkout { border-radius: 0 50% 50% 0; }
.cal-day.checkin.checkout { border-radius: 50%; }
.cal-day.hover-range { background: rgba(255,255,255,.08); border-radius: 0; }
.cal-day.empty { cursor: default; }
.cal-day.today::before {
  content: '';
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.cal-legend {
  display: flex; gap: 1.5rem; margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.leg-item { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: rgba(255,255,255,.6); }
.leg-dot  { width: 10px; height: 10px; border-radius: 50%; }
.leg-avail   { background: rgba(255,255,255,.3); }
.leg-blocked { background: rgba(201,97,74,.4); }
.leg-sel     { background: var(--coral); }

.ical-status {
  font-size: .78rem; color: rgba(255,255,255,.4);
  margin-top: .75rem; text-align: center;
}

/* Booking Panel */
.booking-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--ink);
  position: sticky; top: calc(var(--nav-h) + 1rem);
  box-shadow: var(--shadow-lg);
}
.season-tag {
  text-align: center; margin-bottom: 1.25rem;
  font-size: .8rem; font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 50px;
  background: var(--sand);
  color: var(--teal);
  display: inline-block;
}

.date-row {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.25rem;
}
.date-box {
  flex: 1; padding: .85rem 1rem;
  border: 2px solid var(--sand-dark);
  border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .2s;
  user-select: none;
}
.date-box:hover, .date-box.active { border-color: var(--teal); }
.date-box label { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; cursor: pointer; pointer-events: none; }
.date-val { font-weight: 600; font-size: .95rem; color: var(--teal-dark); pointer-events: none; }
.date-arrow { color: var(--muted); font-size: 1.25rem; flex-shrink: 0; }

.guests-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: .9rem;
  font-weight: 500;
}
.guests-ctrl { display: flex; align-items: center; gap: .75rem; }
.guests-ctrl button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.guests-ctrl button:hover { background: var(--teal); color: var(--white); }
.guests-ctrl span { font-weight: 700; min-width: 1.5rem; text-align: center; }

.price-breakdown {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: none;
}
.price-breakdown.visible { display: block; }
.pb-row {
  display: flex; justify-content: space-between;
  font-size: .9rem; padding: .35rem 0;
  color: var(--ink-light);
  border-bottom: 1px solid var(--sand-dark);
}
.pb-row:last-child { border: none; }
.pb-total { font-size: 1.05rem; font-weight: 700; color: var(--teal-dark); padding-top: .75rem; }

.min-msg {
  background: rgba(212,168,67,.15);
  border: 1px solid rgba(212,168,67,.4);
  color: #7a6520;
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-size: .85rem;
  margin-bottom: 1rem;
  display: none;
}
.min-msg.visible { display: block; }

.no-comm-note {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--muted);
  text-align: center; justify-content: center;
}
.no-comm-note i { color: var(--teal-light); }

/* Booking Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: none;
}
.modal-overlay.open { display: block; }
.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  z-index: 5001;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: min(580px, 95vw);
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.modal.open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: all; }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sand);
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--sand-dark); }
.modal h3 { font-family: var(--ff-display); font-size: 1.5rem; color: var(--teal-dark); margin-bottom: 1rem; }
.modal-summary {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--ink-light);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.form-group input, .form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: .95rem;
  transition: border-color .2s;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,92,92,.1);
}
.form-group textarea { resize: vertical; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.25rem 0; }
.form-actions .btn-book-main, .form-actions .btn-outline { margin: 0; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---- LOCATION ---- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.location-info p { color: var(--ink-light); margin-bottom: 1.5rem; }
.dist-list { display: flex; flex-direction: column; gap: .75rem; }
.dist-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem;
  background: var(--sand);
  border-radius: var(--radius-md);
}
.dist-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--teal);
}
.dist-item strong { font-size: .9rem; display: block; }
.dist-km { font-size: .8rem; color: var(--muted); }
.location-map iframe {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%; display: block;
}

/* ---- HOST ---- */
.host-section { background: var(--sand); }
.host-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  box-shadow: var(--shadow-md);
}
.host-photo-col { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.host-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
}
.host-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.host-tag {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600;
  padding: .35rem .8rem;
  background: rgba(26,92,92,.1);
  color: var(--teal);
  border-radius: 50px;
}
.host-since { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.host-bio {
  font-size: 1rem; line-height: 1.7;
  color: var(--ink-light);
  border-left: 3px solid var(--teal-light);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
  font-style: italic;
}
.host-metrics { display: flex; gap: 2rem; margin-bottom: 2rem; }
.hm { display: flex; flex-direction: column; align-items: center; }
.hm-n { font-size: 1.75rem; font-weight: 700; color: var(--teal); font-family: var(--ff-display); }
.hm span:last-child { font-size: .75rem; color: var(--muted); text-align: center; }
.host-actions { display: flex; gap: 1rem; }
.host-actions .btn-wa { width: auto; }

/* ---- FOOTER ---- */
.footer { background: var(--teal-dark); color: rgba(255,255,255,.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 24px;
}
.footer-logo {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1;
}
.footer-logo em { color: var(--gold); font-style: normal; }
.footer-brand p { font-size: .875rem; line-height: 1.8; }
.footer-cin { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: .75rem; }
.footer-socials { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: rgba(255,255,255,.7);
  transition: background .2s, color .2s;
}
.footer-socials a:hover { background: var(--teal-light); color: var(--white); }
.footer-col h4 {
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--white); margin-bottom: 1.25rem;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.6);
  font-size: .875rem; margin-bottom: .6rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.ftr-contact { display: flex; align-items: center; gap: .5rem; }
.ftr-admin { margin-top: 1rem; opacity: .4; }
.ftr-admin:hover { opacity: .8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 24px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* ---- TABLET (≤1024px) ---- */
@media (max-width: 1024px) {
  .property-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .booking-layout  { grid-template-columns: 1fr; }
  .booking-panel   { position: static; }
  .amen-highlights { grid-template-columns: repeat(2, 1fr); }
  .amen-details    { grid-template-columns: repeat(2, 1fr); }
  .location-grid   { grid-template-columns: 1fr; }
  .location-info   { order: 1; }
  .location-map    { order: 2; }
  .host-card       { grid-template-columns: 1fr; padding: 2rem; }
  .host-photo-col  { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

/* ---- MOBILE (≤768px) ---- */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }

  /* --- NAVBAR --- */
  .nav-hamburger { display: flex; }
  .lang-dropdown { right: auto; left: 0; }

  /* Logo dimensione corretta su mobile */
  .nav-logo { font-size: 2rem; letter-spacing: .04em; }
  .nav-inner { padding: 0 16px; }

  /* Backdrop for bottom sheet */
  .nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 998;
    overscroll-behavior: contain;
  }
  .nav-backdrop.open { display: block; }

  /* Bottom Sheet nav */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    background: var(--teal-dark);
    border-radius: 24px 24px 0 0;
    padding: 0 1.5rem 2rem;
    gap: 0;
    overflow-y: auto;
    max-height: 85vh;
    z-index: 999;
    transform: translateY(115%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear .35s;
    box-shadow: 0 -8px 40px rgba(0,0,0,.35);
    overscroll-behavior: contain;
  }
  .nav-links::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
    margin: 1rem auto 1.5rem;
    flex-shrink: 0;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
  }

  .nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    display: flex; align-items: center;
    gap: .75rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta {
    background: var(--coral);
    color: var(--white);
    padding: .9rem 1.5rem;
    border-radius: var(--radius-md);
    justify-content: center;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
  }

  /* Lang switcher inside sheet */
  .nav-links .lang-switcher {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links .lang-current { color: rgba(255,255,255,.85); }
  .nav-links .lang-dropdown { position: static; opacity: 1; transform: none; pointer-events: all; background: transparent; border: none; box-shadow: none; min-width: auto; padding-top: .5rem; display: none; }
  .nav-links .lang-switcher.open .lang-dropdown { display: block; }
  .nav-links .lang-dropdown button { color: rgba(255,255,255,.7); padding: .5rem 0; }

  /* --- HERO --- */
  .hero { min-height: 100svh; }
  /* Hero section clips pill scroll naturally at viewport edge */
  .hero { overflow: hidden; }
  .hero-content { padding: 0 16px; overflow: visible; }
  .hero-eyebrow { font-size: .68rem; padding: .35rem .85rem; letter-spacing: .18em; }
  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
  }
  /* Pills: scrollable strip, bleeds to viewport edges. Hero overflow:hidden clips them naturally */
  .hero-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 4px;
    padding-left: 16px;
    padding-right: 16px;
    /* Break out of hero-content's 16px padding to reach the viewport edges */
    margin-left: -16px;
    margin-right: -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-pills::-webkit-scrollbar { display: none; }
  .hero-pills > span {
    font-size: .8rem;
    padding: .35rem .85rem;
    flex-shrink: 0;
    cursor: grab;
  }
  .hero-pills.dragging { cursor: grabbing; }


  /* Buttons group: stacked column */
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
  /* Payment badge: full width like the CTA buttons */
  .hero-pill-payment {
    width: calc(100% - 48px);
    max-width: 360px;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    text-align: center;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost {
    width: calc(100% - 48px);
    max-width: 360px;
    border-radius: 50px;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* --- PROPERTY --- */
  .property-grid { gap: 2rem; }
  .prop-img-main img { height: 260px; }
  .prop-img-duo img  { height: 140px; }
  .prop-stats { gap: 1rem; justify-content: space-around; }
  .stat-n { font-size: 1.8rem; }

  /* --- GALLERY --- */
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 8px;
  }
  .gallery-item.span-2  { grid-column: span 1; }
  .gallery-item.span-row { grid-row: span 1; }
  
  /* Mostra solo l'anteprima delle prime 8 foto su mobile */
  .gallery-item:nth-child(n+9) { display: none; }

  /* --- AMENITIES --- */
  .amen-highlights { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .amen-details    { grid-template-columns: 1fr; gap: 1rem; }
  .amen-hi-card { padding: 1.5rem 1rem; }
  .amen-icon { width: 52px; height: 52px; font-size: 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }

  /* --- BOOKING / CALENDAR --- */
  .booking-section .section-header { margin-bottom: 2rem; }
  .booking-layout { gap: 1.5rem; }
  .cal-wrapper { padding: 1.25rem; }
  .cal-grid { gap: 2px; }
  .cal-day { font-size: .85rem; }
  .cal-day-name { font-size: .68rem; padding: .3rem 0; }
  .cal-legend { flex-wrap: wrap; gap: .75rem; }
  .booking-panel { padding: 1.25rem; }
  .date-row { gap: .4rem; }
  .date-box { padding: .75rem .85rem; }
  .btn-book-main { padding: 1rem 1.5rem; font-size: 1rem; width: 100%; }
  .btn-wa { padding: .9rem 1.5rem; width: 100%; }

  /* --- LOCATION --- */
  .location-grid { gap: 2rem; }
  .location-map iframe { height: 260px; }
  .dist-list { gap: .5rem; }
  .dist-item { gap: .75rem; }
  .dist-icon { width: 38px; height: 38px; font-size: 1rem; flex-shrink: 0; }

  /* --- HOST --- */
  .host-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
    text-align: center;
  }
  .host-photo-col {
    flex-direction: column;
    align-items: center;
  }
  .host-photo { width: 120px; height: 120px; }
  .host-bio { text-align: left; font-size: .95rem; }
  .host-metrics {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .host-actions {
    flex-direction: column;
    gap: .75rem;
  }
  .host-actions .btn-wa,
  .host-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* --- FOOTER --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 16px;
  }
  .footer-bottom { padding: 1.25rem 16px; }

  /* --- MODAL (form prenotazione) --- */
  .modal { padding: 1.75rem 1.25rem; width: 95vw; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }

  /* --- LIGHTBOX --- */
  .lb-prev { left: .75rem; }
  .lb-next { right: .75rem; }
  .lb-close { top: .75rem; right: .75rem; }

  /* --- WHATSAPP STICKY BUTTON (mobile) --- */
  .wa-sticky {
    bottom: 1.25rem; right: 1.25rem;
    width: auto; height: auto;
    border-radius: 50px;
    padding: .75rem 1.25rem .75rem 1rem;
    gap: .5rem;
  }
  .wa-sticky span { display: block; font-size: .9rem; font-weight: 600; }
  .wa-sticky i { font-size: 1.4rem; }

  /* Padding bottom per evitare che il contenuto finisca sotto il bottone sticky */
  .footer { padding-bottom: 5rem; }
}

/* ---- SMALL PHONES (≤480px) ---- */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.75rem, 9vw, 2.2rem); }
  .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }

  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { font-size: .95rem; padding: .9rem 1.25rem; }

  /* Gallery: 1 colonna su phone piccoli */
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  /* Amenities: 1 colonna */
  .amen-highlights { grid-template-columns: 1fr; }

  /* Calendar: celle più grandi per il touch */
  .cal-day { font-size: .9rem; }

  /* Date row verticale */
  .date-row { flex-direction: column; }
  .date-arrow { transform: rotate(90deg); align-self: center; }

  .host-card { padding: 1.25rem 1rem; }
  .host-photo { width: 100px; height: 100px; }

  .booking-panel { padding: 1rem; }
  .cal-wrapper { padding: 1rem; }

  /* Nav logo su schermi piccoli */
  .nav-logo { font-size: 1.75rem; }
}

/* ---- WHATSAPP STICKY BUTTON ---- */
.wa-sticky {
  display: flex; /* visible on desktop */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 890;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-sticky span { display: none; }
.wa-sticky i { font-size: 2rem; }
.wa-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,.65);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.8), 0 0 0 8px rgba(37,211,102,.12); }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .wa-sticky { animation: none; }
  .hero-slide { animation: none; }
  .reveal, .reveal-right { transition: none; opacity: 1; transform: none; }
}

