/* ==========================================================================
   TobaVerse — Explore Page Stylesheet
   ========================================================================== */

/* ---- Explore hero -------------------------------------------------------- */
.explore-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7,20,27,0.42) 0%, rgba(7,20,27,0.58) 55%, rgba(7,20,27,0.94) 100%),
    linear-gradient(120deg, rgba(11,46,61,0.35), rgba(29,111,140,0.18)),
    url("../assets/images/hero/danau-toba.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.explore-hero .contour-field { opacity: 0.35; mix-blend-mode: soft-light; }
.explore-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 200px clamp(20px, 5vw, 48px) 56px;
}
.explore-hero h1 {
  color: var(--paper);
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  font-weight: 800;
  margin: 16px 0 16px;
  max-width: 780px;
}
.explore-hero p.lede { max-width: 560px; color: rgba(251,249,244,0.78); font-size: 1.02rem; }
.explore-hero .hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-indicator.on-dark { color: rgba(251,249,244,0.7); }

/* ---- Search + filter toolbar (sits inline, directly above the grid) ------ */
.toolbar {
  max-width: 900px;
  margin: 0 auto 40px;
}
.toolbar-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: rgba(251,249,244,0.92);
}
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border-radius: 999px;
  padding: 5px 6px 5px 16px;
  border: 1px solid rgba(11,46,61,0.08);
}
.search-row svg { flex: none; color: var(--lake); }
.search-row input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
}
.search-row input::placeholder { color: #90A2A9; }
.search-row .search-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  white-space: nowrap;
  padding-right: 8px;
}

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid rgba(11,46,61,0.14);
  background: transparent;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s ease;
}
.chip:hover { border-color: var(--emerald); color: var(--emerald); }
.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

/* ---- Destination grid ------------------------------------------------- */
.destinations { padding: 64px 0 40px; }
.destinations .section-head { margin-bottom: 28px; }

.grid-empty {
  display: none;
  text-align: center;
  padding: 80px 20px;
  color: #5B6E75;
}
.grid-empty.show { display: block; }

.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dest-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--cat-color, var(--lake)), var(--clay) 55%, var(--emerald) 100%) border-box;
  box-shadow: var(--shadow-soft);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  display: flex;
  flex-direction: column;
}
.dest-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lift); }

.dest-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-dim);
}
.dest-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.dest-card:hover .thumb img { transform: scale(1.09); }
.dest-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,20,27,0.02) 55%, rgba(7,20,27,0.38) 100%);
  pointer-events: none;
}

.dest-card .badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: rgba(11,46,61,0.5);
  border: 1px solid rgba(251,249,244,0.25);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  z-index: 2;
}
.dest-card .rating {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(251,249,244,0.82);
  border: 1px solid rgba(251,249,244,0.5);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  z-index: 2;
}
.dest-card .rating svg { width: 12px; height: 12px; color: var(--clay); }

.dest-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.dest-card .loc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--lake);
  text-transform: uppercase;
}
.dest-card h3 { font-size: 1.2rem; }
.dest-card p.desc { color: #4B6067; font-size: 0.92rem; flex: 1; }

.dest-card .actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.dest-card .actions .btn { padding: 10px 16px; font-size: 0.82rem; }

/* ---- Modal --------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 27, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lift);
  animation: modalIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-header { position: relative; aspect-ratio: 16/7; overflow: hidden; background: var(--navy); }
.modal-header img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-header .modal-title-wrap {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 28px 34px;
  background: linear-gradient(0deg, rgba(7,20,27,0.85), transparent);
  color: var(--paper);
}
.modal-header .modal-title-wrap .badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--clay);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-header h2 { color: var(--paper); font-size: clamp(1.5rem, 3vw, 2.1rem); }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(11,46,61,0.55);
  color: var(--paper);
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--ulos); transform: rotate(90deg); }

.modal-body { padding: 30px 34px 40px; }

.modal-meta-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(11,46,61,0.08);
  margin-bottom: 26px;
}
.modal-meta-row .meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.modal-meta-row .meta span.label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--emerald); }
.modal-meta-row .meta span.value { font-weight: 600; color: var(--navy); font-size: 0.92rem; }

.modal-section { margin-bottom: 26px; }
.modal-section h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.modal-section h3::before {
  content: "";
  width: 18px; height: 3px;
  background: var(--clay);
  border-radius: 3px;
  display: inline-block;
}
.modal-section p { color: #3E5359; font-size: 0.95rem; }
.modal-section ul { display: flex; flex-direction: column; gap: 8px; }
.modal-section ul li {
  padding-left: 20px;
  position: relative;
  color: #3E5359;
  font-size: 0.93rem;
}
.modal-section ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-tags span {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--paper-dim);
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 500;
}
.modal-footer-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---- Map section ------------------------------------------------------- */
.map-section { padding: 40px 0 120px; }
.map-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 1px solid rgba(11,46,61,0.08);
}
.map-frame-wrap iframe { width: 100%; height: 460px; border: 0; display: block; }
.map-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 4px 0;
  color: #4B6067;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .dest-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 24px 20px 30px; }
  .toolbar-card { padding: 12px 14px; }
}