/* ═══════════════════════════════════════════════════════════════════════════
   Villa Maria Klis — Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --primary:       #D97559;
  --primary-dark:  #B85E3E;
  --primary-light: rgba(217,117,89,0.12);
  --secondary:     #1B3A5C;
  --accent:        #F0C040;
  --bg:            #FDF8F4;
  --bg-alt:        #F5EDE4;
  --border:        #E8DDD5;
  --text:          #2A2A2A;
  --text-muted:    #777;
  --white:         #FFFFFF;
  --radius:        10px;
  --radius-sm:     6px;
  --shadow:        0 4px 30px rgba(0,0,0,0.08);
  --shadow-md:     0 8px 40px rgba(0,0,0,0.14);
  --transition:    0.3s ease;
  --max-width:     1180px;
}

/* ─── BASE ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── NAVIGATION ────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
  padding: 14px 48px;
}
/* Nav logo */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.nav-logo-wrap:hover { opacity: 0.82; }

.logo-monogram {
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  filter: drop-shadow(0 1px 6px rgba(240,192,64,0.35));
}
nav.scrolled .logo-monogram {
  color: var(--primary);
  filter: drop-shadow(0 1px 4px rgba(217,117,89,0.25));
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1;
  transition: color var(--transition);
  white-space: nowrap;
}
nav.scrolled .logo-name { color: var(--secondary); }

.logo-tagline {
  font-size: 0.56rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  line-height: 1;
  transition: color var(--transition);
  white-space: nowrap;
}
nav.scrolled .logo-tagline { color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.3px;
  transition: color var(--transition);
}
nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--primary) !important; }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217,117,89,0.4) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
nav.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--text); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: var(--text); }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
#home {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--secondary);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.70) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 820px;
  animation: heroFadeIn 1.2s ease 0.3s both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 22px;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-badge svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
  fill: none;
  flex-shrink: 0;
}
.hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  letter-spacing: -0.5px;
}
.hero-content p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.88;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 38px;
}
.hero-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-pill .pill-icon { font-size: 1rem; display: flex; align-items: center; }
.hero-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 17px 44px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 24px rgba(217,117,89,0.45);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(217,117,89,0.55);
}
.btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: scrollBounce 2.2s infinite;
  cursor: pointer;
}
.hero-scroll-hint svg {
  width: 20px; height: 20px;
  stroke: rgba(255,255,255,0.55);
  fill: none;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ─── SECTIONS COMMON ───────────────────────────────────────────────────── */
section { padding: 108px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { margin-bottom: 64px; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  color: var(--secondary);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.75;
}

/* ─── GALLERY ───────────────────────────────────────────────────────────── */
#gallery { background: var(--white); }

.gallery-grid {
  columns: 3;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--bg-alt);
}
.gallery-item img {
  width: 100%;
  transition: transform 0.55s ease;
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,58,92,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-item-overlay svg {
  width: 40px; height: 40px;
  stroke: white; fill: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-item-overlay { background: rgba(27,58,92,0.3); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  font-size: 1.3rem;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

/* ─── ABOUT / DESCRIPTION ───────────────────────────────────────────────── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 22px;
  font-size: 0.98rem;
}
.capacity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}
.badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--secondary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.badge:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(217,117,89,0.15);
}
.badge-icon {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  color: var(--primary);
}
.badge-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}
.highlight-icon {
  width: 34px; height: 34px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: var(--primary);
}
.highlight-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Amenities panel */
.amenities-panel {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.amenities-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.875rem;
  color: var(--text);
}
.amenity-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.amenity-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.amenity-label { line-height: 1.3; }

.rating-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.9rem; }
.rating-score { font-size: 1.3rem; font-weight: 700; color: var(--secondary); }
.rating-text { font-size: 0.85rem; color: var(--text-muted); }

/* ─── AVAILABILITY / CALENDAR ───────────────────────────────────────────── */
#availability { background: var(--white); }

.calendar-shell {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 44px 44px 36px;
  box-shadow: var(--shadow);
  max-width: 920px;
  margin: 0 auto;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.calendar-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--secondary);
}
.cal-arrow {
  background: var(--bg);
  border: 1.5px solid var(--border);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--secondary);
}
.cal-arrow:hover { background: var(--bg-alt); border-color: var(--primary); }
.cal-arrow:disabled { opacity: 0.35; cursor: not-allowed; }

.calendar-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.cal-month-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 14px;
  font-family: 'Playfair Display', serif;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.84rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-weight: 500;
  user-select: none;
  position: relative;
}
.cal-day.empty { cursor: default; }
.cal-day.past { color: #D5CBCA; cursor: not-allowed; font-weight: 400; }
/* Dates within the minimum stay window — not selectable as checkout */
.cal-day.below-min {
  color: #c8aa98;
  cursor: not-allowed;
  font-style: italic;
}
.cal-day.below-min::after {
  content: '';
  position: absolute;
  width: 50%; height: 1px;
  background: #c8aa98;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.cal-day.available {
  background: #e8f2e8;
  border-radius: 4px;
}
/* Departure day: left=last booked night, right=free for new arrivals */
.cal-day.transition-out {
  background: linear-gradient(to right, #f5e4e4 50%, #e8f2e8 50%);
  border-radius: 4px;
  cursor: pointer;
}
/* Arrival day: left=free morning, right=new guests arriving */
.cal-day.transition-in {
  background: linear-gradient(to right, #e8f2e8 50%, #f5e4e4 50%);
  border-radius: 4px;
  cursor: pointer;
}
.cal-day.unavailable {
  background: #f5e4e4;
  color: #c4a0a0;
  cursor: not-allowed;
  font-weight: 400;
  border-radius: 4px;
}
.cal-day.unavailable::after {
  content: '';
  position: absolute;
  width: 60%; height: 1px;
  background: #d4a0a0;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.cal-day.today { color: var(--primary); font-weight: 700; }
.cal-day:not(.past):not(.unavailable):not(.empty):hover {
  background: var(--bg-alt);
}
.cal-day.in-range {
  background: var(--primary-light);
  border-radius: 0;
  color: var(--text);
}
.cal-day.selected-start,
.cal-day.selected-end {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 700;
  border-radius: 50% !important;
  z-index: 1;
}
.cal-day.range-start-cap { border-radius: 50% 0 0 50% !important; }
.cal-day.range-end-cap   { border-radius: 0 50% 50% 0 !important; }

.calendar-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cal-legend {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.cal-legend-item { display: flex; align-items: center; gap: 6px; }
.leg-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.leg-dot.avail   { background: var(--primary); }
.leg-dot.unavail { background: #D5CBCA; }
.leg-dot.range   { background: var(--primary-light); border: 1px solid var(--primary); }

.cal-summary { text-align: right; }
.cal-price {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}
.cal-price span { font-size: 0.88rem; font-weight: 400; color: var(--text-muted); }
.cal-details { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.cal-total { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-top: 6px; }

.cal-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
}
.cal-book-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(217,117,89,0.35);
}

/* ─── LOCATION ──────────────────────────────────────────────────────────── */
#location { background: var(--bg); }

.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.map-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: none; display: block; }

.location-points { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.location-point { display: flex; gap: 16px; align-items: flex-start; }
.loc-icon {
  width: 46px; height: 46px;
  background: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  color: var(--primary);
}
.loc-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.loc-text h4 {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 3px;
  font-size: 0.92rem;
}
.loc-text p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; }

/* ─── CONTACT ───────────────────────────────────────────────────────────── */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 90px;
  align-items: start;
}
.contact-info > p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  font-size: 0.97rem;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail {
  display: flex; align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--text);
}
.detail-icon {
  width: 42px; height: 42px;
  background: var(--bg);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--primary);
}
.detail-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.detail-text a { color: var(--primary); }
.detail-text a:hover { text-decoration: underline; }

/* Form */
.contact-form-box {
  background: var(--bg);
  border-radius: 24px;
  padding: 44px;
  border: 1.5px solid var(--border);
}
.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 17px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,117,89,0.12);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Read-only date fields populated from the availability calendar */
.date-from-calendar {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px !important;
}
.date-from-calendar:focus { outline: none; box-shadow: none; }
.form-date-hint {
  font-size: 0.78rem;
  color: #999;
  margin: -10px 0 16px;
  text-align: center;
}

/* Pulse highlight on the availability calendar when user clicks a date field */
@keyframes cal-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,117,89,0.45); }
  60%  { box-shadow: 0 0 0 12px rgba(217,117,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,117,89,0); }
}
.cal-pulse-active { animation: cal-pulse 0.7s ease-out; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217,117,89,0.35);
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.65);
  padding: 72px 24px 32px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 280px;
}
.footer-col h4 {
  color: white;
  font-size: 0.75rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-rating { display: flex; align-items: center; gap: 8px; }
.stars { color: var(--accent); font-size: 0.85rem; }
.airbnb-link { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.airbnb-link:hover { color: var(--primary); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 18px 32px; }
  nav.scrolled { padding: 12px 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .location-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .logo-monogram svg { width: 36px !important; height: 42px !important; }
  .logo-name { font-size: 1rem; }
  .logo-tagline { font-size: 0.52rem; }
  nav { padding: 14px 20px; }
  nav.scrolled { padding: 10px 20px; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1000;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; font-size: 1.15rem; }
  .nav-cta { font-size: 1.05rem !important; }
  .hamburger { display: flex; }
  section { padding: 72px 20px; }
  .about-grid { gap: 36px; }
  .about-highlights { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .calendar-shell { padding: 24px 18px; }
  .calendar-months { grid-template-columns: 1fr; gap: 28px; }
  .calendar-footer { flex-direction: column; align-items: flex-start; }
  .cal-summary { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-form-box { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: 1; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 520px) {
  .gallery-grid { columns: 1; }
  .hero-pills { gap: 8px; }
  .hero-pill { font-size: 0.75rem; padding: 6px 14px; }
  .capacity-badges { gap: 8px; }
  .badge { padding: 9px 14px; font-size: 0.82rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
