/* ==========================================================================
   PropNetwork - Discover Hotspots Across India Section CSS
   Author: PropNetwork Product Design Team
   Description: Clean editorial layout with a single horizontal row of 4 cities
                (no card boxes) blending seamlessly into global section background,
                enlarged India map, location pins, and glass tooltips.
   ========================================================================== */

.hotspots-section {
  position: relative;
  padding: 5rem 0 6rem 0;
  background-color: #FAFAFA;
  overflow: hidden;
  z-index: 2;
}

/* ==========================================================================
   Section Top Header (Stripe / Linear Editorial Style)
   ========================================================================== */
.hotspots-section-header {
  position: relative;
  max-width: 860px;
  margin-bottom: 0;
  padding-left: 1.5rem;
  z-index: 2;
}

.hotspots-header-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #14B8A6 0%, #6366F1 50%, #8B5CF6 100%);
  border-radius: 3px;
}

.hotspots-category-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #14B8A6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hotspots-header-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.hotspots-text-gradient {
  background: linear-gradient(90deg, #0F766E 0%, #14B8A6 35%, #6366F1 75%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hotspots-header-desc {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 500;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   Market Highlights Editorial Bridge Strip (Stripe / Apple / Vercel Style)
   ========================================================================== */
.hotspots-editorial-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 2.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  width: 100%;
}

.editorial-strip-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  cursor: default;
}

.editorial-strip-item:hover {
  color: #0F766E;
}

.editorial-check-icon {
  width: 12px;
  height: 12px;
  color: #0F766E;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.editorial-strip-item:hover .editorial-check-icon {
  color: #14B8A6;
  transform: scale(1.2);
}

.editorial-strip-divider {
  width: 1px;
  height: 14px;
  background-color: #E2E8F0;
  margin-right: 1.1rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.editorial-strip-item:hover + .editorial-strip-divider {
  background-color: #14B8A6;
  box-shadow: 0 0 6px rgba(20, 184, 166, 0.4);
}

/* Outer Wrapper */
.hotspots-card-container {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

/* ==========================================================================
   LEFT EDITORIAL PANEL
   ========================================================================== */
.hotspots-left-panel {
  padding: 1rem 1rem 1rem 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.hotspots-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.hotspots-title-accent {
  color: #0F172A;
  display: block;
}

.hotspots-accent-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.hotspots-accent-bar .accent-line {
  width: 34px;
  height: 4px;
  background: #0F766E;
  border-radius: 2px;
}

.hotspots-accent-bar .accent-dot {
  width: 6px;
  height: 4px;
  background: #14B8A6;
  border-radius: 2px;
}

.hotspots-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: #64748B;
  margin-bottom: 2.5rem;
}

/* Single Horizontal Row of 4 Cities (No Card Boxes) */
.hotspots-city-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.hotspot-city-item {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem 0.2rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hotspot-city-item:hover,
.hotspot-city-item.active {
  transform: translateY(-4px);
}

.city-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hotspot-city-item:hover .city-icon-badge,
.hotspot-city-item.active .city-icon-badge {
  transform: scale(1.12);
}

.badge-orange {
  background: #FFF7ED;
  color: #F97316;
  border: 1px solid #FFEDD5;
}

.badge-purple {
  background: #F3E8FF;
  color: #8B5CF6;
  border: 1px solid #E9D5FF;
}

.badge-green {
  background: #DCFCE7;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.badge-teal {
  background: #CCFBF1;
  color: #0F766E;
  border: 1px solid #99F6E4;
}

.hotspot-city-item .city-name {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.hotspot-city-item .city-listings {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
}

.hotspot-city-item .city-underline {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  margin-top: 0.5rem;
  transition: width 0.3s ease;
}

.hotspot-city-item:hover .city-underline,
.hotspot-city-item.active .city-underline {
  width: 32px;
}

.bar-orange { background: #F97316; }
.bar-purple { background: #8B5CF6; }
.bar-green { background: #16A34A; }
.bar-teal { background: #0F766E; }

/* ==========================================================================
   RIGHT INTERACTIVE MAP PANEL (Left-Aligned inside col-lg-6)
   ========================================================================== */
.hotspots-right-panel {
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0;
  overflow: hidden;
}

.map-viewport-wrapper {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-radius: 24px;
  padding: 0.25rem;
  background-image: linear-gradient(rgba(241, 245, 249, 0.8) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(241, 245, 249, 0.8) 1px, transparent 1px);
  background-size: 32px 32px;
}

.india-map-image {
  width: 100%;
  max-height: 640px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 15px 32px rgba(15, 23, 42, 0.06));
  user-select: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   GEOGRAPHICALLY PRECISE TEARDROP LOCATION PINS
   ========================================================================== */
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-pin:hover,
.map-pin.active {
  transform: translate(-50%, -105%) scale(1.22);
  z-index: 50;
}

.map-pin .pin-marker {
  animation: floatPin 3.5s ease-in-out infinite;
}

@keyframes floatPin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.pin-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: filter 0.3s ease;
}

.pin-marker svg {
  display: block;
  width: 30px;
  height: 32px;
  transition: transform 0.3s ease;
}

.pin-orange .pin-marker svg {
  color: #F97316;
  filter: drop-shadow(0 10px 22px rgba(249, 115, 22, 0.5));
}

.pin-purple .pin-marker svg {
  color: #8B5CF6;
  filter: drop-shadow(0 10px 22px rgba(139, 92, 246, 0.5));
}

.pin-teal .pin-marker svg {
  color: #0F766E;
  filter: drop-shadow(0 10px 22px rgba(15, 118, 110, 0.5));
}

.pin-green .pin-marker svg {
  color: #16A34A;
  filter: drop-shadow(0 10px 22px rgba(22, 163, 74, 0.5));
}

.pin-pulse-ring {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: pulseBeacon 2.2s infinite ease-out;
}

.pin-orange .pin-pulse-ring { background: rgba(249, 115, 22, 0.38); }
.pin-purple .pin-pulse-ring { background: rgba(139, 92, 246, 0.38); }
.pin-teal .pin-pulse-ring { background: rgba(15, 118, 110, 0.38); }
.pin-green .pin-pulse-ring { background: rgba(22, 163, 74, 0.38); }

@keyframes pulseBeacon {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

/* ==========================================================================
   MINIMALIST EDITORIAL MAP TOOLTIP (Compact & Refined)
   ========================================================================== */
.hotspot-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.1), 0 3px 8px -2px rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  min-width: 125px;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.98) transparent transparent transparent;
}

.map-pin:hover .hotspot-tooltip,
.map-pin.active .hotspot-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.tooltip-city {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tooltip-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.tooltip-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.tooltip-growth {
  font-size: 0.72rem;
  font-weight: 600;
  color: #16A34A;
}

.tooltip-footer {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748B;
  border-top: 1px solid #F1F5F9;
  padding-top: 0.25rem;
  margin-top: 0.1rem;
}

/* Default: Hide mobile-only city row on desktop */
.mobile-only-city-row {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS (Matching Reference Design 1:1)
   ========================================================================== */
@media (max-width: 991.98px) {
  .hotspots-section {
    padding: 3rem 0 4rem 0 !important;
  }

  .desktop-only-city-row {
    display: none !important;
  }

  .mobile-only-city-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-top: 1rem !important;
    width: 100% !important;
  }

  .hotspots-left-panel {
    padding: 0 !important;
  }

  .hotspots-section-header {
    padding-left: 0.85rem !important;
  }

  .hotspots-category-label {
    font-size: 0.78rem !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 0.4rem !important;
  }

  .hotspots-header-title {
    font-size: clamp(1.85rem, 6.8vw, 2.3rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 0.75rem !important;
  }

  .hotspots-header-desc {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }

  /* 2x2 Checklist Grid on Mobile */
  .hotspots-editorial-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem 0.85rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.75rem !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 0 !important;
  }

  .editorial-strip-item {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
  }

  .editorial-check-icon {
    width: 13px !important;
    height: 13px !important;
    margin-top: 2px !important;
  }

  /* Main Card Box Wrapper around Map & City Cards on Mobile (1:1 Reference Match) */
  .hotspots-right-panel {
    background: #FAFAFA !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
    padding: 1rem 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
  }

  .map-viewport-wrapper {
    background: #FFFFFF !important;
    border: 1px solid #F1F5F9 !important;
    border-radius: 16px !important;
    padding: 0.75rem 0.5rem !important;
    width: 100% !important;
  }

  /* Compact 2x2 Grid City Card styling on Mobile (1:1 Reference Screenshot Match) */
  .mobile-only-city-row .hotspot-city-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 0.85rem 0.5rem 0.9rem 0.5rem !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
  }

  .mobile-only-city-row .hotspot-city-item:hover,
  .mobile-only-city-row .hotspot-city-item.active {
    border-color: #14B8A6 !important;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12) !important;
    transform: translateY(-2px) !important;
  }

  .mobile-only-city-row .city-icon-badge {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 auto 0.45rem auto !important;
    border: none !important;
  }

  .mobile-only-city-row .city-icon-badge svg {
    width: 18px !important;
    height: 18px !important;
  }

  .mobile-only-city-row .badge-orange { background: #FFF2E8 !important; color: #F97316 !important; }
  .mobile-only-city-row .badge-purple { background: #F3E8FF !important; color: #8B5CF6 !important; }
  .mobile-only-city-row .badge-green  { background: #E6F9F0 !important; color: #16A34A !important; }
  .mobile-only-city-row .badge-teal   { background: #E6F7F5 !important; color: #0F766E !important; }

  .mobile-only-city-row .city-text-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .mobile-only-city-row .city-name {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin-bottom: 0.1rem !important;
    line-height: 1.2 !important;
  }

  .mobile-only-city-row .city-listings {
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: #64748B !important;
    line-height: 1.2 !important;
  }

  /* Right Arrow Chevron at Bottom Right (1:1 Reference Match) */
  .mobile-only-city-row .hotspot-city-item::after {
    content: '' !important;
    position: absolute !important;
    bottom: 8px !important;
    right: 10px !important;
    width: 6.5px !important;
    height: 6.5px !important;
    border-top: 1.8px solid #0F766E !important;
    border-right: 1.8px solid #0F766E !important;
    transform: rotate(45deg) !important;
    margin-left: 0 !important;
    opacity: 0.85 !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .hotspots-editorial-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem 0.5rem !important;
  }

  .editorial-strip-item {
    font-size: 0.8rem !important;
  }

  .pin-marker svg {
    width: 30px;
    height: 38px;
  }
}