/* JodJantar — one stylesheet for the public site, builder and admin panels.
   Look: charcoal + warm brass, serif display headings, generous rounded cards. */
:root {
  --ink: #031a33; --slate: #14304f; --text: #0d1b2a; --muted: #6b7478; --muted-2: #8a9397;
  --paper: #fafaf8; --card: #ffffff; --soft: #f1f2ef; --field: #f4f4f1; --line: #e6e8e4; --line-2: #dcdfdb;
  --gold: #c98a22; --gold-ink: #7d540f; --gold-light: #e6b45a; --gold-soft: #fbf3e2;
  --green: #1f8a55; --green-soft: #e3f2ea; --red: #b3361e; --red-soft: #fbe9e5; --amber: #8a5a14; --amber-soft: #f6ead3;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: Figtree, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r: 18px; --r-sm: 12px; --shadow: 0 6px 22px rgba(3, 26, 51, .07);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.55 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--slate); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
h1.serif { font-size: clamp(34px, 5vw, 48px); }
h2.serif { font-size: clamp(28px, 3.6vw, 38px); }
.h2 { font-size: 28px; }
.h3 { font-size: 19px; font-weight: 700; margin-top: 28px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.muted-light { color: #b8c3c6; }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: .92em; }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow.gold { color: var(--gold-light); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.section { padding-top: 48px; padding-bottom: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { color: #fff; background: #000; }
.btn-gold { background: var(--gold); color: #1b1408; } .btn-gold:hover { color: #1b1408; background: #c48f37; }
.btn-green { background: var(--green); color: #fff; } .btn-green:hover { color: #fff; background: #187247; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline-light { border-color: #4b5b61; color: #fff; } .btn-outline-light:hover { color: #fff; }
.btn-danger { background: #fff; border-color: #e7b8ad; color: var(--red); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.stack-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }

/* Header and footer */
.site-header, .panel-header { background: #fff; border-bottom: 1px solid #ecedea; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--serif); font-size: 23px; line-height: 1; }
.brand-logo { height: 46px; width: auto; display: block; }
.footer-logo { height: 48px; width: auto; margin-bottom: 8px; }
.footer-tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 10px; }
.header-nav { display: flex; align-items: center; gap: 24px; font-weight: 500; font-size: 15px; }
.header-nav a:not(.btn) { text-decoration: none; color: #4a5559; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 calc(30px + env(safe-area-inset-bottom, 0px)); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-row > div { max-width: 520px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.footer-legal { margin-top: 18px; }
.tabbar { display: none; }

/* Hero + search */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .34; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,28,33,.5), rgba(18,28,33,.9)); }
.hero-inner { position: relative; z-index: 1; padding-top: 46px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.hero-title { font-size: clamp(38px, 6vw, 58px); margin: 0; }
.hero-title em { color: var(--gold-light); }
.hero-sub { color: #c9d1d3; margin: 0 0 8px; }
.search { background: #fff; color: var(--ink); border-radius: 22px; padding: 10px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.search-field { background: var(--field); border-radius: 14px; padding: 8px 14px; display: flex; flex-direction: column; min-width: 0; }
.search-loc { flex-direction: row; align-items: center; gap: 10px; }
.search-loc > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.search-icon { color: var(--gold-ink); display: flex; }
.search label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.search input, .search select { border: 0; background: transparent; font: 16px var(--sans); color: var(--ink); padding: 2px 0; min-width: 0; width: 100%; }
.search input:focus, .search select:focus { outline: none; }
.search-field:focus-within { box-shadow: inset 0 0 0 2px var(--gold); }
.search-go { min-height: 58px; border-radius: 14px; padding: 0 26px; font-weight: 700; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #aab5b8; }
.pop { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.pop:hover, .pop.on { background: var(--gold-light); border-color: var(--gold-light); color: #1b1408; }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 2px 0 4px; }
.arrows { display: flex; gap: 8px; }

/* Featured slider */
.slider { position: relative; border-radius: 26px; overflow: hidden; min-height: 500px; background: var(--slate); }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; background: linear-gradient(to top, rgba(12,19,22,.95), rgba(12,19,22,.65) 45%, rgba(12,19,22,0)); }
.slide-badge { position: absolute; top: 22px; left: 22px; background: rgba(255,255,255,.93); color: var(--ink); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.slide-badge b { background: var(--gold); color: #1b1408; border-radius: 999px; padding: 2px 9px; }
.slide-body { position: relative; width: 100%; padding: 36px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.slide-text { flex: 999 1 440px; min-width: 0; }
.slide-title { font-size: clamp(34px, 5vw, 56px); margin: 0; }
.slide-title a { color: #fff; text-decoration: none; }
.slide-sub { color: #d5dee1; margin: 6px 0 12px; }
.slide-actions { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 600; }
.slider-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.progress { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.progress i.run { animation: fill 2s linear forwards; }
@keyframes fill { to { width: 100%; } }
.dots { display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: #cfd4d0; cursor: pointer; transition: width .25s; }
.dots button.on { width: 30px; background: var(--ink); }

/* Project cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); min-width: 0; }
.pcard-img { position: relative; height: 210px; overflow: hidden; background: #dfe3e0; display: block; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-light { left: 12px; background: rgba(255,255,255,.94); color: var(--ink); }
.tag-gold { left: 12px; top: auto; bottom: 12px; background: var(--gold); color: #1b1408; }
.tag-static { position: static; display: inline-block; border: 1px solid var(--line); }
.tags { display: flex; gap: 8px; margin-bottom: 8px; }
.pcard-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-title { font-family: var(--serif); font-size: 27px; line-height: 1.05; color: var(--ink); text-decoration: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.facts dd { margin: 0; }
.price { color: var(--gold-ink); font-weight: 600; }
.rera { border-top: 1px solid #eef0ed; padding-top: 10px; }
.pcard-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.empty { background: #fff; border: 1px dashed #cfd4d0; border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); }

/* Bands */
.band { padding: 56px 0; }
.band-light { background: var(--soft); margin-top: 40px; }
.band-dark { background: var(--ink); color: #fff; }
.band-row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.band-row > div:first-child { flex: 1 1 360px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; flex: 1 1 420px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font: 20px var(--serif); }

/* Project detail */
.detail-top { padding-top: 18px; }
.crumbs { margin-bottom: 12px; color: var(--muted); }
.gallery { display: grid; gap: 8px; border-radius: 22px; overflow: hidden; height: 460px; }
.gallery.multi { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.g-item { display: block; overflow: hidden; background: #dfe3e0; min-height: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery.multi .g-main { grid-row: span 2; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 28px; }
.detail-title { font-size: clamp(36px, 5vw, 52px); margin: 0 0 4px; }
.facts-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; gap: 16px; margin: 18px 0; }
.facts-lg dd { font-size: 17px; }
.prose { white-space: pre-line; max-width: 70ch; }
.amenities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.amenities li { display: flex; gap: 8px; align-items: center; }
.amenities svg { color: var(--green); }
.map { height: 360px; border-radius: var(--r); overflow: hidden; background: var(--soft); margin-bottom: 14px; border: 1px solid var(--line); }
.map-tall { height: min(70vh, 620px); }
.map-list { columns: 2 280px; padding-left: 18px; margin-top: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.sticky { position: sticky; top: 86px; }
.or { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 4px; position: relative; }
.mobile-cta { display: none; }
.ok-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.center-block { text-align: center; padding-top: 56px; padding-bottom: 40px; }
.prose-page h2 { margin-top: 26px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 6px; }
.form label, .form .label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea {
  font: 16px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 13px; width: 100%; }
.form textarea { resize: vertical; }
.form input[type=file] { font: 15px var(--sans); padding: 12px; border: 1px dashed #b9c3c0; border-radius: var(--r-sm); background: #fff; width: 100%; }
.form button[type=submit] { margin-top: 14px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14.5px !important; }
.check input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.consent { background: var(--gold-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; }
.two, .three { display: grid; gap: 0 14px; }
.two { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: 1fr 1fr 1fr; }
.two > div, .three > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 14px 0 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
legend { font: 24px var(--serif); padding: 0 8px 0 0; }
.form-wide { max-width: 900px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { border-radius: var(--r-sm); padding: 12px 14px; background: var(--green-soft); color: #145a37; margin-bottom: 14px; }
.flash.error { background: var(--red-soft); color: var(--red); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.photo img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* Auth pages */
.auth { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 48px; padding-top: 48px; padding-bottom: 48px; align-items: start; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 8px; align-items: center; }
.ticks svg { color: var(--green); }

/* Panels (builder + admin) */
.panel { background: #f4f5f2; }
.panel-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-bottom: 10px; align-items: center; }
.panel-nav a { text-decoration: none; color: #4a5559; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.panel-nav a.on { background: var(--ink); color: #fff; }
.panel-nav form { margin-left: auto; }
.panel-main { padding-top: 26px; padding-bottom: 60px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin: 0 0 4px; }
.page-head p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.stat b { font: 34px/1 var(--serif); }
.stat span { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stat-alert { border-color: #e8c98d; background: var(--gold-soft); }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row-main { flex: 1 1 280px; min-width: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.thumb { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-green { background: var(--green-soft); color: #145a37; }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-grey { background: #eceeeb; color: #4a5559; }
.badge { background: var(--gold); color: #1b1408; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f7f8f6; padding: 10px 12px; white-space: nowrap; }
.table td { padding: 10px 12px; border-top: 1px solid #eef0ed; vertical-align: top; }
.table tr.is-new td { background: #fffbf2; }
.input-sm { font: 14px var(--sans); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 10px; background: #fff; max-width: 190px; }

/* Mobile: app-like layout */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .auth { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .gallery { height: 300px; }
  .gallery.multi { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
  .gallery.multi .g-main { grid-column: span 2; grid-row: auto; }
  .gallery.multi .g-item:nth-child(n+4) { display: none; }
}
@media (max-width: 760px) {
  body:not(.panel) { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .hide-sm { display: none; }
  .header-row { min-height: 58px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-logo { height: 38px; }
  .header-nav .btn { min-height: 38px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .header-nav .long { display: none; }
  .hero-inner { padding-top: 22px; padding-bottom: 20px; gap: 10px; }
  .hero-sub { font-size: 14px; }
  .search { grid-template-columns: 1fr 1fr; padding: 8px; border-radius: 18px; }
  .search-loc, .search-go { grid-column: 1 / -1; }
  .popular { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .popular::-webkit-scrollbar { display: none; }
  .popular > * { flex: none; }
  .section { padding-top: 28px; }
  .arrows { display: none; }
  .slider { min-height: 420px; border-radius: 20px; }
  .slide-body { padding: 18px; gap: 12px; }
  .slide-badge { top: 14px; left: 14px; }
  .slide-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .chip { font-size: 12px; padding: 4px 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { border-radius: 16px; }
  .pcard-img { height: 120px; }
  .tag { font-size: 10.5px; padding: 2px 8px; top: 8px; }
  .tag-light { left: 8px; } .tag-gold { right: auto; left: 8px; top: auto; bottom: 8px; }
  .pcard-body { padding: 10px; gap: 6px; }
  .pcard-title { font-size: 19px; }
  .pcard-body > .small { font-size: 12px; }
  .facts { grid-template-columns: 1fr; gap: 2px; font-size: 13px; }
  .facts dt { display: none; }
  .hide-xs { display: none; }
  .pcard-actions { grid-template-columns: 1fr; gap: 6px; }
  .pcard-actions .btn { min-height: 36px; font-size: 13px; }
  .facts-lg { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .facts-lg dt { display: block; }
  .two, .three { grid-template-columns: 1fr; }
  .band { padding: 36px 0; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(250,250,248,.96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; min-height: 48px; }
  .tabbar span { width: 52px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on span { background: #f1e6cf; color: var(--gold-ink); }
  .panel-nav { flex-wrap: wrap; gap: 2px 2px; }
  .panel-nav a, .panel-nav .linkbtn { padding: 6px 10px; font-size: 13.5px; }
  .panel-nav form { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .pcard-img img, .btn { transition: none; }
  .progress i.run { animation: none; width: 100%; }
}

/* ---- Builder plans ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.amber { color: var(--amber); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 14px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); padding: 16px; min-width: 0; }
.plan > input[type=radio] { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.plan:has(> input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,28,33,.08); }
.plan.is-current { border-color: var(--green); }
.plan-premium { background: linear-gradient(180deg, var(--gold-soft), var(--card) 60%); border-color: var(--gold-light); }
.plan-body { display: flex; flex-direction: column; gap: 6px; margin: 0; cursor: pointer; font-weight: 400; }
.plan-name { font: 400 26px/1.1 var(--serif); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 26px; }
.plan-name .pill { font-family: var(--sans); }
.plan-price { font-weight: 700; font-size: 17px; }
.plan-vis { color: var(--gold-ink); font-weight: 600; font-size: 14px; }
.plan-leads { font-size: 14.5px; }
.plan-leads b { font-size: 18px; }
.plan-perks { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.plan-perks span { display: flex; gap: 6px; align-items: flex-start; }
.plan-perks svg { color: var(--green); flex: none; margin-top: 2px; }
.plan-state { margin-top: auto; align-self: stretch; text-align: center; }
.form-plans { max-width: none; }
.usage { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.usage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.usage-head > div { display: flex; flex-direction: column; gap: 2px; }
.usage-plan { font: 400 26px/1.1 var(--serif); }
.meter { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.usage.is-full .meter i { background: var(--red); }
.usage .flash { margin: 4px 0 0; }
tr.is-held td { color: var(--muted); }
.plan-set { margin-top: 4px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.auth .plans { grid-template-columns: 1fr; gap: 8px; }
.auth .plan { padding: 12px 14px; gap: 6px; }
.auth .plan-perks { display: none; }
.auth .plan-name { font-size: 22px; }
.panel-nav a, .panel-nav .linkbtn { white-space: nowrap; }

/* ---- Buyer accounts: save heart, login page, 5-tab bar ---- */
.pcard { position: relative; }
.save-form { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.save-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.save-btn:hover { color: var(--red); }
.save-btn.on { color: #fff; background: var(--red); }
.save-btn.on svg { fill: currentColor; }
.save-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.save-inline { position: static; flex: none; }
.save-inline .save-btn { border: 1px solid var(--line-2); box-shadow: none; width: 44px; height: 44px; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.popular-light { color: var(--muted); margin: 12px 0 18px; }
.popular-light .pop { color: var(--ink); border-color: var(--line-2); background: var(--card); }
.projects-page .search { box-shadow: var(--shadow); border: 1px solid var(--line); }
.stack-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.builder-box { display: flex; flex-direction: column; gap: 10px; }
.builder-box .stack-row { justify-content: flex-start; }
.account-head { align-items: flex-start; }
@media (max-width: 760px) {
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .tabbar span { width: 46px; }
  .save-form { top: 6px; right: 6px; }
  .save-btn { width: 32px; height: 32px; }
  .save-btn svg { width: 16px; height: 16px; }
}

/* ---- Login pop-up (bottom sheet on phones, centred box on computers) ---- */
.lp { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lp[hidden] { display: none; }
.lp-backdrop { position: absolute; inset: 0; background: rgba(12, 19, 22, .55); }
.lp-sheet { position: relative; background: var(--card); border-radius: 22px; width: 100%; max-width: 420px; max-height: calc(100% - 32px); overflow-y: auto;
  padding: 26px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 10px; animation: lp-in .25s ease-out; }
.lp-sheet h2 { margin: 2px 0 0; font-size: 30px; }
.lp-sheet .form { gap: 5px; }
.lp-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.lp-skip { margin-top: 2px; }
body.lp-open { overflow: hidden; }
@keyframes lp-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 760px) {
  .lp { align-items: flex-end; padding: 0; }
  .lp-sheet { max-width: none; border-radius: 22px 22px 0 0; max-height: 92%; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); animation-name: lp-up; }
  @keyframes lp-up { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .lp-sheet { animation: none; } }
.lp .linkbtn { color: var(--ink); font-weight: 700; }

/* ---- App-style home: city chip, category tiles, rails, localities ---- */
.hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.city-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); color: #fff; border-radius: 999px; padding: 5px 12px 5px 9px; font-weight: 700; font-size: 14px; }
.city-chip svg { color: var(--gold-light); }
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-top: 22px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 6px 12px; }
.cat span { width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; }
.cat:hover { border-color: var(--gold); color: var(--ink); }
.slide-price { font-weight: 700; font-size: 18px; color: var(--gold-light); margin: -4px 0 12px; }
.slide-price span { color: #d5dee1; font-weight: 600; font-size: 15px; }
.rail-head { align-items: center; margin-bottom: 12px; }
.rail-head p { margin: 0; }
.see-all { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--gold-ink); text-decoration: none; font-size: 15px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.rcard { position: relative; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.rcard-img { position: relative; height: 150px; background: #dfe3e0; display: block; }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; }
.rcard-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.rcard-price { font-size: 17px; }
.rcard-config { font-size: 13.5px; color: var(--muted); }
.rcard-name { font: 400 20px/1.15 var(--serif); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-area { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.loc { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.loc span { font-size: 13px; color: var(--muted); }
.loc:hover { border-color: var(--gold); color: var(--ink); }
@media (max-width: 760px) {
  .hero-inner { padding-top: 14px; padding-bottom: 16px; gap: 10px; }
  .hero-eyebrow, .hero-sub { display: none; }
  .hero-title { font-size: 27px; line-height: 1.1; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 16px; }
  .cat { font-size: 12.5px; padding: 10px 4px; border-radius: 14px; gap: 6px; }
  .cat span { width: 40px; height: 40px; border-radius: 12px; }
  .section { padding-top: 22px; }
  .section-head { margin-bottom: 10px; }
  .section-head h2 { font-size: 25px; }
  #featured .section-head .eyebrow { display: none; }
  .slider { min-height: 270px; border-radius: 18px; }
  .slide-badge { top: 10px; left: 10px; font-size: 12px; padding: 4px 10px 4px 4px; }
  .slide-body { padding: 14px; gap: 10px; }
  .slide-title { font-size: 26px; }
  .slide-sub { font-size: 13px; margin: 2px 0 6px; }
  .slide-price { font-size: 16px; margin: 0; }
  .slide .chips { display: none; }
  .slide-actions .btn { min-height: 38px; font-size: 13.5px; padding: 0 10px; }
  .slider-foot { margin-top: 10px; }
  .rail { grid-auto-columns: 68%; gap: 10px; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 0 max(16px, env(safe-area-inset-left, 0px)) 6px; scroll-padding: 0 16px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rcard-img { height: 120px; }
  .rcard-name { font-size: 18px; }
  .locs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 760px) {
  /* Home: one-line search like an app; full filters stay on the Projects page */
  .hero .search { grid-template-columns: minmax(0, 1fr) auto; padding: 6px; border-radius: 16px; }
  .hero .search-field:not(.search-loc) { display: none; }
  .hero .search-loc { grid-column: auto; }
  .hero .search-go { grid-column: auto; min-height: 52px; padding: 0 16px; }
  .hero .popular { margin-top: 2px; }
  .cats { padding-top: 18px; }
}
@media (max-width: 760px) {
  /* Home search: slim premium pill with a round gold button */
  .hero .search { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 4px 4px 4px 6px; border-radius: 999px;
    background: rgba(255,255,255,.97); box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(217,180,106,.6); }
  .hero .search:focus-within { box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 0 2px var(--gold-light); }
  .hero .search-loc { background: transparent; padding: 0 4px 0 10px; border-radius: 999px; gap: 8px; min-height: 42px; }
  .hero .search-loc:focus-within { box-shadow: none; }
  .hero .search-loc label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero .search-loc input { font-size: 15px; padding: 0; }
  .hero .search-loc input::placeholder { color: #8a9397; }
  .hero .search-icon svg { width: 18px; height: 18px; }
  .hero .search-go { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; justify-content: center;
    background: linear-gradient(140deg, var(--gold-light), var(--gold)); color: #1b1408; box-shadow: 0 4px 12px rgba(181,131,47,.45); }
  .hero .go-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero .popular { font-size: 12.5px; gap: 6px; }
  .hero .pop { padding: 4px 11px; font-size: 13px; }
}

/* ---- Cities ---- */
a.city-chip { text-decoration: none; }
a.city-chip:hover { background: rgba(255,255,255,.2); color: #fff; }
.city-chip-light { background: var(--gold-soft); border-color: #ecd9b3; color: var(--ink); margin-bottom: 4px; }
.city-chip-light svg { color: var(--gold-ink); }
a.city-chip-light:hover { background: #f3e6c9; color: var(--ink); }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.city-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-decoration: none; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; }
.city-card b { font: 400 26px/1.1 var(--serif); }
.city-card span { color: var(--muted); font-size: 14px; }
.city-card .pill { margin-top: 6px; }
.city-card.on { border-color: var(--ink); }
.city-card:hover { border-color: var(--gold); color: var(--ink); }
.city-card.is-soon { opacity: .6; }
.city-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink) !important; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.city-tabs { align-items: center; }
@media (max-width: 760px) { .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .city-card b { font-size: 22px; } }

/* ---- Account type picker (builder / promoter / agent) ---- */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.seg-opt { position: relative; display: flex; margin: 0; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { flex: 1; text-align: center; padding: 10px 6px; border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 600; font-size: 13.5px; line-height: 1.25; background: var(--card); }
.seg-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.field-help { margin: -2px 0 6px; }
.agent-only[hidden] { display: none; }
.listed-by { margin: -6px 0 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- Send several leads in one WhatsApp message ---- */
.fwd-groups { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.fwd { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 16px; }
.fwd-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.fwd-count b { font: 400 26px/1 var(--serif); color: var(--ink); margin-right: 4px; }
.fwd-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .fwd { grid-template-columns: minmax(0, 1fr) auto; } .fwd-actions { grid-column: 1 / -1; justify-content: stretch; } .fwd-actions .btn { flex: 1; } }

/* ---- Automation ---- */
.auto-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.auto-switch > div { min-width: 0; flex: 1 1 260px; }

/* ---- Area leads ---- */
.area-consent { background: #eef6f1; border-color: #cfe6d8; }
.area-offer, .area-done { text-align: left; margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.area-done ul { margin: 0; padding-left: 18px; }

/* ===== Brighter theme (v14): lighter paper, warmer gold, livelier fonts ===== */
:root {
  --ink: #0b2d5b; --slate: #1e4a86; --text: #14243b; --muted: #556275; --muted-2: #7a8696;
  --paper: #fffdf8; --card: #ffffff; --soft: #fff5e3; --field: #fdf8ee; --line: #f0e6d2; --line-2: #e7dbc3;
  --gold: #e8a317; --gold-ink: #a3650a; --gold-light: #ffcf5c; --gold-soft: #fff1d2;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: Poppins, 'Segoe UI', Roboto, system-ui, sans-serif;
  --shadow: 0 8px 26px rgba(11, 45, 91, .08);
}
body { font-size: 15.5px; }
.serif { font-weight: 600; letter-spacing: -.01em; }
.pcard-title, .brand-name { font-weight: 600; }
.hero-title em, .serif em { font-style: italic; font-weight: 500; }
.hero { background: linear-gradient(135deg, #0b2d5b 0%, #164a8f 55%, #0b2d5b 100%); }
.hero-bg { opacity: .6; }
.hero::after { background: linear-gradient(180deg, rgba(11,45,91,.15) 0%, rgba(11,45,91,.7) 100%), radial-gradient(120% 70% at 85% 0%, rgba(255,191,64,.32), transparent 60%); }
.hero-sub { color: #e6edf7; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--slate); }
.search-go, .hero .search-go { background: linear-gradient(135deg, #ffc23d, #e8960f); color: #2b1a00; }
.eyebrow { color: var(--gold-ink); }
.site-header, .panel-header { box-shadow: 0 1px 0 var(--line); }

/* ===== Festival themes (body.festive, see src/festive.js and src/views/festive.js) ===== */
.fest-deco { position: absolute; top: 0; left: 0; right: 0; height: 34px; z-index: 2; display: flex; justify-content: space-between; padding: 0 6px; pointer-events: none; }
.fest-deco::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 14px; border-bottom: 1.5px solid rgba(255,255,255,.35); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.fest-lights i { position: relative; width: 9px; height: 13px; margin-top: var(--y); border-radius: 50% 50% 45% 45%;
  background: hsl(var(--h) 95% 62%); box-shadow: 0 0 10px 3px hsl(var(--h) 95% 60% / .7);
  animation: twinkle 1.6s ease-in-out infinite; animation-delay: var(--d); }
.fest-lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 5px; height: 4px; background: #3b3b3b; border-radius: 1px; }
@keyframes twinkle { 0%, 100% { opacity: 1; filter: brightness(1.15); } 50% { opacity: .45; filter: brightness(.8); } }
@media (max-width: 640px) { .fest-deco i:nth-child(2n) { display: none; } }

.diya { width: 22px; height: 22px; flex: none; overflow: visible; }
.diya-bowl { fill: #c2541b; } .diya-rim { stroke: #ffcf5c; stroke-width: 3; } .diya-dot { fill: #ffcf5c; }
.diya-flame { fill: #ffb81f; transform-origin: 32px 30px; animation: flicker 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(255,176,0,.9)); }
.diya-core { fill: #fff3b0; transform-origin: 32px 30px; animation: flicker 0.9s ease-in-out infinite alternate-reverse; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.94, 1.06) rotate(1.5deg); } 100% { transform: scale(1.03, .95) rotate(-1deg); } }

.fest-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .02em;
  color: #2b1a00; background: linear-gradient(135deg, #ffe08a, #ffb627); box-shadow: 0 4px 18px rgba(255,170,30,.45); }
.festive .hero-inner { padding-top: 54px; }
@media (max-width: 640px) { .festive .hero-inner { padding-top: 34px; } }

.fest-banner-wrap { padding-top: 22px; }
.fest-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 22px 26px; border-radius: var(--r);
  color: #fff; background: radial-gradient(90% 140% at 0% 0%, var(--fa, #ff8a1f) 0%, transparent 55%), radial-gradient(80% 120% at 100% 100%, var(--fb, #d4146b) 0%, transparent 60%), linear-gradient(120deg, var(--fc1, #6a1b4d), var(--fc2, #8f2a1c) 55%, var(--fc3, #c2541b));
  box-shadow: 0 14px 34px rgba(143,42,28,.28); }
.fest-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(255,230,150,.95) 0 1.2px, transparent 1.8px), radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.6px);
  background-size: 46px 46px, 73px 73px; background-position: 0 0, 20px 30px; animation: sparkle 6s linear infinite; }
@keyframes sparkle { to { background-position: 46px 46px, 93px 103px; } }
.fest-banner > * { position: relative; }
.fest-diyas { display: flex; gap: 2px; align-items: flex-end; }
.fest-diyas .diya { width: 44px; height: 44px; }
.fest-diyas .diya:nth-child(2) { width: 56px; height: 56px; }
.fest-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #ffd98a; }
.fest-title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; margin: 4px 0 6px; color: #fff; }
.fest-sub { margin: 0; color: #ffe9d6; font-size: 14.5px; max-width: 640px; }
.fest-btn { background: linear-gradient(135deg, #ffe08a, #ffb627); color: #2b1a00; font-weight: 600; white-space: nowrap; }
.fest-btn:hover { color: #2b1a00; filter: brightness(1.05); }
@media (max-width: 760px) {
  .fest-banner { grid-template-columns: 1fr; gap: 12px; padding: 18px; text-align: left; }
  .fest-diyas .diya { width: 34px; height: 34px; } .fest-diyas .diya:nth-child(2) { width: 42px; height: 42px; }
  .fest-btn { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .fest-deco i, .diya-flame, .diya-core, .fest-banner::before { animation: none; } }

/* Size tune-down for Poppins/Playfair (they run larger than Figtree/Instrument Serif) */
body { font-size: 14.5px; }
h1.serif { font-size: clamp(28px, 4.2vw, 40px); }
h2.serif { font-size: clamp(23px, 3vw, 31px); }
.hero-title { font-size: clamp(30px, 4.6vw, 46px); }
.pcard-title { font-size: 22px; }
.header-nav a { font-size: 14.5px; }
.btn { font-size: 14px; }
.pop { font-size: 13px; }
.fest-title { font-size: clamp(19px, 2.2vw, 26px); }
.fest-sub { font-size: 13.5px; }
.fest-chip { font-size: 13px; padding: 5px 12px 5px 9px; }
@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero-title { font-size: 24px; }
  h2.serif { font-size: 23px; }
  .btn { font-size: 13.5px; }
  .hero .pop { font-size: 12px; padding: 3px 10px; }
  .hero .search-loc input { font-size: 14px; }
  .tabbar a { font-size: 11px; }
  .fest-title { font-size: 19px; }
}
/* Lighter weights: Poppins 700 looks heavy */
.btn, .pop, .city-chip, .fest-chip, .fest-btn, .pill { font-weight: 500; }
.header-nav .btn, .search-go { font-weight: 600; }
.tabbar a { font-weight: 500; }
@media (max-width: 640px) {
  .fest-banner-wrap { padding-top: 16px; }
  .fest-banner { grid-template-columns: auto 1fr; gap: 10px 12px; padding: 14px 16px; }
  .fest-diyas .diya { width: 26px; height: 26px; } .fest-diyas .diya:nth-child(2) { width: 32px; height: 32px; }
  .fest-diyas { grid-row: span 1; }
  .fest-text { min-width: 0; }
  .fest-sub { display: none; }
  .fest-title { font-size: 17px; margin: 2px 0 0; }
  .fest-eyebrow { font-size: 10.5px; letter-spacing: .12em; }
  .fest-btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; justify-content: center; min-height: 40px; }
}

/* Lights use .fest-lights i rules above; bunting flags and marigold toran below */
.fest-bunting i { position: relative; width: 0; height: 0; margin-top: var(--y); border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 15px solid var(--c);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); transform-origin: 50% 0; animation: sway 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.fest-marigold i { position: relative; width: 14px; height: 14px; margin-top: var(--y); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff3b0 0 18%, var(--c) 22% 62%, #e85d04 66% 100%); box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.fest-marigold i:nth-child(5n)::after { content: ""; position: absolute; left: 3px; top: 13px; width: 8px; height: 10px; border-radius: 0 0 50% 50%; background: #2d8a34; }
.fest-emoji { font-size: 18px; line-height: 1; }
.fest-diyas .fest-emoji { font-size: 44px; }
.tricolor { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.fest-diyas .tricolor { width: 60px; height: 40px; }
@media (max-width: 640px) { .fest-diyas .fest-emoji { font-size: 30px; } .fest-diyas .tricolor { width: 40px; height: 27px; } }
@media (prefers-reduced-motion: reduce) { .fest-bunting i { animation: none; } }
