/* ==========================================================================
   AHAN PROPERTY MANAGEMENT — Stylesheet
   ========================================================================== */

:root {
  --forest: #355A46;
  --dark-green: #2F5040;
  --secondary-green: #3C6450;
  --beige: #D2C8B4;
  --off-white: #FAFAF8;
  --white: #FFFFFF;
  --text: #303030;
  --text-soft: #5A5A54;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --container: 1240px;
  --gap: clamp(1.5rem, 3vw, 3rem);
  --radius-s: 4px;
  --radius-m: 10px;
  --shadow-card: 0 1px 3px rgba(47, 80, 64, 0.08), 0 8px 24px rgba(47, 80, 64, 0.06);
  --shadow-lift: 0 16px 40px rgba(47, 80, 64, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--dark-green); margin: 0 0 0.5em; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--text-soft); max-width: 62ch; }
button { font-family: var(--sans); cursor: pointer; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--forest); letter-spacing: 0.06em; margin-bottom: 0.75rem; display: block; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.section-head p { font-size: 1.05rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 1.8rem; border-radius: var(--radius-s); font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--dark-green); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--white); }
.btn-light { background: var(--off-white); color: var(--forest); }
.btn-light:hover { background: var(--white); }
.btn-block { width: 100%; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(210, 200, 180, 0.5);
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(47,80,64,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; transition: padding 0.3s var(--ease); }
.nav.scrolled .nav-inner { padding: 0.7rem 0; }
.nav-logo img { height: 58px; width: auto; display: block; transition: height 0.3s var(--ease); }
.nav.scrolled .nav-logo img { height: 46px; }

.footer-logo-chip { display: inline-block; background: var(--off-white); border-radius: var(--radius-s); padding: 0.6rem 1rem; margin-bottom: 1.1rem; }
.footer-logo-chip img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--text); position: relative; padding: 0.3rem 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--forest); transition: width 0.25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 26px; height: 20px; background: none; border: none; padding: 0; }
.hamburger span { display: block; height: 2px; background: var(--dark-green); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .hamburger { display: none; } }

.mobile-menu { position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); height: 100vh; background: var(--white); z-index: 600; box-shadow: -12px 0 40px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform 0.35s var(--ease); padding: 5.5rem 2rem 2rem; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; font-family: var(--serif); font-size: 1.3rem; padding: 0.7rem 0; border-bottom: 1px solid var(--beige); color: var(--dark-green); }
.mobile-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 1.6rem; color: var(--dark-green); }
.menu-backdrop { position: fixed; inset: 0; background: rgba(47,80,64,0.35); z-index: 550; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.menu-backdrop.open { opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .mobile-menu, .menu-backdrop { display: none; } }
@media (max-width: 899px) { .nav-links { display: none; } }

/* ---- Hero ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47,80,64,0.72) 0%, rgba(30,50,40,0.82) 60%, rgba(24,40,32,0.92) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 8rem 0 10rem; }
.hero-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; color: var(--beige); margin-bottom: 1.25rem; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1.2rem; }
.hero-sub { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 560px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-services { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.75); font-weight: 600; }
.hero-services span::after { content: '•'; margin-left: 1.5rem; color: var(--beige); }
.hero-services span:last-child::after { content: ''; margin-left: 0; }

/* ---- Search panel ---- */
.search-wrap { position: relative; z-index: 2; margin-top: -6.5rem; padding-bottom: 0; }
.search-panel { background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-lift); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--beige); }
.search-panel h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 1rem; align-items: end; }
@media (max-width: 900px) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .search-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--secondary-green); letter-spacing: 0.03em; }
.field select, .field input {
  font-family: var(--sans); font-size: 0.95rem; padding: 0.75rem 0.9rem; border: 1px solid var(--beige); border-radius: var(--radius-s); background: var(--off-white); color: var(--text); width: 100%; transition: border-color 0.2s var(--ease);
}
.field select:focus, .field input:focus { border-color: var(--forest); }
.search-panel .btn { height: 46px; white-space: nowrap; }

/* ---- Property type cards ---- */
.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .types-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .types-grid { grid-template-columns: 1fr; } }
.type-card { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-card); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.type-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.type-card:hover img { transform: scale(1.06); }
.type-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(47,80,64,0.9) 100%); }
.type-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.5rem; color: var(--white); }
.type-card-body svg { width: 26px; height: 26px; margin-bottom: 0.6rem; }
.type-card-body h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.25rem; }
.type-card-body p { color: rgba(255,255,255,0.82); font-size: 0.9rem; margin-bottom: 0.75rem; }
.type-card-body .link { font-size: 0.85rem; font-weight: 600; color: var(--beige); }

/* ---- Property cards / grid ---- */
.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.chip { padding: 0.5rem 1.1rem; border: 1px solid var(--beige); border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--secondary-green); background: var(--white); transition: all 0.2s var(--ease); }
.chip.active, .chip:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }

.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 980px) { .property-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .property-grid { grid-template-columns: 1fr; } }

.prop-card { background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.prop-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.prop-card:hover .prop-media img { transform: scale(1.05); }
.prop-badge { position: absolute; top: 0.9rem; left: 0.9rem; background: var(--forest); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.4rem 0.75rem; border-radius: var(--radius-s); }
.prop-badge.rent { background: var(--secondary-green); }
.fav-btn { position: absolute; top: 0.9rem; right: 0.9rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; transition: transform 0.2s var(--ease); }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 18px; height: 18px; stroke: var(--forest); fill: none; transition: fill 0.2s var(--ease); }
.fav-btn.active svg { fill: var(--forest); }
.prop-body { padding: 1.35rem; }
.prop-body h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.prop-loc { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.35rem; }
.prop-loc svg { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--secondary-green); }
.prop-price { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); font-weight: 600; margin-bottom: 0.85rem; }
.prop-specs { display: flex; gap: 1rem; font-size: 0.83rem; color: var(--text-soft); padding-top: 0.85rem; border-top: 1px solid var(--beige); margin-bottom: 1.1rem; flex-wrap: wrap; }
.prop-specs span { display: flex; align-items: center; gap: 0.3rem; }

.view-all-wrap { text-align: center; margin-top: 3rem; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-media { border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 2rem 0; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat { border-left: 2px solid var(--beige); padding-left: 0.9rem; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--forest); }
.stat span { font-size: 0.82rem; color: var(--text-soft); }

/* ---- Services ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius-m); padding: 2rem 1.75rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-icon { width: 46px; height: 46px; border-radius: var(--radius-s); background: rgba(53,90,70,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.service-icon svg { width: 24px; height: 24px; stroke: var(--forest); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---- Why Ahan ---- */
.why-section { background: var(--forest); color: var(--off-white); }
.why-section .section-head h2 { color: var(--white); }
.why-section .section-head p { color: rgba(250,250,248,0.8); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { border-top: 2px solid var(--beige); padding-top: 1.25rem; }
.why-card h3 { color: var(--white); font-size: 1.1rem; }
.why-card p { color: rgba(250,250,248,0.78); font-size: 0.92rem; margin-bottom: 0; }

/* ---- How it works ---- */
.steps { display: flex; justify-content: space-between; gap: 1.5rem; }
@media (max-width: 860px) { .steps { flex-direction: column; } }
.step { flex: 1; position: relative; padding-top: 1rem; }
.step-num { font-family: var(--serif); font-size: 2.4rem; color: var(--beige); font-weight: 600; }
.step h3 { font-size: 1.05rem; margin-top: 0.4rem; }
.steps .step:not(:last-child) { border-right: 1px solid var(--beige); padding-right: 1.5rem; }
@media (max-width: 860px) { .steps .step:not(:last-child) { border-right: none; border-bottom: 1px solid var(--beige); padding-bottom: 1.5rem; padding-right: 0; } }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 1rem; }
.gallery-grid .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-item:nth-child(4) { grid-column: span 2; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .gallery-grid .g-item:nth-child(1) { grid-column: span 2; grid-row: span 1; } .gallery-grid .g-item:nth-child(4) { grid-column: span 1; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid .g-item, .gallery-grid .g-item:nth-child(1), .gallery-grid .g-item:nth-child(4) { grid-column: span 1; grid-row: span 1; } }
.g-item { border-radius: var(--radius-s); overflow: hidden; cursor: pointer; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.g-item:hover img { transform: scale(1.07); }

/* ---- Testimonials ---- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius-m); padding: 2rem; }
.testi-card p { font-family: var(--serif); font-size: 1.1rem; color: var(--text); font-style: italic; margin-bottom: 1.25rem; }
.testi-name { font-size: 0.9rem; font-weight: 700; color: var(--forest); }

/* ---- CTA banner ---- */
.cta-banner { position: relative; color: var(--white); overflow: hidden; }
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: rgba(47,80,64,0.85); z-index: 0; }
.cta-inner { position: relative; z-index: 1; text-align: center; padding: 5rem 0; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 620px; margin: 0 auto 0.75rem; }
.cta-inner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 2rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.35rem; }
.info-row { display: flex; gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--beige); }
.info-row svg { width: 20px; height: 20px; stroke: var(--forest); flex-shrink: 0; margin-top: 0.15rem; }
.info-row b { display: block; font-size: 0.82rem; color: var(--secondary-green); margin-bottom: 0.2rem; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--beige); display: flex; align-items: center; justify-content: center; transition: all 0.2s var(--ease); }
.social-row a:hover { background: var(--forest); border-color: var(--forest); }
.social-row a:hover svg { stroke: var(--white); }
.social-row svg { width: 17px; height: 17px; stroke: var(--forest); }

.enquiry-form { background: var(--white); border: 1px solid var(--beige); border-radius: var(--radius-m); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field-error { font-size: 0.78rem; color: #A23B3B; min-height: 1.1em; margin-top: 0.25rem; display: block; }
.enquiry-form textarea { resize: vertical; min-height: 100px; }
.form-success { display: none; background: rgba(53,90,70,0.08); border: 1px solid var(--forest); color: var(--dark-green); border-radius: var(--radius-s); padding: 1rem 1.1rem; font-size: 0.92rem; margin-top: 1rem; }
.form-success.show { display: block; }

/* ---- Map ---- */
.map-frame { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--beige); aspect-ratio: 21/8; background: var(--beige); position: relative; }
@media (max-width: 700px) { .map-frame { aspect-ratio: 4/3; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---- Footer ---- */
.footer { background: var(--dark-green); color: rgba(250,250,248,0.85); padding: 4rem 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(250,250,248,0.15); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: rgba(250,250,248,0.7); font-size: 0.9rem; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer ul a:hover { color: var(--beige); }
.footer-social { display: flex; gap: 0.65rem; margin-top: 1.25rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(250,250,248,0.25); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 15px; height: 15px; stroke: var(--white); }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.82rem; color: rgba(250,250,248,0.6); }

/* ---- Back to top ---- */
.back-top { position: fixed; bottom: 1.75rem; right: 1.75rem; width: 46px; height: 46px; border-radius: 50%; background: var(--forest); border: none; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all 0.3s var(--ease); z-index: 400; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top svg { width: 20px; height: 20px; stroke: var(--white); }

/* ---- Modal & lightbox ---- */
.overlay { position: fixed; inset: 0; background: rgba(24,40,32,0.55); z-index: 800; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--white); border-radius: var(--radius-m); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; transform: translateY(18px); transition: transform 0.3s var(--ease); position: relative; }
.overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--beige); z-index: 2; font-size: 1.1rem; color: var(--dark-green); }
.modal-media { aspect-ratio: 16/9; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 1.75rem; }
.modal-body h3 { font-size: 1.4rem; }
.modal-price { font-family: var(--serif); font-size: 1.4rem; color: var(--forest); margin-bottom: 1rem; }
.modal-specs { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--beige); border-bottom: 1px solid var(--beige); margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text-soft); }

.lightbox { background: transparent; }
.lightbox .modal { background: transparent; max-width: 900px; box-shadow: none; }
.lightbox-img { width: 100%; border-radius: var(--radius-s); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; }
.lb-prev { left: -1rem; }
.lb-next { right: -1rem; }
@media (max-width: 700px) { .lb-prev { left: 0.25rem; } .lb-next { right: 0.25rem; } }
.lb-nav svg { width: 20px; height: 20px; stroke: var(--dark-green); }
.lightbox .modal-close { top: -3rem; right: 0; background: rgba(255,255,255,0.9); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---- Utility ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-empty { text-align: center; padding: 3rem 1rem; color: var(--text-soft); font-style: italic; }
