/* Villas in Lonavala – plain CSS (design tokens taken from the original Horizons build) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(220 39% 11%);
  --primary: hsl(217 91% 60%);
  --primary-dark: hsl(217 91% 52%);
  --secondary: hsl(160 84% 39%);
  --accent: hsl(38 92% 50%);
  --muted: hsl(210 40% 96.1%);
  --muted-fg: hsl(215 16% 47%);
  --border: hsl(220 13% 91%);
  --destructive: hsl(0 84.2% 60.2%);
  --whatsapp: #25D366;
  --radius: 1rem;
  --radius-xl: 0.75rem;
  --shadow-card: 0 2px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-feature-settings: "rlig" 1, "calt" 1;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.25; }
h2 { font-size: 24px; line-height: 1.375; }
p { margin: 0; font-size: 16px; line-height: 1.625; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.text-center { text-align: center; }
.muted { color: var(--muted-fg); }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.5rem; padding: 0 1rem; border: 1px solid transparent; border-radius: var(--radius-xl);
  font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .15s; white-space: nowrap;
  background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-dark); }
.btn-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; font-weight: 600; box-shadow: var(--shadow-md); }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 6.5rem; }
.logo { display: flex; align-items: center; gap: .5rem; }
.logo img { max-height: 5.2rem; width: auto; max-width: 240px; object-fit: contain; }
@media (max-width: 640px) { .header-inner { height: 5rem; } .logo img { max-height: 3.9rem; max-width: 160px; } }
.footer-logo { display: inline-block; background: #fff; border-radius: .75rem; padding: .5rem .75rem; }
.footer-logo img { display: block; height: 5rem; width: auto; }
.logo-mark { width: 2.25rem; height: 2.25rem; background: var(--primary); color: #fff; border-radius: .6rem; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; }
.logo-text { font-weight: 700; font-size: 1.125rem; }
.nav { display: none; align-items: center; gap: 2rem; }
.nav a { font-size: .875rem; font-weight: 500; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.wa-icon-btn { display: none; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-xl); color: var(--whatsapp); align-items: center; justify-content: center; }
.wa-icon-btn:hover { background: rgba(37,211,102,.1); color: #128C7E; }
.menu-toggle { width: 2.5rem; height: 2.5rem; border: 0; background: transparent; border-radius: var(--radius-xl); display: grid; place-items: center; cursor: pointer; }
.menu-toggle:hover { background: var(--muted); }
.mobile-menu { border-top: 1px solid var(--border); background: #fff; padding: 1rem; }
.mobile-menu a { display: block; padding: .5rem 1rem; border-radius: .5rem; font-weight: 500; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--muted); color: var(--primary); }
@media (min-width: 640px) { .wa-icon-btn { display: inline-flex; } }
@media (min-width: 768px) { .nav { display: flex; } .menu-toggle, .mobile-menu { display: none !important; } }

/* Hero */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.4), rgba(0,0,0,.6)); }
.hero-inner { position: relative; z-index: 1; text-align: center; margin-top: 3rem; width: 100%; padding-bottom: 2rem; }
.hero h1 { color: #fff; font-size: 2.25rem; font-weight: 800; margin-bottom: 1.5rem; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1.25rem; max-width: 42rem; margin: 0 auto 2rem; }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
.hero-cta { display: flex; justify-content: center; margin-bottom: 3rem; }
.search-card { max-width: 64rem; margin: 0 auto; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-radius: 1rem; box-shadow: var(--shadow-2xl); padding: 1.5rem; }
.search-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 768px) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .search-grid { grid-template-columns: repeat(4, 1fr); } .search-grid .span-all { grid-column: span 4; } }
.search-grid .span-all { margin-top: .5rem; }

/* Forms */
label.lbl { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.input, select.input, textarea.input {
  width: 100%; height: 2.5rem; padding: 0 .75rem; background: #fff; border: 1px solid rgba(100,116,139,.3);
  border-radius: var(--radius-xl); font-size: .875rem; outline: none; transition: box-shadow .15s, border-color .15s;
}
textarea.input { height: auto; padding: .6rem .75rem; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.input.invalid { border-color: var(--destructive); }
.field-error { color: var(--destructive); font-size: .8rem; margin-top: .25rem; }

/* Sections & cards */
.section { padding: 6rem 0; }
.section-head { margin-bottom: 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head h2 { font-size: 1.875rem; font-weight: 800; }
.section-head p { color: var(--muted-fg); margin-top: .25rem; }
.carousel-section { margin-bottom: 4rem; }
.carousel-controls { display: flex; gap: .5rem; }
.carousel-controls button { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 1.1rem; }
.carousel-controls button:hover { background: var(--muted); }
.carousel { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem; scrollbar-width: thin; }
.carousel .villa-card { flex: 0 0 85%; scroll-snap-align: start; }
@media (min-width: 640px) { .carousel .villa-card { flex-basis: calc(50% - .75rem); } }
@media (min-width: 1024px) { .carousel .villa-card { flex-basis: calc(33.333% - 1rem); } }

.villa-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .villa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .villa-grid { grid-template-columns: repeat(3, 1fr); } }

.villa-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.villa-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.12); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, hsl(217 91% 70%), hsl(160 84% 45%)); display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 3rem; font-weight: 800; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.villa-card:hover .card-img img { transform: scale(1.05); }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-featured { position: absolute; top: .75rem; left: .75rem; background: var(--accent); color: #fff; }
.badge-demo { position: absolute; top: .75rem; right: .75rem; background: rgba(0,0,0,.6); color: #fff; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card-title { font-size: 1.125rem; font-weight: 700; }
.card-loc { display: flex; align-items: center; gap: .25rem; color: var(--muted-fg); font-size: .875rem; }
.card-specs { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .875rem; color: var(--muted-fg); }
.card-specs span { display: inline-flex; align-items: center; gap: .35rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--border); }
.price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted-fg); }
.rating { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 600; }
.star { color: var(--accent); }

/* Search page */
.page-head { padding: 2.5rem 0 1rem; }
.search-layout { display: grid; gap: 2rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 18rem 1fr; } }
.filters { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; height: fit-content; display: grid; gap: 1.25rem; }
.filters input[type=range] { width: 100%; accent-color: var(--primary); }
.results-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted-fg); }

/* Villa detail */
.detail-head { padding: 2rem 0 1rem; }
.badges { display: flex; gap: .5rem; margin-bottom: .75rem; }
.badge-verified { background: rgba(16,185,129,.1); color: var(--secondary); }
.badge-super { background: rgba(59,130,246,.1); color: var(--primary); }
.detail-head h1 { font-size: 1.875rem; font-weight: 800; }
@media (min-width: 768px) { .detail-head h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .detail-head h1 { font-size: 3rem; } }
.gallery-main { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, hsl(217 91% 70%), hsl(160 84% 45%)); display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 5rem; font-weight: 800; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 1.25rem; z-index: 2; }
.gallery-nav.prev { left: 1rem; } .gallery-nav.next { right: 1rem; }
.thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.thumbs img { width: 6rem; height: 4.5rem; object-fit: cover; border-radius: .6rem; cursor: pointer; opacity: .7; border: 2px solid transparent; }
.thumbs img.active { opacity: 1; border-color: var(--primary); }
.detail-layout { display: grid; gap: 2.5rem; padding: 2rem 0 5rem; grid-template-columns: minmax(0, 1fr); }
.detail-layout > * { min-width: 0; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 24rem; } }
.detail-main section { margin-bottom: 2.5rem; }
.detail-main h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0 2.5rem; }
@media (min-width: 768px) { .highlights { grid-template-columns: repeat(4, 1fr); } }
.highlight { background: var(--muted); border-radius: var(--radius); padding: 1rem; text-align: center; }
.highlight b { display: block; font-size: 1.5rem; }
.highlight span { font-size: .8rem; color: var(--muted-fg); }
.amenities { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
.amenity { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-xl); font-size: .9rem; text-transform: capitalize; }
.amenity svg { color: var(--secondary); }
.booking-card { position: sticky; top: 8rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1.5rem; display: grid; gap: 1rem; height: fit-content; }
.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.price-table td { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.price-table td:last-child { text-align: right; font-weight: 600; }
.review { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.review h4 { font-size: 1rem; margin: .25rem 0 .5rem; }
.review small { color: var(--muted-fg); }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 -4px 12px rgba(0,0,0,.08); }
@media (min-width: 1024px) { .sticky-bar { display: none; } }
@media (max-width: 1023px) { body.has-sticky { padding-bottom: 4.5rem; } }

/* Content pages */
.prose-page { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem 5rem; }
.prose-page h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1.5rem; }
.prose-page h2 { font-size: 1.5rem; font-weight: 600; margin: 2rem 0 .75rem; }
.prose-page p { color: var(--muted-fg); margin-bottom: 1rem; }
.page-hero { background: var(--muted); padding: 4rem 0; text-align: center; }
.page-hero h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p { max-width: 42rem; margin: 0 auto; font-size: 1.125rem; color: var(--muted-fg); }
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding: 4rem 0; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); }
.feature h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .75rem; }
.feature p { font-size: .875rem; color: var(--muted-fg); }

details.faq { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; background: #fff; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::after { content: "+"; font-size: 1.25rem; color: var(--primary); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: .75rem; color: var(--muted-fg); }

.contact-grid { display: grid; gap: 2.5rem; padding: 3rem 0 5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-card); display: grid; gap: 1.25rem; }
.contact-line { display: flex; gap: .75rem; align-items: flex-start; }
.contact-line svg { color: var(--primary); margin-top: .2rem; }
.contact-line a:hover { color: var(--primary); }
.notice { padding: .9rem 1rem; border-radius: var(--radius-xl); background: rgba(16,185,129,.1); color: hsl(160 84% 25%); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--secondary); color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding: 4rem 0 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer-grid h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.8); }
.footer-grid li { display: flex; gap: .5rem; align-items: center; }
.footer-grid a:hover { color: hsl(217 91% 85%); }
.footer-about { font-size: .875rem; color: rgba(255,255,255,.8); max-width: 250px; margin: 1rem 0; }
.socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.socials a { width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: rgba(255,255,255,.2); display: grid; place-items: center; transition: background .15s; }
.socials a:hover { background: rgba(255,255,255,.4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding: 1.5rem 0; font-size: .85rem; color: rgba(255,255,255,.7); text-align: center; }
.logo-light .logo-mark { background: #fff; color: var(--secondary); }

.float-wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .15s; }
.float-wa:hover { transform: scale(1.08); }
body.has-sticky .float-wa { bottom: 5.5rem; }
@media (min-width: 1024px) { body.has-sticky .float-wa { bottom: 1.25rem; } }

.fade-in { animation: fadeUp .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
