/* Layout idea: maroon temple-gate header, turmeric paper body, gold rules; numbered abodes in traditional order. Single committed theme. */
:root {
  --maroon: #6a1420;
  --maroon-deep: #4a0d16;
  --saffron: #d9700b;
  --gold: #c39233;
  --paper: #fbf4e6;
  --card: #fffaf0;
  --ink: #2b1a14;
  --muted: #6e5a4c;
  --line: #e6d3b0;
  --leaf: #2f5d3a;
  --display: "Marcellus", "Palatino Linotype", Georgia, serif;
  --body: "Mukta", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--maroon); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; text-wrap: balance; color: var(--maroon); margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 66ch; }

/* Header */
.site-header { background: var(--maroon); color: #f8e7c4; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #f8e7c4; }
.brand svg { width: 30px; height: 44px; }
.brand span { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; }
.brand small { display: block; font-family: var(--body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: -4px; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: #f8e7c4; text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-header nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.border-band {
  height: 14px;
  background:
    radial-gradient(circle at 7px 7px, var(--gold) 2.2px, transparent 2.6px) 0 0 / 14px 14px,
    linear-gradient(var(--maroon-deep), var(--maroon-deep));
  border-bottom: 2px solid var(--gold);
}

/* Hero */
.hero { padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 18px; }
.eyebrow { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--ink); }
.quiet { color: var(--muted); }

section.block { padding: 40px 0; border-bottom: 1px solid var(--line); }
section.block > .wrap { display: grid; gap: 22px; }
.section-head { display: grid; gap: 6px; }

/* Abode cards */
.abodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.abode {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 18px 16px; display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px;
  text-decoration: none; color: inherit; position: relative;
}
.abode .num {
  grid-row: span 5; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--gold); display: grid; place-items: center;
  font-family: var(--display); font-size: 1.4rem; color: var(--maroon); background: var(--paper);
}
.abode h3 { font-size: 1.2rem; }
.abode .place { font-size: .88rem; color: var(--muted); }
.abode .legend { font-size: .95rem; margin-top: 4px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; margin-top: 8px; justify-self: start; grid-column: 2; }
.pill.ready { background: var(--leaf); color: #fff; }
.pill.soon { background: transparent; color: var(--muted); border: 1px solid var(--line); }
a.abode:hover { border-color: var(--saffron); box-shadow: 0 2px 0 var(--saffron); }

/* Map + route */
.map-route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.map-card svg { width: 100%; height: auto; display: block; }
.map-note { font-size: .8rem; color: var(--muted); padding: 4px 6px 0; }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.route li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.route li:first-child { border-top: 0; }
.route .day { font-family: var(--display); color: var(--saffron); font-size: 1.05rem; }
.route .leg { font-weight: 700; }
.route .meta { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Festival strip */
.fest { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.fest div { border-left: 3px solid var(--gold); padding: 6px 12px; background: var(--card); }
.fest b { display: block; color: var(--maroon); font-weight: 700; }
.fest span { font-size: .88rem; color: var(--muted); }

/* Temple page */
.crumb { font-size: .9rem; }
.temple-hero { background: linear-gradient(180deg, var(--card), var(--paper)); padding: 34px 0 28px; border-bottom: 1px solid var(--line); }
.temple-hero .wrap { display: grid; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; font-size: .9rem; }
.fact b { color: var(--maroon); }
.notice { border: 1px solid var(--gold); background: #fff4d9; border-radius: 6px; padding: 12px 16px; font-size: .95rem; }
.notice b { color: var(--maroon); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: grid; gap: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; width: 46%; }
td { font-variant-numeric: tabular-nums; }
ul.ticks { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
ul.ticks li { padding-left: 22px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; background: var(--saffron); transform: rotate(45deg); }
.checklist { display: grid; gap: 8px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checklist input { margin-top: 5px; accent-color: var(--maroon); width: 18px; height: 18px; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.btn { font: inherit; font-size: .9rem; background: transparent; border: 1px solid var(--maroon); color: var(--maroon); border-radius: 4px; padding: 4px 12px; cursor: pointer; justify-self: start; }
.btn:hover { background: var(--maroon); color: #fff; }
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.reach .panel h3 { font-size: 1.1rem; }
.checked { font-size: .85rem; color: var(--muted); }

footer { padding: 30px 0 40px; font-size: .88rem; color: var(--muted); }
footer .wrap { display: grid; gap: 6px; }


/* Photos */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: center; }
.hero-split .text { display: grid; gap: 18px; }
figure { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; background: var(--line); }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
@media (max-width: 760px) { .hero-split { grid-template-columns: 1fr; } .hero-photo img { aspect-ratio: 4 / 3; } }


/* Peacock, Vel, rooster emblem */
.emblem { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 10px 0 0; }
.emblem::before, .emblem::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: var(--gold); align-self: center; }
.emblem svg.bird { width: 92px; height: 72px; flex-shrink: 0; }
.emblem svg.vel { width: 22px; height: 80px; }
.emblem-band { padding: 26px 0 6px; }
.story-figure { display: flex; align-items: flex-end; gap: 22px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.story-figure svg { width: 110px; height: 86px; flex-shrink: 0; }
.story-figure figcaption { margin: 0; align-self: center; }
footer .emblem { justify-content: flex-start; }
footer .emblem::before { display: none; }
footer .emblem svg.bird { width: 64px; height: 50px; }
footer .emblem svg.vel { width: 16px; height: 56px; }


/* Temple page additions */
.btn-map { display: inline-flex; align-items: center; gap: 8px; background: var(--maroon); color: #fff; text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 4px; justify-self: start; }
.btn-map:hover { background: var(--maroon-deep); }
.btn-map svg { width: 16px; height: 16px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump button { font: inherit; font-size: .88rem; background: var(--card); border: 1px solid var(--line); color: var(--maroon); border-radius: 99px; padding: 3px 12px; cursor: pointer; }
.jump button:hover { border-color: var(--saffron); }
.table-wrap { overflow-x: auto; }
table.wide th { width: auto; color: var(--maroon); font-weight: 700; }
table.wide thead th { color: var(--muted); font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
td.cost { white-space: nowrap; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cards .panel h3 { font-size: 1.15rem; }
.cards .panel .cost-line { font-size: .9rem; color: var(--leaf); font-weight: 700; }
.access { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.access div { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--leaf); border-radius: 4px; padding: 10px 14px; }
.access b { display: block; color: var(--maroon); }
.access span { font-size: .92rem; }
.ease { display: inline-block; background: var(--leaf); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 99px; }
.mine { border: 1px dashed var(--gold); border-radius: 6px; padding: 12px 16px; background: transparent; }


/* Tamil names, placeholders, pager */
.ta { font-family: "Noto Sans Tamil", "Tamil MN", "Latha", var(--body); font-weight: 500; }
h1 .ta { display: block; font-size: .5em; color: var(--saffron); margin-top: 6px; letter-spacing: 0; }
.abode .ta { font-size: .95rem; color: var(--saffron); }
.photo-placeholder { aspect-ratio: 4 / 5; border: 2px dashed var(--gold); border-radius: 6px; background: var(--card); display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.photo-placeholder svg { width: 140px; height: 110px; opacity: .55; }
.ease-saffron { background: var(--saffron); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 30px 0 10px; }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); text-decoration: none; color: var(--maroon); font-family: var(--display); font-size: 1.2rem; }
.pager a:hover { border-color: var(--saffron); }
.pager a.next { text-align: right; }
.pager small { font-family: var(--body); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.pager .ta { font-size: .9rem; color: var(--saffron); }
@media (max-width: 760px) { .photo-placeholder { aspect-ratio: 4 / 3; } .pager { grid-template-columns: 1fr; } .pager a.next { text-align: left; } }


/* Trip planner */
.planner { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--maroon); border-radius: 6px; padding: 16px; }
.planner label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--maroon); letter-spacing: .02em; }
.planner select { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 7px 8px; }
.planner select:focus-visible { outline: 3px solid var(--saffron); outline-offset: 1px; }
.plan-out { display: grid; gap: 12px; align-content: start; }
.route .meta.stay { color: var(--leaf); font-weight: 700; margin-top: 4px; }
.route .leg a { color: var(--maroon); }


/* Share and corrections */
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--leaf); color: #fff; text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 4px; }
.btn-wa:hover { background: #24492d; }
.btn-wa svg { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn-map { justify-self: auto; }
a.fix { color: var(--maroon); font-weight: 500; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: .92rem; max-width: 90vw; z-index: 10; }
.toast[hidden] { display: none; }

.view[hidden] { display: none; }

@media (max-width: 760px) {
  .map-route, .two-col { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  a.abode { transition: border-color .15s, box-shadow .15s; }
}
