/* footprints.css */
.footprints-section {
    --footprints-accent: #f493ad;
    --footprints-accent-strong: #eb6288;
    --footprints-accent-soft: #ffd8e2;
    --footprints-ink: #1f2128;
    --footprints-ink-muted: #5c6570;
    --footprints-surface: rgba(255, 250, 247, 0.8);
    --footprints-surface-strong: #fafafa;
    --footprints-line: #fff7f8;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    min-height: 760px;
    background: transparent;
    overflow: hidden;
    color: var(--footprints-ink);
    isolation: isolate;
}

.footprints-section::before,
.footprints-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(24px);
    opacity: 0.45;
    z-index: 0;
}

.footprints-section::before {
    display: none;
}

.footprints-section::after {
    display: none;
}

#footprints-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: clip-path 1.15s cubic-bezier(0.45, 0, 0.2, 1), filter 0.8s ease;
}

#footprints-fallback-map {
    position: absolute;
    right: clamp(26px, 3vw, 72px);
    top: 50%;
    width: min(58vw, 860px);
    aspect-ratio: 1.18;
    transform: translateY(-34%) rotate(-5deg);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
}

#footprints-fallback-map::before,
#footprints-fallback-map::after {
    content: "";
    position: absolute;
    inset: 0;
}

#footprints-fallback-map::before {
    background: linear-gradient(135deg, #d935b0 0%, #ff3f7f 42%, #ff6a2d 100%);
    clip-path: polygon(15% 76%, 22% 64%, 19% 55%, 26% 49%, 25% 40%, 30% 36%, 33% 28%, 40% 23%, 48% 16%, 55% 13%, 61% 7%, 69% 10%, 76% 16%, 84% 21%, 88% 30%, 93% 35%, 92% 44%, 98% 49%, 95% 59%, 91% 68%, 84% 72%, 81% 82%, 73% 78%, 66% 86%, 59% 81%, 50% 84%, 41% 79%, 34% 86%, 29% 79%, 21% 82%);
    filter: drop-shadow(0 24px 28px rgba(31, 33, 40, 0.18));
}

#footprints-fallback-map::after {
    inset: auto 14% -6%;
    height: 12%;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(31, 33, 40, 0.24) 0%, rgba(31, 33, 40, 0.06) 44%, rgba(31, 33, 40, 0) 72%);
    filter: blur(10px);
}

.footprints-fallback-active #footprints-fallback-map {
    opacity: 1;
    visibility: visible;
}

.footprints-phase-globe #footprints-canvas-container {
    clip-path: inset(0);
    filter: none;
}

.footprints-phase-map #footprints-canvas-container {
    clip-path: inset(0);
    filter: none;
}

.footprints-phase-map #footprints-overlay-content {
    z-index: 40;
}

.footprints-phase-map #footprints-overlay-content .footprints-sidebar-menu {
    position: relative;
    z-index: 2;
}

/* Map pins/callouts extend past the India silhouette — allow them to paint outside the section box */
.footprints-section.footprints-phase-map {
    overflow: visible;
}

#footprints-canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#footprints-globe-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    font-size: clamp(2rem, 3.8vw, 3.75rem);
    font-weight: 500;
    color: var(--footprints-ink);
    text-align: center;
    line-height: 1.08;
    pointer-events: none;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: none;
}

#footprints-globe-text .footprints-globe-sub {
    display: block;
    margin-top: 0.28em;
    font-size: 0.58em;
    font-weight: 400;
    letter-spacing: 0.28em;
    opacity: 0.92;
}

.footprints-skip-intro {
    position: absolute;
    left: 50%;
    bottom: clamp(22px, 4.5vh, 52px);
    transform: translateX(-50%);
    z-index: 25;
    padding: 10px 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--footprints-accent-strong);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(235, 98, 136, 0.65);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Helvetica', sans-serif;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footprints-skip-intro:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--footprints-accent-strong);
}

.footprints-phase-map .footprints-skip-intro {
    display: none;
}

body.footprints-intro-boot {
    overflow: hidden !important;
}

.footprints-section.footprints-intro-boot {
    position: fixed !important;
    inset: 0;
    z-index: 3000;
    width: 100%;
    height: 100vh !important;
    height: 100svh !important;
    max-height: none !important;
    min-height: 0 !important;
}

#footprints-india-name-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.84);
    z-index: 5;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    color: var(--footprints-accent-strong);
    text-align: center;
    pointer-events: none;
    opacity: 0;
    letter-spacing: 0.2em;
    text-shadow: 0 12px 34px rgba(235, 98, 136, 0.24);
}

#footprints-overlay-content {
    position: absolute;
    top: 50%;
    left: clamp(28px, 5.4vw, 88px);
    transform: translateY(-50%);
    z-index: 15;
    width: min(420px, 36vw);
    max-width: 440px;
    max-height: calc(100vh - 40px);
    max-height: calc(100svh - 40px);
    padding: 0 16px 0 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    opacity: 0;
    /* Hit target is this column only; map stays interactive to the right */
    pointer-events: auto;
}

#footprints-overlay-content .footprints-section-heading,
#footprints-overlay-content .footprints-menu-heading {
    text-align: left;
    width: 100%;
}

.footprints-section-heading {
    font-size: clamp(42px, 4.4vw, 68px);
    line-height: 0.98;
    font-weight: 400;
    color: var(--footprints-ink);
    margin: 0 0 34px;
    font-family: 'Helvetica', sans-serif;
    letter-spacing: -0.03em;
    max-width: 4.8em;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    text-transform: uppercase;
}

#footprints-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 33, 40, 0.06);
    box-shadow: 0 8px 32px rgba(31, 33, 40, 0.06);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--footprints-accent-strong);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#footprints-pins-container {
    position: absolute;
    inset: 0;
    z-index: 11;
    pointer-events: none;
}

.footprints-phase-globe #footprints-pins-container {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.footprints-phase-map #footprints-pins-container {
    visibility: visible;
    opacity: 1;
    z-index: 35;
}

.footprints-pin-label-container {
    position: absolute;
    pointer-events: auto;
    z-index: 10;
    width: 0;
    height: 0;
    transform: none;
    cursor: pointer;
    isolation: isolate;
}

.footprints-pin-origin {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 7;
}

.footprints-pin-origin-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2c3038;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.footprints-pin-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 1.5px;
    background: rgba(42, 46, 54, 0.55);
    width: var(--pin-line-length, 0px);
    transform-origin: left center;
    rotate: var(--pin-line-angle, 0deg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 4;
}

.footprints-pin-line::after {
    display: none;
}

.footprints-pin-content-wrap {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    left: var(--pin-bubble-x, 0px);
    top: var(--pin-bubble-y, 0px);
    transform: translate(-50%, -50%);
    width: var(--pin-circle-size, 124px);
    margin-left: 0;
}

.footprints-pin-circle {
    width: var(--pin-circle-size, 124px);
    height: var(--pin-circle-size, 124px);
    border-radius: 50%;
    background: var(--footprints-surface-strong);
    border: 3px solid rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 14px 36px rgba(31, 33, 40, 0.2);
}

.footprints-pin-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0.26) 100%);
    pointer-events: none;
}

.footprints-pin-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(0.94) brightness(1.03);
}

.footprints-pin-text {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(var(--pin-circle-size, 124px) + 18px);
    margin-top: -8px;
    margin-left: 0;
    padding: 7px 10px 8px;
    background: #0a0a0b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 4;
    opacity: 0;
    transform: translateY(10px);
    border-radius: 0;
    box-shadow: 0 12px 24px rgba(10, 10, 11, 0.35);
}

.footprints-pin-label-container.is-selected .footprints-pin-line {
    background: rgba(31, 33, 40, 0.78);
}

.footprints-pin-label-container.is-selected .footprints-pin-origin {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42), 0 0 0 9px rgba(255, 255, 255, 0.12);
}

.footprints-pin-label-container.is-selected .footprints-pin-origin-dot {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22);
}

.footprints-pin-label-container.is-selected .footprints-pin-circle {
    border-color: #fff;
    box-shadow: 0 22px 44px rgba(31, 33, 40, 0.22), 0 0 0 7px rgba(255, 255, 255, 0.14);
}

.footprints-pin-label-container.is-selected .footprints-pin-text {
    background: #1f2128;
    color: #fff;
}

.footprints-sidebar-menu {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(52vh, calc(100vh - 220px));
    max-height: min(52vh, calc(100svh - 220px));
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 12px 4px 0;
    margin-left: 0;
    margin-right: 0;
    border-right: 0;
    text-align: left;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(235, 98, 136, 0.28) transparent;
}

.footprints-sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.footprints-sidebar-menu::-webkit-scrollbar-track {
    background: rgba(31, 33, 40, 0.04);
    border-radius: 999px;
}

.footprints-sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(235, 98, 136, 0.32);
    border-radius: 999px;
}

.footprints-menu-heading {
    font-size: clamp(18px, 1.8vw, 26px);
    font-weight: 400;
    color: var(--footprints-ink);
    background: transparent;
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.footprints-accordion-group {
    border-bottom: 1px solid rgba(31, 33, 40, 0.16);
}

.footprints-accordion-group:first-of-type {
    border-top: 1px solid rgba(31, 33, 40, 0.16);
}

.footprints-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--footprints-ink);
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: 'Helvetica', sans-serif;
    letter-spacing: 0.04em;
}

.footprints-menu-item--plain {
    justify-content: flex-start;
}

.footprints-menu-item:hover,
.footprints-accordion-group.active .footprints-menu-item {
    background-color: transparent;
}

.footprints-menu-item .chevron {
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--footprints-ink);
    border-bottom: 1.5px solid var(--footprints-ink);
    transform: rotate(45deg);
    margin-right: 5px;
    transition: transform 0.3s ease;
    pointer-events: none;
    flex-shrink: 0;
}

.footprints-accordion-group.active .footprints-menu-item .chevron {
    transform: rotate(-135deg);
}

.footprints-menu-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 13px;
    line-height: 1.6;
    color: var(--footprints-ink-muted);
    padding: 0 4px;
}

.footprints-accordion-group.active .footprints-menu-body {
    max-height: min(2000px, 120vh);
    padding-bottom: 12px;
}

.footprints-submenu-group {
    border-bottom: 1px solid rgba(31, 33, 40, 0.07);
    margin-bottom: 6px;
}

.footprints-submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--footprints-accent-strong);
    cursor: pointer;
    text-align: left;
    padding: 10px 0 8px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.footprints-submenu-item .chevron.small,
.footprints-detail-item--row .chevron.small {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.footprints-submenu-group.active .footprints-submenu-item .chevron.small {
    transform: rotate(-135deg);
}

.footprints-submenu-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding-left: 14px;
}

.footprints-submenu-group.active .footprints-submenu-body {
    max-height: min(900px, 70vh);
    padding-bottom: 12px;
}

.footprints-detail-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 5px 0;
    color: var(--footprints-ink);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    transition: color 0.22s ease, transform 0.22s ease;
}

.footprints-detail-item:hover {
    color: var(--footprints-accent-strong);
    transform: translateX(4px);
}

.footprints-detail-item.is-active {
    color: var(--footprints-accent-strong);
    font-weight: 600;
}

.footprints-detail-item--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    margin: 0;
    border-bottom: 1px solid rgba(31, 33, 40, 0.07);
    font-size: 14px;
}

.footprints-detail-item--row:last-child {
    border-bottom: 0;
}

.footprints-detail-item--row span:first-child {
    pointer-events: none;
}

@media (max-width: 1280px) {
    #footprints-overlay-content {
        left: clamp(20px, 3.5vw, 56px);
        width: min(390px, 42vw);
        padding: 0 12px 0 0;
    }

    .footprints-sidebar-menu {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .footprints-phase-globe #footprints-canvas-container {
        clip-path: inset(0);
    }

    .footprints-section {
        height: auto;
        max-height: none;
        min-height: 80vh;
        padding-bottom: 24px;
    }

    .footprints-section::before {
        right: 50%;
        transform: translateX(50%);
        top: 5%;
    }

    #footprints-canvas-container {
        position: relative;
        height: 58vh;
        min-height: 420px;
    }

    #footprints-fallback-map {
        right: 50%;
        top: 28px;
        width: min(92vw, 720px);
        transform: translate(50%, 0) rotate(-4deg);
    }

    #footprints-pins-container {
        top: 0;
        right: 0;
        left: 0;
        bottom: auto;
        height: 58vh;
        min-height: 420px;
    }

    #footprints-globe-text,
    #footprints-india-name-label {
        top: 34%;
    }

    #footprints-overlay-content {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 480px;
        max-height: none;
        margin-left: auto;
        margin-right: auto;
        transform: none;
        padding: 36px 20px 0;
        opacity: 1;
        pointer-events: auto;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
    }

    #footprints-overlay-content .footprints-section-heading,
    #footprints-overlay-content .footprints-menu-heading {
        text-align: left;
    }

    .footprints-sidebar-menu {
        width: 100%;
        max-width: 420px;
        max-height: none;
        overflow: visible;
        margin-left: 0;
        margin-right: auto;
        padding: 0 8px 4px 0;
        border-right: 0;
    }

    .footprints-pin-circle {
        width: var(--pin-circle-size, 96px);
        height: var(--pin-circle-size, 96px);
    }

    .footprints-pin-text {
        font-size: 9px;
        padding: 6px 8px 7px;
    }
}

@media (max-width: 768px) {
    #footprints-canvas-container {
        height: 52vh;
        min-height: 360px;
    }

    #footprints-fallback-map {
        top: 34px;
        width: min(96vw, 620px);
    }

    #footprints-pins-container {
        height: 52vh;
        min-height: 360px;
    }

    .footprints-section-heading {
        font-size: 38px;
        margin-bottom: 24px;
    }

    .footprints-menu-heading {
        font-size: 20px;
    }

    .footprints-pin-text {
        font-size: 8px;
        padding: 5px 6px 6px;
        letter-spacing: 0.05em;
    }
}
