/* ===== JPT Realty: styles (Royal design) ===== */
:root {
  --gold: #c9a14a; --gold-2: #e6c77a; --gold-3: #9c7a2c;
  --bg: #0b0b0b; --bg-2: #141414; --surface: #1a1a1a; --line: rgba(201,161,74,.28);
  --text: #f3ede0; --muted: #b9b09d; --on-gold: #111;
  --radius: 4px; --radius-lg: 6px;
  --font-head: "Cormorant Garamond", Georgia, serif; --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 600; --head-track: .01em;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --ticker-bg: #000; --header-bg: rgba(11,11,11,.86);
  --maxw: 1180px;
}
html[lang="te"] { --font-body: "Noto Sans Telugu", "Inter", system-ui, sans-serif; }
html[lang="te"] h1, html[lang="te"] h2, html[lang="te"] h3 { font-family: "Noto Sans Telugu", var(--font-head); font-weight: 600; letter-spacing: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold); font-weight: 600; margin-bottom: .8em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s; letter-spacing: .02em; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1em; font-size: .88rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: var(--on-gold); }
.btn-ghost { border-color: var(--gold); color: var(--gold-2); background: transparent; }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--gold); }

/* Ticker */
.ticker { display: flex; align-items: center; background: var(--ticker-bg); color: #f3ede0; font-size: .88rem; height: 38px; position: relative; z-index: 31; border-bottom: 1px solid var(--line); }
.ticker-label { flex: none; background: var(--gold); color: #000; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; padding: 0 14px; height: 100%; display: flex; align-items: center; }
.ticker-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker-track.is-moving { animation: tick var(--ticker-dur, 40s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker-item { background: none; border: 0; color: inherit; padding: 0 28px; white-space: nowrap; cursor: pointer; position: relative; }
.ticker-item::before { content: "◆"; color: var(--gold); position: absolute; left: 6px; font-size: .6rem; top: 50%; transform: translateY(-50%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-2); }
.brand img { height: 36px; width: auto; border-radius: 3px; }
.brand-text { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .14em; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: .93rem; opacity: .85; }
.nav a:hover { color: var(--gold-2); opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius); padding: .4em .8em; cursor: pointer; font-size: .85rem; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 9px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35) 40%, rgba(11,11,11,.96)); }
.hero-inner { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; padding-top: 70px; padding-bottom: 40px; }
.hero-copy { max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.12rem; color: #e9e1cf; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero-frame { display: none; }
.stats { position: relative; list-style: none; margin: 0; padding: 22px 0 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats li { border-top: 1px solid var(--gold); padding-top: 12px; }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--gold-2); font-weight: 700; line-height: 1.1; }
.stats span { color: var(--muted); font-size: .88rem; }

/* Royal: centered, cinematic */
html[data-template="royal"] .hero-inner { justify-content: center; text-align: center; }
html[data-template="royal"] .hero-copy { margin: 0 auto; }
html[data-template="royal"] .hero .lead { margin-left: auto; margin-right: auto; }
html[data-template="royal"] .hero-cta { justify-content: center; }
html[data-template="royal"] .hero h1 { font-weight: 600; }
html[data-template="royal"] .stats { text-align: center; }
html[data-template="royal"] .section-head { text-align: center; margin-left: auto; margin-right: auto; }
html[data-template="royal"] .filters { justify-content: center; }
html[data-template="royal"] h2::after { content: ""; display: block; width: 64px; height: 1px; background: var(--gold); margin: .5em auto 0; }

/* Ivory: light, editorial split hero */

/* Estate: bold, modern, rounded */

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 32px; }

/* Filters + cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 99px; padding: .45em 1.1em; cursor: pointer; font-size: .9rem; }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: #111; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #222; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.75); color: var(--gold-2); border: 1px solid var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .3em .7em; border-radius: var(--radius); }
.badge-soft { background: var(--gold); color: #111; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .25em; font-size: 1.55rem; }
.loc { color: var(--gold); font-size: .9rem; font-weight: 500; margin-bottom: .7em; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: .8rem; border: 1px solid var(--line); border-radius: 99px; padding: .25em .75em; color: var(--muted); }
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Video player */
.player-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.player { position: relative; background: #000; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--line); }
.player video, .player iframe, .player-yt { width: 100%; height: 100%; object-fit: contain; background: #000; border: 0; }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); pointer-events: none; }
.player-bar > * { pointer-events: auto; }
.now { flex: 1; color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 1rem; }
.playlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.pl-item { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; cursor: pointer; }
.pl-item img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: calc(var(--radius) - 2px); flex: none; }
.pl-item span { font-size: .9rem; line-height: 1.35; }
.pl-item.is-on { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }

/* News carousel */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.news-card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.news-card.is-highlight { border-color: var(--gold); }
.news-img { aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.news-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.news-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 1.2rem; }
.news-meta { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5em; }
.news-sum { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn { margin-top: auto; align-self: flex-start; background: none; border: 0; color: var(--gold-2); cursor: pointer; padding: 0; font-weight: 600; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.carousel-dots span.on { background: var(--gold); width: 20px; border-radius: 4px; }

/* Why */
.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.why-fig { margin: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .7em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-line a { color: var(--gold-2); font-weight: 600; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .75em .9em; width: 100%; }
.form-err { color: #ff8a7a; margin: 0; font-size: .9rem; }
.form-done { align-content: start; }
.form-done h3 { margin: 0; }
.form-done .btn { justify-self: start; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 90px; background: #070707; color: #cfc6b3; }
.footer-row { display: flex; gap: 28px; align-items: flex-start; }
.footer img { width: 120px; height: auto; border-radius: 4px; }
.footer .small { color: #8f8777; }

/* Floating WhatsApp */
.float-wa { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 40; }

/* Modals */
.modal { width: min(920px, calc(100% - 24px)); max-height: 90vh; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 0; }
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal-body { padding: 28px; overflow: auto; }
.modal-close { position: sticky; float: right; top: 10px; margin: 10px 10px 0 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; z-index: 2; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: #fff; }
.facts-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; }
.facts-dl dt { color: var(--gold); font-weight: 600; }
.facts-dl dd { margin: 0; }
.news-full { margin: 10px 0 14px; border-radius: var(--radius); max-height: 70vh; width: auto; }


/* Responsive */
@media (max-width: 1000px) {
  .carousel { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 860px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  body.nav-open .nav { display: flex; }
  .menu-btn { display: block; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .cards { grid-template-columns: 1fr; }
  .player-wrap, .why, .contact { grid-template-columns: 1fr; }
  .playlist { grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; max-height: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .footer-row { flex-direction: column; }
}
@media (max-width: 560px) {
  .carousel { grid-auto-columns: 86%; }
  .brand-text { font-size: 1.1rem; }
  .hero-inner { min-height: 0; padding-top: 56px; }
  .modal-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html[lang="te"] .eyebrow, html[lang="te"] .ticker-label { letter-spacing: 0; }

/* ---------- Added: testimonials, gallery, viewer, consent ---------- */
[hidden] { display: none !important; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tm { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tm-head { display: flex; align-items: center; gap: 12px; }
.tm-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: none; }
.tm-initial { display: grid; place-items: center; background: var(--gold); color: #111; font-weight: 700; font-size: 1.3rem; }
.tm figcaption { display: grid; }
.tm figcaption span { color: var(--muted); font-size: .85rem; }
.tm-stars { margin: 0; color: var(--gold); letter-spacing: 2px; }
.tm blockquote { margin: 0; font-style: italic; line-height: 1.6; }
.tm .btn { align-self: flex-start; margin-top: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: #222; aspect-ratio: 4/3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.photo:hover img { transform: scale(1.04); }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .82rem; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.vm-frame, .vm-video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); background: #000; display: block; }
.vm-video { aspect-ratio: auto; max-height: 75vh; }
.vm-img { width: 100%; max-height: 75vh; object-fit: contain; display: block; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.form .consent input { width: auto; margin-top: .25em; accent-color: var(--gold); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.card-actions .btn-line { text-decoration: none; }
