/* =========================================================
   SP FLOORING SERVICES
   LOCATION PAGE TEMPLATE
   /areas/{area}
   ========================================================= */

/* HERO */
.location-hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 80px) 0 80px;
    color: #fff;
    background: #070908;
}

.location-hero__grid {
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, #000, transparent 95%);
}

.location-hero__glow {
    position: absolute;
    width: 720px;
    height: 720px;
    right: -190px;
    top: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(146,214,50,.18), transparent 68%);
}

.location-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(450px,1.05fr);
    align-items: center;
    gap: clamp(58px,8vw,112px);
}

.location-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255,255,255,.33);
    font-size: 11px;
    font-weight: 760;
}

.location-breadcrumb a {
    color: rgba(255,255,255,.56);
    text-decoration: none;
}

.location-breadcrumb a:hover { color: var(--green); }
.location-breadcrumb strong { color: rgba(255,255,255,.78); }

.location-hero__copy .display-title span {
    display: block;
    color: rgba(255,255,255,.33);
}

.location-hero__copy > p {
    max-width: 670px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.6);
    font-size: 18px;
    line-height: 1.76;
}

.location-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.location-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.location-hero__proof span {
    padding: 7px 10px;
    color: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

/* MAP CARD */
.location-hero__visual { min-height: 490px; }

.location-map-card {
    position: relative;
    height: 100%;
    min-height: 490px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 30px;
    background:
        radial-gradient(circle at 68% 30%, rgba(146,214,50,.12), transparent 28rem),
        linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    box-shadow: 0 35px 90px rgba(0,0,0,.35);
    transform: rotate(1.5deg);
}

.location-map-card__mesh {
    position: absolute;
    inset: 9% 11%;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
    transform: rotate(-8deg);
}

.location-map-card__mesh::after {
    content: '';
    position: absolute;
    inset: 14%;
    border: 1px dashed rgba(146,214,50,.15);
    border-radius: 52% 48% 43% 57%;
}

.location-map-card__route {
    position: absolute;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, transparent, rgba(146,214,50,.45), transparent);
}
.location-map-card__route--one { width: 52%; left: 22%; top: 46%; transform: rotate(-17deg); }
.location-map-card__route--two { width: 43%; left: 37%; top: 39%; transform: rotate(51deg); }

.location-map-card__place {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.65);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.location-map-card__place i {
    width: 8px;
    height: 8px;
    border: 2px solid #0a0d09;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(146,214,50,.1);
}
.location-map-card__place--centre { left: 45%; top: 42%; }
.location-map-card__place--wath { left: 26%; top: 22%; }
.location-map-card__place--rawmarsh { left: 30%; top: 52%; }
.location-map-card__place--swinton { left: 58%; top: 27%; }
.location-map-card__place--maltby { right: 13%; top: 61%; }

.location-map-card__stamp {
    position: absolute;
    right: 24px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 126px;
    aspect-ratio: 1;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 25px;
    background: rgba(5,7,5,.78);
    backdrop-filter: blur(12px);
}
.location-map-card__stamp strong {
    color: var(--green);
    font-size: 52px;
    line-height: .9;
    letter-spacing: -.07em;
}
.location-map-card__stamp small {
    margin-top: 8px;
    color: rgba(255,255,255,.42);
    font-size: 8px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* INTRO */
.location-intro { background: #f6f7f3; }
.location-intro__grid {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: clamp(58px,8vw,110px);
    align-items: start;
}
.location-intro__copy p {
    margin: 0 0 18px;
    color: #6c736a;
    font-size: 17px;
    line-height: 1.82;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: #101510;
    font-weight: 850;
    text-decoration: none;
}
.text-link span { color: var(--green-dark); transition: transform .2s ease; }
.text-link:hover span { transform: rotate(45deg); }

/* SERVICES */
.location-services__grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}
.location-service {
    position: relative;
    min-height: 320px;
    display: flex;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background: #0d100d;
    text-decoration: none;
    isolation: isolate;
    transition: transform .25s ease, border-color .25s ease;
}
.location-service:hover { transform: translateY(-5px); border-color: rgba(146,214,50,.26); }
.location-service__number {
    position: absolute;
    right: 20px;
    top: 13px;
    z-index: 1;
    color: rgba(255,255,255,.07);
    font-size: 78px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
}
.location-service__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .42;
    mask-image: linear-gradient(135deg,#000,transparent 78%);
}
.location-service__pattern--carpet {
    background: repeating-linear-gradient(45deg,transparent 0 15px,rgba(255,255,255,.1) 15px 16px), repeating-linear-gradient(-45deg,transparent 0 15px,rgba(146,214,50,.07) 15px 16px);
}
.location-service__pattern--vinyl {
    background-image: linear-gradient(rgba(255,255,255,.09) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.09) 1px,transparent 1px);
    background-size: 58px 58px;
}
.location-service__pattern--laminate {
    background: repeating-linear-gradient(90deg,transparent 0 68px,rgba(255,255,255,.12) 68px 70px), repeating-linear-gradient(0deg,transparent 0 80px,rgba(146,214,50,.06) 80px 81px);
}
.location-service__pattern--lvt {
    background: repeating-linear-gradient(135deg,transparent 0 42px,rgba(255,255,255,.1) 42px 44px), repeating-linear-gradient(45deg,transparent 0 42px,rgba(255,255,255,.07) 42px 44px);
}
.location-service__content { align-self: flex-end; width: 100%; padding: 27px; }
.location-service small {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.location-service h3 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -.045em; }
.location-service p { max-width: 430px; margin: 12px 0 0; color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.65; }
.location-service strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    color: rgba(255,255,255,.72);
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 11px;
}
.location-service strong i { color: var(--green); font-style: normal; transition: transform .2s ease; }
.location-service:hover strong i { transform: rotate(45deg); }

/* TOWNS SLIDER */
.location-towns { overflow: hidden; background: #f6f7f3; }
.town-slider__track {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
}
.town-card { min-width: 0; min-height: 300px; }
.town-card > a,
.town-card__static {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 300px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 24px;
    color: #151a15;
    border: 1px solid #d9ddd6;
    border-radius: 20px;
    background: #fff;
    text-decoration: none;
}
.town-card > a::before,
.town-card__static::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .3;
    background: repeating-linear-gradient(135deg,transparent 0 38px,rgba(18,26,17,.08) 38px 40px);
    mask-image: linear-gradient(to bottom,#000,transparent 72%);
}
.town-card--featured > a {
    color: #fff;
    background: #0a0d0a;
    border-color: rgba(146,214,50,.2);
}
.town-card--featured > a::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    right: -110px;
    bottom: -120px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(146,214,50,.2),transparent 68%);
}
.town-card__number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(20,27,19,.08);
    font-size: 62px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
}
.town-card--featured .town-card__number { color: rgba(255,255,255,.08); }
.town-card small {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 7px;
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.town-card--featured small { color: var(--green); }
.town-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.045em;
}
.town-card p {
    position: relative;
    z-index: 1;
    margin: 13px 0 0;
    color: #737a71;
    font-size: 13px;
    line-height: 1.6;
}
.town-card--featured p { color: rgba(255,255,255,.5); }
.town-card strong {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    color: #444b43;
    border-top: 1px solid #e5e8e2;
    font-size: 10px;
    font-weight: 850;
}
.town-card--featured strong { color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.1); }
.town-card strong i { color: var(--green); font-style: normal; }
.town-slider__controls { display: none; }

/* PROCESS */
.location-process__grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    border-top: 1px solid #d5dad2;
    border-left: 1px solid #d5dad2;
}
.location-process__grid article {
    min-height: 225px;
    padding: 28px;
    border-right: 1px solid #d5dad2;
    border-bottom: 1px solid #d5dad2;
}
.location-process__grid span { color: var(--green-dark); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.location-process__grid h3 { margin: 58px 0 0; font-size: 24px; letter-spacing: -.035em; }
.location-process__grid p { margin: 10px 0 0; color: #747b72; font-size: 14px; line-height: 1.65; }

/* FAQ */
.location-faq { background: #fff; }
.location-faq__grid {
    display: grid;
    grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr);
    gap: clamp(54px,8vw,105px);
    align-items: start;
}
.location-faq__items { border-top: 1px solid #dbe0d8; }
.location-faq details { border-bottom: 1px solid #dbe0d8; }
.location-faq summary {
    position: relative;
    padding: 22px 46px 22px 0;
    cursor: pointer;
    list-style: none;
    color: #161b16;
    font-size: 16px;
    font-weight: 800;
}
.location-faq summary::-webkit-details-marker { display: none; }
.location-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 17px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #0a1108;
    background: var(--green);
    border-radius: 50%;
    font-size: 19px;
    font-weight: 600;
}
.location-faq details[open] summary::after { content: '–'; }
.location-faq details p { margin: -5px 50px 22px 0; color: #727a70; font-size: 14px; line-height: 1.7; }

@media (max-width: 1060px) {
    .location-hero__inner { grid-template-columns: minmax(0,1fr) minmax(390px,.86fr); gap: 45px; }
    .town-slider__track { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 860px) {
    .location-hero { min-height: auto; }
    .location-hero__inner,
    .location-intro__grid,
    .location-faq__grid { grid-template-columns: 1fr; }
    .location-hero__visual { min-height: 410px; }
    .location-map-card { min-height: 410px; }
    .location-services__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .location-towns { padding-bottom: 68px; }
    .town-slider { width: calc(100vw - 15px); }
    .town-slider__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        margin-right: -15px;
        padding-right: 15px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }
    .town-slider__viewport::-webkit-scrollbar { display: none; }
    .town-slider__track { display: flex; gap: 12px; width: max-content; }
    .town-card {
        flex: 0 0 min(82vw,340px);
        min-height: 320px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .town-card > a,
    .town-card__static { min-height: 320px; }
    .town-slider__controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-top: 20px;
        padding-right: 15px;
    }
    .town-slider__dots { display: flex; align-items: center; gap: 7px; }
    .town-slider__dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #bdc4ba;
        transition: width .2s ease, background .2s ease;
    }
    .town-slider__dot.is-active { width: 28px; background: var(--green-dark); }
    .town-slider__buttons { display: flex; gap: 7px; }
    .town-slider__buttons button {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        color: #101510;
        background: transparent;
        border: 1px solid #cad1c7;
        border-radius: 50%;
        font-size: 17px;
    }
    .town-slider__buttons button:hover,
    .town-slider__buttons button:focus-visible { background: var(--green); border-color: var(--green); }
    .location-process__grid { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
    .location-hero { padding-top: calc(var(--header-height) + 54px); padding-bottom: 60px; }
    .location-hero__copy > p { font-size: 16px; }
    .location-hero__actions { flex-direction: column; }
    .location-hero__actions .button { width: 100%; }
    .location-hero__visual,
    .location-map-card { min-height: 340px; }
    .location-map-card { border-radius: 23px; }
    .location-map-card__stamp { width: 105px; right: 15px; bottom: 14px; border-radius: 21px; }
    .location-map-card__stamp strong { font-size: 43px; }
    .location-map-card__place { font-size: 7px; letter-spacing: .04em; }
    .location-map-card__place--centre { left: 38%; top: 43%; }
    .location-map-card__place--wath { left: 17%; top: 19%; }
    .location-map-card__place--rawmarsh { left: 17%; top: 57%; }
    .location-map-card__place--swinton { left: 55%; top: 24%; }
    .location-map-card__place--maltby { right: 5%; top: 60%; }
    .location-services__grid { grid-template-columns: 1fr; }
    .location-service { min-height: 290px; }
    .location-faq details p { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .location-service,
    .location-service strong i,
    .text-link span { transition: none; }
}
