/* ============================================================
   TEAM LINE ECO RESORT — Apple Design System
   Content cloned from teamlineinfra.com, restyled per Apple DESIGN.md
   SF Pro is Apple-proprietary; using the system font stack (-apple-system /
   BlinkMacSystemFont) so Apple devices render true SF Pro, with Helvetica
   Neue / Segoe UI / Roboto as faithful cross-platform fallbacks.
   ============================================================ */

:root {
  /* Primary */
  --apple-black: #000000;
  --apple-white: #ffffff;
  --apple-light-gray: #f5f5f7;
  --apple-near-black: #1d1d1f;

  /* Interactive */
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-link-blue: #0066cc;
  --apple-bright-blue: #2997ff;

  /* Text */
  --text-white: #ffffff;
  --text-near-black: #1d1d1f;
  --text-black-80: rgba(0, 0, 0, 0.8);
  --text-black-48: rgba(0, 0, 0, 0.48);
  --text-white-80: rgba(255, 255, 255, 0.8);
  --text-white-65: rgba(255, 255, 255, 0.65);

  /* Dark surfaces */
  --surface-dark-1: #272729;
  --surface-dark-2: #262628;
  --surface-dark-3: #28282a;
  --surface-dark-4: #2a2a2d;
  --surface-dark-5: #242426;

  /* Buttons */
  --button-active: #ededf2;
  --button-light: #fafafc;
  --overlay: rgba(210, 210, 215, 0.64);

  --shadow-card: 3px 5px 30px 0px rgba(0, 0, 0, 0.22);
  --focus-ring: 2px solid #0071e3;

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Menlo', monospace;

  --max-content: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--apple-white);
  color: var(--text-near-black);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.08px;
  color: var(--text-black-48);
}
.label--on-dark { color: rgba(255,255,255,0.56); }

.h-display {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.015em;
}
.h-section {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h-card { font-size: 1.31rem; font-weight: 700; line-height: 1.19; letter-spacing: 0.01em; }

.body-lg { font-size: 1.31rem; line-height: 1.19; font-weight: 400; color: var(--text-black-80); }
.body-std { font-size: 1rem; line-height: 1.5; color: var(--text-black-80); letter-spacing: normal; }

/* Sections inherit body text color on dark unless overridden */
.section-dark .body-std, .section-dark .body-lg { color: var(--text-white-80); }

/* ---------- Top marquee bar ---------- */
.marquee-bar {
  background: var(--apple-near-black);
  color: var(--apple-white);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.marquee-track { display: inline-block; padding-left: 100%; animation: marquee 18s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 8px; padding: 3px;
  width: 38px; height: 38px; flex-shrink: 0;
}
.nav-logo-mark img { height: 100%; width: 100%; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text .est { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.nav-logo-text .name { font-weight: 600; font-size: 12px; letter-spacing: -0.01em; color: #fff; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 12px; font-weight: 400; color: #fff; position: relative; padding: 4px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--apple-bright-blue); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 20px; color: #fff; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(20px); padding: 20px 24px; gap: 18px;
  }
  .nav-cta.desktop-only { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  padding: 8px 20px;
  border-radius: 980px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  letter-spacing: normal;
}
.btn-solid { background: var(--apple-blue); color: #fff; }
.btn-solid:hover { background: var(--apple-blue-hover); }
.btn-white { background: #fff; color: var(--apple-near-black); }
.btn-white:hover { background: var(--button-active); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; border: 1px solid #717989; color: var(--text-near-black); }
.btn-outline:hover { background: var(--apple-light-gray); }
.btn-sm { padding: 6.5px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Badges / pills ---------- */
.pill, .tag-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 980px;
  background: var(--apple-blue); color: #fff;
}

.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 980px; padding: 7px 16px;
  font-size: 12px; font-weight: 400;
}

/* ---------- Cards ---------- */
.card {
  background: var(--apple-light-gray);
  border-radius: 8px;
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-dashed { background: #fff; }

.section-dark .card { background: var(--surface-dark-1); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 52px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .label { display: block; margin-bottom: 10px; }
.section-head h2 { margin-bottom: 14px; }

.section-dark { background: var(--apple-black); color: #fff; }
.section-alt { background: var(--apple-light-gray); color: var(--text-near-black); }

.rounded-section { margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--apple-black);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.65) 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 100px 24px; max-width: 900px; margin: 0 auto; }
.hero-eyebrow { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero-eyebrow span { font-size: 11px; letter-spacing: 0.5em; font-weight: 600; color: var(--apple-bright-blue); text-transform: uppercase; }
.hero-eyebrow .rule { width: 40px; height: 1px; background: rgba(255,255,255,0.3); }
.hero h1 { margin-top: 16px; }
.hero h1 .accent { color: var(--apple-bright-blue); }
.hero p { margin-top: 18px; font-size: 1.31rem; font-weight: 400; line-height: 1.19; color: rgba(255,255,255,0.85); max-width: 560px; margin-left: auto; margin-right: auto; letter-spacing: normal; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 44px; }

/* Simpler page banner for inner pages */
.page-banner {
  background: var(--apple-black);
  color: #fff;
  padding: 68px 24px 60px;
  text-align: center;
}
.page-banner .label { color: var(--apple-bright-blue); margin-bottom: 10px; display: block; }
.page-banner p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 14px auto 0; font-size: 1.06rem; letter-spacing: normal; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-top: -44px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-card);
}
.stat-cell { background: #fff; padding: 26px 16px; text-align: center; }
.stat-cell .num { font-size: 1.9rem; font-weight: 700; color: var(--text-near-black); letter-spacing: -0.02em; }
.stat-cell .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-black-48); margin-top: 6px; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Property cards ---------- */
.property-card { position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.property-card .tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #000; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .property-media img { transform: scale(1.04); }
.property-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.property-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.property-specs div span { display: block; }
.property-specs .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-black-48); }
.property-specs .v { font-weight: 600; font-size: 15px; margin-top: 2px; letter-spacing: -0.01em; }
.property-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.property-features li { font-size: 13px; color: var(--text-black-80); display: flex; gap: 8px; align-items: flex-start; }
.property-features li::before { content: '✓'; color: var(--apple-blue); font-weight: 700; }
.property-actions { display: flex; gap: 10px; margin-top: auto; }
.property-actions .btn { flex: 1; }

/* ---------- Feature / amenity items ---------- */
.feature-item { display: flex; flex-direction: column; gap: 10px; }
.feature-icon { font-size: 26px; }
.icon-card { background: var(--surface-dark-1); border-radius: 12px; padding: 26px; }
.icon-card.on-light { background: #fff; box-shadow: var(--shadow-card); }

.amenity-card { display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.amenity-media { aspect-ratio: 16/10; overflow: hidden; background: #000; }
.amenity-media img { width: 100%; height: 100%; object-fit: cover; }
.amenity-body { padding: 20px; background: #fff; }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.amenity-tags span {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--apple-light-gray); color: var(--text-black-80); border-radius: 20px; padding: 4px 10px;
}

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 26px; position: relative; background: #fff; box-shadow: var(--shadow-card); }
.testimonial-card .quote-mark { font-size: 36px; color: var(--apple-blue); line-height: 1; font-weight: 700; }
.testimonial-card p { font-size: 15px; color: var(--text-black-80); margin: 12px 0 18px; letter-spacing: normal; }
.testimonial-card .name { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-black-48); }

/* ---------- EMI Calculator ---------- */
.emi-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .emi-wrap { grid-template-columns: 1fr; } }
.emi-field { margin-bottom: 22px; }
.emi-field label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); }
.emi-field label .val { color: var(--apple-bright-blue); font-weight: 600; }
.emi-field input[type="range"] {
  width: 100%; -webkit-appearance: none; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.2); outline: none;
}
.emi-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--apple-blue); cursor: pointer; border: 3px solid #fff;
}
.emi-result { text-align: center; background: var(--surface-dark-1); border-radius: 12px; padding: 32px; }
.emi-result .emi-amount { font-size: 2.5rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.emi-result .emi-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.emi-breakdown { display: flex; justify-content: center; gap: 32px; margin-top: 20px; }
.emi-breakdown div { text-align: center; }
.emi-breakdown .amt { font-weight: 600; font-size: 15px; color: #fff; }
.emi-breakdown .lbl { font-size: 10px; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ---------- Location ---------- */
.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.loc-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 400; letter-spacing: normal; }
.loc-list li::before { content: '📍'; }
.map-embed { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 72px 24px; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--apple-light-gray);
  color: var(--text-black-80);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 40px 24px 24px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 24px; }
.footer-brand .name { font-weight: 600; font-size: 13px; color: var(--text-near-black); }
.footer-brand .est { font-family: var(--font-mono); font-size: 9px; color: var(--text-black-48); }
.footer p, .footer a { color: var(--text-black-48); font-size: 12px; }
.footer a:hover { text-decoration: underline; }
.footer h4 { color: var(--text-black-80); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-approvals { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer-approvals span {
  border: 1px solid rgba(0,0,0,0.15); border-radius: 980px; padding: 5px 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--text-black-48);
}
.footer-bottom {
  max-width: 1180px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(0,0,0,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--text-black-48);
}
.footer-bottom a { margin-left: 16px; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--apple-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: var(--shadow-card);
  border: none; cursor: pointer; transition: background 0.2s ease;
}
.whatsapp-float:hover { background: var(--apple-blue-hover); }

/* ---------- Site visit modal ---------- */
.sv-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); z-index: 70;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.sv-modal-overlay.open { display: flex; }
.sv-modal { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 32px; position: relative; box-shadow: var(--shadow-card); }
.sv-modal .close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-black-48); }
.sv-modal h3 { margin-bottom: 8px; }
.sv-modal p { color: var(--text-black-80); margin-bottom: 20px; font-size: 14px; letter-spacing: normal; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; color: var(--text-black-48); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #717989; border-radius: 11px;
  font-family: var(--font-display); font-size: 14px; background: #fff; color: var(--text-near-black); letter-spacing: normal;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: var(--focus-ring); }
.form-field textarea { resize: vertical; min-height: 90px; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-filters button {
  font-size: 13px; font-weight: 400; letter-spacing: normal;
  padding: 8px 18px; border-radius: 11px; border: 3px solid rgba(0,0,0,0.04); background: var(--button-light); color: var(--text-black-80); cursor: pointer;
}
.gallery-filters button.active { background: var(--apple-blue); color: #fff; border-color: transparent; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4/3; box-shadow: var(--shadow-card); background: #000; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: normal;
}

/* ---------- Lucky Draw ---------- */
.draw-card { padding: 40px; text-align: center; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-card); }
.draw-date { font-size: 1.5rem; font-weight: 700; margin-top: 6px; letter-spacing: -0.01em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.gap-10 { gap: 10px; }
