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

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

.loc-pattern {
    position: absolute;
    inset: 0;
    background: rgba(223, 240, 238, 0.94);
    pointer-events: none;
}

/* ── Main layout ─────────────────────────────────────────── */
.loc-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── LEFT ────────────────────────────────────────────────── */
.loc-left {
    flex: 0 0 520px;
    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: 2px;
    min-width: 180px;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    margin: 0;
}

.loc-item {
    font-size: 1rem;
    font-weight: 400;
    color: #444;
    padding: 10px 16px;
    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: 16px;
    width: 466px;
    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: 16px;
    height: auto;
    background: transparent;
    padding: 0;
}

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

.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: 10px;
}

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

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

/* India map — dark teal gradient matching Figma */
.loc-pins-svg image {
    filter: sepia(1) saturate(1.8) hue-rotate(150deg) brightness(0.55)
        contrast(1.1);
}

/* ── Pins ────────────────────────────────────────────────── */
.map-pin {
    cursor: pointer;
}

.pin-stem {
    stroke: #c8440e;
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.7;
}

.pin-outer {
    fill: #f0956a;
    transition:
        r 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        fill 0.2s;
}

.pin-inner {
    fill: #e8521a;
}

.map-pin.is-active .pin-outer {
    fill: #e8521a;
    animation: pinPulse 2s ease-out infinite;
}

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

.map-pin.is-active .pin-stem {
    stroke: #e8521a;
}

.map-pin:hover .pin-outer {
    fill: #e8521a;
    r: 15;
}

@keyframes pinPulse {
    0% {
        r: 12;
        opacity: 1;
    }
    60% {
        r: 22;
        opacity: 0;
    }
    100% {
        r: 12;
        opacity: 0;
    }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .loc-left {
        flex: 0 0 440px;
    }
}

@media (max-width: 940px) {
    .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;
    }
}

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