/* Jelajah, detail paket, Haji & Badal, serta alur pemesanan. Komponen bersama alur beli (A3) ada di bagian pertama. */

/* ---------- Bersama: penanda pilihan, bintang, butir, langkah, hasil ---------- */
.pick-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 50%;
  color: transparent;
  background: var(--surface);
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}

[aria-checked="true"] > .pick-mark {
  border-color: transparent;
  color: var(--on-gold);
  background: var(--gold-gradient);
}

.list__item:disabled {
  opacity: 0.45;
}

.explore-stars {
  display: inline-flex;
  flex: none;
  gap: 1px;
  color: var(--gold);
}

.explore-stars .icon {
  fill: currentcolor;
}

.explore-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.explore-bullet {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-2);
}

.explore-bullet__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.explore-bullet__icon--gold {
  color: var(--gold-strong);
  background: var(--gold-soft);
}

.explore-bullet__icon--success {
  color: var(--success);
  background: var(--success-soft);
}

.explore-bullet__icon--neutral {
  color: var(--muted);
  background: var(--surface-sunken);
}

.card > .title + .explore-bullets,
.card > .title + .timeline {
  margin-top: var(--space-2);
}

/* <hr> di dalam kolom flex: margin auto bawaan browser membuat lebarnya nol. */
.explore-package-panel > .divider,
.pay-card > .divider {
  width: 100%;
  margin: 0;
}

.product-approx {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}

/* Pembungkus form/alur: jarak antarbagian diatur gap pembungkus, bukan margin .section bawaan. */
.flow-form > .section + .section,
.flow-sheet > .section + .section {
  margin-top: 0;
}

.flow-sheet .section {
  gap: 0;
}

.flow-form .section {
  gap: var(--space-4);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-steps__item {
  position: relative;
}

.flow-steps__item + .flow-steps__item::before {
  position: absolute;
  top: 15px;
  right: calc(50% + 20px);
  left: calc(-50% + 20px);
  height: 2px;
  border-radius: 1px;
  background: var(--hairline-strong);
  content: "";
}

.flow-steps__item[data-state="done"]::before,
.flow-steps__item[data-state="current"]::before {
  background: var(--gold);
}

.flow-steps__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: var(--tap);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.flow-steps__button:disabled {
  cursor: default;
}

.flow-steps__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--hairline-strong);
  border-radius: 50%;
  font-size: var(--fs-xs);
  background: var(--bg);
  transition:
    background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.flow-steps__item[data-state="done"] .flow-steps__dot {
  border-color: transparent;
  color: var(--on-gold);
  background: var(--gold-gradient);
}

.flow-steps__item[data-state="current"] .flow-steps__button {
  color: var(--ink);
}

.flow-steps__item[data-state="current"] .flow-steps__dot {
  border-color: var(--gold);
  color: var(--gold-strong);
  box-shadow: 0 0 0 5px var(--gold-soft);
}

.flow-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-2) var(--space-6);
  text-align: center;
}

.flow-result .subtitle {
  max-width: 340px;
  font-size: var(--fs-md);
  line-height: 1.6;
}

.flow-result__amount {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold-strong);
  font-variant-numeric: tabular-nums;
}

.flow-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  color: var(--info);
  background: var(--info-soft);
  animation: result-pop 600ms var(--ease) both;
}

.flow-result__card {
  margin-top: var(--space-4);
  text-align: left;
}

.success-mark {
  display: inline-flex;
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 12px rgb(209 173 79 / 10%);
  animation: result-pop 600ms var(--ease) both;
}

.success-mark__svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-mark__ring {
  stroke-width: 3;
  stroke-dasharray: 277;
  stroke-dashoffset: 277;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: mark-draw 800ms var(--ease-ios) 120ms forwards;
}

.success-mark__check {
  stroke-width: 5;
  stroke-dasharray: 56;
  stroke-dashoffset: 56;
  animation: mark-draw 420ms var(--ease-ios) 720ms forwards;
}

@keyframes mark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes result-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

/* ---------- Jelajah ---------- */
.explore-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.explore-head__actions {
  display: flex;
  flex: none;
  margin-right: calc(var(--space-2) * -1);
}

.explore-head .searchbar__input::-webkit-search-cancel-button {
  display: none;
}

.explore-search-clear {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-right: calc(var(--space-3) * -1);
}

.explore-search-clear .icon {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  color: var(--surface);
  background: var(--muted);
}

.explore-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.explore-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-1) 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-2);
  text-align: center;
  transition: transform var(--duration-fast) var(--ease);
}

.explore-category:active {
  transform: scale(0.95);
}

.explore-category__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  color: var(--gold);
  background: var(--surface);
  transition:
    background-color var(--duration) var(--ease-ios),
    color var(--duration) var(--ease-ios);
}

.explore-category[aria-selected="true"] {
  font-weight: 800;
  color: var(--ink);
}

.explore-category[aria-selected="true"] .explore-category__icon {
  border-color: transparent;
  color: var(--on-gold);
  background: var(--gold-gradient);
  box-shadow: 0 8px 18px rgb(169 131 47 / 26%);
}

.explore-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.explore-toolbar {
  display: flex;
  gap: var(--space-2);
}

.explore-toolbar .chip {
  min-height: var(--tap);
}

.explore-toolbar__sort {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.explore-chip {
  border-color: var(--gold-border);
  color: var(--gold-strong);
  background: var(--gold-soft);
}

.explore-count {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.explore-count strong {
  color: var(--ink);
}

.explore-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.explore-trip {
  position: relative;
}

/* Chrome memberi <button> align-items: flex-start; kartu berbentuk tombol perlu stretch agar foto selebar kartu. */
.explore-trip .trip-card,
.product-card {
  align-items: stretch;
}

.explore-trip[data-sold-out] .trip-card__photo {
  filter: grayscale(0.55);
}

/* Tinggi sama dengan .trip-card__photo agar keterangan menempel di tepi bawah foto. */
.explore-trip__caption {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  height: 148px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--on-onyx);
  pointer-events: none;
}

.explore-trip__guide {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-trip__countdown {
  flex: none;
  color: #ecd9a3;
}

.explore-fav {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  color: #fff;
  transition: transform var(--duration-fast) var(--ease);
  isolation: isolate;
}

.explore-fav::before {
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: inherit;
  background: rgb(23 20 15 / 46%);
  backdrop-filter: blur(10px);
  content: "";
}

.explore-fav:active,
.explore-fav-nav:active {
  transform: scale(0.86);
}

.explore-fav[aria-pressed="true"] .icon {
  fill: #ecd9a3;
  stroke: #ecd9a3;
}

.explore-fav-nav[aria-pressed="true"] .icon {
  fill: var(--gold);
  stroke: var(--gold);
}

.explore-switch-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 56px;
  text-align: left;
}

.explore-sheet-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
}

/* ---------- Detail (keberangkatan, haji, badal) ---------- */
.explore-missing {
  padding: calc(var(--navbar-height) + var(--safe-top)) var(--gutter) 0;
}

.explore-hero {
  height: calc(320px + var(--safe-top));
  border-radius: 0;
}

.explore-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  padding: 0 var(--gutter) calc(var(--space-8) + var(--space-5));
}

.explore-hero__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.explore-hero__subtitle {
  font-size: var(--fs-md);
  color: var(--on-onyx-muted);
}

.explore-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: calc(var(--space-8) * -1);
  padding: var(--space-5) var(--gutter) var(--space-8);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--bg);
}

.explore-detail > .section + .section {
  margin-top: var(--space-2);
}

.explore-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.explore-fact,
.explore-stay {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.explore-fact__label {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.explore-fact__value {
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.explore-stay__meta {
  gap: var(--space-2);
  margin-top: 2px;
}

.explore-seats {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.explore-packages {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--space-2);
}

.explore-package {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: var(--space-3);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-md);
  text-align: left;
  background: var(--surface);
  transition:
    border-color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.explore-package:active {
  transform: scale(0.97);
}

.explore-package[aria-checked="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.explore-package__name {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.explore-package__price {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
}

.explore-package[aria-checked="true"] .explore-package__price {
  color: var(--gold-strong);
}

.explore-package-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.explore-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.explore-room + .explore-room {
  border-top: 1px solid var(--hairline);
}

.explore-room:last-child {
  padding-bottom: 0;
}

.explore-room[data-sold-out] .explore-room__amount {
  color: var(--muted);
  text-decoration: line-through;
}

.explore-room__price {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.explore-room__amount {
  font-weight: 800;
  color: var(--gold-strong);
  font-variant-numeric: tabular-nums;
}

.explore-hotel__photo {
  height: 132px;
  padding: var(--space-3);
  border-radius: 0;
}

.explore-hotel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

.explore-hotel__body .icon {
  color: var(--gold);
}

.explore-policy {
  display: flex;
  flex-direction: column;
}

.explore-policy__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) 0;
}

.explore-policy__row + .explore-policy__row {
  border-top: 1px solid var(--hairline);
}

.explore-policy__row:last-child {
  padding-bottom: 0;
}

.explore-policy dt {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.explore-policy dd {
  font-weight: 700;
}

.explore-faq {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.explore-faq__item + .explore-faq__item {
  border-top: 1px solid var(--hairline);
}

.explore-faq__question {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.explore-faq__question::-webkit-details-marker {
  display: none;
}

.explore-faq__question .icon {
  color: var(--faint);
  transition: transform var(--duration) var(--ease-ios);
}

.explore-faq__item[open] .explore-faq__question .icon {
  transform: rotate(180deg);
}

.explore-faq__answer {
  padding: 0 var(--space-4) var(--space-4);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
}

.explore-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.explore-cta__price {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
}

.explore-cta__amount {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.25;
  color: var(--gold-strong);
  white-space: nowrap;
}

.explore-cta__chat {
  flex: none;
  width: 52px;
  padding: 0;
  color: var(--success);
}

.explore-cta .btn.grow {
  padding-inline: var(--space-3);
}

/* ---------- Haji & Badal ---------- */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__photo {
  height: 132px;
  padding: var(--space-4);
  border-radius: 0;
}

.product-card__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.product-card__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.2;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4);
}

.product-card__body .trip-card__meta {
  align-items: flex-start;
}

.product-card__body .trip-card__meta .icon {
  margin-top: 3px;
}

.product-card__price {
  display: flex;
  flex-direction: column;
}

.product-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-stat .list__icon {
  margin-bottom: var(--space-2);
}

.product-stat__value {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.2;
}

.product-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.product-lead {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink-2);
}

.product-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
}

.product-summary__photo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-color: var(--gold-border);
  background: var(--gold-soft);
  box-shadow: none;
}

.product-price__amount {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold-strong);
}

/* ---------- Pemesanan ---------- */
.reserve-summary__tags {
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.reserve-option__price {
  margin-top: 2px;
  font-weight: 800;
  color: var(--gold-strong);
}

.reserve-room {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.reserve-room[data-sold-out] {
  opacity: 0.55;
}

.reserve-room__hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-strong);
}

.reserve-room__hint--limit {
  padding-top: 0;
  border-top: 0;
  font-weight: 600;
  color: var(--warning);
}

.reserve-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px var(--space-3);
}

.reserve-total__amount {
  font-size: var(--fs-xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.reserve-back {
  flex: none;
  width: 52px;
  padding: 0;
}

.reserve-paynow__amount {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.reserve-consent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.reserve-consent__link {
  min-height: var(--tap);
  margin-left: calc(24px + var(--space-3));
}
