/* The Rising Stars - SVG India Map & Region Drawers Custom CSS */

/* --- SVG MAP CONTAINER --- */
.map-canvas-container {
  position: relative;
  background: rgba(18, 18, 23, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  padding: 40px;
  overflow: hidden;
  height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.map-svg-wrap {
  width: 100%;
  height: 100%;
  max-width: 550px;
  max-height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#india-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}

@media (max-width: 768px) {
  .map-canvas-container {
    height: 480px;
    padding: 10px;
  }
  .map-svg-wrap {
    max-width: 360px;
    max-height: 360px;
  }
  #india-svg {
    filter: none !important;
  }
}

/* --- SVG GRAPHIC ELEMENTS --- */
.state-backdrop {
  fill: #121217;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 0.8;
  transition: fill 0.3s, stroke 0.3s;
}

.interactive-zone {
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.4s ease;
}

/* Specific Zone Colors */
.interactive-zone.zone-mp {
  fill: rgba(0, 230, 118, 0.05);
  stroke: rgba(0, 230, 118, 0.3);
}
.interactive-zone.zone-mh {
  fill: rgba(255, 109, 0, 0.05);
  stroke: rgba(255, 109, 0, 0.3);
}
.interactive-zone.zone-himachal {
  fill: rgba(0, 229, 255, 0.05);
  stroke: rgba(0, 229, 255, 0.3);
}

/* Hover highlights without heavy SVG filters */
.interactive-zone:hover, .interactive-zone.active {
  stroke-width: 3;
}

.interactive-zone.zone-mp:hover, .interactive-zone.zone-mp.active {
  fill: rgba(0, 230, 118, 0.25);
  stroke: var(--accent-green);
}
.interactive-zone.zone-mh:hover, .interactive-zone.zone-mh.active {
  fill: rgba(255, 109, 0, 0.25);
  stroke: var(--primary-orange);
}
.interactive-zone.zone-himachal:hover, .interactive-zone.zone-himachal.active {
  fill: rgba(0, 229, 255, 0.25);
  stroke: var(--accent-blue);
}

/* Non-selected zones fade down during active state */
.interactive-zone.dimmed {
  opacity: 0.15;
  fill: #0c0c10 !important;
  stroke: #181820 !important;
}

/* State outline decorations */
.state-border {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 1;
  pointer-events: none;
}

/* --- PULSING HOTSPOTS LAYER --- */
.map-hotspot-group {
  cursor: pointer;
}

.map-pulse-circle {
  fill: none;
  stroke-width: 1.5;
  transform-origin: center;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.map-pulse-circle.color-mp { stroke: var(--accent-green); }
.map-pulse-circle.color-maharashtra { stroke: var(--primary-orange); }
.map-pulse-circle.color-himachal { stroke: var(--accent-blue); }

.map-solid-dot {
  transform-origin: center;
}
.map-solid-dot.color-mp { fill: var(--accent-green); filter: drop-shadow(0 0 3px var(--accent-green)); }
.map-solid-dot.color-maharashtra { fill: var(--primary-orange); filter: drop-shadow(0 0 3px var(--primary-orange)); }
.map-solid-dot.color-himachal { fill: var(--accent-blue); filter: drop-shadow(0 0 3px var(--accent-blue)); }

.map-dot-label {
  font-family: var(--font-heading);
  font-size: 8px;
  fill: white;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  text-shadow: 0 2px 4px black;
}

.map-hotspot-group:hover .map-dot-label {
  opacity: 1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* --- RESET MAP BUTTON --- */
.map-control-wrap {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

#map-reset-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#map-reset-btn.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#map-reset-btn:hover {
  background: var(--primary-orange);
  color: black;
  border-color: var(--primary-orange);
}

#map-reset-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- MAP FALLBACK SELECTION BUTTONS --- */
.map-fallback-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.zone-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
}

.zone-btn.active, .zone-btn:hover {
  color: white;
}

.zone-btn[data-zone="mp"].active, .zone-btn[data-zone="mp"]:hover {
  background: rgba(0, 230, 118, 0.1);
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}
.zone-btn[data-zone="maharashtra"].active, .zone-btn[data-zone="maharashtra"]:hover {
  background: rgba(255, 109, 0, 0.1);
  border-color: var(--primary-orange);
  box-shadow: 0 0 15px rgba(255, 109, 0, 0.2);
}
.zone-btn[data-zone="himachal"].active, .zone-btn[data-zone="himachal"]:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

@media (max-width: 480px) {
  .map-fallback-row {
    flex-direction: column;
    gap: 10px;
    padding: 0 10%;
  }
}

/* --- DESKTOP SIDE PANEL DRAWERS --- */
.map-side-panel {
  position: absolute;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: rgba(18, 18, 23, 0.95);
  backdrop-filter: blur(25px);
  border-left: 1px solid var(--glass-border);
  z-index: 10;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  padding: 30px 20px;
}

.map-side-panel.open {
  right: 0;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 15px;
}

.panel-title h3 {
  font-size: 1.6rem;
  color: var(--primary-orange);
  line-height: 1.2;
}

.panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s;
}

.panel-close:hover {
  color: var(--primary-orange);
}

.panel-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

/* Scrollbar inside panel */
.panel-scroll-content::-webkit-scrollbar {
  width: 4px;
}
.panel-scroll-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* Drawer Trek Card within drawer */
.drawer-trek-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 20px 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.drawer-trek-card:hover {
  background: rgba(255, 109, 0, 0.03);
  border-color: rgba(255, 109, 0, 0.25);
  transform: translateY(-2px);
}

.drawer-card-info h4 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.1;
}

.drawer-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--accent-amber);
  margin-bottom: 10px;
}

.drawer-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawer-card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 12px;
}

.drawer-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-light);
}

.drawer-btn {
  background: none;
  border: none;
  color: var(--primary-orange);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- MOBILE BOTTOM SHEETS DRAWER --- */
.map-bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100vw;
  height: 60vh;
  background: #0d0d12;
  border-top: 1px solid var(--glass-border);
  z-index: 85;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-bottom-sheet.open {
  bottom: 0;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: -10px auto 15px auto;
}

.sheet-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
}

.sheet-title h3 {
  font-size: 1.4rem;
  color: var(--primary-orange);
}

.sheet-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.sheet-scroll-content {
  flex: 1;
  overflow-y: auto;
}

/* --- GLOWING ROUTE TRAILS --- */
.map-route-trail {
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
  will-change: stroke-dashoffset, opacity;
}

@media (min-width: 769px) {
  .map-route-trail {
    filter: drop-shadow(0 0 4px currentColor);
  }
}
.map-route-trail.color-mp { stroke: var(--accent-green); }
.map-route-trail.color-maharashtra { stroke: var(--primary-orange); }
.map-route-trail.color-himachal { stroke: var(--accent-blue); }

/* --- REAL-TIME WEATHER WIDGET CONTAINER --- */
.map-weather-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  transition: all 0.3s;
}

.weather-title {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.weather-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.weather-temp {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-amber);
  line-height: 1;
}

.weather-detail {
  display: flex;
  flex-direction: column;
}

.weather-cond {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.weather-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- ADVENTURE CAMPFIRE MAP HOTSPOTS --- */
.map-campfire-wrap {
  cursor: pointer;
}

.map-campfire-bg {
  fill: #000;
  fill-opacity: 0.45;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.map-campfire-log {
  stroke: #5c4033;
  stroke-width: 2;
  stroke-linecap: round;
}

.map-campfire-flame {
  fill: var(--primary-orange);
  animation: campfire-flicker-mid 1.4s ease-in-out infinite alternate;
  will-change: opacity;
}

.map-campfire-flame.flame-outer {
  fill: var(--accent-magenta);
  animation: campfire-flicker-outer 1.8s ease-in-out infinite alternate;
  will-change: opacity;
}

.map-campfire-flame.flame-inner {
  fill: var(--accent-amber);
  animation: campfire-flicker-inner 1.1s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes campfire-flicker-outer {
  0% {
    opacity: 0.55;
    fill: #b71c1c;
  }
  50% {
    opacity: 0.95;
    fill: var(--accent-magenta);
  }
  100% {
    opacity: 0.7;
    fill: #ff2d7a;
  }
}

@keyframes campfire-flicker-mid {
  0% {
    opacity: 0.7;
    fill: #e65100;
  }
  50% {
    opacity: 1;
    fill: var(--primary-orange);
  }
  100% {
    opacity: 0.8;
    fill: #ff7043;
  }
}

@keyframes campfire-flicker-inner {
  0% {
    opacity: 0.8;
    fill: #ff8f00;
  }
  50% {
    opacity: 1;
    fill: var(--accent-amber);
  }
  100% {
    opacity: 0.9;
    fill: #ffeb3b;
  }
}

/* Dynamic glow effects inside map drawer cards */
.drawer-trek-card:hover .drawer-btn {
  color: var(--accent-magenta);
  text-shadow: 0 0 8px rgba(216,27,96,0.3);
}

/* Advanced flowing route trails */
.map-route-trail {
  animation: flow-route-trail 4s linear infinite;
  stroke-linecap: round;
}

@keyframes flow-route-trail {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

