/* Location imagery and editorial cards. Loaded only by location surfaces. */
.location-tile-photo {
    isolation: isolate;
    color: #fff;
    background: #111820;
}

.location-tile-photo::before {
    z-index: 2;
    border-color: rgba(255, 255, 255, .3);
}

.location-tile-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.location-tile-photo:hover .location-tile-image {
    transform: scale(1.03);
}

.location-tile-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(9, 15, 20, .04) 25%, rgba(9, 15, 20, .82) 100%);
}

.location-tile-copy {
    position: relative;
    z-index: 3;
    display: block;
}

.location-tile-copy > span {
    display: block;
}

.location-tile-photo .arrow {
    z-index: 3;
}

.location-index {
    padding-bottom: 25px;
}

.location-card-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 35px;
}

.location-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(17, 24, 32, .1);
}

.location-card-featured {
    grid-column: auto;
}

.location-card-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1.55;
    background: var(--sand);
}

.location-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.location-card:hover .location-card-media img {
    transform: scale(1.03);
}

.location-card-media figcaption,
.location-hero-figure figcaption {
    position: absolute;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 7px;
    color: #fff;
    background: rgba(9, 15, 20, .72);
    font-size: 14px;
    line-height: 1.35;
}

.location-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.location-card-body .eyebrow {
    margin-bottom: 9px;
}

.location-card-body h2,
.location-card-body h3 {
    margin-bottom: 11px;
}

.location-card-body h2 {
    font-size: 31px;
}

.location-card-body h3 {
    font-size: 24px;
}

.location-card-body p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.7;
}

.location-card-link {
    margin-top: auto;
    border-bottom: 1px solid #b9aa98;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.location-intro-note {
    max-width: 760px !important;
    font-size: 16px !important;
    line-height: 1.75;
}

.location-comparison {
    padding-top: 53px;
    padding-bottom: 55px;
    border-top: 1px solid var(--line);
}

.location-comparison > p {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.75;
}

.location-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 31px;
}

.location-comparison-grid > div {
    padding: 20px;
    border-top: 2px solid var(--copper);
    background: var(--sand);
}

.location-comparison-grid h3 {
    margin-bottom: 9px;
    font: 600 14px/1.4 var(--sans);
    letter-spacing: .01em;
}

.location-comparison-grid p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.7;
}

.location-neighbourhoods {
    padding-top: 22px;
}

.location-card-grid-neighbourhood {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 0;
}

.location-card-context .location-card-media img {
    filter: saturate(.9);
}

.location-page-intro {
    padding-bottom: 42px;
}

.location-page-intro > p {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.75;
}

.location-hero-media {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    gap: 30px;
    align-items: stretch;
    margin: 34px 0 29px;
}

.location-hero-figure {
    position: relative;
    min-width: 0;
    min-height: 300px;
    margin: 0;
    overflow: hidden;
    background: var(--sand);
}

.location-hero-figure img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.location-hero-copy {
    align-self: center;
    padding: 23px 0;
}

.location-hero-copy h2 {
    max-width: 520px;
    margin-bottom: 16px;
    font-size: 34px;
}

.location-hero-copy p {
    max-width: 560px;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .location-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .location-card-featured {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .home-page .locations-grid .location-tile-photo {
        min-height: 175px;
    }

    .home-page .locations-grid .location-tile-photo:first-child {
        min-height: 215px;
    }

    .location-card-grid,
    .location-card-grid-neighbourhood,
    .location-comparison-grid {
        grid-template-columns: 1fr;
    }

    .location-card-featured {
        grid-column: auto;
    }

    .location-card-body {
        padding: 17px;
    }

    .location-card-body p,
    .location-comparison > p,
    .location-page-intro > p,
    .location-hero-copy p {
        font-size: 16px;
    }

    .location-hero-media {
        grid-template-columns: 1fr;
        gap: 19px;
        margin-top: 26px;
    }

    .location-hero-figure,
    .location-hero-figure img {
        min-height: 245px;
    }

    .location-hero-copy {
        padding: 0;
    }

    .location-hero-copy h2 {
        font-size: 30px;
    }
}
