:root {
  --ink: #17211f;
  --muted: #64716d;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #dce3e0;
  --teal: #1e655f;
  --teal-soft: #e2f0ed;
  --coral: #b9503e;
  --coral-soft: #f8e8e4;
  --gold: #9a6c18;
  --gold-soft: #f7efd9;
  --green: #397243;
  --green-soft: #e8f2e9;
  --blue: #315f8a;
  --blue-soft: #e8f0f7;
  --shadow: 0 12px 32px rgba(20, 35, 31, 0.09);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.locked { overflow: hidden; }
body.locked > :not(.lock-screen):not(script) { display: none !important; }

.lock-screen {
  min-height: 100svh;
  padding: 24px;
  background: #14201e url("assets/india-hero.jpg") center / cover no-repeat;
  display: grid;
  place-items: center;
  position: relative;
}

.lock-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 17, .7);
}

.lock-dialog {
  position: relative;
  width: min(100%, 410px);
  padding: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(18, 31, 28, .96);
  color: #fff;
  box-shadow: var(--shadow);
}

.lock-dialog h1 { margin: 0; font-size: 28px; }
.lock-dialog p { color: rgba(255,255,255,.72); }
.lock-dialog label { display: block; margin: 20px 0 7px; font-size: 13px; font-weight: 700; }
.lock-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.lock-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 12px 13px;
  font-size: 18px;
}
.lock-row button {
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
  font-weight: 760;
  cursor: pointer;
}
.lock-error { min-height: 24px; margin: 8px 0 0 !important; color: #ffc2b7 !important; font-size: 13px; }
.lock-links { display: flex; gap: 16px; margin-top: 18px; }
.lock-links a { color: #9ed4cb; font-size: 13px; }
.lock-screen[hidden] { display: none; }

button, a { font: inherit; }
a { color: inherit; }

.site-nav {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 64px;
  background: rgba(13, 24, 22, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 760;
  white-space: nowrap;
}

.brand span { color: #9ed4cb; }

.country-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.country-nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
}

.country-nav a:hover,
.country-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.13);
}

.print-button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 6px;
  padding: 7px 11px;
  cursor: pointer;
}

.print-button:hover { background: rgba(255,255,255,.1); }

.hero {
  position: relative;
  height: 68svh;
  min-height: 520px;
  max-height: 660px;
  margin-top: 0;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 17, .46);
}

.hero-bali { background-image: url("assets/bali-hero.jpg"); }
.hero-india { background-image: url("assets/india-hero.jpg"); }
.hero-lanka { background-image: url("assets/sri-lanka-hero.jpg"); }

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 54px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 720;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1;
  font-weight: 600;
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 19px;
  color: rgba(255,255,255,.9);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-weight: 680;
}

.hero-meta span { border-left: 3px solid #9ed4cb; padding-left: 10px; }

.quick-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-item {
  min-height: 102px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.quick-item:last-child { border-right: 0; }
.quick-item strong { display: block; font-size: 22px; line-height: 1.2; }
.quick-item span { color: var(--muted); font-size: 13px; font-weight: 650; }

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 24px 90px;
}

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child { border-bottom: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.section-intro {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  flex-shrink: 0;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  color: #fff;
  background: var(--teal);
}

.free-band {
  background: var(--teal-soft);
  border-left: 5px solid var(--teal);
  padding: 22px 24px;
  border-radius: 0 8px 8px 0;
}

.free-band h2 { font-size: 24px; }
.free-band p { margin: 7px 0 0; }

.timeline {
  display: grid;
  gap: 10px;
}

.day-row {
  display: grid;
  grid-template-columns: 126px 160px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  min-height: 98px;
  padding: 17px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(20,35,31,.03);
}

.day-row[data-free="true"] { border-left: 5px solid var(--teal); }
.day-row.is-hidden { display: none; }
.date strong, .base strong { display: block; }
.date span, .base span { color: var(--muted); font-size: 13px; }
.day-plan { min-width: 0; }
.day-plan strong { display: block; margin-bottom: 3px; }
.day-plan p { margin: 0; color: #485551; }

.status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.status.fixed { background: var(--green-soft); color: var(--green); }
.status.open { background: var(--gold-soft); color: var(--gold); }
.status.free { background: var(--teal-soft); color: var(--teal); }
.status.caution { background: var(--coral-soft); color: var(--coral); }
.status.travel { background: var(--blue-soft); color: var(--blue); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.clean-list, .action-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clean-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.clean-list li:last-child { border-bottom: 0; }
.clean-list strong { display: block; }
.clean-list span { color: var(--muted); }

.action-list {
  counter-reset: actions;
}

.action-list li {
  counter-increment: actions;
  position: relative;
  padding: 14px 0 14px 48px;
  border-bottom: 1px solid var(--line);
}

.action-list li::before {
  content: counter(actions);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 760;
  font-size: 13px;
}

.notice {
  padding: 20px 22px;
  border-radius: 8px;
  background: var(--coral-soft);
  border-left: 5px solid var(--coral);
}

.notice h3 { margin: 0 0 6px; font-size: 18px; }
.notice p { margin: 0; }

.budget {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.budget-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.budget-item span { color: var(--muted); font-size: 13px; }
.budget-item strong { display: block; margin-top: 4px; font-size: 20px; }

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.source-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  color: var(--teal);
  font-weight: 650;
}

.site-footer {
  background: #14201e;
  color: rgba(255,255,255,.76);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong { color: #fff; }

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .day-row { grid-template-columns: 110px minmax(0, 1fr) 130px; }
  .base { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  .site-nav { height: auto; min-height: 60px; }
  .nav-inner { padding: 9px 14px; gap: 8px; }
  .brand { font-size: 13px; }
  .country-nav { gap: 2px; }
  .country-nav a { padding: 7px 8px; font-size: 12px; }
  .print-button { display: none; }
  .hero { height: 62svh; min-height: 460px; max-height: 580px; }
  .hero-content { width: calc(100% - 32px); padding-bottom: 34px; }
  .hero h1 { font-size: 50px; }
  .hero-copy { font-size: 16px; }
  .hero-meta { font-size: 13px; gap: 8px 14px; }
  .quick-item { min-height: 86px; padding: 16px; }
  .quick-item strong { font-size: 18px; }
  .page-shell { padding: 30px 16px 64px; }
  .section { padding: 34px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section h2 { font-size: 26px; }
  .day-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
    min-height: 0;
  }
  .status { justify-self: start; grid-column: 2; }
  .day-plan p { font-size: 14px; }
  .budget { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .site-nav, .segmented, .print-button { display: none !important; }
  .hero { height: 220px; min-height: 220px; margin: 0; }
  .hero-content { padding: 40px 0 24px; }
  .hero h1 { font-size: 44px; }
  .page-shell { max-width: none; padding: 20px 0; }
  .section { break-inside: avoid; padding: 20px 0; }
  .day-row { box-shadow: none; break-inside: avoid; }
  .site-footer { display: none; }
}
