/* ==========================================================================
   Khuranaz "Where We Operate" Corridor Map Section
   Monochrome interactive map of Gurugram–Manesar Masterplan 2031
   ========================================================================== */

:root {
  --km-night: #0a0a0a;
  --km-ink: #f4f4f2;
  --km-dim: #8d8d8a;
  --km-hair: rgba(244, 244, 242, 0.13);
  --km-hair2: rgba(244, 244, 242, 0.3);
  --km-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Helvetica Neue", Arial, sans-serif;
  --km-font-title: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", Arial, sans-serif;
  --km-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", Arial, sans-serif;
}

.where-we-operate-section {
  background: var(--km-night) !important;
  color: var(--km-ink);
  font-family: var(--km-font-body) !important;
  font-weight: 400;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.where-we-operate-section * {
  box-sizing: border-box;
}

.km-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.km-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--km-hair);
}

.km-sec-head .km-eyebrow {
  display: block;
  font-family: var(--km-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--km-dim);
  text-transform: uppercase;
}

.km-sec-title {
  font-family: var(--km-font-title) !important;
  font-weight: 400 !important;
  font-size: clamp(36px, 5vw, 72px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  margin: 14px 0 0;
  color: var(--km-ink);
  text-wrap: balance;
}

.km-sec-title span {
  color: var(--km-dim);
}

.km-sec-sub {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.55;
  color: #bdbdba;
  font-weight: 400;
}

.km-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.km-mapwrap {
  position: relative;
  min-width: 0;
  padding-block: 22px 0 !important;
  padding-right: 26px;
  border-right: 1px solid var(--km-hair);
  margin-bottom: 0 !important;
}

.km-plate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--km-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.km-plate b {
  font-weight: 400;
  color: var(--km-ink);
}

.km-viewport {
  position: relative;
}

svg#map {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.km-back {
  position: absolute;
  left: 0;
  top: 8px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.28em;
  background: var(--km-night);
  color: var(--km-ink);
  border: 1px solid var(--km-hair2);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              background 0.3s,
              color 0.3s;
  z-index: 10;
}

.km-back:hover {
  background: var(--km-ink);
  color: var(--km-night);
}

.km-mapwrap.zoomed .km-back {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.km-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--km-dim);
}

.km-key {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.km-key span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.km-key svg {
  width: 22px;
  height: 12px;
  flex: none;
}

.km-coords {
  font-variant-numeric: tabular-nums;
}

/* Map SVG styling */
.lu-res { fill: #1b1b1a; stroke: rgba(244, 244, 242, 0.2); stroke-width: 0.5; }
.lu-com { fill: #4b4b48; stroke: rgba(244, 244, 242, 0.35); stroke-width: 0.5; }
.lu-ind { fill: url(#km-hatch); stroke: rgba(244, 244, 242, 0.28); stroke-width: 0.5; }
.lu-pub { fill: url(#km-dotsP); stroke: rgba(244, 244, 242, 0.28); stroke-width: 0.5; }
.lu-grn { fill: url(#km-stip); stroke: rgba(244, 244, 242, 0.2); stroke-width: 0.5; }

.bound { fill: none; stroke: var(--km-ink); stroke-opacity: 0.8; stroke-width: 1; }
.bound-glow { fill: none; stroke: var(--km-ink); stroke-opacity: 0.06; stroke-width: 9; }

#land { transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
svg#map.dim #land { opacity: 0.5; }

.secs text {
  font-family: var(--km-font);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  fill: var(--km-ink);
  fill-opacity: 0.55;
  text-anchor: middle;
  dominant-baseline: central;
  letter-spacing: 0.02em;
  transition: fill-opacity 0.8s, font-weight 0.8s;
}

svg#map.dim .secs text { fill-opacity: 0.16; }
svg#map.dim .secs text.near { fill-opacity: 1; }

.corr { transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
svg#map.dim .corr:not(.on) { opacity: 0.14; }
svg#map.dim .corr.peek { opacity: 0.55; }

.r-out { fill: none; stroke: var(--km-ink); stroke-linecap: round; stroke-linejoin: round; }
.r-core { fill: none; stroke: var(--km-night); stroke-linecap: round; stroke-linejoin: round; }
.flow { fill: none; stroke: var(--km-ink); stroke-linecap: round; stroke-dasharray: 0.06 0.94; opacity: 0; transition: opacity 0.8s; }
.corr.on .flow { opacity: 1; animation: km-flow 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }

@keyframes km-flow {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.node { fill: var(--km-night); stroke: var(--km-ink); stroke-width: 1.2; }

.lab { cursor: pointer; transition: opacity 0.8s; }
.lab rect {
  fill: var(--km-night);
  stroke: var(--km-ink);
  stroke-opacity: 0.6;
  stroke-width: 1;
  transition: fill 0.4s, stroke-opacity 0.4s;
}
.lab text {
  font-family: var(--km-font-title) !important;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  fill: var(--km-ink);
  dominant-baseline: central;
  text-anchor: middle;
  transition: fill 0.4s;
}
.lab:hover rect,
.lab:focus-visible rect,
.lab.sel rect {
  fill: var(--km-ink);
  stroke-opacity: 1;
}
.lab:hover text,
.lab:focus-visible text,
.lab.sel text {
  fill: var(--km-night);
}
.lab:focus { outline: none; }
svg#map.dim .lab:not(.sel) { opacity: 0.3; }

svg#map.small .lead { display: none; }
.lead {
  stroke: var(--km-ink);
  stroke-opacity: 0.5;
  stroke-width: 0.8;
  stroke-dasharray: 2 3;
}

.mk { cursor: pointer; }
.mk .ring { fill: none; stroke: var(--km-ink); stroke-width: 1; }
.mk .pulse {
  fill: none;
  stroke: var(--km-ink);
  stroke-width: 0.8;
  transform-box: fill-box;
  transform-origin: center;
  animation: km-ping 3.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.mk.sel .ring { stroke-width: 2.2; }

@keyframes km-ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
svg#map.go .draw { animation: km-draw 2.4s cubic-bezier(0.65, 0, 0.25, 1) forwards; }

@keyframes km-draw {
  to { stroke-dashoffset: 0; }
}

.fade { opacity: 0; }
svg#map.go .fade { animation: km-fade 1.2s ease forwards; }

@keyframes km-fade {
  to { opacity: 1; }
}

/* Information Rail */
.km-rail {
  min-width: 0;
  padding: 26px 0 0 30px;
  margin-bottom: 0 !important;
}

.km-rail-in {
  position: sticky;
  top: 22px;
}

.km-rail .idx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  color: var(--km-dim);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.km-rail .idx .line {
  flex: 1;
  height: 1px;
  background: var(--km-hair);
  margin: 0 14px;
}

.km-rail h2 {
  font-family: var(--km-font-title) !important;
  font-weight: 400 !important;
  font-size: clamp(30px, 2.9vw, 44px) !important;
  line-height: 1.06;
  margin: 24px 0 16px;
  letter-spacing: -0.035em !important;
  text-wrap: balance;
  color: var(--km-ink);
}

.km-rail h2 em {
  font-style: normal;
  color: var(--km-dim);
}

.km-rail .lede {
  font-size: 15px;
  line-height: 1.6;
  color: #cfcfcc;
  margin: 0 0 24px;
  max-width: 58ch;
}

.km-facts {
  margin: 0 0 26px;
  border-top: 1px solid var(--km-hair);
}

.km-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--km-hair);
  font-size: 13.5px;
  line-height: 1.55;
}

.km-facts dt {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--km-dim);
  padding-top: 3px;
  text-transform: uppercase;
}

.km-facts dd {
  margin: 0;
  color: var(--km-ink);
}

.km-rail h3 {
  font-size: 9px;
  letter-spacing: 0.34em;
  font-weight: 400;
  color: var(--km-dim);
  margin: 0 0 2px;
  text-transform: uppercase;
}

.km-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.km-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: 10px;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--km-hair);
  padding: 14px 0;
  cursor: pointer;
  color: var(--km-ink);
}

.km-list .no {
  font-family: var(--km-font);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--km-dim);
  font-variant-numeric: tabular-nums;
}

.km-list .nm {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.km-list .ar {
  font-size: 13px;
  color: var(--km-dim);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s;
}

.km-list .tag {
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--km-night);
  background: var(--km-ink);
  padding: 3px 7px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: 2px;
}

.km-list button:hover .nm,
.km-list button:focus-visible .nm {
  transform: translateX(6px);
}

.km-list button:hover .ar,
.km-list button:focus-visible .ar {
  transform: translateX(4px);
  color: var(--km-ink);
}

.km-list button.sel .nm {
  font-weight: 600;
}

.km-uses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 24px;
  font-size: 12px;
  color: #cfcfcc;
}

.km-uses span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.km-uses svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.km-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.km-pager button {
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.24em;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  color: var(--km-dim);
  transition: color 0.3s;
  text-transform: uppercase;
}

.km-pager button:hover {
  color: var(--km-ink);
}

.km-note {
  font-size: 10.5px;
  line-height: 1.6;
  color: #6d6d6a;
  margin-top: 24px;
}

.km-proj {
  border: 1px solid var(--km-hair2);
  padding: 16px 18px;
  margin: -6px 0 24px;
  background: rgba(244, 244, 242, 0.02);
}

.km-proj .k {
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--km-dim);
  text-transform: uppercase;
}

.km-proj .v {
  font-family: var(--km-font-title) !important;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 22px;
  margin: 6px 0 4px;
  color: var(--km-ink);
}

.km-proj p {
  margin: 0;
  font-size: 13px;
  color: #bdbdba;
  line-height: 1.6;
}

.km-proj .km-proj-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--km-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.km-swap > * {
  animation: km-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.km-swap > *:nth-child(2) { animation-delay: 0.06s; }
.km-swap > *:nth-child(3) { animation-delay: 0.12s; }
.km-swap > *:nth-child(4) { animation-delay: 0.18s; }
.km-swap > *:nth-child(5) { animation-delay: 0.24s; }
.km-swap > *:nth-child(6) { animation-delay: 0.30s; }
.km-swap > *:nth-child(7) { animation-delay: 0.36s; }
.km-swap > *:nth-child(8) { animation-delay: 0.42s; }

@keyframes km-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.where-we-operate-section button:focus-visible {
  outline: 1px solid var(--km-ink);
  outline-offset: 4px;
}

@media (max-width: 1020px) {
  .km-stage {
    grid-template-columns: 1fr;
  }
  .km-mapwrap {
    border-right: 0;
    padding-right: 0;
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .km-rail {
    padding: 26px 0 0 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 560px) {
  .km-plate span:last-child {
    display: none;
  }
  .km-uses {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
  .fade {
    opacity: 1 !important;
    animation: none !important;
  }
  .mk .pulse,
  .corr.on .flow,
  .km-swap > * {
    animation: none !important;
  }
}
