/* ================================================================
   SECTION 4 — GEO-LOCATION HUB IDENTIFICATION — CSS START
   Every selector is scoped under .mcg-geo-section. No .container,
   .content, .title, .map, .card, .section, .item or other generic
   selectors are used anywhere in this file.
================================================================= */

/* ---- MCG-GEO: design tokens (scoped to this section only) ----
   Reference names only — kept local so this section never depends
   on globals from another section. */
   .mcg-geo-section {
    --mcg-geo-deep: #07171D;
    --mcg-geo-ocean: #16343B;
    --mcg-geo-white: #FFFFFF;
    --mcg-geo-arch-white: #F3F4F1;
    --mcg-geo-mist: #DCE5E5;
    --mcg-geo-slate: #7C8B8D;
    /*--mcg-geo-accent: #28A745;*/
    --mcg-geo-font: "Rubik", Arial, sans-serif;
    --mcg-geo-progress-h: 88px;
  
      --mcg-geo-accent:  #275d2b !important;
  }
  
  /* ---- MCG-GEO: section shell ---- */
  .mcg-geo-section {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--mcg-geo-arch-white);
    font-family: var(--mcg-geo-font);
    overflow: hidden;
  }
  .mcg-geo-section *,
  .mcg-geo-section *::before,
  .mcg-geo-section *::after {
    box-sizing: border-box;
  }
  .mcg-geo-section button {
    font-family: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
  }
  
  .mcg-geo-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, 38%) 1fr;
    padding-bottom: var(--mcg-geo-progress-h);
  }
  
  /* ================================================================
     LEFT — copy panel
  ================================================================= */
  .mcg-geo-copy {
    position: relative;
    z-index: 2;
    padding: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--mcg-geo-arch-white);
  }
  
  .mcg-geo-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  .mcg-geo-eyebrow {
    font-size: clamp(12px, 0.85vw, 13px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mcg-geo-deep);
    margin: 0;
    white-space: nowrap;
  }
  .mcg-geo-eyebrow span {
    color: var(--mcg-geo-accent);
  }
  .mcg-geo-eyebrow-line {
    flex: 1;
    height: 1px;
    background: var(--mcg-geo-mist);
    position: relative;
    display: block;
  }
  .mcg-geo-eyebrow-dot {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mcg-geo-slate);
    transform: translateY(-50%);
  }
  .mcg-geo-eyebrow-dot:first-child { left: 40%; }
  .mcg-geo-eyebrow-dot:last-child { left: 70%; }
  
  .mcg-geo-title {
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--mcg-geo-deep);
    margin: 0 0 6px 0;
  }
  .mcg-geo-title .word,
  .mcg-geo-title .line {
    will-change: transform, opacity;
  }
  .mcg-geo-highlight {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    font-weight: 600;
    color: var(--mcg-geo-accent);
    margin: 0 0 16px 0;
  }
  .mcg-geo-intro {
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--mcg-geo-slate);
    margin: 0 0 clamp(20px, 3vw, 32px) 0;
    max-width: 46ch;
  }
  
  /* ---- MCG-GEO: location stepper list ---- */
  .mcg-geo-locations {
    list-style: none;
    margin: 0 0 clamp(16px, 2.5vw, 28px) 0;
    padding: 0;
    border-top: 1px solid var(--mcg-geo-mist);
  }
  .mcg-geo-location {
    border-bottom: 1px solid var(--mcg-geo-mist);
  }
  .mcg-geo-location-btn {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 20px auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: clamp(10px, 1.6vw, 16px) 4px;
    color: inherit;
    transition: padding-left 0.25s ease;
  }
  .mcg-geo-location-track {
    position: relative;
    align-self: stretch;
    display: flex;
    justify-content: center;
  }
  .mcg-geo-location-track::before {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    width: 2px;
    background: var(--mcg-geo-mist);
  }
  .mcg-geo-location-track--last::before {
    bottom: 50%;
  }
  .mcg-geo-location-dot {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mcg-geo-white);
    border: 2px solid var(--mcg-geo-slate);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  .mcg-geo-location-number {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 700;
    color: var(--mcg-geo-mist);
    transition: color 0.25s ease;
    min-width: 2ch;
  }
  .mcg-geo-location-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .mcg-geo-location-name {
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    font-weight: 600;
    color: var(--mcg-geo-deep);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mcg-geo-location-meta {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--mcg-geo-slate);
  }
  .mcg-geo-location-arrow {
    font-size: 1rem;
    color: var(--mcg-geo-mist);
    transition: transform 0.25s ease, color 0.25s ease;
  }
  
  .mcg-geo-location-btn[aria-pressed="true"] .mcg-geo-location-dot {
    background: var(--mcg-geo-accent);
    border-color: var(--mcg-geo-accent);
    transform: scale(1.15);
  }
  .mcg-geo-location-btn[aria-pressed="true"] .mcg-geo-location-number {
    color: var(--mcg-geo-accent);
  }
  .mcg-geo-location-btn[aria-pressed="true"] .mcg-geo-location-arrow {
    color: var(--mcg-geo-accent);
    transform: translateX(3px);
  }
  
  @media (hover: hover) and (pointer: fine) {
    .mcg-geo-location-btn:hover {
      padding-left: 10px;
    }
    .mcg-geo-location-btn:hover .mcg-geo-location-arrow {
      color: var(--mcg-geo-accent);
      transform: translateX(3px);
    }
  }
  .mcg-geo-location-btn:focus-visible {
    outline: 2px solid var(--mcg-geo-accent);
    outline-offset: 2px;
    border-radius: 2px;
  }
  
  /* ---- MCG-GEO: note card ---- */
  .mcg-geo-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: color-mix(in srgb, var(--mcg-geo-accent) 8%, var(--mcg-geo-white));
    border: 1px solid color-mix(in srgb, var(--mcg-geo-accent) 22%, var(--mcg-geo-white));
    border-radius: 4px;
    margin-top: auto;
  }
  .mcg-geo-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--mcg-geo-accent);
    flex-shrink: 0;
    margin-top: 2px;
  }
  .mcg-geo-note-icon svg { width: 20px; height: 20px; }
  .mcg-geo-note-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--mcg-geo-deep);
    margin: 0 0 2px 0;
  }
  .mcg-geo-note-body {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--mcg-geo-slate);
    margin: 0;
  }
  
  /* ================================================================
     RIGHT — map experience
  ================================================================= */
  .mcg-geo-map {
    position: relative;
    overflow: hidden;
    background: var(--mcg-geo-mist);
  }
  .mcg-geo-map-viewport {
    position: absolute;
    inset: 0;
    will-change: transform;
  }
  .mcg-geo-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  
  .mcg-geo-map-park { fill: var(--mcg-geo-accent); opacity: 0.14; }
  .mcg-geo-map-water { fill: var(--mcg-geo-ocean); opacity: 0.12; }
  .mcg-geo-map-roads line {
    stroke: var(--mcg-geo-slate);
    stroke-width: 2;
    opacity: 0.3;
  }
  .mcg-geo-map-boundary {
    fill: none;
    stroke: var(--mcg-geo-slate);
    stroke-width: 1.5;
    stroke-dasharray: 6 8;
    opacity: 0.45;
  }
  .mcg-geo-map-route {
    fill: none;
    stroke: var(--mcg-geo-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0; /* fully drawn by default — see JS note below */
  }
  .mcg-geo-map-waypoints circle {
    fill: var(--mcg-geo-white);
    stroke: var(--mcg-geo-accent);
    stroke-width: 1.5;
  }
  .mcg-geo-map-city-label {
    font-family: var(--mcg-geo-font);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    fill: var(--mcg-geo-deep);
    opacity: 0.85;
  }
  .mcg-geo-map-district {
    font-family: var(--mcg-geo-font);
    font-size: 12px;
    font-weight: 500;
    fill: var(--mcg-geo-slate);
    opacity: 0.65;
  }
  
  /* ---- MCG-GEO: markers ---- */
  .mcg-geo-map-markers {
    position: absolute;
    inset: 0;
  }
  .mcg-geo-marker {
    position: absolute;
    left: var(--mcg-geo-mx);
    top: var(--mcg-geo-my);
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
  }
  /* per-marker position — kept in CSS (not inline styles); JS reads
     these via getComputedStyle() for its camera-pan math. */
  .mcg-geo-marker--01 { --mcg-geo-mx: 36%;   --mcg-geo-my: 42.9%; }
  .mcg-geo-marker--02 { --mcg-geo-mx: 62%;   --mcg-geo-my: 38.6%; }
  .mcg-geo-marker--03 { --mcg-geo-mx: 70%;   --mcg-geo-my: 67.1%; }
  .mcg-geo-marker--04 { --mcg-geo-mx: 33%;   --mcg-geo-my: 77.1%; }
  .mcg-geo-marker-pulse {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--mcg-geo-accent);
    opacity: 0;
    pointer-events: none;
  }
  .mcg-geo-marker-pin {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    background: var(--mcg-geo-ocean);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(7, 23, 29, 0.25);
    transition: background 0.25s ease;
  }
  .mcg-geo-marker-badge {
    transform: rotate(45deg);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mcg-geo-white);
    border: 2px solid var(--mcg-geo-ocean);
    color: var(--mcg-geo-ocean);
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, color 0.25s ease;
  }
  .mcg-geo-marker-label {
    margin-top: 6px;
    padding: 5px 10px;
    background: var(--mcg-geo-deep);
    color: var(--mcg-geo-white);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0.9;
  }
  
  .mcg-geo-marker[aria-pressed="true"] .mcg-geo-marker-pin {
    background: var(--mcg-geo-accent);
  }
  .mcg-geo-marker[aria-pressed="true"] .mcg-geo-marker-badge {
    border-color: var(--mcg-geo-accent);
    color: var(--mcg-geo-accent);
  }
  .mcg-geo-marker[aria-pressed="true"] .mcg-geo-marker-label {
    background: var(--mcg-geo-accent);
    opacity: 1;
  }
  .mcg-geo-marker:focus-visible {
    outline: 2px solid var(--mcg-geo-accent);
    outline-offset: 4px;
    border-radius: 50%;
  }
  
  /* ---- MCG-GEO: compass ---- */
  .mcg-geo-map-compass {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mcg-geo-white);
    border: 1px solid var(--mcg-geo-mist);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mcg-geo-deep);
    box-shadow: 0 2px 8px rgba(7, 23, 29, 0.1);
  }
  .mcg-geo-map-compass svg { width: 18px; height: 18px; }
  
  /* ---- MCG-GEO: zoom controls ---- */
  .mcg-geo-map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    background: var(--mcg-geo-white);
    border: 1px solid var(--mcg-geo-mist);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(7, 23, 29, 0.1);
  }
  .mcg-geo-map-control {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mcg-geo-deep);
    font-size: 16px;
    border-bottom: 1px solid var(--mcg-geo-mist);
    transition: background 0.2s ease;
  }
  .mcg-geo-map-control:last-child { border-bottom: none; }
  .mcg-geo-map-control svg { width: 15px; height: 15px; }
  .mcg-geo-map-control:hover { background: var(--mcg-geo-arch-white); }
  .mcg-geo-map-control:focus-visible {
    outline: 2px solid var(--mcg-geo-accent);
    outline-offset: -2px;
  }
  
  /* ---- MCG-GEO: legend ---- */
  .mcg-geo-map-legend {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--mcg-geo-white);
    border: 1px solid var(--mcg-geo-mist);
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(7, 23, 29, 0.1);
  }
  .mcg-geo-map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--mcg-geo-ocean);
    margin: 0;
    padding: 3px 0;
    white-space: nowrap;
  }
  .mcg-geo-map-legend-swatch {
    display: inline-block;
    width: 18px;
    height: 2px;
    flex-shrink: 0;
  }
  .mcg-geo-map-legend-swatch--road { background: var(--mcg-geo-slate); opacity: 0.5; }
  .mcg-geo-map-legend-swatch--route { background: var(--mcg-geo-accent); }
  .mcg-geo-map-legend-swatch--hub {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mcg-geo-accent);
  }
  .mcg-geo-map-legend-swatch--hub svg { width: 14px; height: 14px; }
  
  /* ================================================================
     BOTTOM — progress bar
  ================================================================= */
  .mcg-geo-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mcg-geo-progress-h);
    z-index: 3;
    background: var(--mcg-geo-deep);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 48px);
    padding: 0 clamp(20px, 3vw, 40px);
  }
  .mcg-geo-progress-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
  }
  .mcg-geo-progress-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mcg-geo-mist);
    margin: 0;
  }
  .mcg-geo-progress-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 420px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
  }
  .mcg-geo-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--mcg-geo-accent);
    transform-origin: left;
  }
  .mcg-geo-progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .mcg-geo-progress-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mcg-geo-deep);
    border: 2px solid var(--mcg-geo-slate);
    transition: background 0.25s ease, border-color 0.25s ease;
  }
  .mcg-geo-progress-step-num {
    position: absolute;
    top: 14px;
    font-size: 10px;
    font-weight: 500;
    color: var(--mcg-geo-slate);
    letter-spacing: 0.5px;
  }
  .mcg-geo-progress-step.is-active .mcg-geo-progress-step-dot {
    background: var(--mcg-geo-accent);
    border-color: var(--mcg-geo-accent);
  }
  .mcg-geo-progress-step.is-active .mcg-geo-progress-step-num {
    color: var(--mcg-geo-accent);
  }
  
  .mcg-geo-progress-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .mcg-geo-progress-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.15);
    color: var(--mcg-geo-accent);
    flex-shrink: 0;
  }
  .mcg-geo-progress-icon svg { width: 16px; height: 16px; }
  .mcg-geo-progress-message {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--mcg-geo-white);
    margin: 0;
    white-space: nowrap;
  }
  .mcg-geo-progress-message span:first-child {
    color: var(--mcg-geo-accent);
  }
  
  /* ================================================================
     RESPONSIVE — large laptop / laptop-tablet (<=1199px)
  ================================================================= */
  @media (max-width: 1199px) {
    .mcg-geo-shell { grid-template-columns: minmax(320px, 42%) 1fr; }
    .mcg-geo-map-legend,
    .mcg-geo-progress-message span:last-child { display: none; }
  }
  
  /* ================================================================
     RESPONSIVE — tablet (768–991px): keep two columns but compact
  ================================================================= */
  @media (max-width: 991px) and (min-width: 769px) {
    .mcg-geo-copy { padding: 24px; }
    .mcg-geo-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
    .mcg-geo-map-compass,
    .mcg-geo-map-controls { transform: scale(0.85); transform-origin: top; }
  }
  
  /* ================================================================
     RESPONSIVE — mobile (<=768px): stacked, non-pinned, simplified
  ================================================================= */
  @media (max-width: 768px) {
    .mcg-geo-section {
      min-height: 0;
      height: auto;
    }
    .mcg-geo-shell {
      grid-template-columns: 1fr;
      padding-bottom: 0;
      height: auto;
    }
    .mcg-geo-copy {
      order: 1;
      overflow-y: visible;
      padding: 28px 20px 8px;
    }
    .mcg-geo-map {
      order: 0;
      height: 46vh;
      min-height: 320px;
    }
    .mcg-geo-map-legend { display: none; }
    .mcg-geo-map-controls,
    .mcg-geo-map-compass { transform: scale(0.85); transform-origin: top right; }
    .mcg-geo-locations { order: 2; }
    .mcg-geo-note { margin-top: 20px; }
    .mcg-geo-progress {
      position: static;
      height: auto;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      padding: 20px;
    }
    .mcg-geo-progress-track { max-width: 100%; }
    .mcg-geo-progress-message span:last-child { display: inline; }
  }
  
  @media (max-width: 480px) {
    .mcg-geo-location-name { white-space: normal; }
    .mcg-geo-marker-label { font-size: 10px; padding: 4px 8px; }
  }
  
  /* ================================================================
     HEIGHT-CONSTRAINED DESKTOP VIEWPORTS — keep everything inside 100svh
  ================================================================= */
  @media (min-width: 769px) and (max-height: 800px) {
    .mcg-geo-copy { padding-top: 20px; padding-bottom: 20px; }
    .mcg-geo-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); padding-top: 20px;}
    .mcg-geo-intro { margin-bottom: 14px; }
    .mcg-geo-location-btn { padding-top: 8px; padding-bottom: 8px; }
    .mcg-geo-note { padding: 10px 14px; }
  }
  
  /* ================================================================
     REDUCED MOTION — final state shown immediately, no scroll story
  ================================================================= */
  @media (prefers-reduced-motion: reduce) {
    .mcg-geo-map-viewport { transform: none !important; }
    .mcg-geo-marker-pulse { display: none; }
  }
  
  /* ================================================================
     SECTION 4 — GEO-LOCATION HUB IDENTIFICATION — CSS END
  ================================================================= */