/* ════════════════════════════════════════════════════════════
   VISIT US PAGE — visit_us.css
   Diload via page_css.php ketika $page === 'visit-us'
   Semua warna menggunakan variabel global dari custom.css.
   ════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   1. PAGE HERO
   Dark  : foto gelap + dark overlay dari bawah
   Light : Split Tone — cream solid kiri → transparan kanan
   ════════════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg-deep);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1600&q=80')
              center / cover no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease, filter 0.3s ease;
}

[data-theme="dark"] .page-hero-bg,
:root:not([data-theme]) .page-hero-bg {
  filter: grayscale(35%) brightness(0.30);
}

[data-theme="light"] .page-hero-bg {
  filter: brightness(0.80) saturate(0.50);
}

.page-hero:hover .page-hero-bg { transform: scale(1); }

.page-hero-overlay {
  position: absolute;
  inset: 0;
  transition: background 0.3s ease;
}

[data-theme="dark"] .page-hero-overlay,
:root:not([data-theme]) .page-hero-overlay {
  background: linear-gradient(
    to top,
    var(--bg-deep)           0%,
    rgba(8,8,8,0.60)         50%,
    rgba(8,8,8,0.15)         100%
  );
}

[data-theme="light"] .page-hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(245,241,234,0.97)   0%,
    rgba(245,241,234,0.90)   30%,
    rgba(245,241,234,0.45)   55%,
    rgba(245,241,234,0.00)   72%
  );
}

[data-theme="light"] .page-hero {
  border-bottom: 1px solid var(--border-nav);
}

/* Grid texture — redup di light mode */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(212,168,67,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .page-hero::before { opacity: 0; }

.page-hero-content {
  position: relative;
  z-index: 10;
  padding: 0 64px 60px;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb-kbc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.breadcrumb-kbc a {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-kbc a:hover { color: var(--gold); }

.breadcrumb-kbc > span:not(.breadcrumb-sep) {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

[data-theme="light"] .breadcrumb-kbc a                           { color: var(--text-muted); }
[data-theme="light"] .breadcrumb-kbc > span:not(.breadcrumb-sep) { color: var(--gold-dark); }

.breadcrumb-sep {
  font-size: 10px;
  color: var(--border-gold);
}

/* Title */
.page-hero-title {
  font-family: var(--font-alt);
  font-size: clamp(52px, 8vw, 108px);
  color: var(--text-primary);
  letter-spacing: 3px;
  line-height: 0.9;
  transition: color 0.3s ease;
}

.page-hero-title .accent { color: var(--gold); }

[data-theme="light"] .page-hero-title        { color: #1C1510; }
[data-theme="light"] .page-hero-title .accent { color: var(--gold-dark); }

/* Sub-heading */
.hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

/* Entry animation */
.hero-entry {
  opacity: 0;
  transform: translateY(20px);
  animation: visHeroIn 0.8s var(--ease-expo) forwards;
}

@keyframes visHeroIn {
  to { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════════════════
   2. CITY TABS
   ════════════════════════════════════════════════════════════ */

.city-tabs-section {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: var(--transition-theme);
}

.city-tabs-inner {
  padding: 0 64px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.city-tabs-inner::-webkit-scrollbar { display: none; }

.city-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.22s, border-color 0.22s, background 0.22s;
}

.city-tab:hover { color: var(--gold); }

[data-theme="light"] .city-tab:hover { color: var(--gold-dark); }

.city-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

[data-theme="light"] .city-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
}

.city-tab .city-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-gold);
  flex-shrink: 0;
  transition: background 0.22s, box-shadow 0.22s;
}

.city-tab.active .city-dot {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,168,67,0.45);
}

[data-theme="light"] .city-tab.active .city-dot {
  background: var(--gold-dark);
  box-shadow: 0 0 8px rgba(124,92,14,0.30);
}

.city-tab-hq-badge {
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gold-dark);
  color: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}


/* ════════════════════════════════════════════════════════════
   3. CITY PANELS
   ════════════════════════════════════════════════════════════ */

.city-panel        { display: none; }
.city-panel.active { display: block; }


/* ════════════════════════════════════════════════════════════
   4. MAP SECTION
   Dark: --bg-card | Light: --bg-card (#EDE8DE)
   ════════════════════════════════════════════════════════════ */

.map-section {
  background: var(--bg-card);
  padding: 0;
  transition: var(--transition-theme);
}

.map-container {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: var(--bg-card);
  transition: background 0.3s ease;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transition: filter 0.3s ease;
}

[data-theme="dark"] .map-container iframe,
:root:not([data-theme]) .map-container iframe {
  filter: grayscale(20%) contrast(1.05);
}

[data-theme="light"] .map-container iframe {
  filter: saturate(0.85) contrast(1.02);
}

.map-container:hover iframe {
  filter: grayscale(0%) contrast(1) saturate(1) !important;
}

/* Badge kota di pojok peta */
.map-overlay-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: var(--bg-page);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-theme);
}

.map-overlay-badge i {
  color: var(--gold-dark);
  font-size: 16px;
  transition: color 0.3s ease;
}

.map-overlay-city {
  font-family: var(--font-alt);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1;
  transition: color 0.3s ease;
}

.map-overlay-sub {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
  transition: color 0.3s ease;
}

/* Tombol buka di Google Maps */
.map-open-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  padding: 10px 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.22s, transform 0.22s, color 0.22s;
}

[data-theme="light"] .map-open-btn {
  background: var(--gold-dark);
  color: var(--bg-page);
}

.map-open-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: var(--bg-deep);
}


/* ════════════════════════════════════════════════════════════
   5. LOCATION INFO
   Dark: --bg-card (#232018) | Light: --bg-card (#EDE8DE)
   ════════════════════════════════════════════════════════════ */

.location-info {
  background: var(--bg-card);
  padding: 56px 0 72px;
  transition: var(--transition-theme);
}

.location-info .section-heading       { color: var(--text-primary); }
.location-info .section-heading span  { color: var(--gold); }

[data-theme="light"] .location-info .section-heading span { color: var(--gold-dark); }

/* Tombol arah */
.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 10px 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

[data-theme="light"] .directions-btn {
  border-color: var(--border-nav);
  color: var(--gold-dark);
}

.directions-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

[data-theme="light"] .directions-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

/* Info cards */
.info-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 28px;
  height: 100%;
  transition: border-color 0.25s, background 0.3s ease;
}

.info-card:hover { border-color: var(--border-gold); }

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--gold-pale);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold-dark);
  margin-bottom: 16px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.info-card-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

[data-theme="light"] .info-card-label { color: var(--gold-dark); }

.info-card-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.info-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
  transition: color 0.3s ease;
}


/* ════════════════════════════════════════════════════════════
   6. ALL CITIES OVERVIEW
   Dark: --bg-deep | Light: --bg-deep (#F5F1EA)
   ════════════════════════════════════════════════════════════ */

.cities-overview {
  background: var(--bg-deep);
  padding: 80px 0;
  transition: var(--transition-theme);
}

.city-overview-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 24px 22px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  height: 100%;
  transition:
    border-color 0.28s var(--ease-silk),
    transform 0.28s var(--ease-silk),
    box-shadow 0.28s var(--ease-silk),
    background 0.3s ease;
}

.city-overview-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

[data-theme="light"] .city-overview-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.city-overview-card.selected {
  border-color: var(--gold-dark);
  background: var(--bg-card);
}

.city-ov-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.city-ov-name {
  font-family: var(--font-alt);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

[data-theme="light"] .city-ov-name { color: var(--gold-dark); }

.city-ov-region {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.city-ov-addr {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  transition: color 0.3s ease;
}

.city-ov-hq {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--gold-dark);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}

.cities-overview .eyebrow        { color: var(--gold); }
.cities-overview .section-heading { color: var(--text-primary); }

[data-theme="light"] .cities-overview .eyebrow { color: var(--gold-dark); }


/* ════════════════════════════════════════════════════════════
   7. RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1199.98px) {
  .page-hero-content { padding: 0 40px 52px; }
  .city-tabs-inner   { padding: 0 32px; }
}

@media (max-width: 991.98px) {
  .page-hero-content { padding: 0 32px 48px; }
  .city-tabs-inner   { padding: 0 24px; }
  .map-container     { height: 320px; }
}

@media (max-width: 767.98px) {
  .city-overview-card:hover { transform: none; }
}

@media (max-width: 575.98px) {
  .page-hero-content { padding: 0 20px 36px; }
  .city-tab          { padding: 14px 16px; font-size: 10px; }
  .map-container     { height: 260px; }
  .info-card         { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-entry {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .page-hero-bg { transition: filter 0.3s ease; }
}