/* ================================
   Contact page - Location component
================================ */

.contact-location {
    margin-top: 70px;
}

.contact-location-heading {
    margin-bottom: 30px;
    max-width: 720px;
}

.contact-location-heading .eyebrow {
    color: #2f783a;
}

.contact-location-heading h2 {
    margin: 10px 0;
    color: #263840;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.7;
}

.contact-location-heading p {
    color: #66766f;
    line-height: 2;
    margin: 0;
}

.location-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    direction: rtl;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3eae5;
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(7, 28, 24, .09);
}

.location-map {
    position: relative;
    min-width: 0;
    min-height: 440px;
    padding: 12px;
    background: #eaf0eb;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 416px;
    border: 0;
    border-radius: 16px;
}

.location-map-label {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    max-width: calc(100% - 50px);
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(38, 56, 64, .08);
    box-shadow: 0 5px 22px rgba(7, 28, 24, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

.location-map-label-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    color: white;
    background: #2f783a;
}

.location-map-label-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-map-label strong {
    display: block;
    color: #263840;
    font-size: 13px;
    margin-bottom: 4px;
}

.location-map-label small {
    display: block;
    color: #708078;
    font-size: 11px;
    line-height: 1.8;
}

.location-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(24px, 3vw, 40px);
    background: linear-gradient(145deg, #fff 0%, #f3f7f3 100%);
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    margin-bottom: 20px;
    border-radius: 30px;
    color: #286c36;
    background: #e8f2e9;
    border: 1px solid #d9e9db;
    font-size: 12px;
    font-weight: 700;
}

.location-tag span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #2f783a;
}

.location-details h3 {
    color: #263840;
    font-size: clamp(21px, 2.4vw, 28px);
    line-height: 1.8;
    margin: 0 0 12px;
}

.location-intro {
    margin: 0 0 26px;
    color: #66766f;
    font-size: 13px;
    line-height: 2.1;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
    margin-bottom: 22px;
}

.location-item-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    color: #2f783a;
    background: #e5f0e6;
    border-radius: 12px;
}

.location-item-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-item-content {
    min-width: 0;
}

.location-item-content strong {
    display: block;
    color: #263840;
    font-size: 13px;
    margin-bottom: 6px;
}

.location-item-content p,
.location-item-content a {
    color: #65756d;
    font-size: 12px;
    line-height: 2.1;
    margin: 0;
    overflow-wrap: anywhere;
}

.location-item-content a {
    text-decoration: none;
}

.location-item-content a:hover {
    color: #2f783a;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.location-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 47px;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.location-action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-action:hover {
    transform: translateY(-2px);
}

.location-action-primary {
    color: #fff;
    background: #2f783a;
    box-shadow: 0 6px 16px rgba(47, 120, 58, .17);
}

.location-action-primary:hover {
    color: #fff;
    background: #245e2d;
}

.location-action-secondary {
    color: #263840;
    background: #fff;
    border-color: #dce5df;
}

.location-action-secondary:hover {
    background: #edf4ee;
}

@media (max-width: 850px) {
    .location-card {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 370px;
    }

    .location-map iframe {
        min-height: 346px;
    }

    .location-details {
        padding: 30px;
    }
}

@media (max-width: 520px) {
    .contact-location {
        margin-top: 48px;
    }

    .location-card {
        border-radius: 18px;
    }

    .location-map {
        min-height: 300px;
        padding: 8px;
    }

    .location-map iframe {
        min-height: 284px;
        border-radius: 12px;
    }

    .location-map-label {
        top: 17px;
        right: 17px;
        max-width: calc(100% - 34px);
        padding: 9px 11px;
    }

    .location-map-label-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .location-details {
        padding: 23px 19px;
    }

    .location-actions {
        flex-direction: column;
    }

    .location-action {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .location-action {
        transition: none;
    }

    .location-action:hover {
        transform: none;
    }
}
