/* ==========================================================================
   GeoTools Web Platform - Geovisor Styles (Clean Light Theme)
   ========================================================================== */

.geovisor-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #f8fafc;
}

#geovisor-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Custom Leaflet Override */
.leaflet-container {
  background: #f8fafc !important;
  font-family: var(--font-body) !important;
}

.leaflet-bar a {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

.leaflet-bar a:hover {
  background-color: var(--bg-secondary) !important;
  color: var(--primary-emerald) !important;
}

/* Floating Navigation Header on Map */
.geovisor-navbar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 1000;
}

.geovisor-nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.geovisor-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.geovisor-brand span span {
  color: var(--primary-emerald);
}

.project-select-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.project-select-pill select {
  background: transparent;
  border: none;
  color: var(--primary-dark);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.project-select-pill select option {
  background: #ffffff;
  color: var(--text-primary);
}

.geovisor-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Map Legend */
.geovisor-legend {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  z-index: 990;
  max-width: 290px;
  box-shadow: var(--shadow-md);
}

.legend-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.legend-symbol {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Station Details Inspector Drawer */
.station-drawer {
  position: absolute;
  top: 85px;
  right: 1.5rem;
  bottom: 2rem;
  width: 390px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(115%);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.station-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
}

.drawer-body {
  padding: 1.35rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-section {
  margin-bottom: 1.35rem;
}

.drawer-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.drawer-photo-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-top: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.drawer-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vector Structural Strike & Dip Icon on Leaflet */
.leaflet-strike-dip-icon {
  background: transparent;
  border: none;
}

.strike-dip-svg {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.strike-dip-svg:hover {
  filter: drop-shadow(0 0 6px #00897b);
}
