/* ==========================================================================
   Motomarine v3 · Locations
   .cs-loc = location card (Google map embed or photo on top, name, icon
   rows for address / phone / hours, buttons; --wide = 2-up with an Open in
   Maps chip, a status badge, copy and a full button); .cs-loc-bigmap + .cs-loc-stack of
   .cs-loc-mini cards (one big map beside stacked compact yard cards); .cs-loc-panel (photo under a navy
   gradient, title + address at rest, centred title + button on hover). Cards drop the border for a shadow on .bg-lighter;
   --dark = dark card recipe.
   ========================================================================== */

/* --- Location card --- */
.cs-loc {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    transition: box-shadow .2s;
}
.cs-loc:hover {
    box-shadow: var(--shadow);
}
.cs-loc__map iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
}
.cs-loc__photo {
    display: block;
    overflow: hidden;
}
.cs-loc__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 20 / 13;
    object-fit: cover;
    transition: transform .6s ease;
}
.cs-loc:hover .cs-loc__photo img {
    transform: scale(1.04);
}
.cs-loc__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 26px 28px;
}
.cs-loc__body h3 {
    margin-bottom: 8px;
}
.cs-loc__desc {
    margin: 0 0 14px;
}
.cs-loc__rows {
    margin: 4px 0 24px;
    padding: 0;
    list-style: none;
}
.cs-loc__rows li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}
.cs-loc__rows li + li {
    margin-top: 8px;
}
.cs-loc__rows i {
    display: flex;
    flex: 0 0 auto;
    margin-top: 3px;
    line-height: 1;
    font-size: 16px;
    color: var(--primary);
}
.cs-loc__rows a {
    color: var(--heading);
    text-decoration: none;
    transition: color .2s;
}
.cs-loc__rows a:hover {
    color: var(--primary);
}
.cs-loc__body .cs-btn-row {
    margin-top: auto;
}
.bg-lighter .cs-loc {
    border: 0;
    box-shadow: var(--shadow);
}
.bg-lighter .cs-loc:hover {
    box-shadow: var(--shadow-lg);
}
.cs-loc--dark {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}
.cs-loc--dark:hover {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}
.cs-loc--dark .cs-loc__body h3 {
    color: var(--white);
}
.cs-loc--dark .cs-loc__desc,
.cs-loc--dark .cs-loc__rows li {
    color: rgba(255, 255, 255, .72);
}
.cs-loc--dark .cs-loc__rows a {
    color: var(--white);
}

/* --- Wide map cards: 2-up, Open in Maps chip, name + badge, rows, copy, button --- */
.cs-loc--wide .cs-loc__map {
    position: relative;
}
.cs-loc--wide .cs-loc__map iframe {
    height: 260px;
}
.cs-loc__open {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 0;
    background: var(--white);
    box-shadow: rgba(0, 0, 0, .1) 0 0 5px 0, rgba(0, 0, 0, .1) 0 0 1px 0;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--heading);
    text-decoration: none;
    transition: color .2s;
}
.cs-loc__open i {
    display: flex;
    line-height: 1;
    font-size: 12px;
}
.cs-loc__open:hover {
    color: var(--primary);
}
.cs-loc--wide .cs-loc__body {
    padding: 30px 32px 32px;
}
.cs-loc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 18px;
}
.cs-loc__head h3 {
    margin: 0;
}
.cs-loc--wide .cs-loc__rows {
    margin: 0 0 18px;
}
.cs-loc--wide .cs-loc__rows li + li {
    margin-top: 10px;
}
.cs-loc--wide .cs-loc__desc {
    margin: 0 0 24px;
}
.cs-loc--wide .cs-btn {
    margin-top: auto;
}

/* --- Big map + location list --- */
.cs-loc-bigmap {
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    border-radius: 0;
    background: var(--light-bg);
}
.cs-loc-bigmap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
}
.cs-loc-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}
.cs-loc-mini {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    transition: box-shadow .2s;
}
.cs-loc-mini:hover {
    box-shadow: var(--shadow);
}
.cs-loc-mini__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--primary-tint-10);
    color: var(--primary);
    font-size: 20px;
}
.cs-loc-mini__icon i {
    display: flex;
    line-height: 1;
}
.cs-loc-mini__body {
    flex: 1 1 auto;
    min-width: 0;
}
.cs-loc-mini__body h3 {
    margin-bottom: 4px;
}
.cs-loc-mini__body p {
    margin: 0 0 4px;
    font-size: 15px;
}
.cs-loc-mini__hours {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.cs-loc-mini__hours i {
    display: flex;
    line-height: 1;
    color: var(--primary);
}
.cs-loc-mini__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-top: 12px;
}
.cs-loc-mini__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
    text-decoration: none;
    transition: color .2s;
}
.cs-loc-mini__links a i {
    display: flex;
    line-height: 1;
    color: var(--primary);
}
.cs-loc-mini__links a:hover {
    color: var(--primary);
}
.bg-lighter .cs-loc-mini {
    border: 0;
    box-shadow: var(--shadow);
}
.cs-loc-mini--dark {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}
.cs-loc-mini--dark:hover {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}
.cs-loc-mini--dark .cs-loc-mini__icon {
    background: var(--primary);
    color: var(--white);
}
.cs-loc-mini--dark h3,
.cs-loc-mini--dark .cs-loc-mini__links a {
    color: var(--white);
}
.cs-loc-mini--dark .cs-loc-mini__body p {
    color: rgba(255, 255, 255, .72);
}

/* --- Photo panels: navy overlay, title + address at rest, centred title + button on hover --- */
.cs-loc-panel {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: var(--heading);
}
.cs-loc-panel > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    transition: transform .6s ease;
}
.cs-loc-panel > img {
    filter: brightness(.82);
}
.cs-loc-panel:hover > img {
    transform: scale(1.04);
}
.cs-loc-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(15, 23, 43, .9) 0%, rgba(15, 23, 43, .35) 50%, rgba(15, 23, 43, .1) 100%);
    transition: background .3s;
}
.cs-loc-panel:hover::before {
    background: rgba(15, 23, 43, .72);
}
.cs-loc-panel__rest,
.cs-loc-panel__hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 32px;
    color: var(--white);
    transition: opacity .3s ease, transform .3s ease;
}
.cs-loc-panel__rest {
    align-items: flex-start;
    justify-content: flex-end;
}
.cs-loc-panel__hover {
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
}
.cs-loc-panel:hover .cs-loc-panel__rest {
    opacity: 0;
}
.cs-loc-panel:hover .cs-loc-panel__hover {
    opacity: 1;
    transform: none;
}
.cs-loc-panel .h3 {
    margin: 0 0 6px;
    color: var(--white);
}
.cs-loc-panel__line {
    display: block;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .8);
}
.cs-loc-panel__hover .cs-btn {
    margin-top: 22px;
}
.cs-loc-panels__note {
    max-width: 900px;
    margin: 40px auto 28px;
    text-align: center;
}

/* --- Dark contact split: navy copy half with contact grid, photo half edge to edge --- */
.cs-splitcontact .row {
    min-height: 100%;
}
.cs-splitcontact__body {
    max-width: 660px;
    margin-left: auto;
    padding: 80px 64px 80px 24px;
}
.cs-splitcontact__body .head-label {
    margin-bottom: 7px;
}
.cs-splitcontact__body h2 {
    margin-bottom: 12px;
}
.cs-splitcontact__body > p {
    max-width: 600px;
    margin: 0 0 28px;
}
ul.cs-splitcontact__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 32px;
}
.cs-splitcontact__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
}
.cs-splitcontact__list li i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1;
    color: var(--primary);
    background: rgba(255, 255, 255, .08);
    margin-top: -4px;
}
.cs-splitcontact__list a {
    color: inherit;
    text-decoration: none;
}
.cs-splitcontact__list a:hover {
    color: var(--primary);
}
.cs-splitcontact__hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 0;
    width: 100%;
}
.cs-splitcontact__hours dt {
    font-weight: 400;
    white-space: nowrap;
    color: rgba(255, 255, 255, .6);
}
.cs-splitcontact__hours dd {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}
.cs-splitcontact__media {
    position: relative;
    height: 100%;
    min-height: 420px;
}
.cs-splitcontact__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.cs-splitcontact--reverse .cs-splitcontact__media img {
    filter: brightness(.92);
}
.cs-splitcontact--reverse .cs-splitcontact__body {
    margin-left: 0;
    margin-right: auto;
    padding: 80px 24px 80px 64px;
}
.bg-lighter .cs-splitcontact__list li {
    color: var(--heading);
}
.bg-lighter .cs-splitcontact__list li i {
    background: var(--primary-tint-10);
}
.bg-lighter .cs-splitcontact__hours dt {
    color: var(--muted);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .cs-loc-bigmap,
    .cs-loc-bigmap iframe {
        min-height: 380px;
    }
    .cs-splitcontact__body,
    .cs-splitcontact--reverse .cs-splitcontact__body {
        max-width: none;
        padding: 48px 32px;
    }
    .cs-splitcontact__media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    /* Photo stays on top when the columns stack */
    .cs-splitcontact:not(.cs-splitcontact--reverse) .row > :first-child {
        order: 2;
    }
}
@media (max-width: 575px) {
    .cs-loc__body {
        padding: 20px 20px 22px;
    }
    .cs-loc__map iframe,
    .cs-loc--wide .cs-loc__map iframe {
        height: 200px;
    }
    .cs-loc--wide .cs-loc__body {
        padding: 22px 20px 24px;
    }
    .cs-loc__head {
        flex-wrap: wrap;
        gap: 8px;
    }
    .cs-loc-bigmap,
    .cs-loc-bigmap iframe {
        min-height: 280px;
    }
    .cs-loc-panel__rest,
    .cs-loc-panel__hover {
        padding: 20px;
    }
    .cs-splitcontact__body,
    .cs-splitcontact--reverse .cs-splitcontact__body {
        padding: 40px 20px;
    }
    ul.cs-splitcontact__list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Contact split used as the first section under the overlay header --- */
.cs-overlaybar ~ main > .cs-splitcontact:first-child .cs-splitcontact__body {
    padding-top: 200px;
}
.cs-splitcontact__body .cs-breadcrumb {
    margin-bottom: 18px;
}
.cs-overlaybar ~ main > .cs-splitcontact:first-child .cs-splitcontact__media::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 190px;
    background: linear-gradient(to bottom, rgba(13, 22, 41, .8), rgba(13, 22, 41, 0));
    pointer-events: none;
}

@media (max-width: 991px) {
    .cs-overlaybar ~ main > .cs-splitcontact:first-child .cs-splitcontact__body {
        padding-top: 170px;
    }
}
@media (max-width: 575px) {
    .cs-overlaybar ~ main > .cs-splitcontact:first-child .cs-splitcontact__body {
        padding-top: 140px;
    }
}

/* ==========================================================================
   v5 · Two-tone location icons: solid red round chip with a light red
   ring, sizes unchanged.
   ========================================================================== */
.cs-splitcontact__list li i,
.cs-loc-mini__icon {
    border-radius: 50%;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .14);
}
.bg-dark .cs-splitcontact__list li i,
.bg-dark .cs-loc-mini__icon {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .28);
}

/* ==========================================================================
   v5 · Contact split, gray: the contact rows become white tiles in a
   two by two grid, soft red icon chips, and a corner of fading dots on the
   grey panel.
   ========================================================================== */
.bg-lighter > .cs-splitcontact__body {
    position: relative;
}
.bg-lighter:has(> .cs-splitcontact__body) {
    position: relative;
    overflow: hidden;
}
.bg-lighter:has(> .cs-splitcontact__body)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background-image: radial-gradient(rgba(41, 64, 111, .22) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(225deg, #000, transparent 70%);
    mask-image: linear-gradient(225deg, #000, transparent 70%);
    pointer-events: none;
}
.bg-lighter ul.cs-splitcontact__list {
    gap: 12px;
}
.bg-lighter .cs-splitcontact__list li {
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--border-light);
    background: var(--white);
    box-shadow: rgba(0, 0, 0, .1) 0 0 5px 0, rgba(0, 0, 0, .1) 0 0 1px 0;
}
.bg-lighter .cs-splitcontact__list li i {
    width: 40px;
    height: 40px;
    margin-top: 0;
    font-size: 16px;
    color: var(--primary);
    background: var(--primary-tint-10);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .04);
}
.bg-lighter .cs-splitcontact__list li:has(.cs-splitcontact__hours) {
    align-items: flex-start;
}
.bg-lighter .cs-splitcontact__hours {
    gap: 4px 14px;
    font-size: 14px;
}
.bg-lighter .cs-splitcontact__body .cs-imgtext__actions {
    margin-top: 28px;
}
@media (max-width: 575px) {
    .bg-lighter ul.cs-splitcontact__list {
        grid-template-columns: 1fr;
    }
    .bg-lighter:has(> .cs-splitcontact__body)::before {
        width: 130px;
        height: 130px;
    }
}

/* --- Contact split, dark: same tiles on the navy panel --- */
.bg-dark:has(> .cs-splitcontact__body) {
    position: relative;
    overflow: hidden;
}
.bg-dark > .cs-splitcontact__body {
    position: relative;
}
.bg-dark:has(> .cs-splitcontact__body)::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(225deg, #000, transparent 70%);
    mask-image: linear-gradient(225deg, #000, transparent 70%);
    pointer-events: none;
}
.bg-dark ul.cs-splitcontact__list {
    gap: 12px;
}
.bg-dark .cs-splitcontact__list li {
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
}
.bg-dark .cs-splitcontact__list li i {
    width: 40px;
    height: 40px;
    margin-top: 0;
    font-size: 16px;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .25);
}
.bg-dark .cs-splitcontact__list li:has(.cs-splitcontact__hours) {
    align-items: flex-start;
}
.bg-dark .cs-splitcontact__hours {
    gap: 4px 14px;
    font-size: 14px;
}
.bg-dark .cs-splitcontact__body .cs-imgtext__actions {
    margin-top: 28px;
}
@media (max-width: 575px) {
    .bg-dark ul.cs-splitcontact__list {
        grid-template-columns: 1fr;
    }
    .bg-dark:has(> .cs-splitcontact__body)::before {
        width: 130px;
        height: 130px;
    }
}

/* ==========================================================================
   v5 · Modern location cards (.cs-locs--modern on the row)
   Light hairline cards, contact rows with round tint icons, buttons on a
   hairline at the foot, pill badges and a pill "Open in Maps" link.
   ========================================================================== */
.cs-locs--modern .cs-loc {
    border-color: var(--border-light);
    box-shadow: rgba(15, 23, 43, .05) 0 1px 3px 0;
}
.cs-locs--modern .cs-loc__body {
    padding: 28px 28px 26px;
}
.cs-locs--modern .cs-loc__body h3 {
    margin-bottom: 16px;
}
.cs-locs--modern .cs-loc__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 22px;
}
.cs-locs--modern .cs-loc__rows li {
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}
.cs-locs--modern .cs-loc__rows li + li {
    margin-top: 0;
}
.cs-locs--modern .cs-loc__rows i {
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 0;
    border-radius: 50%;
    font-size: 14px;
    background: var(--primary-tint-10);
}
.cs-locs--modern .cs-loc__rows a {
    font-weight: 600;
}
.cs-locs--modern .cs-loc__body .cs-btn-row {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.cs-locs--modern .cs-loc__open {
    border-radius: 40px;
    padding-right: 12px;
    padding-left: 12px;
}
.cs-locs--modern .cs-loc__head .cs-badge {
    border-radius: 40px;
    padding-right: 10px;
    padding-left: 10px;
}
.bg-lighter .cs-locs--modern .cs-loc {
    border-color: transparent;
}
.cs-locs--modern .cs-loc--dark,
.bg-dark .cs-locs--modern .cs-loc {
    border-color: rgba(255, 255, 255, .12);
    box-shadow: none;
}
.bg-dark .cs-locs--modern .cs-loc__rows i {
    color: var(--white);
    background: var(--primary);
}
.bg-dark .cs-locs--modern .cs-loc__body .cs-btn-row {
    border-top-color: rgba(255, 255, 255, .12);
}

/* --- Photo panels: red dash before the name, pill address line --- */
.cs-locs--modern .cs-loc-panel__rest .h3,
.cs-locs--modern .cs-loc-panel__hover .h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cs-locs--modern .cs-loc-panel__rest .h3::before,
.cs-locs--modern .cs-loc-panel__hover .h3::before {
    content: '';
    flex: 0 0 auto;
    width: 20px;
    height: 2px;
    background: var(--primary);
}


/* ==========================================================================
   v5 · Location cards, richer pass
   City pill over the map or photo, type eyebrow over a bigger city name,
   contact rows as soft tiles with white icon chips, and the buttons on a
   tinted foot strip. Big map: one panel with the first yard highlighted.
   Photo panels: a type pill in the top-left corner.
   ========================================================================== */
.cs-locs--modern .cs-loc__map,
.cs-locs--modern .cs-loc__photo {
    position: relative;
}
.cs-loc__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--heading);
    background: var(--white);
    box-shadow: rgba(15, 23, 43, .12) 0 2px 8px 0;
    pointer-events: none;
}
.cs-loc__tag i {
    font-size: 12px;
    color: var(--primary);
}
.cs-locs--modern .cs-loc__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 43, .35), rgba(15, 23, 43, 0) 45%);
    pointer-events: none;
}
.cs-loc__type {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--primary-text);
}
.cs-loc__type::before {
    content: '';
    width: 18px;
    height: 2px;
    background: currentColor;
}
.cs-locs--modern .cs-loc__type + h3 {
    font-size: 24px;
    margin-bottom: 18px;
}
.cs-locs--modern .cs-loc__rows {
    gap: 8px;
    width: 100%;
}
.cs-locs--modern .cs-loc__rows li {
    padding: 9px 12px;
    background: var(--bg-light);
}
.cs-locs--modern .cs-loc__rows i {
    color: var(--primary);
    background: var(--white);
    box-shadow: rgba(15, 23, 43, .08) 0 1px 3px 0;
}
.cs-locs--modern .cs-loc__body .cs-btn-row {
    width: calc(100% + 56px);
    margin: auto -28px -26px;
    padding: 18px 28px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}
.bg-lighter .cs-locs--modern .cs-loc__rows li {
    background: #f3f4f7;
}
.bg-dark .cs-locs--modern .cs-loc__rows li {
    background: rgba(255, 255, 255, .05);
}
.bg-dark .cs-locs--modern .cs-loc__rows i {
    color: var(--white);
    background: var(--primary);
    box-shadow: none;
}
.bg-dark .cs-locs--modern .cs-loc__body .cs-btn-row {
    border-top-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
}

/* --- Wide map cards: rows in two columns, address across the top --- */
.cs-locs--modern .cs-loc--wide .cs-loc__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cs-locs--modern .cs-loc--wide .cs-loc__rows li:first-child {
    grid-column: 1 / -1;
}

/* --- Big map: one panel, first yard highlighted --- */
.cs-loc-stack {
    border: 1px solid var(--border-light);
    background: var(--white);
    box-shadow: rgba(15, 23, 43, .05) 0 1px 3px 0;
}
.cs-loc-stack .cs-loc-mini {
    position: relative;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: none;
}
.cs-loc-stack .cs-loc-mini + .cs-loc-mini {
    border-top: 1px solid var(--border-light);
}
.cs-loc-stack .cs-loc-mini:first-child {
    background: var(--bg-light);
}
.cs-loc-stack .cs-loc-mini:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--primary);
}
.cs-loc-stack .cs-loc-mini__links a:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 40px;
    background: var(--primary-tint-10);
}
.bg-lighter .cs-loc-stack {
    border-color: transparent;
}
.bg-dark .cs-loc-stack {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    box-shadow: none;
}
.bg-dark .cs-loc-stack .cs-loc-mini + .cs-loc-mini {
    border-top-color: rgba(255, 255, 255, .12);
}
.bg-dark .cs-loc-stack .cs-loc-mini:first-child {
    background: rgba(255, 255, 255, .05);
}
.bg-dark .cs-loc-stack .cs-loc-mini__links a:first-child {
    background: rgba(255, 255, 255, .08);
}

/* --- Photo panels: type pill --- */
.cs-loc-panel__tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    padding: 7px 14px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    line-height: 1;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .25);
}
@media (max-width: 575px) {
    .cs-locs--modern .cs-loc--wide .cs-loc__rows {
        grid-template-columns: 1fr;
    }
    .cs-locs--modern .cs-loc__type + h3 {
        font-size: 21px;
    }
}
/* Contact rows without the gray tiles */
.cs-locs--modern .cs-loc__rows li,
.bg-lighter .cs-locs--modern .cs-loc__rows li,
.bg-dark .cs-locs--modern .cs-loc__rows li {
    padding: 0;
    background: none;
}
.cs-locs--modern .cs-loc__rows i {
    background: var(--primary-tint-10);
    box-shadow: none;
}
.bg-dark .cs-locs--modern .cs-loc__rows i {
    background: var(--primary);
}
/* Big map links: plain icon and text, no pill */
.cs-loc-stack .cs-loc-mini__links a:first-child,
.bg-dark .cs-loc-stack .cs-loc-mini__links a:first-child {
    padding: 0;
    border-radius: 0;
    background: none;
}
/* Big map panel: rows split the height evenly, content centred, no gaps */
.cs-loc-stack {
    gap: 0;
}
.cs-loc-stack .cs-loc-mini {
    flex: 1 1 0;
    align-items: center;
    padding: 20px 24px;
}
.cs-loc-stack .cs-loc-mini:hover {
    box-shadow: none;
}
/* Photo panels: the type pill fades out when the hover panel shows */
.cs-loc-panel__tag {
    transition: opacity .3s ease;
}
.cs-loc-panel:hover .cs-loc-panel__tag,
.cs-loc-panel:focus-within .cs-loc-panel__tag {
    opacity: 0;
}
.cs-locs--modern .cs-loc-panel__hover .h3 {
    display: block;
}
.cs-locs--modern .cs-loc-panel__hover .h3::before {
    content: none;
}
/* Big map: no highlighted first row */
.cs-loc-stack .cs-loc-mini:first-child,
.bg-dark .cs-loc-stack .cs-loc-mini:first-child {
    background: none;
}
.cs-loc-stack .cs-loc-mini:first-child::before {
    content: none;
}
/* Wide map cards: rows stacked in one column like the photo cards */
.cs-locs--modern .cs-loc--wide .cs-loc__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cs-locs--modern .cs-loc--wide .cs-loc__head {
    margin-bottom: 18px;
}
.cs-locs--modern .cs-loc--wide .cs-loc__head h3 {
    margin-bottom: 0;
}
/* Big map: pin sits at the top of each row as a plain line icon in a white
   chip with a soft shadow */
.cs-loc-stack .cs-loc-mini {
    align-items: flex-start;
}
.cs-loc-stack .cs-loc-mini__icon,
.bg-dark .cs-loc-stack .cs-loc-mini__icon,
.cs-loc-stack .cs-loc-mini--dark .cs-loc-mini__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--primary);
    background: var(--white);
    box-shadow: rgba(15, 23, 43, .1) 0 2px 8px 0;
}

/* ==========================================================================
   v5 · Contact split tiles: icon at the top, red label over a bold value
   ========================================================================== */
.bg-lighter .cs-splitcontact__list li,
.bg-dark .cs-splitcontact__list li {
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
}
.bg-lighter .cs-splitcontact__list li {
    border-color: transparent;
    box-shadow: rgba(15, 23, 43, .06) 0 1px 3px 0;
}
.bg-lighter .cs-splitcontact__list li i,
.bg-dark .cs-splitcontact__list li i {
    width: 42px;
    height: 42px;
    font-size: 17px;
}
.bg-lighter .cs-splitcontact__list li i {
    color: var(--primary);
    background: var(--primary-tint-10);
    box-shadow: none;
}
.cs-splitcontact__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 1px;
}
.cs-splitcontact__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.3px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--primary);
}
.cs-splitcontact__item > a,
.cs-splitcontact__item > span:not(.cs-splitcontact__label) {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--heading);
    overflow-wrap: anywhere;
}
.cs-splitcontact__item > a:hover {
    color: var(--primary);
}
.cs-splitcontact__item .cs-splitcontact__hours {
    margin: 0;
    font-size: 14px;
}
.cs-splitcontact__item .cs-splitcontact__hours dd {
    font-weight: 600;
    color: var(--heading);
}
.bg-dark .cs-splitcontact__item > a,
.bg-dark .cs-splitcontact__item > span:not(.cs-splitcontact__label),
.bg-dark .cs-splitcontact__item .cs-splitcontact__hours dd {
    color: var(--white);
}
.bg-dark .cs-splitcontact__item > a:hover {
    color: var(--primary);
}
/* Email and hours run the full width so the address never breaks mid-word */
.bg-lighter ul.cs-splitcontact__list li:first-child,
.bg-lighter ul.cs-splitcontact__list li:last-child,
.bg-dark ul.cs-splitcontact__list li:first-child,
.bg-dark ul.cs-splitcontact__list li:last-child {
    grid-column: 1 / -1;
}
.cs-splitcontact__item > a[href^="mailto"] {
    overflow-wrap: normal;
}
/* Contact split: no tile backgrounds; two columns so the phone sits beside
   the email, a hairline under the first row */
.bg-lighter ul.cs-splitcontact__list,
.bg-dark ul.cs-splitcontact__list {
    gap: 22px 24px;
}
.bg-lighter .cs-splitcontact__list li,
.bg-dark .cs-splitcontact__list li {
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}
.bg-lighter ul.cs-splitcontact__list li:first-child,
.bg-lighter ul.cs-splitcontact__list li:last-child,
.bg-dark ul.cs-splitcontact__list li:first-child,
.bg-dark ul.cs-splitcontact__list li:last-child {
    grid-column: auto;
}
.bg-lighter .cs-splitcontact__list li:nth-child(-n+2),
.bg-dark .cs-splitcontact__list li:nth-child(-n+2) {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.bg-dark .cs-splitcontact__list li:nth-child(-n+2) {
    border-bottom-color: rgba(255, 255, 255, .12);
}
.bg-lighter .cs-splitcontact__list li i,
.bg-dark .cs-splitcontact__list li i {
    width: 40px;
    height: 40px;
    font-size: 16px;
}
.bg-lighter .cs-splitcontact__list li i {
    background: var(--white);
    box-shadow: rgba(15, 23, 43, .1) 0 2px 8px 0;
}
.cs-splitcontact__item > a[href^="mailto"] {
    font-size: 14px;
}
@media (max-width: 575px) {
    .bg-lighter .cs-splitcontact__list li:nth-child(2),
    .bg-dark .cs-splitcontact__list li:nth-child(2) {
        padding-bottom: 0;
        border-bottom: 0;
    }
    .bg-lighter .cs-splitcontact__list li:nth-child(3),
    .bg-dark .cs-splitcontact__list li:nth-child(3) {
        padding-top: 22px;
        border-top: 1px solid var(--border);
    }
    .bg-dark .cs-splitcontact__list li:nth-child(3) {
        border-top-color: rgba(255, 255, 255, .12);
    }
    .bg-lighter .cs-splitcontact__list li:nth-child(1),
    .bg-dark .cs-splitcontact__list li:nth-child(1) {
        padding-bottom: 0;
        border-bottom: 0;
    }
}
