/* ============================================================
   Explore Page — Regional Points of Interest
   ============================================================ */

/* Hero */
.explore-hero {
  position: relative;
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(160deg, var(--dark) 0%, #14365e 60%, var(--royal-blue) 100%);
  overflow: hidden;
}

.explore-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 60% 80%, rgba(247,168,27,0.06) 0%, transparent 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

.explore-skyline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1200px;
  pointer-events: none;
  z-index: 1;
}

.explore-outline {
  height: 75%;
  opacity: 0.1;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.explore-outline-left {
  transform: rotateY(45deg);
  margin-right: -40px;
}

.explore-outline-center {
  transform: rotateY(0deg);
}

.explore-outline-right {
  transform: rotateY(-45deg);
  margin-left: -40px;
}

.explore-hero .hero-content { position: relative; z-index: 2; }
.explore-hero .hero-badge { opacity: 0; animation: fadeUp 0.6s ease 0.3s forwards; }
.explore-hero h1 { opacity: 0; animation: fadeUp 0.6s ease 0.5s forwards; }
.explore-hero-sub { opacity: 0; animation: fadeUp 0.6s ease 0.7s forwards; }

.explore-hero h1 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.explore-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* History Toast */
.history-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--royal-blue);
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.history-toggle:hover { border-color: var(--royal-blue); }

.history-toggle .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.history-toggle.open .arrow { transform: rotate(180deg); }

.history-toast {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease, margin 0.5s ease;
  margin-bottom: 0;
}

.history-toast.open {
  max-height: 2000px;
  margin-bottom: 32px;
}

.history-content {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.history-era {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.history-era:last-child { border-bottom: none; }

.history-date {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  min-width: 80px;
  flex-shrink: 0;
}

.history-era p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

/* City Grid */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.city-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.city-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.city-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 0;
  margin-bottom: 0;
}

.city-card:hover .city-img {
  transform: scale(1.08);
}

.city-card-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(12, 35, 64, 0.85));
  pointer-events: none;
}

.city-card-img-wrap h3 {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  z-index: 2;
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.city-card-body {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(12, 35, 64, 0.92);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.city-card.active .city-card-body {
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

.city-meta {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.city-card-body p:not(.city-meta) {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.city-card-body .see-on-map {
  margin-top: 10px;
  font-size: 0.75rem;
}

.location-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* POI Gallery */
.poi-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.see-on-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--azure);
  text-decoration: none;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.see-on-map:hover { opacity: 0.7; }

.see-on-map svg { opacity: 0.8; }

.city-card-body .see-on-map { color: var(--gold); }

.poi-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.poi-gallery-4 {
  grid-template-columns: repeat(4, 1fr);
}

.poi-gallery-2 {
  grid-template-columns: repeat(2, 1fr);
}

.poi-gallery-3 {
  grid-template-columns: repeat(3, 1fr);
}

.poi-gallery-single {
  grid-template-columns: 1fr;
}

.poi-gallery-single img {
  height: 320px;
}

/* POI Detail Layout */
.poi-detail {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.poi-detail-text .poi-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.poi-detail-text p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}

.poi-detail-text a {
  color: var(--azure);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.poi-info-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.section-light .poi-info-card {
  background: var(--white);
  border: 1px solid var(--border);
}

.poi-info-card.poi-key-facts {
  background: linear-gradient(135deg, var(--white) 0%, #fefbf3 100%);
  border: none;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 28px 28px 24px;
}

.poi-info-card h4 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--royal-blue);
  margin-bottom: 12px;
}

.poi-info-card h3 {
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--royal-blue);
  margin-bottom: 8px;
}

.poi-info-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.poi-info-card ul {
  list-style: none;
  padding: 0;
}

.poi-info-card li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
}

.poi-info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.poi-key-facts li {
  font-size: 0.92rem;
  padding: 6px 0 6px 20px;
}

.poi-key-facts li::before {
  top: 14px;
  width: 7px;
  height: 7px;
}

.poi-featured-card {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, var(--light) 0%, #fefbf3 100%);
}

.section-light .poi-featured-card {
  background: linear-gradient(135deg, var(--white) 0%, #fefbf3 100%);
}

/* Source link */
.poi-source {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.poi-source a {
  color: var(--azure);
  text-decoration: none;
}

.poi-source a:hover { text-decoration: underline; }

/* Nav active */
.nav-links .active { color: var(--royal-blue) !important; }
.nav-title { color: var(--royal-blue); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
  /* Hero */
  .explore-hero {
    padding: 100px 20px 48px;
    min-height: auto;
  }
  .explore-skyline { perspective: 600px; }
  .explore-outline { height: 40%; opacity: 0.06; }
  .explore-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); text-wrap: balance; }
  .explore-hero-sub { font-size: 0.95rem; }

  /* Intro */
  .intro-text p { font-size: 1rem; }

  /* City grid: 2 columns, tighter */
  .city-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .city-card-img-wrap { height: 180px; }
  .city-card-img-wrap h3 { font-size: 0.78rem; bottom: 8px; left: 10px; right: 10px; line-height: 1.2; }
  .city-card-body { padding: 12px 10px 14px; }
  .city-card-body p:not(.city-meta) { font-size: 0.75rem; -webkit-line-clamp: 5; }
  .city-meta { font-size: 0.65rem; }

  /* POI sections */
  .poi-detail { grid-template-columns: 1fr; gap: 20px; }
  .poi-detail-text .poi-lead { font-size: 1rem; }
  .poi-detail-text p { font-size: 0.95rem; }
  .poi-info-card { padding: 20px 16px; }

  /* Galleries: all full width on mobile, stacked vertically */
  .poi-gallery { grid-template-columns: 1fr !important; gap: 8px; }
  .poi-gallery-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .poi-gallery-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .poi-gallery-single { grid-template-columns: 1fr !important; }
  .poi-gallery img { height: 160px; border-radius: 8px; }
  .poi-gallery-single img { height: 200px; width: 100%; }
  .poi-gallery-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* History toast */
  .history-toggle { font-size: 0.85rem; padding: 10px 20px; }
  .history-era { flex-direction: column; gap: 4px; padding: 12px 0; }
  .history-date { min-width: auto; font-size: 1rem; }
  .history-era p { font-size: 0.85rem; }

  /* Back button */
  .btn-gold { width: 100%; text-align: center; min-height: 48px; border-radius: 12px; }
}
