:root {
  --bg: #0b1411;
  --panel: #111c18;
  --panel-2: #1a2822;
  --line: rgba(255, 255, 255, .12);
  --text: #f3f6f4;
  --muted: #a9b8b1;
  --green: #0b7f45;
  --green-hi: #2fc77a;
  --gold: #e3b34f;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; text-decoration: none; transition: background-color .15s, transform .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #0a9450; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .25); }
.btn-ghost:hover { border-color: #fff; background: rgba(0, 0, 0, .45); }
.link-btn { padding: 10px 2px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.head-links { display: flex; align-items: center; gap: 18px; flex: none; }
.logo-chip { display: inline-flex; padding: 8px 14px; background: #fff; border-radius: 12px; }
.logo-chip img { display: block; height: 40px; width: auto; }

/* Halaman awal */
.landing {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: calc(20px + var(--safe-t)) clamp(16px, 5vw, 64px) calc(24px + var(--safe-b));
  background:
    linear-gradient(90deg, rgba(6, 14, 11, .92) 0%, rgba(6, 14, 11, .72) 42%, rgba(6, 14, 11, .15) 75%),
    linear-gradient(0deg, rgba(6, 14, 11, .9) 0%, rgba(6, 14, 11, 0) 42%),
    url(img/hero.webp) center / cover no-repeat var(--bg);
}
.landing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero { margin: auto 0; padding: 40px 0 32px; max-width: 660px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { margin-top: 12px; font-size: clamp(2.15rem, 5.4vw, 4rem); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.lead { margin-top: 18px; max-width: 54ch; font-size: clamp(1rem, 1.5vw, 1.15rem); color: #dbe4df; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { margin-top: 24px; font-size: .92rem; color: #c8d3cd; }
.stats b { color: #fff; }
.stats i { display: inline-block; width: 4px; height: 4px; margin: 0 8px 3px; border-radius: 50%; background: var(--gold); }

.zones-title { font-size: .85rem; font-weight: 600; color: #c8d3cd; margin-bottom: 10px; }
.zone-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(136px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 calc(clamp(16px, 5vw, 64px) * -1); padding-inline: clamp(16px, 5vw, 64px); }
.zone-list::-webkit-scrollbar { display: none; }
.zone-card { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: var(--panel-2); text-decoration: none; }
.zone-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.zone-card:hover img { transform: scale(1.05); }
.zone-card span { position: absolute; inset: auto 0 0; padding: 22px 10px 8px; font-size: .84rem; font-weight: 600; line-height: 1.2; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }

/* Tur */
.tour { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.pano { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.pano.is-dragging { cursor: grabbing; }
.hotspots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hs { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; pointer-events: none; will-change: transform; }
.hs-dot {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; pointer-events: auto;
  display: block; cursor: pointer;
  background: radial-gradient(circle, #fff 0 5px, var(--green) 6px 13px, #fff 14px 16px, rgba(255, 255, 255, 0) 17px);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6));
  transition: transform .15s;
}
.hs-dot::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid #fff;
  animation: pulse 2.4s ease-out infinite; opacity: 0;
}
@keyframes pulse { 0% { transform: scale(.75); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.hs:hover .hs-dot, .hs:focus-visible .hs-dot { transform: scale(1.15); }
.hs-label {
  position: absolute; left: 0; top: 26px; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 10px; border-radius: 8px; font-size: .8rem; font-weight: 600; background: rgba(8, 16, 13, .88);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.hs:hover .hs-label, .hs:focus-visible .hs-label { opacity: 1; }
@media (hover: none) { .hs-label { opacity: 1; } }

.progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; background: rgba(255, 255, 255, .12); z-index: 3; }
.progress span { position: absolute; top: 0; bottom: 0; width: 35%; background: var(--gold); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { left: -35%; } to { left: 100%; } }

.tour-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: calc(14px + var(--safe-t)) 16px 0; pointer-events: none;
}
.place { min-width: 0; padding: 8px 14px 9px; border-radius: 14px; background: rgba(8, 16, 13, .84); pointer-events: auto; }
.place-zone { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.place-name { font-size: 1.1rem; font-weight: 650; line-height: 1.25; }
.tools { display: flex; gap: 6px; flex: none; pointer-events: auto; }
.tool {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(8, 16, 13, .84);
  transition: background-color .15s, color .15s;
}
.tool:hover { background: var(--panel-2); }
.tool[aria-pressed="true"] { background: var(--green); color: #fff; }

.tour-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 16px calc(14px + var(--safe-b)); pointer-events: none;
}
.nearby { display: flex; align-items: center; gap: 8px; max-width: min(100%, 860px); pointer-events: auto; }
.nearby-label { flex: none; font-size: .8rem; font-weight: 600; text-shadow: 0 1px 5px #000; }
.nearby-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nearby-list::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: rgba(8, 16, 13, .84); transition: background-color .15s;
}
.chip:hover { background: var(--green); }
.dock { display: flex; gap: 2px; padding: 5px; border-radius: 18px; background: rgba(8, 16, 13, .9); pointer-events: auto; max-width: 100%; }
.dock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 72px; min-height: 52px; border-radius: 13px; font-size: .72rem; font-weight: 600; text-decoration: none;
  transition: background-color .15s, opacity .15s;
}
.dock-btn:hover:not(:disabled) { background: var(--panel-2); }
.dock-btn:disabled { opacity: .38; cursor: default; }
.dock-btn.is-main { background: var(--green); color: #fff; }
.dock-btn.is-main:hover { background: #0a9450; }

.notice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--bg); }
.notice p { max-width: 46ch; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(148px + var(--safe-b)); transform: translateX(-50%); z-index: 10;
  width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; font-size: .9rem; text-align: center;
  background: #f3f6f4; color: #0b1411; font-weight: 500; box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}

/* Panel */
dialog {
  color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 0; overflow: hidden;
}
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog[open] { display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 10px 20px; flex: none; }
.sheet-head h2 { font-size: 1.2rem; font-weight: 650; }
.sheet-head .tool { background: var(--panel-2); }

.sheet { position: fixed; margin: 0; inset: 0 auto 0 0; width: min(440px, 100vw); max-width: none; height: 100%; max-height: none; border-width: 0 1px 0 0; }
.search { display: flex; align-items: center; gap: 10px; margin: 0 20px 10px; padding: 0 14px; border-radius: 12px; background: var(--panel-2); flex: none; color: var(--muted); }
.search:focus-within { outline: 2px solid var(--gold); }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.filters { display: flex; gap: 6px; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.results { flex: 1; overflow-y: auto; padding: 4px 20px calc(24px + var(--safe-b)); overscroll-behavior: contain; }
.zone-group + .zone-group { margin-top: 24px; }
.zone-group h3 { font-size: 1rem; font-weight: 650; }
.zone-group p { font-size: .84rem; color: var(--muted); margin: 2px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.tile { display: block; text-decoration: none; font-size: .86rem; font-weight: 600; line-height: 1.25; }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 10px; background: var(--panel-2); margin-bottom: 6px; transition: opacity .15s; }
.tile:hover img { opacity: .8; }
.tile.is-current img { outline: 2px solid var(--green-hi); outline-offset: 1px; }
.tile.is-current .tile-name { color: var(--green-hi); }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); }

.modal { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: var(--radius); overflow-y: auto; padding-bottom: 20px; }
.how { padding: 4px 20px 0; display: grid; gap: 16px; }
.how li { display: flex; gap: 14px; align-items: flex-start; }
.how .i { width: 26px; height: 26px; color: var(--green-hi); }
.how-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff 0 3px, var(--green) 4px 9px, #fff 10px 12px, transparent 13px); }
.how p { font-size: .9rem; color: var(--muted); }
.about-logo { margin: 4px 20px 12px; align-self: flex-start; }
.about-text { padding: 0 20px 14px; color: var(--muted); font-size: .94rem; }
.contacts { padding: 0 20px; }
.contacts li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.contacts .i { color: var(--green-hi); }
.contacts small { display: block; color: var(--muted); font-size: .76rem; }
.contacts a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contacts a:hover { text-decoration: underline; }
.social-title { margin: 2px 20px 0; padding: 12px 0 8px; border-top: 1px solid var(--line); font-size: .76rem; font-weight: 400; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px; }
.social .chip { display: inline-flex; align-items: center; background: var(--panel-2); text-decoration: none; }
.noscript { position: fixed; inset: auto 16px 16px; padding: 12px; background: var(--panel); border-radius: 12px; }

/* Ponsel */
@media (max-width: 720px) {
  .landing { background:
    linear-gradient(0deg, rgba(6, 14, 11, .96) 0%, rgba(6, 14, 11, .78) 50%, rgba(6, 14, 11, .35) 100%),
    url(img/hero.webp) center / cover no-repeat var(--bg); }
  .hero { padding: 48px 0 28px; }
  .hero-actions .btn { flex: 1 1 150px; }
  .stats i { margin: 0 5px 3px; }
  .logo-chip img { height: 34px; }
  .tour-top { padding: calc(10px + var(--safe-t)) 10px 0; }
  .tools { gap: 4px; }
  .tool { width: 40px; height: 40px; }
  #shareBtn, #fullBtn { display: none; }
  .place-name { font-size: 1rem; }
  .tour-bottom { padding: 0 10px calc(10px + var(--safe-b)); align-items: stretch; }
  .nearby-label { display: none; }
  .dock { justify-content: space-between; }
  .dock-btn { flex: 1; width: auto; }
  .sheet { inset: auto 0 0 0; width: 100%; height: 88dvh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; }
  .toast { bottom: calc(132px + var(--safe-b)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
