/* Singh Tour and Travels
   Clean and simple: white page, black text, taxi yellow, one green WhatsApp button. */
:root {
  --bg: #ffffff;
  --soft: #f4f5f2;
  --ink: #15181b;
  --muted: #5d646b;
  --line: #e2e5e0;
  --taxi: #ffc928;
  --taxi-deep: #f0b400;
  --wa: #0f8a4c;
  --wa-deep: #0b6f3d;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(21, 24, 27, 0.05), 0 18px 40px -18px rgba(21, 24, 27, 0.22);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--taxi); padding: 0.5rem 1rem; z-index: 2000; }

/* Header */
.top { position: sticky; top: 0; z-index: 1500; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex: none; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--muted); letter-spacing: 0; }
.logo { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.5rem 0.85rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--soft); }

/* Menu button for tablets and phones */
.menu { display: none; position: relative; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.05rem; border-radius: 999px; background: var(--soft); user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu nav { position: absolute; right: 0; top: calc(100% + 0.6rem); width: min(17rem, calc(100vw - 2rem)); display: grid; padding: 0.4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.menu nav a { padding: 0.8rem 0.9rem; border-radius: 10px; text-decoration: none; font-weight: 600; }
.menu nav a:hover, .menu nav a[aria-current] { background: var(--soft); }
.menu nav a:last-child { margin-top: 0.3rem; background: var(--wa); color: #fff; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; line-height: 1.2; padding: 0.95rem 1.4rem; border-radius: 14px; border: 0; text-decoration: none; cursor: pointer; transition: background-color 0.15s, transform 0.1s; }
.btn:active { transform: scale(0.98); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-call { background: var(--taxi); color: var(--ink); }
.btn-call:hover { background: var(--taxi-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.top-call { padding: 0.65rem 1.1rem; border-radius: 999px; white-space: nowrap; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 1.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 0.4rem; color: var(--line); }

/* Page tops */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.pagehead { padding-block: 1.6rem clamp(1.5rem, 3vw, 2.5rem); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 54ch; margin: 1rem 0 0; }
.hero .planner, .pagehead .planner, .pagehead .trips, .pagehead .services { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Trip planner */
.planner { display: grid; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: 0.6rem; gap: 0.6rem; }
.planner-form { padding: 1rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.9rem; }
.fields { position: relative; display: grid; gap: 0.55rem; }
.fields::before { content: ''; position: absolute; left: 1.42rem; top: 2.4rem; bottom: 2.4rem; border-left: 2px dotted #b8beb6; }
.field { position: relative; display: block; background: var(--soft); border: 2px solid transparent; border-radius: 14px; padding: 0.5rem 0.95rem 0.55rem; transition: border-color 0.15s, background-color 0.15s; }
.field:focus-within { border-color: var(--ink); background: var(--bg); }
.field > span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.field input { display: block; width: 100%; font: inherit; font-weight: 700; font-size: 1.12rem; color: var(--ink); background: transparent; border: 0; padding: 0; outline: 0; min-height: 1.75rem; }
.field input::placeholder { color: #9aa19a; font-weight: 500; }
.fields .field { padding-left: 2.9rem; }
.fields .field::before { content: ''; position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); background: var(--bg); z-index: 1; }
.fields .field-to::before { background: var(--taxi); }
.field.is-missing { border-color: #c8372d; }
.suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 6px); z-index: 1200; margin: 0; padding: 0.35rem; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.suggest li { padding: 0.7rem 0.75rem; border-radius: 10px; cursor: pointer; font-size: 0.98rem; line-height: 1.3; }
.suggest li span { color: var(--muted); font-size: 0.88rem; }
.suggest li:hover, .suggest li.is-active { background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2; padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.extras { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0.55rem; }
.result { background: #fff7d6; border-radius: 14px; padding: 0.85rem 1rem; }
.result p { margin: 0; max-width: none; }
.result-km { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.result-time { color: #5b4a00; font-weight: 600; font-size: 0.98rem; }
.result.is-note .result-km { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
.planner-actions { display: grid; gap: 0.5rem; margin-top: auto; }
.planner-map { position: relative; z-index: 0; isolation: isolate; min-height: 30rem; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.map-wait { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; color: var(--muted); font-weight: 600; text-align: center; padding: 1rem; max-width: none; }
.planner-map .leaflet-tile-pane { filter: saturate(0.82) contrast(0.97); }
.planner-map .leaflet-container { font-family: var(--font); background: var(--soft); }
.pin { border-radius: 50%; border: 4px solid var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(21, 24, 27, 0.35); }
.pin-to { background: var(--taxi); }

/* Sections */
.section { padding-block: clamp(2.2rem, 5vw, 3.75rem); }
.section > h2 { margin-bottom: 0.5rem; }
.sub { color: var(--muted); margin-bottom: 1.5rem; }
.sub + .planner { margin-top: 0; }
.section > h2 + .planner { margin-top: 1.4rem; }
.updated { color: var(--muted); font-size: 0.9rem; }
.more { margin-top: 1.2rem; font-weight: 600; }

/* Trip list */
.trips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.7rem; }
.trips a { display: block; padding: 1.05rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.trips a:hover { border-color: var(--ink); background: var(--soft); }
.trip-name { display: block; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.015em; }
.trip-meta { display: block; color: var(--muted); font-size: 0.95rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 1.4rem; }
.service { display: block; background: var(--soft); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; transition: background-color 0.15s; }
.service:hover { background: #eceee9; }
.service h3, .service h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.service p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.ico { width: 44px; height: 44px; display: block; margin-bottom: 1.1rem; padding: 10px; border-radius: 12px; background: var(--taxi); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 0.9rem; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }

/* Questions */
.faq { margin-top: 1.2rem; border-top: 1px solid var(--line); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.05rem; line-height: 1.35; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 0.4rem; top: 1.45rem; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); rotate: 45deg; transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: -135deg; top: 1.7rem; }
.faq details p { color: var(--muted); padding: 0 2.5rem 1.2rem 0; margin: 0; }

/* Route facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin: 1.6rem 0 0; }
.facts > div { background: var(--soft); border-radius: 16px; padding: 0.9rem 1.1rem; }
.facts dt { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }

/* Long text */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 0.6rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45rem; }
.pagehead.prose > p:not(.lede) { margin-top: 1rem; }
.points, .contact { margin: 1.6rem 0 0; border-top: 1px solid var(--line); }
.points > div, .contact > div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.points dt { font-weight: 700; }
.points dd { margin: 0; color: var(--muted); }
.contact > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 700; }

/* Distance table */
.table-scroll { overflow-x: auto; margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 16px; }
.dist { border-collapse: collapse; width: 100%; min-width: 34rem; }
.dist th, .dist td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); }
.dist tr:last-child > * { border-bottom: 0; }
.dist thead th { background: var(--soft); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.dist tbody th { font-weight: 700; }
.dist th:not(:last-child), .dist td:not(:last-child) { white-space: nowrap; }
.table-scroll + .updated { margin-top: 0.8rem; }

/* Closing call band */
.callband { background: var(--taxi); margin-top: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.callband-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.callband h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; }
.callband p { margin: 0.3rem 0 0; }
.callband-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Footer */
.foot { padding-top: 2.75rem; font-size: 0.95rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2rem; }
.foot-name { font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.foot-head { font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; }
.foot-base { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-block: 1.1rem; font-size: 0.86rem; }
.foot-base p { margin: 0; max-width: none; }

/* Phone: fixed call and WhatsApp bar */
.dock { display: none; }

@media (max-width: 900px) {
  .chip { padding: 0.7rem 1rem; font-size: 0.95rem; }
  .brand { min-height: 44px; }
  .menu summary { padding: 0.75rem 1.15rem; }
  .nav { display: none; }
  .menu { display: block; }
  .top-call { margin-left: 0; }
  .planner { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .planner-map { min-height: 17rem; order: 2; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  .wrap { width: min(100% - 2rem, 70rem); }
  .top-row { height: 3.75rem; gap: 0.75rem; }
  .top-call { display: none; }
  .brand { font-size: 0.98rem; }
  .logo { width: 32px; height: 32px; }
  .planner { padding: 0.4rem; border-radius: 22px; }
  .planner-form { padding: 0.7rem 0.55rem 0.6rem; }
  .field input { font-size: 1.05rem; }
  .planner-map { min-height: 15rem; border-radius: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -0.55rem; padding-inline: 0.55rem; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .services, .foot-grid { grid-template-columns: 1fr; }
  .foot-grid { gap: 1.4rem; }
  .foot-grid a { display: inline-block; padding-block: 0.62rem; }
  .foot-grid p { margin-bottom: 0; }
  .foot-grid p { line-height: 1.5; }
  .service { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem; }
  .service .ico { grid-row: span 2; margin: 0; }
  .contact > div { grid-template-columns: 1fr; gap: 0; }
  .callband-actions { width: 100%; }
  .callband-actions .btn { flex: 1 1 100%; }
  .dock { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; position: fixed; inset: auto 0 0 0; z-index: 1600; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .dock a { text-align: center; padding: 0.85rem; font-weight: 700; text-decoration: none; border-radius: 12px; }
  .dock-call { background: var(--taxi); color: var(--ink); }
  .dock-wa { background: var(--wa); color: #fff; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 380px) {
  .brand { white-space: normal; gap: 0.55rem; }
  .brand small { display: none; }
  h1 { font-size: 2rem; }
  .extras { grid-template-columns: 1fr 1fr; }
}
