:root {
  --teal: #0f9d8f;
  --teal-d: #0b7d72;
  --sea: #1a83b0;
  --sand: #f4ede0;
  --sun: #f0954a;
  --ink: #12241f;
  --muted: #6d7f78;
  --line: #e5ece8;
  --card: #ffffff;
  --shadow: 0 8px 30px rgba(9, 40, 34, .16);
  --pen: #2b7fff;   /* penginapan */
  --tok: #e0692f;   /* toko */
  --wis: #12a150;   /* wisata */
  --spo: #7c5cff;   /* spot */
  --pus: #c99312;   /* pusat */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #dfeef0; overflow: hidden; }
.ic { display: block; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

#map { position: fixed; inset: 0; z-index: 0; background: #cfe6ea; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 500; padding: 12px 12px 4px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--teal), var(--sea)); box-shadow: var(--shadow); }
.brand__txt { line-height: 1.05; text-shadow: 0 1px 6px rgba(255,255,255,.7); }
.brand__txt b { font-size: 15px; } .brand__txt small { display: block; font-size: 11px; color: var(--muted); }

.search { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px;
  padding: 10px 12px; box-shadow: var(--shadow); }
.search__ic { color: var(--muted); display: flex; }
.search input { flex: 1; border: 0; outline: none; font-size: 14px; background: none; }
.search__clear { color: var(--muted); display: flex; padding: 2px; }

.chips { display: flex; gap: 7px; margin-top: 9px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(9,40,34,.08); white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; }
.chip__n { color: var(--muted); font-weight: 700; }
.chip--on { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip--on .chip__n { color: rgba(255,255,255,.85); }

/* ---------- FABs ---------- */
.fabs { position: fixed; right: 12px; z-index: 480; bottom: calc(38vh + 16px); display: flex; flex-direction: column; gap: 10px; }
.fab { width: 44px; height: 44px; border-radius: 13px; background: var(--card); color: var(--teal-d);
  box-shadow: var(--shadow); display: grid; place-items: center; }
.fab:active { transform: scale(.94); }

/* ---------- Weather widget ---------- */
.weather { position: fixed; z-index: 490; right: 12px; top: 150px; width: 232px; background: var(--card);
  border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; }
.weather h4 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.weather .wrow { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 5px 0; color: var(--ink); }
.weather .wrow .ic { color: var(--sea); }
.weather .wmut { color: var(--muted); }
.weather .wdiv { height: 1px; background: var(--line); margin: 7px 0; }
.weather .wk { font-size: 12px; color: var(--muted); margin: 2px 0; }

/* ---------- Bottom sheet ---------- */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 520; background: var(--card);
  border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(9,40,34,.18); height: 38vh;
  display: flex; flex-direction: column; transition: height .28s cubic-bezier(.22,.61,.36,1); max-height: 92vh; }
.sheet--full { height: 92vh; } .sheet--peek { height: 108px; }
.sheet__grip { padding: 9px 0 5px; display: grid; place-items: center; cursor: grab; touch-action: none; flex: 0 0 auto; }
.sheet__grip span { width: 40px; height: 5px; border-radius: 3px; background: #d3ddd8; }
.sheet__body { overflow-y: auto; padding: 0 14px 22px; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet__head { position: sticky; top: 0; background: var(--card); padding-top: 2px; z-index: 2; }

.radius-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); padding: 2px 2px 8px; }
.radius-row input[type=range] { flex: 1; accent-color: var(--teal); }
#radiusOut { color: var(--ink); min-width: 40px; text-align: right; }
.status { font-size: 12.5px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* list */
.list { padding-top: 6px; }
.card { display: flex; gap: 11px; padding: 9px 6px; border-radius: 13px; align-items: center; }
.card:hover, .card--hot { background: #f2f8f5; }
.card__thumb { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; flex: 0 0 auto; background: var(--line); }
.card__b { flex: 1; min-width: 0; }
.card__name { font-size: 14px; font-weight: 700; }
.card__meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.badge .ic { width: 12px; height: 12px; }
.badge--type { color: #fff; }
.rate { color: var(--sun); display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.rate .ic { width: 13px; height: 13px; }
.open { color: var(--wis); font-weight: 700; } .closed { color: #d1495b; font-weight: 700; }
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

/* ---------- Detail view ---------- */
.dv__top { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px; position: sticky; top: 0; background: var(--card); z-index: 2; }
.dv__back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--teal-d); }
.dv__back .ic { transform: rotate(180deg); width: 18px; height: 18px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { height: 172px; min-width: 78%; object-fit: cover; border-radius: 14px; scroll-snap-align: center; background: var(--line); }
.dv__title { font-size: 19px; font-weight: 800; margin: 12px 0 2px; }
.dv__sub { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.dv__desc { font-size: 13.5px; line-height: 1.5; margin: 2px 0 12px; }
.dv__sec { margin: 14px 0 6px; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.dv__sec .ic { color: var(--teal); width: 17px; height: 17px; }
.meta-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); padding: 4px 0; }
.meta-line .ic { color: var(--muted); width: 16px; height: 16px; flex: 0 0 auto; }

.actions { display: flex; gap: 8px; margin: 12px 0 4px; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-radius: 12px;
  font-size: 13px; font-weight: 700; }
.btn .ic { width: 17px; height: 17px; }
.btn--wa { background: #1eb14f; color: #fff; }
.btn--call { background: #eef3f0; color: var(--ink); }
.btn--route { background: var(--teal); color: #fff; }

.pricelist { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.pricelist .pl { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; }
.pricelist .pl + .pl { border-top: 1px solid var(--line); }
.pricelist .pl b { color: var(--teal-d); }

.reviews .rv { padding: 9px 0; border-bottom: 1px solid var(--line); }
.reviews .rv:last-child { border-bottom: 0; }
.rv__h { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.rv__stars { color: var(--sun); display: inline-flex; gap: 1px; }
.rv__stars .ic { width: 12px; height: 12px; }
.rv__t { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.hub-note { background: #f2f8f5; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.hub-note .k { font-weight: 700; margin: 6px 0 2px; }

/* ---------- Map markers ---------- */
.pin { width: 34px; height: 34px; position: relative; }
.pin__d { position: absolute; inset: 0; background: var(--c, var(--teal)); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.3); border: 2px solid #fff; }
.pin__i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.pin__i .ic { width: 17px; height: 17px; }
.pin--hot { z-index: 1000 !important; }
.pin--hot .pin__d { transform: rotate(-45deg) scale(1.18); }
.pin--pusat .pin__d { border-radius: 11px; transform: none; }
.me { width: 18px; height: 18px; border-radius: 50%; background: #2b7fff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43,127,255,.22); }

.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(15,157,143,.28); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--teal); color: #fff; font-weight: 700; }
.leaflet-control-zoom { display: none; }

@media (min-width: 860px) {
  .sheet { left: 12px; right: auto; bottom: 12px; top: 150px; width: 372px; height: auto !important;
    border-radius: 18px; transition: none; }
  .sheet--peek, .sheet--full { height: auto !important; }
  .sheet__grip { display: none; }
  .fabs { bottom: 24px; }
  .weather { top: auto; bottom: 24px; }
}
