
/* =========================================
   LOCATION — MAP & DIRECTIONS
========================================= */

.location-directions {
    width: 100%;
    padding: clamp(70px, 6vw, 110px) 0;

    background: #f3f0e9;
    color: #1f2925;

    scroll-margin-top: var(--header-height);
}

.location-directions__container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-inline: clamp(24px, 5.5vw, 100px);
}

/* =========================================
   SECTION HEADER
========================================= */

.location-directions__heading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 60px;

    margin-bottom: 48px;
}

.location-directions__eyebrow,
.location-directions__building,
.location-directions__transport-number {
    display: block;
    color: #a97b42;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    
}
.location-directions__eyebrow{
    margin-bottom: 28px;
}

.location-directions__title {
    margin: 0;
    font-size: 45px;
    font-weight: 100;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.location-directions__intro {
    max-width: 540px;
    margin: 0 0 10px;
    color: #56615a;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    margin-left: auto;
}

/* =========================================
   MAIN CONTENT — ADDRESS / MAP
========================================= */

.location-directions__main {
    display: grid;
    grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
    align-items: stretch;
    gap: clamp(40px, 5vw, 90px);

    width: 100%;
}

/* =========================================
   LEFT — ADDRESS
========================================= */

.location-directions__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding: 15px 0;
}

.location-directions__address {
    display: flex;
    flex-direction: column;
    gap: 5px;

    width: 100%;
    margin-top: 28px;

    font-style: normal;
}

.location-directions__address span:first-child {
    color: #1f2925;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.1;
}

.location-directions__address span:last-child {
    color: #56615a;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
}

/* SEPARATOR */

.location-directions__separator {
    width: 100%;
    height: 1px;

    margin: 36px 0 30px;
    background: rgba(31, 41, 37, 0.15);
}

/* PRIMARY CTA */

.location-directions__primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    min-height: 50px;
    padding: 0 22px;

    background: #1d2724;
    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;

    transition: background-color 0.25s ease;
}

.location-directions__primary:hover {
    background: #34423b;
}

.location-directions__primary svg,
.location-directions__text-link svg,
.location-directions__transport-link svg {
    display: block;
    width: 24px;
    height: 18px;
    flex-shrink: 0;

    transition: transform 0.25s ease;
}

.location-directions__primary:hover svg,
.location-directions__text-link:hover svg,
.location-directions__transport-link:hover svg {
    transform: translateX(5px);
}

/* GOOGLE MAPS LINK */

.location-directions__text-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    margin-top: 32px;
    padding-bottom: 13px;

    border-bottom: 1px solid rgba(31, 41, 37, 0.5);

    color: #1f2925;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;

    transition: color 0.25s ease;
}

.location-directions__text-link:hover {
    color: #a97b42;
}

/* COPY ADDRESS */

.location-directions__copy {
    margin-top: 26px;
    padding: 0 0 7px;

    border: none;
    border-bottom: 1px solid rgba(31, 41, 37, 0.35);
    border-radius: 0;

    background: transparent;
    color: #56615a;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;

    transition: color 0.25s ease;
}

.location-directions__copy:hover {
    color: #a97b42;
}

.location-directions__copy-status {
    margin-top: 10px;

    color: #56615a;
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.location-directions__copy-status:empty {
    display: none;
}

/* =========================================
   RIGHT — GOOGLE MAP
========================================= */

.location-directions__map {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 440px;

    aspect-ratio: 1.65 / 1;

    overflow: hidden;
    background: #dedbd4;
}

.location-directions__map iframe {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    border: 0;
}

/* =========================================
   TRANSPORT OPTIONS
========================================= */

.location-directions__transport {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(30px, 4vw, 75px);

    margin-top: 60px;
    padding-top: 34px;

    border-top: 1px solid rgba(31, 41, 37, 0.15);
}

.location-directions__transport-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.location-directions__transport-title {
    margin: 16px 0 0;

    color: #1f2925;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.15;
}

.location-directions__transport-description {
    max-width: 440px;
    margin: 16px 0 0;

    color: #56615a;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

.location-directions__transport-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    margin-top: auto;
    padding: 32px 0 14px;

    border-bottom: 1px solid rgba(31, 41, 37, 0.5);

    color: #1f2925;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;

    transition: color 0.25s ease;
}

.location-directions__transport-link:hover {
    color: #a97b42;
}

/* ACCESSIBILITY */

.location-directions a:focus-visible,
.location-directions button:focus-visible {
    outline: 2px solid #a97b42;
    outline-offset: 5px;
}

/* =========================================
   TABLET — MAX 1024px
========================================= */

@media (max-width: 1024px) {

    .location-directions__heading {
        gap: 36px;
    }

    .location-directions__main {
        grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
        gap: 32px;
    }

    .location-directions__map {
        min-height: 340px;
    }

    .location-directions__transport {
        gap: 25px;
    }

}

/* =========================================
   MOBILE — MAX 740px
========================================= */

@media (max-width: 840px) {

    .location-directions {
        padding: 64px 0;
    }

    .location-directions__container {
        padding-inline: 20px;
    }

    /* HEADING */

    .location-directions__heading {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 36px;
    }

    .location-directions__eyebrow {
        font-size: 11px;
    }

    .location-directions__title {
        margin-top: 22px;
        font-size: clamp(44px, 10vw, 62px);
    }

    .location-directions__intro {
        margin: 0;
        font-size: 16px;
    }

    /* ADDRESS & MAP */

    .location-directions__main {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .location-directions__details {
        padding: 0;
    }

    .location-directions__address {
        margin-top: 22px;
    }


    .location-directions__address span:last-child {
        font-size: 16px;
    }

    .location-directions__separator {
        margin: 28px 0 24px;
    }

    .location-directions__primary {
        max-width: 350px;
    }

    .location-directions__map {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    /* TRANSPORT */

    .location-directions__transport {
        grid-template-columns: 1fr;
        gap: 0;

        margin-top: 44px;
        padding-top: 0;
    }

    .location-directions__transport-item {
        padding: 28px 0;
        border-bottom: 1px solid rgba(31, 41, 37, 0.15);
    }

    .location-directions__transport-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .location-directions__transport-description {
        font-size: 15px;
    }

    .location-directions__transport-link {
        margin-top: 22px;
        padding: 0 0 7px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .location-directions__title {
        font-size: clamp(40px, 10vw, 48px);
    }

    .location-directions__map {
        aspect-ratio: 1 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .location-directions a,
    .location-directions a svg,
    .location-directions button {
        transition: none;
    }
}

/* Mapa nie pobiera Google Maps przed zgodą funkcjonalną CookieYes. */
.location-directions__map { position: relative; }
.location-directions__map-consent {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 18px;
    padding: 26px; text-align: center; background: #e7e4dc; color: #1f2925;
}
.location-directions__map-consent[hidden] { display: none !important; }
.location-directions__map-consent p { max-width: 340px; margin: 0; font: 400 15px/1.6 "Inter", sans-serif; }
.location-directions__map-consent button {
    border: 1px solid #1f2925; background: transparent; padding: 12px 18px;
    cursor: pointer; color: #1f2925; font: 500 13px "Inter", sans-serif;
}
.location-directions__map-consent button:hover { background: #1f2925; color: white; }
