/* ── Home page ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  background: linear-gradient(155deg, #061840 0%, #0d3280 30%, #1658c8 65%, #1e78e8 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1.5'%3E%3Ccircle cx='250' cy='250' r='220'/%3E%3Ccircle cx='250' cy='250' r='170'/%3E%3Ccircle cx='250' cy='250' r='120'/%3E%3Cpath d='M250 30 Q320 100 250 170 Q180 100 250 30Z'/%3E%3Cpath d='M250 470 Q320 400 250 330 Q180 400 250 470Z'/%3E%3Cpath d='M30 250 Q100 320 170 250 Q100 180 30 250Z'/%3E%3Cpath d='M470 250 Q400 320 330 250 Q400 180 470 250Z'/%3E%3Cpath d='M250 30 L250 470 M30 250 L470 250 M90 90 L410 410 M410 90 L90 410'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 500px 500px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80,160,255,0.10) 0%, transparent 65%);
  top: -200px; right: -150px;
  pointer-events: none;
}

/* Top bar */
.hero-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 24px;
  padding: 32px 48px 0;
  animation: fadeDown .5s ease both;
}

@keyframes fadeDown {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}

/* Stats */
.hero-stats { text-align: center; }
.stats-label {
  font-family: 'Geologica', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 6px;
}
.stats-number {
  font-family: 'Geologica', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 30%, #fad060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats-sub { font-size: 13px; color: rgba(255,255,255,.5); }

/* Quick links */
.hero-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}
.quicklink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-family: 'Geologica', sans-serif;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  max-width: 230px;
  backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, transform .2s;
}
.quicklink:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  transform: translateX(5px);
  color: #fff;
}
.quicklink-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}

/* Search */
.hero-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.search-label {
  font-family: 'Geologica', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.search-form { display: flex; gap: 8px; }
.search-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.11);
  color: #fff;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  outline: none;
  backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
}
.search-input::placeholder { color: rgba(255,255,255,.38); }
.search-input:focus {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.17);
}
.search-btn {
  padding: 12px 22px;
  border-radius: 9px;
  background: #f0a020;
  color: #fff;
  font-family: 'Geologica', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(240,160,32,.45);
  white-space: nowrap;
}
.search-btn:hover {
  background: #d48810;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240,160,32,.55);
}

/* Map */
.hero-map {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px 36px;
  animation: fadeIn .9s .15s ease both;
}
.map-container {
  position: relative;
  width: 100%;
  max-width: 960px;
}
.map-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ── Region fills — CSS gradients as background on SVG paths ── */
/* SVG linearGradient inside <defs> is most reliable cross-browser */
.region {
  /* fallback solid color */
  fill: #f0a020;
  stroke: rgba(255,255,255,.45);
  stroke-width: 1.5;
  stroke-linejoin: round;
  cursor: pointer;
  transition: filter .25s;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.region:hover {
  filter: drop-shadow(0 4px 18px rgba(250,190,40,.75)) brightness(1.18);
}

/* Pins */
.region-pin { cursor: pointer; }
.pin-circle { transition: filter .2s; }
.region-pin:hover .pin-circle {
  filter: drop-shadow(0 0 8px rgba(240,160,32,.9));
}
.region-pin:hover .pin-label { fill: #fad060 !important; }

/* Tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(6,24,64,.93);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 12px 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(.97);
  transition: opacity .18s, transform .18s;
  z-index: 20;
  min-width: 180px;
}
.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.tooltip-name {
  font-family: 'Geologica', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fad060;
  margin-bottom: 4px;
}
.tooltip-lib {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

/* Breadcrumb */
.breadcrumb {
  position: relative;
  z-index: 2;
  padding: 0 48px 18px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.75); }

/* Responsive */
@media (max-width: 900px) {
  .hero-topbar { grid-template-columns: 1fr 1fr; padding: 20px 24px 0; }
  .hero-stats { grid-column: 1 / -1; }
  .hero-map { padding: 12px 20px 28px; }
  .breadcrumb { padding: 0 24px 14px; }
}
@media (max-width: 580px) {
  .hero-topbar { grid-template-columns: 1fr; }
  .stats-number { font-size: 40px; }
  .quicklink { max-width: none; }
}