/* ==============================================================================
   LifeEasy Staffing Company — High-Fidelity Interactive India Map Stylesheet
   Hierarchical Drilldown: India -> State -> District -> Taluka
   Corporate Luxury Theme: Deep Navy (#071A2F), Gold (#C5A85C), Emerald (#22C55E)
   ============================================================================== */

:root {
  --map-navy-950: #040d18;
  --map-navy-900: #071a2f;
  --map-navy-800: #0d2847;
  --map-navy-700: #143862;
  --map-gold: #c5a85c;
  --map-gold-light: #e5cd94;
  --map-gold-glow: rgba(197, 168, 92, 0.45);
  --map-cyan: #38bdf8;
  --map-cyan-glow: rgba(56, 189, 248, 0.35);
  --map-open: #22c55e;
  --map-open-glow: rgba(34, 197, 94, 0.4);
  --map-review: #f59e0b;
  --map-review-glow: rgba(245, 158, 11, 0.4);
  --map-allocated: #ef4444;
  --map-allocated-glow: rgba(239, 68, 68, 0.4);
}

/* Master Section Wrap */
.india-3d-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 15%, #0f3056 0%, #071a2f 60%, #030a13 100%);
  color: #ffffff;
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  border-top: 1px solid rgba(197, 168, 92, 0.25);
  border-bottom: 1px solid rgba(197, 168, 92, 0.25);
  overflow: hidden;
}

/* Cyber Blueprint Grid */
.india-3d-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(197, 168, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 168, 92, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Header & Live KPI Bar */
.map-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 10;
}

.map-hud-title-wrap h2 {
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0.35rem 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.map-hud-title-wrap p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0;
  line-height: 1.5;
}

.map-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: rgba(197, 168, 92, 0.15);
  border: 1px solid rgba(197, 168, 92, 0.45);
  border-radius: 999px;
  color: var(--map-gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* KPI Counters Ribbon */
.map-kpi-ribbon {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.map-kpi-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(11, 34, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.map-kpi-pill strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  line-height: 1.1;
  display: block;
}

.map-kpi-pill.pill-open strong { color: #4ade80; }
.map-kpi-pill.pill-review strong { color: #fbbf24; }
.map-kpi-pill.pill-allocated strong { color: #f87171; }

/* Horizontal State Quick Selection Strip */
.map-state-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.85rem 0;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--map-gold) rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

.map-state-strip::-webkit-scrollbar {
  height: 4px;
}
.map-state-strip::-webkit-scrollbar-thumb {
  background: var(--map-gold);
  border-radius: 4px;
}

.state-strip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #e2e8f0;
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.state-strip-btn:hover {
  background: rgba(197, 168, 92, 0.2);
  border-color: var(--map-gold);
  color: #ffffff;
}

.state-strip-btn.active {
  background: linear-gradient(135deg, #c5a85c 0%, #d4af37 100%);
  color: #071a2f;
  border-color: var(--map-gold);
  font-weight: 700;
  box-shadow: 0 4px 12px var(--map-gold-glow);
}

/* Breadcrumb Navigation */
.map-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 34, 56, 0.9);
  border: 1px solid rgba(197, 168, 92, 0.35);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 10;
}

.map-breadcrumb-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map-breadcrumb-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.map-breadcrumb-btn.active {
  color: var(--map-gold);
  background: rgba(197, 168, 92, 0.16);
  font-weight: 700;
}

.map-breadcrumb-sep {
  color: #64748b;
  font-size: 0.8rem;
}

/* Toolbar (Search + Perspective switchers) */
.map-toolbar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.map-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.map-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #ffffff;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  font-size: 0.88rem;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.map-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--map-gold);
  box-shadow: 0 0 15px var(--map-gold-glow);
}

.map-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.map-view-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.map-control-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.map-control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.map-control-btn.active {
  background: var(--map-gold);
  color: #071a2f;
  border-color: var(--map-gold);
  font-weight: 700;
  box-shadow: 0 4px 14px var(--map-gold-glow);
}

/* ==============================================================================
   MAP VIEWPORT & STAGE
   ============================================================================== */
.india-3d-stage-wrapper {
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, rgba(13, 40, 71, 0.75) 0%, rgba(4, 13, 24, 0.98) 85%);
  border: 1px solid rgba(197, 168, 92, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.india-3d-canvas {
  position: relative;
  width: 100%;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* Perspective Modes */
.india-3d-canvas.mode-3d-perspective {
  perspective: 1100px;
  transform: rotateX(16deg) translateY(-10px) scale(0.98);
}

.india-3d-canvas.mode-flat {
  transform: rotateX(0deg) translateY(0) scale(1);
}

/* India SVG Map Container */
.india-map-svg-wrap {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: auto;
  margin: 0 auto;
}

.india-master-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}

/* State Paths Styling */
.state-path {
  fill: #0c2b4d;
  stroke: rgba(197, 168, 92, 0.4);
  stroke-width: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.state-path:hover {
  fill: #1d4e89;
  stroke: var(--map-gold);
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 16px var(--map-gold-glow));
}

.state-path.active {
  fill: #1e3a8a;
  stroke: var(--map-cyan);
  stroke-width: 4px;
  filter: drop-shadow(0 0 20px var(--map-cyan-glow));
}

/* State Beacons on SVG */
.state-beacon-group {
  cursor: pointer;
}

.state-beacon-circle {
  r: 8;
  stroke: #ffffff;
  stroke-width: 2.5;
  transition: r 0.3s ease;
}

.state-beacon-group:hover .state-beacon-circle {
  r: 12;
  filter: drop-shadow(0 0 8px currentColor);
}

.state-beacon-pulse {
  r: 16;
  fill: none;
  stroke-width: 2;
  opacity: 0.6;
  animation: beacon-pulse 2.2s infinite ease-out;
}

@keyframes beacon-pulse {
  0% { r: 8; opacity: 0.9; }
  100% { r: 28; opacity: 0; }
}

.beacon-open {
  fill: #22c55e;
  stroke: #22c55e;
  color: #22c55e;
}
.beacon-review {
  fill: #f59e0b;
  stroke: #f59e0b;
  color: #f59e0b;
}
.beacon-allocated {
  fill: #ef4444;
  stroke: #ef4444;
  color: #ef4444;
}

/* Interactive Floating Tooltip */
.map-floating-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(7, 26, 47, 0.96);
  border: 1px solid var(--map-gold);
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--map-gold-glow);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  transform: translate(-50%, -125%);
  transition: opacity 0.15s ease;
}

.tooltip-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.tooltip-stats {
  font-size: 0.78rem;
  color: #94a3b8;
}

.tooltip-prompt {
  font-size: 0.72rem;
  color: var(--map-gold);
  font-weight: 700;
  margin-top: 0.35rem;
}

/* ==============================================================================
   STATE DISTRICTS & TALUKA VIEWS
   ============================================================================== */
.state-view-wrapper {
  width: 100%;
  max-width: 1060px;
  padding: 1.5rem;
  box-sizing: border-box;
}

.state-view-header {
  text-align: center;
  margin-bottom: 2rem;
}

.state-view-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #ffffff;
  margin: 0.35rem 0;
}

.district-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.district-card-btn {
  background: linear-gradient(135deg, rgba(13, 40, 71, 0.8) 0%, rgba(7, 26, 47, 0.95) 100%);
  border: 1px solid rgba(197, 168, 92, 0.3);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.district-card-btn:hover {
  transform: translateY(-6px);
  border-color: var(--map-gold);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5), 0 0 18px var(--map-gold-glow);
}

.district-card-btn h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.district-card-badge {
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  color: var(--map-cyan);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.district-card-status-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* Taluka Grid */
.taluka-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.taluka-card {
  background: rgba(11, 34, 56, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.taluka-card:hover {
  transform: translateY(-5px);
  border-color: var(--map-gold);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.taluka-card.card-open {
  border-left: 4px solid #22c55e;
}
.taluka-card.card-review {
  border-left: 4px solid #f59e0b;
}
.taluka-card.card-allocated {
  border-left: 4px solid #ef4444;
}

.taluka-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.taluka-card-badge-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pill-open-status {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.pill-review-status {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.pill-allocated-status {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.taluka-card-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.btn-taluka-action {
  width: 100%;
  padding: 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-taluka-action.action-claim {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-taluka-action.action-claim:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
}

.btn-taluka-action.action-review {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-taluka-action.action-allocated {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Slide-Up Dossier Modal Overlay inside Map */
.map-dossier-slide {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(11, 34, 56, 0.98) 0%, #030a13 100%);
  border-top: 2px solid var(--map-gold);
  border-radius: 20px 20px 0 0;
  padding: 1.75rem 2rem;
  backdrop-filter: blur(16px);
  transform: translateY(105%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 80;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.7);
}

.map-dossier-slide.active {
  transform: translateY(0);
}

.map-dossier-slide-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .india-3d-stage-wrapper {
    min-height: 560px;
  }
  .india-map-svg-wrap {
    max-width: 500px;
  }
  .map-hud-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .india-3d-stage-wrapper {
    min-height: 480px;
  }
  .district-grid-container,
  .taluka-grid-container {
    grid-template-columns: 1fr;
  }
}
