/* === our-locations.css === */

.loc-section {
    position: relative;
    background: url("/dist/images/home/locations-bg-figma.png") center center / cover
        no-repeat;
    padding: 70px 60px 80px;
    overflow: hidden;
}

.loc-pattern {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

/* ── Main layout ─────────────────────────────────────────── */
.loc-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}
/* Past the 16" cap the section background bleeds full-width,
   but this is a left-text / right-map layout — keep the content at its 16" width
   and centred so the two halves don't spread apart across a huge screen. */
@media (min-width: 1729px) {
    .loc-section {
        width: var(--bleed-w);
        margin-left: var(--bleed-left);
        margin-right: 0;
    }
    .loc-inner { max-width: 1320px; }
}

/* ── LEFT ────────────────────────────────────────────────── */
.loc-left {
    flex: 0 0 740px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.loc-heading {
    font-size: 60px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 0;
}

/* ── List + Card — stacked, card floats separately ───────── */
.loc-list-card-row {
    display: flex;
    align-items: stretch;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    gap: 0;
}

/* ── Location list — plain, no background ───────────────── */
.loc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    margin: 0;
}

.loc-item {
    font-size: 24px;
    font-weight: 400;
    color: #8a8f92;
    padding: 12px 20px;
    cursor: pointer;
    transition:
        color 0.2s,
        background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: none;
    border-radius: 6px;
    letter-spacing: 0.01em;
}

.loc-item:hover {
    color: #0e3d49;
    background: rgba(14, 61, 73, 0.06);
}

/* Active: dark teal pill */
.loc-item.is-active {
    background: #0e3d49;
    color: #f2f2f2;
    font-weight: 600;
    border-radius: 8px;
}

.loc-item.is-active::before {
    content: "▶";
    font-size: 0.45rem;
}

/* ── Info card — teal gradient, floats right of list ────── */
.loc-card {
    flex: 1;
    background: #93e4dd;
    padding: 12px 20px 6px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    /* box-shadow: 0 8px 32px rgba(26, 92, 107, 0.15); */
    margin-left: 28px;
    width: 480px;
    height: 100px;
}

/* Decorative circle in bottom-right */
.loc-card::before {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.loc-card::after {
    content: "";
    position: absolute;
    right: 30px;
    bottom: -50px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.loc-card.is-updating {
    opacity: 0;
    transform: translateY(8px);
}

.loc-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    background: transparent;
    padding: 0;
}

.loc-card-item {
    background: #93e4dd;
    color: #074158;
    border-radius: 16px;
    padding: 26px 32px;
    min-height: 130px;
    display: flex;
    align-items: center;
    font-size: 34px;
    line-height: 44px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

/* Faint filled location-pin watermark on the right of each card */
.loc-card-item::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -40px;
    width: 150px;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23074158' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E")
        no-repeat center / contain;
    opacity: 0.15;
    pointer-events: none;
}

.loc-card__title {
    font-size: 30px;
    line-height: 34px;
    font-weight: 700;
    color: #074158;
    margin: 0 0 14px;
    letter-spacing: 0%;
}

.loc-card__addr {
    font-size: 1rem;
    font-weight: 500;
    color: #074158;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.loc-card::before,
.loc-card::after {
    display: none;
}

.loc-pins-svg image {
    filter: sepia(1) saturate(1.4) hue-rotate(155deg) brightness(0.62);
}

/* ── Google Maps ─────────────────────────────────────────── */
.loc-gmap-wrap {
    display: none;
    border-radius: 14px;
    overflow: hidden;
    /* box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14); */
    height: 240px;
    translate: none;
    rotate: none;
    scale: none;
    transform: translate(0px, 0px);
    opacity: 1;
    margin-left: 184px;
    margin-top: -104px;
}

.loc-gmap {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── RIGHT: India map ────────────────────────────────────── */
.loc-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.loc-map-container {
    position: relative;
    width: 100%;
    max-width: 567px;
}

.loc-pins-svg {
    display: block;
    width: 100%;
    height: auto;
}

.loc-pins-svg image {
    filter: drop-shadow(4px 6px 4px rgba(0, 0, 0, 0.28));
}

/* ── Pins ────────────────────────────────────────────────── */
/* The coral pins are drawn in the map SVG itself; these are the invisible
   click targets over each pin head, plus a feedback ring on hover/active. */
.map-pin {
    cursor: pointer;
}

.pin-fill {
    fill: #ffaf8d;
    pointer-events: none;
    transition: fill 0.25s ease;
}

.map-pin.is-active .pin-fill {
    fill: #ff5f1a;
}

/* The source map includes one oversized Rajasthan pin. Mask it before the
   standard-sized interactive pin is drawn over the same location. */
.map-large-pin-mask {
    display: block;
    fill: #074158;
    stroke: #074158;
    stroke-width: 6;
}

/* transparent clickable area over the pin head */
.pin-hit {
    fill: transparent;
}

.pin-stem {
    stroke: #d3dcde;
    stroke-width: 2.43;
    pointer-events: none;
}

/* feedback ring — hidden until hover, pulses when active */
.pin-ring {
    fill: none;
    stroke: #ec6a34;
    stroke-width: 2.5;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.map-pin:hover .pin-ring {
    opacity: 0.85;
}

.map-pin.is-active .pin-ring {
    opacity: 1;
    animation: pinPulse 2s ease-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes pinPulse {
    0% {
        opacity: 0.7;
        transform: scale(0.8);
    }
    70% {
        opacity: 0;
        transform: scale(2);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .map-large-pin-mask { display: block; }

    .loc-left {
        flex: 0 0 440px;
    }
}

@media (max-width: 767px) {
    .loc-inner {
        flex-direction: column;
        gap: 36px;
    }
    .loc-left {
        flex: none;
        width: 100%;
    }
    .loc-map-container {
        max-width: 380px;
        margin: 0 auto;
    }
    .loc-section {
        padding: 50px 28px 60px;
    }
}

/* Phone: the office card nests inside the active state pill (moved there by JS)
   and reads as an indented sub-list beneath the state name. */
@media (max-width: 767px) {
    .loc-item.is-active {
        flex-wrap: wrap;
    }
    .loc-item .loc-card {
        flex-basis: 100%;
        width: 100%;
        margin: 10px 0 2px;
        gap: 4px;
        /* override the desktop GSAP scroll-entrance so the nested list is always shown */
        opacity: 1 !important;
        transform: none !important;
    }
    .loc-item .loc-card-item {
        background: transparent;
        color: rgba(242, 242, 242, 0.85);
        border-radius: 0;
        border-left: 2px solid rgba(242, 242, 242, 0.35);
        padding: 2px 0 2px 14px;
        min-height: 0;
        font-size: 15px;
        line-height: 22px;
        font-weight: 400;
    }
    .loc-item .loc-card-item::after {
        display: none;   /* drop the big pin watermark in the compact list */
    }
}

@media (max-width: 520px) {
    .loc-list-card-row {
        flex-direction: column;
        gap: 16px;
    }
    .loc-card {
        margin-left: 0;
    }
    .loc-map-container {
        max-width: 300px;
    }
}
