/* Navy dan emas diambil dari logo. Kertas hangat (#F6F3EC) dipakai sebagai latar agar foto jalan yang ramai tidak bertabrakan dengan putih murni. */
:root {
  --navy: #1B3350;
  --navy-deep: #132640;
  --navy-line: #2E4A70;
  --ink: #16243A;
  --muted: #4B586C;
  --paper: #F6F3EC;
  --white: #FFFFFF;
  --line: #DDD6C8;
  --field-line: #7C8698;
  --gold: #C9A660;
  --gold-hover: #D9BD82;
  --gold-ink: #6F5220;
  --gold-light: #DCC086;
  --on-navy: #C9D4E3;
  --focus: var(--navy);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 6px;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }

a[href], button:not(:disabled), summary, select, label[for], label:has(input[type="radio"]), input[type="radio"], [role="button"] { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-head, .hero, .sec-navy, .site-foot { --focus: var(--gold-light); }

.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.ic { flex: none; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius); border: 2px solid transparent; font: 600 16px/1.2 var(--body); text-decoration: none; text-align: center; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-line-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-line-light:hover { background: var(--white); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--white); border-bottom: 1px solid var(--navy-line); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: auto; }
.brand-name { font: 700 24px/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.brand-name span { color: var(--gold-light); }
.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 12px; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--gold-light); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.head-cta { padding: 10px 16px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, .35); border-radius: var(--radius); }
.menu-btn:hover { border-color: var(--white); }

/* Bingkai foto bergaya papan reklame, dengan pelat kode emas */
.frame { position: relative; display: block; border: 6px solid var(--navy); background: var(--navy); margin: 0 0 18px; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.plate { position: absolute; left: 12px; bottom: -14px; background: var(--gold); color: var(--navy); border: 2px solid var(--navy); padding: 2px 10px; font: 700 15px/1.4 var(--display); letter-spacing: .03em; }
.plate-lg { position: static; display: inline-block; font-size: 17px; margin-bottom: 14px; }
.frame-dark { border-color: var(--navy-deep); }

/* Kartu titik */
.spot-grid { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
.spot a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.spot .frame { aspect-ratio: 4 / 3; }
.spot a:hover .frame { border-color: var(--gold); }
.spot a:hover .spot-name { text-decoration: underline; text-underline-offset: 3px; }
.spot-name { font: 700 18px/1.3 var(--body); margin-top: 6px; }
.spot-meta { font-size: 14px; color: var(--muted); }
.spot-traffic { font-size: 14px; font-weight: 600; color: var(--gold-ink); }

/* Seksi */
.sec { padding: 64px 0; }
.sec-paper { background: var(--white); }
.sec-navy { background: var(--navy); color: var(--white); }
.sec h2 { font-size: clamp(32px, 4.2vw, 48px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.sec-head a { font-weight: 600; }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1; }
.hero-lead { margin-top: 20px; font-size: 18px; color: var(--on-navy); max-width: 54ch; }
.hero-find { margin-top: 28px; display: grid; gap: 12px; padding: 16px; background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--radius); }
.hero-find label { color: var(--on-navy); }
.hero-facts { margin-top: 20px; color: var(--on-navy); font-size: 15px; }
.hero-facts strong { color: var(--white); }
.hero-photo { margin: 0; }
.frame-hero { aspect-ratio: 4 / 3; border-width: 8px; border-color: var(--navy-deep); }
.hero-photo figcaption { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.hero-photo figcaption a { font-weight: 700; }
.hero-photo figcaption span { color: var(--on-navy); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend, .label-like { font-size: 14px; font-weight: 600; padding: 0; }
select, input[type="text"], input[type="search"] { width: 100%; min-height: 48px; padding: 10px 12px; font: 16px var(--body); color: var(--ink); background: var(--white); border: 1.5px solid var(--field-line); border-radius: var(--radius); }
select:hover, input[type="text"]:hover, input[type="search"]:hover { border-color: var(--navy); }
input[aria-invalid="true"] { border-color: #A3261B; border-width: 2px; }
.field-err { color: #A3261B; font-size: 14px; font-weight: 600; }

/* Indeks kota */
.kota-layout { display: grid; gap: 32px; }
.kota-intro p { color: var(--muted); margin: 12px 0 20px; max-width: 40ch; }
.kota-index { list-style: none; border-top: 2px solid var(--navy); }
.kota-index a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.kota-index a:hover { background: var(--white); }
.kota-index a:hover .k-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.k-name { font: 700 clamp(28px, 3.4vw, 40px)/1.05 var(--display); }
.k-count { align-self: center; font-weight: 700; color: var(--gold-ink); }
.k-eg { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* Peringkat lalu lintas */
.rank { display: grid; gap: 32px; }
.rank-top { display: grid; text-decoration: none; position: relative; }
.rank-top .frame { aspect-ratio: 16 / 10; }
.rank-top:hover .rank-name, .rank-list a:hover .rank-name { text-decoration: underline; text-underline-offset: 3px; }
.rank-no { font: 700 64px/1 var(--display); color: var(--gold-ink); margin-top: 10px; }
.rank-top .rank-name { font: 700 26px/1.15 var(--display); margin-top: 4px; }
.rank-meta { font-size: 14px; color: var(--muted); }
.rank-num { font: 700 22px/1.2 var(--display); color: var(--navy); }
.rank-num small { font: 400 14px var(--body); color: var(--muted); }
.rank-list { list-style: none; counter-reset: r 1; border-top: 2px solid var(--navy); }
.rank-list li { counter-increment: r; }
.rank-list a { display: grid; grid-template-columns: 32px 88px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; }
.rank-list a::before { content: counter(r); grid-row: 1 / span 3; font: 700 30px/1 var(--display); color: var(--gold-ink); }
.rank-list img { grid-row: 1 / span 3; width: 88px; height: 66px; object-fit: cover; border: 3px solid var(--navy); }
.rank-list .rank-name { font-weight: 700; line-height: 1.3; }
.rank-list .rank-num { font-size: 18px; }

/* Titik Juanda */
.juanda { display: grid; gap: 40px; align-items: start; }
.juanda .frame { aspect-ratio: 16 / 10; }
.juanda-copy p { color: var(--on-navy); margin: 14px 0 24px; max-width: 56ch; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 14px; padding-bottom: 8px; color: var(--muted); }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-size: 14px; }
.price th small { display: block; font-weight: 400; font-size: 13px; }
.sec-navy caption, .sec-navy .price th small { color: var(--on-navy); }
.sec-navy th, .sec-navy td { border-color: var(--navy-line); }
.sec-navy thead th { color: var(--gold-light); }

/* Langkah */
.steps { list-style: none; display: grid; gap: 28px; margin-top: 28px; }
.steps li { border-top: 3px solid var(--navy); padding-top: 14px; }
.step-no { font: 700 44px/1 var(--display); color: var(--gold-ink); }
.steps h3 { font-size: 26px; margin: 6px 0 8px; }
.steps p { color: var(--muted); }

/* Pesan cepat */
.order { display: grid; gap: 32px; align-items: start; }
.order-copy p { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.order-form { display: grid; gap: 20px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--field-line); border-radius: var(--radius); background: var(--white); font-weight: 600; font-size: 15px; }
.choice label:hover span { border-color: var(--navy); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.preview { background: var(--white); border: 1px dashed var(--field-line); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); }

/* Tanya jawab */
.faq { display: grid; gap: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--navy); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 28px/1 var(--display); color: var(--gold-ink); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* Footer */
.site-foot { background: var(--navy-deep); color: var(--on-navy); padding: 56px 0 0; }
.foot-grid { display: grid; gap: 36px; }
.foot-brand p { margin: 14px 0 20px; max-width: 40ch; }
.foot-h { font-size: 22px; color: var(--gold-light); margin-bottom: 12px; }
.site-foot ul { list-style: none; display: grid; gap: 4px; }
.site-foot nav a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--white); }
.site-foot nav a:hover { text-decoration: underline; }
.foot-cities span { color: var(--on-navy); font-size: 14px; margin-left: 6px; }
.foot-copy { padding: 28px 20px; margin-top: 40px; border-top: 1px solid var(--navy-line); font-size: 14px; }

/* Remah navigasi dan kepala halaman */
.crumbs ol { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 20px 0 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a, .crumbs span { text-decoration: none; padding: 6px 0; display: inline-block; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding: 28px 0 36px; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); }
.page-head p { margin-top: 14px; max-width: 70ch; color: var(--muted); }
.page-head p + p { margin-top: 20px; }

/* Halaman semua titik */
.map-wrap { border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); background: #E8E4DA; }
.map { height: clamp(320px, 48vh, 480px); position: relative; z-index: 1; }
.map-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-weight: 600; color: var(--muted); }
.filters { display: grid; gap: 14px; margin: 28px 0 12px; align-items: end; }
.result-count { margin: 8px 0 24px; font-weight: 600; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--field-line); border-radius: var(--radius); background: var(--white); }
.empty h2 { font-size: 32px; }
.empty p { margin: 10px auto 20px; max-width: 50ch; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.city-pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold); color: var(--navy); font: 700 16px/1 var(--display); border: 3px solid var(--navy); }
.spot-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); }
.leaflet-container { font-family: var(--body); }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; }
.leaflet-popup-content a { font-weight: 700; }

/* Halaman titik */
.spot-head { padding: 24px 0 28px; }
.spot-head h1 { font-size: clamp(34px, 5vw, 60px); max-width: 22ch; }
.spot-sub { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-weight: 600; }
.spot-layout { display: grid; gap: 36px; padding-bottom: 56px; }
.frame-lg { aspect-ratio: auto; margin-bottom: 36px; }
.frame-lg img { max-height: 640px; object-fit: contain; background: var(--navy-deep); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(28px, 3vw, 34px); margin: 40px 0 12px; }
.prose p + p { margin-top: 12px; }
.prose .lead { font-size: 19px; }
.prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose .table-wrap { margin: 8px 0 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.prose thead th { background: var(--paper); }
.note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.map-embed { aspect-ratio: 2 / 1; border: 2px solid var(--navy); background: #E8E4DA; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.paket { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.paket figure { margin: 0; }
.paket img { aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--navy); }
.paket figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.spot-side { display: grid; gap: 16px; align-content: start; }
.specs { margin: 0; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 6px 18px; }
.specs div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-weight: 700; }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share .btn { font-size: 14px; padding: 10px 8px; }
.share-msg { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--gold-ink); min-height: 1.4em; }
.related { border-top: 2px solid var(--navy); padding: 40px 0 64px; }
.related h2 { font-size: clamp(28px, 3.4vw, 40px); }
.kota-other { border-top: 2px solid var(--navy); margin: 56px 0 64px; padding-top: 24px; }
.kota-other h2 { font-size: 30px; margin-bottom: 12px; }
.kota-other ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.kota-other a { display: inline-block; padding: 8px 0; font-weight: 700; }
.kota-other span { color: var(--muted); font-size: 14px; }
.notfound { padding: 80px 20px; }
.notfound .btn-row { margin-top: 24px; }

/* Kolom grid boleh menyusut di bawah lebar isinya, supaya tabel lebar menggulir di dalam bingkainya sendiri */
.hero-grid, .kota-layout, .rank, .juanda, .order, .faq, .spot-layout, .spot-main, .juanda-copy { grid-template-columns: minmax(0, 1fr); min-width: 0; }

/* Lebar menengah: dua kolom kartu, filter dua kolom */
@media (min-width: 560px) {
  .spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-find { grid-template-columns: 1fr 1fr; }
  .hero-find .btn { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-q { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Menu ponsel: daftar menu tampil sebagai panel di bawah header */
@media (max-width: 959px) {
  .menu-btn { display: inline-flex; }
  .main-nav { order: 3; }
  .main-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--navy); border-bottom: 2px solid var(--gold); }
  .main-nav ul.open { display: flex; }
  .main-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--navy-line); }
  .main-nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--navy-line); }
}
@media (max-width: 479px) {
  :root { --head-h: 64px; }
  .brand img { width: 40px; }
  .brand-name { font-size: 19px; }
  .head-cta { padding: 10px 12px; }
  .head-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sec { padding: 48px 0; }
  .paket { grid-template-columns: 1fr 1fr; }
  .rank-list a { grid-template-columns: 26px 72px 1fr; column-gap: 10px; }
  .rank-list img { width: 72px; height: 54px; }
  .share { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .spot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kota-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
  .kota-intro { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; }
  .rank { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; }
  .juanda { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .order { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
  .faq { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 56px; }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field-q { grid-column: 1 / span 3; }
  .sec { padding: 88px 0; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
  .hero-find { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .hero-find .btn { grid-column: auto; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
  .spot-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .spot-side { position: sticky; top: calc(var(--head-h) + 24px); }
}
@media (min-width: 1200px) {
  .spot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spot-layout .related .spot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .spot .frame, .kota-index a, .choice span { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
