/* Phase 13: KORAT pictographic wordmark + homepage image slideshow */

.korat-wordmark {
  display: flex;
  align-items: center;
  gap: 6px;
}

.korat-wordmark__icon {
  color: var(--color-korat-orange);
}

.korat-wordmark--small .korat-wordmark__icon {
  width: 22px;
  height: 22px;
}

.korat-wordmark--large {
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.korat-wordmark--large .korat-wordmark__icon {
  width: 40px;
  height: 40px;
  color: var(--color-white);
  opacity: 0.9;
}

/* On the dark/orange Hero background, the icons read best in white; on the
   light nav bar (see below) they read best in brand orange - handled by
   giving the nav instance the default (unset) color via currentColor. */
.public-nav__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Slideshow ---------- */

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: var(--color-charcoal);
}

@media (max-width: 640px) {
  .hero-slideshow {
    height: 240px;
  }
}

.hero-slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slideshow__slide.is-active {
  opacity: 1;
}

.hero-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slideshow__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.hero-slideshow__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-slideshow__dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-white);
}

/* ---------- Homepage district-map teaser section ---------- */

.map-teaser {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #3a2f27 100%);
  padding: 56px 0;
  color: var(--color-white);
}

.map-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .map-teaser__inner {
    grid-template-columns: 1fr;
  }
}

.map-teaser__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 10px;
}

.map-teaser__text {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 24px;
}

.map-teaser__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.map-teaser__stat-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  color: var(--color-korat-orange);
  line-height: 1;
}

.map-teaser__stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.map-teaser__progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
  max-width: 320px;
}

.map-teaser__progress-fill {
  height: 100%;
  background: var(--color-korat-orange);
  border-radius: 999px;
  transition: width 1.2s ease;
}

.map-teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-korat-orange);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
}

.map-teaser__cta:hover {
  background: var(--color-korat-orange-dark);
}

.map-teaser__map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.08);
}

#home-district-map {
  width: 100%;
  height: 320px;
}

@media (max-width: 640px) {
  #home-district-map {
    height: 240px;
  }
}

#home-district-map .leaflet-popup-content {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-charcoal);
}
