.location {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    margin-top: 128px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(79, 138, 61, 0.12) 0%, transparent 42%),
        linear-gradient(135deg, #f8faf5 0%, #eef4e8 45%, #e4eddc 100%);
}

.location::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600' fill='none'%3E%3Cpath d='M-40 120 C 120 40 240 200 400 120 S 680 40 840 120' stroke='%234F8A3D' stroke-opacity='0.08' stroke-width='1.5'/%3E%3Cpath d='M-40 220 C 160 140 280 300 440 220 S 700 140 840 220' stroke='%234F8A3D' stroke-opacity='0.06' stroke-width='1.5'/%3E%3Cpath d='M-40 320 C 100 240 260 400 420 320 S 660 240 840 320' stroke='%23356024' stroke-opacity='0.07' stroke-width='1.5'/%3E%3Cpath d='M-40 420 C 140 340 300 500 460 420 S 720 340 840 420' stroke='%234F8A3D' stroke-opacity='0.05' stroke-width='1.5'/%3E%3Cpath d='M-40 520 C 120 440 240 600 400 520 S 680 440 840 520' stroke='%23356024' stroke-opacity='0.06' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.location::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        var(--white) 0%,
        rgba(255, 255, 255, 0) 50%,
        var(--white) 100%
    );
}

.location__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 0 var(--section-pad);
}

.location__heading-wrap {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    flex-shrink: 0;
}

.location__map-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: clamp(32px, 5vw, 64px) var(--container-pad) 0;
}

.location__map-frame {
    position: relative;
    width: 100%;
    max-width: min(1120px, 92vw);
    padding: clamp(12px, 1.6vw, 20px);
    background: var(--white);
    border-radius: clamp(24px, 4vw, 48px);
    box-shadow: var(--shadow);
}

.location__map {
    display: block;
    width: 100%;
    height: auto;
    border-radius: clamp(16px, 2.5vw, 32px);
    border: 1px solid var(--line);
}

.location__panel {
    position: absolute;
    left: calc(-1 * clamp(16px, 3vw, 28px));
    bottom: calc(-1 * clamp(16px, 3vw, 28px));
    z-index: 2;
    width: min(320px, 92%);
    padding: clamp(18px, 2.5vw, 24px);
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.location__panel-title {
    margin-bottom: 14px;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-dark);
}

.location__distances {
    display: grid;
    gap: 12px;
}

.location__distance {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location__distance-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-light);
    font-size: 1.2rem;
    line-height: 1;
}

.location__distance-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location__distance-label {
    font-size: var(--fs-small);
    line-height: 1.3;
    color: var(--muted);
}

.location__distance-value {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.location__route {
    position: absolute;
    right: calc(-1 * clamp(16px, 3vw, 28px));
    bottom: calc(-1 * clamp(16px, 3vw, 28px));
    z-index: 2;
    min-height: 64px;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 32px;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    background: var(--green-dark);
    box-shadow: 0 24px 64px rgba(31, 42, 27, 0.38);
}

.location__route:hover {
    background: var(--green);
    color: var(--white);
}

.location__route-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.location__heading-bg {
    display: block;
    width: 100%;
    height: clamp(140px, 22vw, 240px);
    object-fit: fill;
    pointer-events: none;
    border-radius: 0;
}

.location__title {
    position: absolute;
    top: clamp(28px, 4.5vw, 52px);
    left: 50%;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);
    margin: 0;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.5vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 0 clamp(32px, 5vw, 64px) clamp(52px, 7vw, 84px);
    white-space: nowrap;
}

.location__title-icon {
    display: flex;
    flex-shrink: 0;
    color: #e53935;
}

.location__title-icon svg {
    display: block;
    width: clamp(56px, 7vw, 80px);
    height: clamp(56px, 7vw, 80px);
}

.location__title-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.location__title-line {
    display: block;
}

@media (max-width: 560px) {
    .location {
        margin-top: 80px;
        min-height: auto;
        min-height: 0;
    }

    .location__inner {
        min-height: auto;
        min-height: 0;
        padding-bottom: 32px;
    }

    .location__heading-bg {
        height: clamp(120px, 34vw, 180px);
    }

    .location__title {
        top: clamp(20px, 5vw, 32px);
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        gap: 10px;
        padding-bottom: clamp(40px, 10vw, 56px);
        white-space: normal;
    }

    .location__title-icon svg {
        width: clamp(44px, 11vw, 56px);
        height: clamp(44px, 11vw, 56px);
    }

    .location__map-wrap {
        padding: 24px var(--container-pad) 0;
    }

    .location__panel {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        max-width: none;
        margin-bottom: 16px;
    }

    .location__route {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 16px;
        min-height: 56px;
        padding: 16px 20px;
        font-size: 0.95rem;
        gap: 12px;
    }

    .location__route-icon {
        width: 36px;
        height: 36px;
    }
}
