/* =====================================================
   JALAN DULU — MATTE YOGYAKARTA HERITAGE STYLESHEET
   Fonts:
   - Display Headings: Plus Jakarta Sans
   - Kata "Jogja": Jogjakartype (with Berkshire Swash fallback)
   - Isi & Keterangan Kecil: Malbe (with Manrope fallback)
   - Aksara Jawa: Noto Sans Javanese
===================================================== */

/* Local @font-face declarations for Jogjakartype & Malbe */
@font-face {
  font-family: "Jogjakartype";
  src:
    local("Jogjakartype"),
    local("Jogjakartype Regular"),
    url("Jogjakartype.woff2") format("woff2"),
    url("Jogjakartype.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Malbe";
  src:
    local("Malbe"),
    local("Malbe Regular"),
    url("Malbe.woff2") format("woff2"),
    url("Malbe.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #131314;
  --panel: #191817;
  --panel-2: #211F1D;
  --line: #2F2B27;
  --line-bright: #48423C;
  --sogan: #B87449;
  --sogan-dark: #8C4A27;
  --prodo: #D6B36A;
  --prodo-matte-hover: #C5A158;
  --gadung: #5E9B7E;
  --merang: #F2ECE1;
  --text-muted: #A49B90;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-malbe: "Malbe", "Manrope", sans-serif;
  --font-jogja: "Jogjakartype", "Berkshire Swash", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--ink);
  color: var(--merang);
  font-family: var(--font-malbe);
}

body {
  position: relative;
  overflow-x: hidden;
  background-color: var(--ink);
  font-family: var(--font-malbe);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

p, small, span, label, input, select, button, a, li {
  font-family: inherit;
}

.font-jogja {
  font-family: var(--font-jogja) !important;
}

[hidden] {
  display: none !important;
}

header, section, main, div {
  position: relative;
}

/* =====================================================
   STATIC MATTE BATIK KAWUNG CANVAS
===================================================== */

.batik-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   LIGHTWEIGHT ENTRANCE & LIST STAGGER
===================================================== */

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-reveal {
  opacity: 0;
  animation: heroReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes staggerSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-item {
  opacity: 0;
  animation: staggerSlide 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--stagger-idx, 0) * 55ms);
}

/* =====================================================
   HEADER & BORDERLESS LOGO (jogjadulu.png)
===================================================== */

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 40;
}

.brand-lockup,
.brand-lockup img {
  border: none !important;
  outline: none;
  box-shadow: none;
}

.brand-fallback {
  width: 36px;
  height: 36px;
  place-items: center;
  background: transparent;
  border: none !important;
}

.status-dot-triad {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--gadung);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--merang);
  font-family: var(--font-malbe);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.header-action:hover:not(:disabled) {
  border-color: var(--sogan);
  background: var(--panel-2);
}

.header-action:disabled,
.header-action[aria-disabled="true"] {
  opacity: 0.36;
  cursor: not-allowed;
  pointer-events: none;
}

.header-ticket {
  background: #231E19;
  border-color: rgba(214, 179, 106, 0.42);
  color: var(--prodo);
}

.header-ticket:hover:not(:disabled) {
  background: #2B241E;
}

.mini-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 6px;
  background: #28201B;
  border: 1px solid rgba(184, 116, 73, 0.4);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--prodo);
}

/* =====================================================
   LAYERED MATTE HERO STAGE
===================================================== */

.hero-stage {
  background-color: #141313;
}

.kawasan-tag {
  padding: 6px 13px;
  border-radius: 9999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-family: var(--font-malbe);
  font-size: 12px;
  font-weight: 600;
  color: #E2DBD0;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.kawasan-tag.tag-prodo:hover {
  border-color: var(--prodo);
  background: #231F1A;
  color: var(--prodo);
}

.kawasan-tag.tag-sogan:hover {
  border-color: var(--sogan);
  background: #241C18;
  color: #DF9568;
}

.kawasan-tag.tag-gadung:hover {
  border-color: var(--gadung);
  background: #1A221E;
  color: #84C2A4;
}

/* LAYERED MATTE STACK ON HERO RIGHT */
.layered-aksara-stack {
  position: relative;
  padding: 12px 12px 20px 12px;
}

.stack-plate-back {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 30px;
  left: 22px;
  border-radius: 18px;
  background: #221B17;
  border: 1px solid rgba(184, 116, 73, 0.4);
  transform: translate(9px, -9px);
  z-index: 1;
}

.stack-plate-main {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
  background: #1B1917;
  border: 1px solid rgba(214, 179, 106, 0.35);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

/* Subtle Matte Batik Kawung texture inside cards */
.card-batik-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='34' fill='none' stroke='%23D6B36A' stroke-width='0.8'/%3E%3Cellipse cx='40' cy='18' rx='8' ry='15' fill='none' stroke='%23B87449' stroke-width='0.9'/%3E%3Cellipse cx='40' cy='62' rx='8' ry='15' fill='none' stroke='%23B87449' stroke-width='0.9'/%3E%3Cellipse cx='18' cy='40' rx='15' ry='8' fill='none' stroke='%23B87449' stroke-width='0.9'/%3E%3Cellipse cx='62' cy='40' rx='15' ry='8' fill='none' stroke='%23B87449' stroke-width='0.9'/%3E%3C/svg%3E");
}

/* BORDERLESS AKSARA & NGAYOGYAKARTA HADININGRAT */
.aksara-matte-box {
  padding: 0;
  background: transparent;
  border: none !important;
}

/* BORDERLESS RUTE TERUKUR BADGE */
.overlapping-badge {
  position: absolute;
  bottom: 2px;
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #231F1C;
  border: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

/* LIGHTWEIGHT RUNNING TICKER */
.aksara-marquee {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  background: #181615;
  border-top: 1px solid var(--line);
}

.aksara-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  font-family: var(--font-malbe);
  font-size: 12px;
  font-weight: 600;
  color: #D6CEC2;
  will-change: transform;
  animation: aksaraRoll 42s linear infinite;
}

.aksara-marquee:hover .aksara-track {
  animation-play-state: paused;
}

.sep-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  display: inline-block;
}

@keyframes aksaraRoll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* =====================================================
   TYPOGRAPHY & OVERLAPPING STEP PROGRESS
===================================================== */

.eyebrow {
  font-family: var(--font-malbe);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sogan);
}

.step-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 15px;
  background: #1B1917;
  border: 1px solid rgba(214, 179, 106, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.step-progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #847C72;
  transition: color 0.2s ease;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--panel-2);
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.step-progress-label {
  font-family: var(--font-malbe);
  font-size: 12.5px;
  font-weight: 600;
}

.step-progress-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.step-progress-item.active {
  color: var(--merang);
}

.step-progress-item.active .step-circle {
  background: var(--prodo);
  border-color: var(--prodo);
  color: #131314;
}

.step-progress-item.completed {
  color: var(--gadung);
}

.step-progress-item.completed .step-circle {
  background: #1D2923;
  border-color: var(--gadung);
  color: var(--gadung);
}

/* =====================================================
   MATTE PANEL CARDS, FLOATING TABS & STICKY SIDEBAR
===================================================== */

.panel-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.panel-accent-top {
  border-top: 2px solid rgba(214, 179, 106, 0.45);
}

.has-floating-tab {
  margin-top: 12px;
}

.floating-panel-tab {
  position: absolute;
  top: -13px;
  left: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 8px;
  background: #231F1C;
  border: 1px solid rgba(214, 179, 106, 0.38);
  font-family: var(--font-malbe);
  font-size: 11px;
  font-weight: 700;
  color: var(--prodo);
}

@media (min-width: 1024px) {
  .sticky-sidebar {
    position: sticky !important;
    top: 90px;
    align-self: start;
    z-index: 5;
  }
}

@media (max-width: 1023px) {
  .sticky-sidebar {
    position: static;
  }
}

.setting-heading-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #231F1C;
  border: 1px solid rgba(214, 179, 106, 0.3);
  color: var(--prodo);
  font-size: 15px;
}

.setting-block {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.setting-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-malbe);
  font-size: 12px;
  font-weight: 700;
  color: #E8E1D6;
}

/* BORDERLESS BUDGET READOUT */
.budget-readout {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--panel-2);
  border: none !important;
}

/* MATTE RANGE SLIDER */
.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  background: #332E29;
  outline: none;
  cursor: pointer;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--prodo);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 1.5px var(--prodo);
  cursor: pointer;
  transition: transform 0.16s ease;
}

.budget-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.budget-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--prodo);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 1.5px var(--prodo);
  cursor: pointer;
}

.budget-help {
  color: #968D82;
  font-family: var(--font-malbe);
  font-size: 11px;
  line-height: 1.55;
}

/* MATTE FILTER PILLS */
.filter-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-malbe);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.filter-pill i {
  font-size: 18px;
}

.filter-pill:hover {
  border-color: var(--line-bright);
  color: var(--merang);
}

.filter-pill:active {
  transform: scale(0.98);
}

.filter-pill.active {
  background: #26211B;
  border-color: rgba(214, 179, 106, 0.6);
  color: var(--merang);
}

.filter-pill.active i {
  color: var(--prodo);
}

.time-pill.active {
  background: #1C2621;
  border-color: rgba(94, 155, 126, 0.6);
  color: var(--merang);
}

.time-pill.active i {
  color: var(--gadung);
}

.day-select {
  appearance: none;
  min-height: 44px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--merang);
  font-family: var(--font-malbe);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D6B36A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.day-select:hover,
.day-select:focus {
  border-color: var(--prodo);
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid rgba(214, 179, 106, 0.25);
  font-family: var(--font-malbe);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--merang);
}

/* =====================================================
   MATTE SOLID BUTTONS
===================================================== */

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--prodo);
  border: 1px solid var(--prodo);
  color: #131314;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-arrow {
  transition: transform 0.18s ease;
}

.primary-button:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

.primary-button:hover:not(:disabled) {
  background: var(--prodo-matte-hover);
  border-color: var(--prodo-matte-hover);
}

.primary-button:active:not(:disabled) {
  transform: scale(0.98);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--merang);
  font-family: var(--font-malbe);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--prodo);
  background: #262320;
  color: var(--prodo);
}

.secondary-button:active:not(:disabled) {
  transform: scale(0.98);
}

.secondary-button:disabled,
.primary-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
}

/* =====================================================
   STACKED MATTE CARD DECK & 3D FLIP STAGE
===================================================== */

.stacked-deck-wrapper {
  position: relative;
  padding-bottom: 18px;
}

.deck-underlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 18px;
  border-radius: 20px;
  pointer-events: none;
  transition: transform 0.28s ease;
}

.deck-underlay-1 {
  background: #1F1C19;
  border: 1px solid rgba(214, 179, 106, 0.3);
  transform: translateY(9px) scale(0.975);
  z-index: 1;
}

.deck-underlay-2 {
  background: #1A1715;
  border: 1px solid rgba(184, 116, 73, 0.25);
  transform: translateY(18px) scale(0.95);
  z-index: 0;
}

.stacked-deck-wrapper:hover .deck-underlay-1 {
  transform: translateY(12px) scale(0.978);
}

.stacked-deck-wrapper:hover .deck-underlay-2 {
  transform: translateY(22px) scale(0.955);
}

.card-stage {
  perspective: 1400px;
}

.card-shell {
  width: 100%;
}

.mission-card-inner {
  position: relative;
  width: 100%;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-shell.is-flipped .mission-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  grid-area: 1 / 1;
  width: 100%;
  min-height: 540px;
  border-radius: 20px;
  padding: 26px;
  overflow: hidden;
  background: #1B1917;
  border: 1px solid rgba(214, 179, 106, 0.32);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .card-face {
    padding: 32px;
  }
}

.card-back {
  transform: rotateY(0deg);
  justify-content: space-between;
}

.card-front {
  transform: rotateY(180deg);
}

.plan-front {
  min-height: 560px;
  max-height: none;
}

.card-shell:not(.is-flipped) .card-front {
  pointer-events: none;
}

.card-shell.is-flipped .card-back {
  pointer-events: none;
}

.card-back-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 0;
}

/* BORDERLESS SINGLE-LINE AKSARA JAWA "DALAN" */
.aksara-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none !important;
  background: transparent;
  padding: 0;
}

.card-shell.shuffling {
  animation: cardShuffle 0.4s ease;
}

@keyframes cardShuffle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  55% { transform: translateX(8px); }
  80% { transform: translateX(-4px); }
}

/* =====================================================
   MATTE ITINERARY PLACE CARDS (MALBE BODY & CAPTIONS)
===================================================== */

.time-tag {
  padding: 5px 12px;
  border-radius: 8px;
  background: #1D2923;
  border: 1px solid rgba(94, 155, 126, 0.4);
  font-family: var(--font-malbe);
  font-size: 11px;
  font-weight: 700;
  color: #84C2A4;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.plan-place-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1F1D1B;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.plan-place-card:hover {
  border-color: rgba(214, 179, 106, 0.5);
  background: #24211E;
}

.plan-place-card::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 52px;
  bottom: 16px;
  width: 1px;
  background: rgba(214, 179, 106, 0.25);
}

.plan-place-index,
.route-stop-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #26211B;
  border: 1px solid rgba(214, 179, 106, 0.4);
  color: var(--prodo);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.plan-place-content {
  min-width: 0;
}

.plan-place-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-place-topline .eyebrow {
  font-size: 10px;
}

.plan-place-cost {
  color: var(--prodo);
  font-family: var(--font-malbe);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-place-card h4 {
  margin-top: 6px;
  color: var(--merang);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.plan-place-address {
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--font-malbe);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.plan-place-hours {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  color: #E6DFD3;
  font-family: var(--font-malbe);
  font-size: 13px;
  line-height: 1.6;
}

.plan-place-hours i {
  color: var(--prodo);
  flex-shrink: 0;
  margin-top: 3px;
}

.plan-place-access {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
  color: #C2D3C9;
  font-family: var(--font-malbe);
  font-size: 13px;
  line-height: 1.6;
}

.plan-place-access i {
  color: var(--gadung);
  flex-shrink: 0;
  margin-top: 3px;
}

.plan-place-cost-detail {
  margin-top: 8px;
  color: #DAD2C6;
  font-family: var(--font-malbe);
  font-size: 12.5px;
  line-height: 1.6;
}

.plan-place-price-note {
  margin-top: 6px;
  color: #A2998E;
  font-family: var(--font-malbe);
  font-size: 12px;
  line-height: 1.6;
}

.plan-place-reality {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 116, 73, 0.3);
  border-radius: 10px;
  background: #251E19;
  color: #E6D7C9;
  font-family: var(--font-malbe);
  font-size: 12px;
  line-height: 1.6;
}

.plan-place-reality i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--sogan);
}

.plan-place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.plan-place-actions a,
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--prodo);
  font-family: var(--font-malbe);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.plan-place-actions a:hover,
.source-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.plan-summary-box {
  padding: 16px;
  border: 1px solid rgba(214, 179, 106, 0.32);
  border-radius: 14px;
  background: #221F1B;
}

.plan-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  color: #E2DBD0;
  font-family: var(--font-malbe);
  font-size: 12.5px;
}

.plan-summary-row strong {
  color: var(--merang);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.plan-summary-row:first-child strong {
  color: var(--prodo);
  font-size: 15px;
}

.plan-budget-message {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(214, 179, 106, 0.22);
  color: #D4CBBF;
  font-family: var(--font-malbe);
  font-size: 12px;
  line-height: 1.6;
}

.field-reality-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid rgba(184, 116, 73, 0.28);
}

.empty-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--text-muted);
  text-align: center;
}

.empty-plan i {
  color: var(--prodo);
  font-size: 24px;
}

.empty-plan p {
  max-width: 360px;
  font-family: var(--font-malbe);
  font-size: 13px;
  line-height: 1.65;
}

/* =====================================================
   EXECUTION SECTION, MAP & COMPACT STOP LIST
===================================================== */

.execution-section-enter {
  animation: heroReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.execution-success-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #1B2620;
  border: 1px solid rgba(94, 155, 126, 0.38);
}

.success-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gadung);
  color: #131314;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.map-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #231F1A;
  border: 1px solid rgba(214, 179, 106, 0.32);
  font-family: var(--font-malbe);
  font-size: 11px;
  font-weight: 700;
  color: var(--prodo);
}

.map-live-tag span {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--prodo);
}

.mission-map {
  position: relative;
  width: 100%;
  height: 330px;
  min-height: 280px;
  overflow: hidden;
  background: #161514;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}

#mission-map,
#mission-map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #161514;
  color: #27272a;
  font-family: var(--font-malbe);
}

#mission-map .leaflet-control-attribution {
  font-size: 9px;
}

#mission-map .leaflet-control-attribution a {
  color: #5e9b7e;
}

#mission-map .leaflet-popup-content-wrapper,
#mission-map .leaflet-popup-tip {
  background: #F2ECE1;
  color: #181716;
  border-radius: 10px;
}

.custom-map-pin {
  background: transparent;
  border: 0;
}

.pin-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--prodo);
  border: 2px solid #131314;
  color: #131314;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.map-caption {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-malbe);
  font-size: 11.5px;
  line-height: 1.55;
}

.info-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-malbe);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.route-stop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.route-stop {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.route-stop:last-child {
  border-bottom: 0;
}

.route-stop-main {
  min-width: 0;
}

.route-stop-main strong {
  display: block;
  color: var(--merang);
  font-family: var(--font-malbe);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.route-stop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(214, 179, 106, 0.35);
  border-radius: 9px;
  background: #231F1A;
  color: var(--prodo);
  font-family: var(--font-malbe);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.route-stop a:hover {
  border-color: var(--prodo);
  background: #2B251E;
}

.access-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #251E19;
  border: 1px solid rgba(184, 116, 73, 0.32);
  color: var(--sogan);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.transit-card {
  padding: 15px 16px;
  border-radius: 14px;
  background: #1C2320;
  border: 1px solid rgba(94, 155, 126, 0.28);
}

.ticket-open-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #221E1A;
  border: 1px dashed rgba(214, 179, 106, 0.5);
  color: var(--merang);
  font-family: var(--font-malbe);
  cursor: pointer;
  transition: background-color 0.18s ease, border-style 0.18s ease;
}

.ticket-open-button i:first-child {
  color: var(--prodo);
}

.ticket-open-button:hover:not(:disabled) {
  background: #28231E;
  border-style: solid;
}

.ticket-open-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.map-fallback-panel {
  display: flex;
  min-height: 320px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  background: #161514;
  color: var(--merang);
  text-align: center;
}

.map-fallback-panel > i {
  color: var(--prodo);
  font-size: 30px;
}

.map-fallback-panel strong {
  font-size: 18px;
}

.map-fallback-panel p {
  max-width: 360px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.map-fallback-panel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(214, 179, 106, 0.32);
  border-radius: 10px;
  background: #231F1A;
  color: var(--prodo);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* =====================================================
   HISTORY ITEMS
===================================================== */

.empty-history {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px dashed var(--line);
  font-family: var(--font-malbe);
  font-size: 12px;
  color: var(--text-muted);
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease;
}

.history-item:hover {
  border-color: rgba(214, 179, 106, 0.35);
}

.history-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #26211B;
  color: var(--prodo);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.history-item strong {
  display: block;
  font-family: var(--font-malbe);
  font-size: 12.5px;
  color: var(--merang);
}

.history-item small {
  display: block;
  font-family: var(--font-malbe);
  font-size: 11px;
  color: var(--text-muted);
}

/* =====================================================
   TICKET & HISTORY MODALS
===================================================== */

.ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.9);
}

.ticket-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 630px;
  background: var(--panel);
  border: 1px solid rgba(214, 179, 106, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
  animation: modalSpringIn 0.25s ease forwards;
}

@keyframes modalSpringIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--merang);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.modal-close:hover {
  border-color: var(--prodo);
  color: var(--prodo);
}

.ticket-card {
  display: grid;
  grid-template-columns: 1fr 126px;
  background: #F2ECE1;
  color: #1C1917;
  border-radius: 16px;
  overflow: hidden;
  font-family: var(--font-malbe);
}

.ticket-main {
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-right: 1.5px dashed #C7BCA9;
  position: relative;
}

.ticket-main::before,
.ticket-main::after {
  content: "";
  position: absolute;
  right: -10px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: var(--panel);
}

.ticket-main::before { top: -9px; }
.ticket-main::after { bottom: -9px; }

.ticket-type {
  padding: 4px 9px;
  border-radius: 6px;
  background: #8C4A27;
  color: #F2ECE1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ticket-overline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #786D5F;
}

.ticket-divider {
  height: 1px;
  background: #DCD1BF;
  margin: 18px 0;
}

.ticket-plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ticket-plan-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  color: #1C1917;
}

.ticket-plan-list li > span {
  color: #F2ECE1;
  background: #8C4A27;
  border-radius: 5px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 1px 0;
}

.ticket-plan-list li strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.ticket-plan-list li small {
  color: #6B6155;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ticket-field-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7D7265;
}

.ticket-field-value {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1C1917;
  margin-top: 2px;
}

.ticket-challenge {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: #E8DECE;
  border: 1px solid #D4C7B2;
}

.ticket-stub {
  background: #1C1815;
  color: #F2ECE1;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.stub-vertical {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #A89A8A;
}

.stub-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stub-content > span:first-child {
  font-size: 8.5px;
  font-weight: 600;
  color: #B8AA99;
}

.stub-content strong {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #D6B36A;
  line-height: 1;
}

.stub-icon {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #28221C;
  color: #D6B36A;
  display: grid;
  place-items: center;
  font-size: 15px;
  margin: 4px 0;
}

.stub-destination {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F2ECE1;
}

.stub-barcode {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  margin-top: 6px;
}

.stub-barcode span {
  display: block;
  height: 100%;
  width: 2px;
  background: #F2ECE1;
}

.stub-barcode span:nth-child(even) { width: 1px; }
.stub-barcode span:nth-child(3n) { width: 3px; }

.stub-content small {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #A89A8A;
}

@media (max-width: 540px) {
  .ticket-card {
    grid-template-columns: 1fr;
  }
  .ticket-main {
    border-right: 0;
    border-bottom: 1.5px dashed #C7BCA9;
  }
  .ticket-main::before,
  .ticket-main::after {
    display: none;
  }
  .ticket-stub {
    flex-direction: row;
    padding: 16px 20px;
  }
  .stub-vertical {
    display: none;
  }
  .stub-content {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =====================================================
   TOAST NOTIFICATION
===================================================== */

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 24px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 11px;
  background: #211E1B;
  border: 1px solid rgba(214, 179, 106, 0.55);
  color: var(--merang);
  font-family: var(--font-malbe);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-notification i {
  color: var(--prodo);
  font-size: 15px;
}

.toast-notification.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =====================================================
   RESPONSIVE & ACCESSIBILITY
===================================================== */

@media (max-width: 640px) {
  .mission-map {
    height: 270px;
    min-height: 250px;
  }

  .card-face {
    padding: 20px;
    border-radius: 16px;
  }

  .plan-front {
    padding: 19px;
  }

  .plan-place-card {
    padding: 13px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .plan-place-card::before {
    left: 26px;
  }

  .plan-place-index {
    width: 28px;
    height: 28px;
  }

  .plan-place-card h4 {
    font-size: 16px;
  }

  .plan-place-address,
  .plan-place-hours,
  .plan-place-access {
    font-size: 13px;
  }

  .plan-place-cost-detail,
  .plan-place-price-note,
  .plan-place-reality {
    font-size: 12px;
  }

  .route-stop {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .route-stop a {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .route-stop-main strong {
    font-size: 12.5px;
  }

  .ticket-dialog {
    padding: 16px;
    border-radius: 16px;
  }

  .toast-notification {
    bottom: max(16px, env(safe-area-inset-bottom));
    width: max-content;
    max-width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================
   PRINT / SAVE AS PDF
===================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm;
  }

  html,
  body {
    background: #ffffff !important;
    color: #1C1917 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body > *:not(#ticket-modal) {
    display: none !important;
  }

  #ticket-modal {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #ticket-modal .modal-backdrop,
  #ticket-modal .ticket-dialog > div:first-child,
  #ticket-modal .ticket-dialog > .grid,
  #ticket-modal .ticket-dialog > p {
    display: none !important;
  }

  #ticket-modal .ticket-dialog {
    position: static !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #ticket-print-area,
  #ticket-print-area * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  #ticket-print-area {
    position: static !important;
    display: grid !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    border: 1px solid #C7BCA9 !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
}