/* Petit Bateau Store Locator — ShopList
   Reference: stores.petit-bateau.com/fr/search */

:root {
    --pb-navy: #002e5e;
    --pb-navy-deep: #1e3259;
    --pb-navy-hover: #000409;
    --pb-text: #4a4a4a;
    --pb-muted: #888;
    --pb-border: #dde3e8;
    --pb-input-border: #efefef;
    --pb-hover: #f4f9ff;
    --pb-page-bg: #f0f0f0;
    --pb-red: #e63a1c;
    --pb-partner: #2587c1;
    --pb-green: #008048;
    --pb-list-width: 38rem;
    --pb-map-height: 42rem;
    --pb-header-offset: 11rem;
    --pb-shadow: .2rem .6rem 1.2rem 0 rgba(0, 0, 0, .1);
    --pb-card-radius: 0.4rem;
}

/* Full-bleed: break out of site container */
body:has(.pb-locator) .main-container.container,
#app:has(.pb-locator) .main-container.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has(.pb-locator) .breadcrumb-container,
body:has(.pb-locator) .footer-bottom-bar-container {
    display: none;
}

#store-locator-app.pb-locator #map,
body:has(.pb-locator) #map {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    z-index: auto !important;
}

#store-locator-app.pb-locator {
    color: var(--pb-navy);
    width: 100%;
    margin: 0;
    padding: 1.6rem;
    /* background: var(--pb-page-bg);*/
    box-sizing: border-box;
}

.pb-locator .store-locator-page-title {
    border: 0;
    min-height: 0;
    margin: 0 0 30px 0;
    padding: 0;
    text-align: inherit;
}

.pb-locator__body {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 4rem;
    min-height: 0;
    background: transparent;
}

/* ===== Left column — card with border + shadow ===== */
.pb-locator__list-pane {
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    border: 0.1rem solid var(--pb-border);
    border-radius: var(--pb-card-radius);
    box-shadow: var(--pb-shadow);
    overflow: hidden;
}

.pb-locator__sidebar-head {
    padding: 2.4rem 1.6rem 1.2rem;
    flex-shrink: 0;
}

.pb-locator__title {
    margin: 0 0 2rem;
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--global-color-text);
    text-align: center;
}

.pb-locator__search-label {
    display: block;
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--global-color-text);
    text-align: left;
}

.pb-locator__search-box {
    position: relative;
    width: 100%;
}

.pb-locator__search-input {
    width: 100%;
    height: 4.2rem;
    border: 0.1rem solid var(--pb-input-border);
    border-radius: 0.4rem;
    padding: 1rem 4.4rem 1rem 1.2rem;
    font-size: 1.4rem;
    color: var(--global-color-text);
    background: #fff;
    outline: none;
    background-repeat: no-repeat;
}

    .pb-locator__search-input:focus {
        border-color: var(--pb-navy);
    }

.pb-locator__geo-btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent url("/theme/images/store-locator/geolocation.svg") center / 2.2rem no-repeat;
}

    .pb-locator__geo-btn.is-loading {
        animation: pb-geo-pulse 1s ease-in-out infinite;
    }

@keyframes pb-geo-pulse {
    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

.pb-locator__search-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    min-height: 4.2rem;
    padding: 1.1rem 1.2rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--pb-navy);
    color: #fff;
    /* font-family: Oswald, Helvetica, Arial, sans-serif;*/
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: uppercase;
    cursor: pointer;
}

    .pb-locator__search-btn:hover {
        background: var(--pb-navy-hover);
    }

.pb-locator__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.pb-locator__count {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--pb-muted);
    text-align: center;
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 5px;
}

.pb-locator__view-toggle {
    display: none;
    gap: 0.2rem;
}

    .pb-locator__view-toggle button {
        min-width: 6.4rem;
        height: 3.2rem;
        border: 0.1rem solid var(--pb-border);
        background: #fff;
        color: var(--pb-navy);
        font-family: Oswald, Helvetica, Arial, sans-serif;
        font-size: 1.1rem;
        font-weight: 600;
        text-transform: uppercase;
        cursor: pointer;
    }

        .pb-locator__view-toggle button.is-active {
            background: var(--pb-navy);
            border-color: var(--pb-navy);
            color: #fff;
        }

#map-error-message.pb-locator__error {
    margin: 0 1.6rem 1rem;
    border-radius: 0.4rem;
}

#shops-list.pb-result-list {
    display: block;
    width: 100%;
    margin: 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

.pb-locator__empty {
    padding: 2rem 1.6rem;
    color: var(--pb-text);
    font-size: 1.3rem;
}

/* ===== Cards ===== */
.pb-result-item {
    position: relative;
    padding: 1.6rem;
    border-top: 0.1rem solid var(--pb-border);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .pb-result-item:hover,
    .pb-result-item.is-selected {
        background-color: var(--pb-hover);
    }

.pb-result-item__head {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 0.8rem;
}

.pb-result-item__index {
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pb-navy);
    line-height: 1.3;
}

.pb-result-item__title {
    flex: 0 1 auto;
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--pb-navy);
    text-transform: uppercase;
}

    .pb-result-item__title a,
    .pb-result-item__title a:link,
    .pb-result-item__title a:visited {
        color: var(--pb-navy);
        text-decoration: underline;
        text-underline-offset: 0.2rem;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: normal;
    }

        .pb-result-item__title a:hover {
            text-decoration: none;
        }

.pb-result-item__pin {
    flex: 0 0 auto;
    width: 2.8rem;
    height: 2.9rem;
    margin-top: 0;
    margin-left: 1rem;
}

.pb-result-item__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.8rem;
    flex-wrap: wrap;
}

.pb-result-item__hours {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--pb-text);
}

    .pb-result-item__hours::before {
        content: "";
        width: 0.7rem;
        height: 0.7rem;
        border-radius: 50%;
        background: var(--pb-green);
        flex-shrink: 0;
    }

    .pb-result-item__hours.is-closed::before {
        background: var(--pb-red);
    }

.pb-result-item__distance {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--pb-muted);
    white-space: nowrap;
}

.pb-result-item__address,
.pb-result-item__phone,
.pb-result-item__content,
.pb-result-item__content p,
.pb-result-item__content .store__address {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--global-color-text);
}

    .pb-result-item__phone a,
    .pb-result-item__phone a:link,
    .pb-result-item__phone a:visited,
    .pb-result-item__address a,
    .pb-result-item__address a:link,
    .pb-result-item__address a:visited,
    .pb-result-item__content a,
    .pb-result-item__content a:link,
    .pb-result-item__content a:visited {
        color: var(--global-color-text);
        text-decoration: none;
        font-weight: 400;
        font-size: 1.4rem;
    }

        .pb-result-item__phone a:hover,
        .pb-result-item__address a:hover,
        .pb-result-item__content a:hover {
            color: var(--pb-navy);
        }

.pb-result-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2.4rem;
    margin-top: 0.8rem;
}

    .pb-result-item__actions a,
    .pb-result-item__actions a:link,
    .pb-result-item__actions a:visited {
        font-size: 1.4rem;
        line-height: 1.3;
        font-weight: 700;
        color: var(--pb-navy);
        text-decoration: underline;
        text-underline-offset: 0.25rem;
        text-transform: capitalize;
        margin-top: 15px;
    }

        .pb-result-item__actions a:hover {
            text-decoration: none;
        }

/* ===== Map pane — smaller map + legend below ===== */
.pb-locator__map-pane {
    display: none;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
    border: 0.1rem solid var(--pb-border);
    border-radius: var(--pb-card-radius);
    box-shadow: var(--pb-shadow);
    overflow: hidden;
    min-height: 0;
}

    .pb-locator__map-pane .main-map-wrapper {
        display: block;
        position: relative;
        width: 100%;
        height: var(--pb-map-height);
        flex: 0 0 auto;
    }

    .pb-locator__map-pane .map-wrapper,
    .pb-locator__map-pane #google-map {
        width: 100%;
        height: 100%;
    }

    .pb-locator__map-pane #google-map {
        min-height: var(--pb-map-height);
        height: var(--pb-map-height);
    }

    .pb-locator__map-pane .direction-wrapper {
        display: none;
        position: absolute;
        left: 1.2rem;
        top: 1.2rem;
        width: min(32rem, calc(100% - 2.4rem));
        max-height: calc(100% - 2.4rem);
        overflow: auto;
        background: #fff;
        z-index: 4;
        box-shadow: var(--pb-shadow);
        border-radius: 0.4rem;
        padding: 1.2rem;
    }

    .pb-locator__map-pane .main-map-wrapper.active-direction .direction-wrapper {
        display: block;
    }

/* Legend under map (not overlay) */
.pb-locator__legend {
    position: static;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem 2.4rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.6rem 1.8rem;
    background: #fff;
    border-top: 0.1rem solid var(--pb-border);
    box-shadow: none;
    border-radius: 0;
}

.pb-locator__legend-item {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: 0.2rem 1rem;
    align-items: start;
}

    .pb-locator__legend-item img {
        width: 4rem;
        height: 4rem;
        grid-row: 1 / span 2;
    }

.pb-locator__legend-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--global-color-text);
    line-height: normal;
    margin-left: 10px;
}

.pb-locator__legend-text {
    margin: 0;
    font-size: 1.4rem;
    color: var(--global-color-text);
    line-height: 1.35;
    margin-left: 10px;
}

@media (min-width: 992px) {
    #store-locator-app.pb-locator {
        padding: 2rem;
    }

    .pb-locator__list-pane {
        width: var(--pb-list-width);
        max-width: var(--pb-list-width);
        flex: 0 0 var(--pb-list-width);
        height: calc(100vh - var(--pb-header-offset) - 4rem);
        max-height: calc(100vh - var(--pb-header-offset) - 4rem);
    }

    #shops-list.pb-result-list {
        max-height: 100%;
    }

    .pb-locator__map-pane {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 2rem;
        height: auto;
        min-height: 0;
        width: calc(100% - var(--pb-list-width) - 1.6rem);
        align-self: flex-start;
    }

    .pb-locator__legend {
        grid-template-columns: 1fr 1fr;
    }

    .pb-locator__view-toggle {
        display: none !important;
    }
}

@media (max-width: 991.98px) {


    .pb-locator__count {
        justify-content: start;
        margin-bottom: 0;
        margin-top: 5px;
    }

    #store-locator-app.pb-locator {
        padding: 1.2rem;
    }

    .pb-locator__body {
        flex-direction: column;
        gap: 1.2rem;
    }

    .pb-locator__view-toggle {
        display: flex;
    }

    .pb-locator__legend {
        grid-template-columns: 1fr;
    }

    .pb-locator.is-view-list .pb-locator__map-pane {
        display: none;
    }

    .pb-locator.is-view-map .pb-locator__list-pane {
        display: none;
    }

    .pb-locator.is-view-map .pb-locator__map-pane {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
    }

        .pb-locator.is-view-map .pb-locator__map-pane .main-map-wrapper,
        .pb-locator.is-view-map .pb-locator__map-pane #google-map {
            height: 36rem;
            min-height: 36rem;
        }
}

/* ===== Shop Details Page ===== */
body:has(.pb-store-detail) .breadcrumb-container {
    display: none;
}

#store-locator-app.pb-store-detail {
    color: var(--pb-navy);
    width: 100%;
    margin: 0;
    padding: 0 0 4.8rem;
    box-sizing: border-box;
    background: #fff;
}

.pb-store-detail__nav {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    margin-bottom: 0.8rem;
    /*  border-bottom: 0.1rem solid var(--pb-border);*/
}

.pb-store-detail__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem 2.4rem;
    margin: 50px 0 20px 0;
}

    .pb-store-detail__actions .backBtn,
    .pb-store-detail__actions .homeBtn,
    .pb-store-detail__actions .backBtn:link,
    .pb-store-detail__actions .homeBtn:link,
    .pb-store-detail__actions .backBtn:visited,
    .pb-store-detail__actions .homeBtn:visited {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 1.4rem;
        line-height: 1.3;
        font-weight: 600;
        color: var(--pb-navy);
        text-decoration: none;
        letter-spacing: normal;
        text-transform: none;
        border-bottom: 1px solid;
    }

        .pb-store-detail__actions .backBtn::before {
            content: "";
            display: inline-block;
            width: 0.7rem;
            height: 0.7rem;
            border-left: 0.15rem solid currentColor;
            border-bottom: 0.15rem solid currentColor;
            transform: rotate(45deg);
            margin-right: 0.2rem;
        }

        .pb-store-detail__actions .backBtn:hover,
        .pb-store-detail__actions .homeBtn:hover {
            text-decoration: underline;
            text-underline-offset: 0.25rem;
        }

.pb-store-detail__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.4rem;
    align-items: stretch;
    padding-top: 2.4rem;
}

.pb-store-detail__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.pb-store-detail__name {
    margin: 0 0 1.2rem;
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--pb-navy);
    text-transform: uppercase;
    letter-spacing: 0;
}

.pb-store-detail__status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 1.6rem;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--pb-navy);
}

.pb-store-detail__status-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--pb-red);
    flex-shrink: 0;
}

.pb-store-detail__status:not(.is-closed) .pb-store-detail__status-dot {
    background: var(--pb-red);
}

.pb-store-detail__status.is-closed .pb-store-detail__status-dot {
    background: var(--pb-red);
}

.pb-store-detail__address {
    margin: 0 0 1.2rem;
    font-size: 1.5rem;
    line-height: 1.55;
    color: var(--pb-navy);
}

    .pb-store-detail__address p,
    .pb-store-detail__address div {
        margin: 0 0 0.2rem;
        color: var(--global-color-text);
        font-size: 1.4rem;
    }

    .pb-store-detail__address a {
        color: inherit;
        text-decoration: none;
    }

.pb-store-detail__phone {
    margin: 0 0 2rem;
    font-size: 1.5rem;
    line-height: 1.4;
}

    .pb-store-detail__phone a,
    .pb-store-detail__phone a:link,
    .pb-store-detail__phone a:visited {
        color: var(--pb-navy);
        text-decoration: none;
        font-weight: 400;
    }

        .pb-store-detail__phone a:hover {
            text-decoration: underline;
        }

.pb-store-detail__directions-btn,
.pb-store-detail__directions-btn:link,
pb-store-detail__directions-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.2rem;
    padding: 1rem 2.4rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--pb-navy);
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: capitalize;
    letter-spacing: normal;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-top: 20px;
}

    .pb-store-detail__directions-btn:hover {
        background: var(--pb-navy-hover);
        color: #fff !important;
    }

.pb-store-detail__error {
    margin-top: 1.2rem;
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.8rem 1.2rem;
    min-width: 18rem;
    font-size: 1.4rem;
    border-radius: 0.4rem;
}

.pb-store-detail__image {
    min-width: 0;
    overflow: hidden;
    background: #f5f5f5;
}

    .pb-store-detail__image img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 24rem;
        max-height: 36rem;
        object-fit: cover;
    }

.pb-store-detail__image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24rem;
    padding: 2rem;
    color: var(--pb-muted);
    font-size: 1.4rem;
}

.pb-store-detail__map {
    position: relative;
    min-width: 0;
    min-height: 32rem;
    background: #f5f5f5;
    overflow: hidden;
}

    .pb-store-detail__map .map-wrapper,
    .pb-store-detail__map #google-map {
        width: 100%;
        height: 100%;
        min-height: 32rem;
    }

    .pb-store-detail__map #google-map {
        height: 36rem;
        min-height: 36rem;
    }

    .pb-store-detail__map .direction-wrapper {
        display: none;
        position: absolute;
        left: 1.2rem;
        top: 1.2rem;
        width: min(32rem, calc(100% - 2.4rem));
        max-height: calc(100% - 2.4rem);
        overflow: auto;
        background: #fff;
        z-index: 4;
        box-shadow: var(--pb-shadow);
        border-radius: 0.4rem;
        padding: 1.2rem;
    }

    .pb-store-detail__map.is-directions-open .direction-wrapper {
        display: block;
    }

.pb-store-detail__hours-panel {
    min-width: 0;
}

.pb-store-detail__hours-title {
    margin: 0 0 1.6rem;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--pb-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pb-store-detail__hours-card {
    background: #fff;
    border: 0.1rem solid var(--pb-border);
    border-radius: var(--pb-card-radius);
    box-shadow: var(--pb-shadow);
    overflow: hidden;
}

.pb-store-detail__today {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.8rem 1.6rem 1.4rem;
}

.pb-store-detail__today-icon {
    display: inline-flex;
    color: var(--pb-red);
    flex-shrink: 0;
}

.pb-store-detail__today-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pb-store-detail__today-label {
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--pb-muted);
}

.pb-store-detail__today-hours {
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--pb-red);
}

    .pb-store-detail__today-hours.is-closed {
        color: var(--pb-red);
    }

.pb-store-detail__schedule {
    padding: 0 0 0.8rem;
}

.pb-store-detail__schedule-title {
    margin: 0;
    padding: 0 1.6rem 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--pb-navy);
}

.pb-store-detail__schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .pb-store-detail__schedule-list li {
        display: grid;
        grid-template-columns: 1.1fr 1fr 1.1fr;
        gap: 0.8rem;
        align-items: center;
        padding: 1rem 1.6rem;
        font-size: 1.3rem;
        line-height: 1.35;
        color: #6b7280;
        background: #f7f9fb;
        border-top: 0.1rem solid #eef2f6;
    }

        .pb-store-detail__schedule-list li.is-today {
            background: var(--pb-navy);
            color: #fff;
            border-top-color: var(--pb-navy);
        }

.pb-store-detail__schedule-date {
    font-weight: 700;
}

.pb-store-detail__schedule-weekday {
    font-weight: 700;
    text-transform: uppercase;
}

.pb-store-detail__schedule-hours {
    text-align: right;
    font-weight: 400;
    color: var(--pb-navy);
}

.pb-store-detail__schedule-list li.is-today .pb-store-detail__schedule-hours {
    color: #fff;
}

@media (min-width: 992px) {
    #store-locator-app.pb-store-detail {
        padding: 0 0 6rem;
    }

    .pb-store-detail__nav {
        padding-top: 2rem;
        padding-bottom: 1.6rem;
    }

    .pb-store-detail__layout {
        grid-template-columns: 1fr 1fr;
        gap: 3.2rem 4.8rem;
        padding-top: 3.2rem;
    }

    .pb-store-detail__name {
        font-size: 3.2rem;
    }

    .pb-store-detail__image img {
        min-height: 32rem;
        max-height: 40rem;
    }

    .pb-store-detail__map #google-map {
        height: 100%;
        min-height: 36rem;
    }

    .pb-store-detail__map {
        min-height: 36rem;
        height: 100%;
    }
}

@media (max-width: 991.98px) {
    #store-locator-app.pb-store-detail {
        padding: 0 0 3.2rem;
    }

    .pb-store-detail__nav {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .pb-store-detail__layout {
        padding-top: 1.6rem;
    }

    .pb-store-detail__name {
        font-size: 2.2rem;
    }

    .pb-store-detail__schedule-list li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .pb-store-detail__schedule-hours {
        text-align: left;
    }
}
