/*******************************************************************************
 *
 *  Stores page — /katastimata, /en/partner-stores.
 *
 *  Figma B2C, frame "Stores" (389:2109). The page is built from Nevma
 *  blocks; the widths are Vanilla's own panels, so nothing here sets one:
 *
 *      intro text ........ row "narrow"  (1024)   section .nvm-stores__intro
 *      legend + map ...... row "xlarge"  (1680)   section .nvm-stores__map
 *
 *  The map is YITH Store Locator, placed with a shortcode that switches off
 *  its search bar, filters and results list and asks for a 100% x 842 map.
 *  What is left for this file is the spacing, the type, the legend, and
 *  hiding the results column YITH still prints when the list is off.
 *
 ******************************************************************************/

/*
    Title band — white over the dark picture. theme.shop.css does it for the
    Greek page by its slug, .page-katastimata; the English page is slugged
    partner-stores, so it is named here the same way.
*/

.responsiville.page-partner-stores .hero-section--shop h1,
.responsiville.page-partner-stores .hero-section--shop h2,
.responsiville.page-partner-stores .hero-section--shop .woocommerce-breadcrumb,
.responsiville.page-partner-stores .hero-section--shop .woocommerce-breadcrumb a,
.responsiville.page-partner-stores .hero-section--shop .hero-section-breadcrumb__sep {
    color: var(--nvm-color-white);
}

.responsiville.page-partner-stores .hero-section--shop .woocommerce-breadcrumb a:hover {
    background: none;
    color: var(--nvm-color-gold);
}

/* Intro — 110 above and below at 1920, Hauora Light 20, centred. */

.responsiville .nvm-stores__intro {
    padding-top: clamp( 40px, 5.73vw, 110px );
    padding-bottom: clamp( 30px, 5.73vw, 110px );
}

.responsiville .nvm-stores__intro .nvm-text p {
    margin: 0;
    font-family: var(--nvm-font-sans-serif);
    font-weight: 300;
    font-size: clamp( 17px, 1.04vw, 20px );
    line-height: 1.5;
    color: #000;
    text-align: center;
}

/* Legend — one line, 80 between items, a 1px #999 rule under it. */

.responsiville .nvm-stores__map {
    margin-bottom: clamp( 60px, 5.73vw, 110px );
}

.responsiville .nvm-stores__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 80px;
    margin: 0 0 clamp( 24px, 2.7vw, 52px );
    padding: 10px 0;
    border-bottom: 1px solid #999;
    list-style: none;
}

.responsiville .nvm-stores__legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-family: var(--nvm-font-sans-serif);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    color: #7F7F7F;
}

.responsiville .nvm-stores__legend li::before {
    content: none;
}

.responsiville .nvm-stores__legend img {
    flex: 0 0 26px;
    width: 26px;
    height: 31px;
    margin: 0;
}

/*
    Map and sidebar — Figma's map is a picture of YITH itself: the sidebar
    (title, search, "Use my position", "View all stores", filters, the list)
    on the left and the map on the right. Drawn as halves 842 tall; the map
    was asked to be larger, so it takes 65% and runs to 960 tall at 1920.
    The split comes from the shortcode (map_width 65); YITH prints it inline.
*/

#yith-store-locator .wrapper-main-sections {
    display: flex;
    height: clamp( 600px, 50vw, 960px );
}

#yith-store-locator #yith-sl-section-map {
    flex: 0 0 65%;
    min-width: 0;
}

#yith-store-locator #yith-sl-section-results {
    flex: 0 0 35%;
    min-width: 0;
}

#yith-store-locator #yith-sl-section-results {
    overflow-y: auto;
    padding-right: 30px;
}

#yith-store-locator #yith-sl-gmap {
    width: 100%;
    height: 100% !important; /* YITH writes 842px inline */
}

/* Sidebar, top to bottom as drawn: title, search, two buttons, filter, list.
   The colours — gold accent, scrollbar, buttons, the pin pop-up — are set in
   YITH's own settings (Store Locator › General / Search / Results); only
   sizes and spacing are here, and the radius filter, which has no setting. */

#yith-store-locator .title-search-bar {
    margin: 0 0 clamp( 24px, 2.6vw, 50px );
    font-family: var(--nvm-font-display);
    font-weight: 700;
    font-size: clamp( 26px, 1.88vw, 36px );
    line-height: 1.1;
    text-transform: none;
    color: #231F20;
}

#yith-store-locator #yith-sl-wrap-search-bar {
    border: 1px solid #231F20;
    border-radius: 0;
}

#yith-store-locator .wrap-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin: 25px 0;
}

#yith-store-locator button#yith-sl-geolocation {
    min-height: 44px;
    margin: 0;
    padding: 10px 16px 10px 44px;
    border: 0;
    border-radius: 4px;
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

#yith-store-locator #yith-sl-show-all-stores {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: underline;
}

    /* Set to "Only text" in the settings, as drawn. YITH colours only the
       button version from its settings, so the link's gold has to be here. */
    #yith-store-locator a#yith-sl-show-all-stores.style-text {
        color: #C28E44;
    }

    #yith-store-locator a#yith-sl-show-all-stores.style-text:hover {
        color: #231F20;
    }

#yith-store-locator #yith-sl-main-filters-container .filter-label {
    display: none;
}

#yith-store-locator select#filter-radius {
    width: auto;
    min-width: 160px;
    height: 34px;
    margin: 0;
    padding: 0 36px 0 16px;
    line-height: 32px;
    text-indent: 0;
    border: 1px solid #C28E44;
    border-radius: 0;
    background-color: #C28E44;
    font-size: 15px;
    color: #fff !important;
}

    #yith-store-locator select#filter-radius option {
        background: #fff;
        color: #231F20;
    }

#yith-store-locator #yith-sl-results .title {
    margin: clamp( 24px, 2.6vw, 50px ) 0 20px;
    font-family: var(--nvm-font-display);
    font-weight: 700;
    font-size: 20px;
    text-transform: none;
    color: #231F20;
}

/* The list is drawn without pictures: name in bold, then the rest, all of
   it one size and set close — the hours included, which YITH leaves to the
   browser's paragraph size. */
#yith-store-locator #yith-sl-results .store-image {
    display: none;
}

#yith-store-locator #yith-sl-results .wrap-store-details {
    padding: 16px 0 16px 20px;
    border-bottom: 1px solid #D9D6CF;
}

#yith-store-locator #yith-sl-results .store-info {
    width: 100%;
    padding: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #231F20;
}

#yith-store-locator #yith-sl-results .store-info p,
#yith-store-locator #yith-sl-results .store-info ul,
#yith-store-locator #yith-sl-results .store-info li {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.45;
}

#yith-store-locator #yith-sl-results .store-info .store-contact {
    margin: 4px 0;
    list-style: none;
}

#yith-store-locator #yith-sl-results .store-info .store-name,
#yith-store-locator #yith-sl-results .store-info .store-name span:first-child {
    margin-bottom: 4px;
    font-weight: 700 !important;
    font-size: 16px;
    color: #231F20;
}

#yith-store-locator #yith-sl-results .get-direction {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    font-size: 13px;
}

#yith-store-locator #yith-sl-results .wrap-store-details:hover {
    background-color: rgba( 194, 142, 68, 0.08 );
}

/*
    Pin pop-up — the full card (theme template yith-store-locator/frontend/
    pin-info-modal.php): name, then address, phone and hours beside their
    icons, then directions. Width, corner radius and colours are set in
    YITH's settings (Map › Pin modal). A little padding of its own (YITH
    writes 16 inline, hence !important), and the close button lifted out of
    the row Google gives it above the content, onto the title's line.
*/

#yith-sl-gmap .gm-style .gm-style-iw {
    padding: 14px 14px 12px !important;
    box-shadow: 0 8px 30px rgba( 35, 31, 32, 0.18 );
}

    #yith-sl-gmap .gm-style .gm-style-iw-d {
        overflow: visible !important;
    }

    /* Google's header row holds only the close button and stands 48 tall
       above the card. Taken out of the flow, the card starts at the top and
       the button sits beside the store's name. */
    #yith-sl-gmap .gm-style .gm-style-iw-chr {
        position: absolute;
        top: 4px; /* YITH drops the button 5 inside it; this centres it on the name */
        right: 10px;
        z-index: 1;
    }

    #yith-store-locator .maison-pin-modal .store-name {
        padding-right: 40px;
    }

#yith-store-locator .maison-pin-modal {
    margin: 0;
    font-style: normal;
    font-size: 14px;
    line-height: 1.45;
    color: #231F20;
}

#yith-store-locator .maison-pin-modal .store-name {
    margin: 0 0 18px;
    font-family: var(--nvm-font-display);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

#yith-store-locator .maison-pin-modal__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
}

#yith-store-locator .maison-pin-modal__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: #231F20;
}

    /* Drawn as outlines; the theme fills SVG shapes by default. */
    #yith-store-locator .maison-pin-modal__icon * {
        fill: none !important;
        stroke: currentColor;
    }

#yith-store-locator .maison-pin-modal__row p {
    margin: 0;
    padding-top: 2px;
    font-size: 14px;
    line-height: 1.45;
}

#yith-store-locator .maison-pin-modal .store-phone a {
    font-weight: 700;
    color: #231F20;
    text-decoration: none;
}

#yith-store-locator .maison-pin-modal .get-direction {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
    font-size: 13px;
}

@media ( max-width: 767px ) {

    .responsiville .nvm-stores__legend {
        gap: 10px 30px;
    }

    /* Phones: the map above the sidebar, each full width. */
    #yith-store-locator .wrapper-main-sections {
        flex-direction: column;
        height: auto;
    }

    #yith-store-locator #yith-sl-section-map,
    #yith-store-locator #yith-sl-section-results {
        flex-basis: auto;
        width: 100%;
    }

    #yith-store-locator #yith-sl-section-map {
        order: 1;
        height: 420px;
    }

    #yith-store-locator #yith-sl-section-results {
        order: 2;
        max-height: 600px;
        padding-right: 0;
    }

}


/*
    Stores by region, under the map (07/11/2026) — nvm_stores_regions_html()
    in inc/functions/stores.php.

    Three columns of regions on a laptop and up, one on a phone. Each region
    is a line — name, a count, a plus — with the rule the theme draws between
    list entries; open, its stores follow under it: name in bold, what the
    store is, the address, then the telephone and the directions link.
*/

.nvm-stores-regions {
    margin-top: clamp( 50px, 5.2vw, 100px );
    color: var(--nvm-color-ink);
}

    .responsiville .nvm-stores-regions__title {
        margin: 0 0 clamp( 20px, 2.1vw, 40px );
        font-size: clamp( 22px, 1.56vw, 30px );
        font-weight: 600;
        line-height: 1.2;
    }

    .nvm-stores-regions__grid {
        display: grid;
        grid-template-columns: minmax( 0, 1fr );
        column-gap: 40px;
    }

    .laptop .nvm-stores-regions__grid {
        grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
    }

        .nvm-stores-regions__region {
            border-bottom: 1px solid var(--nvm-color-silver);
        }

            .nvm-stores-regions__summary {
                display: flex;
                align-items: center;
                gap: 12px;
                min-height: 56px;
                padding: 8px 0;
                cursor: pointer;
                list-style: none;
            }

            .nvm-stores-regions__summary::-webkit-details-marker {
                display: none;
            }

            .nvm-stores-regions__summary:focus-visible {
                outline: 2px solid var(--nvm-color-ink);
                outline-offset: 2px;
            }

                .nvm-stores-regions__name {
                    flex: 1 1 auto;
                    font-size: 17px;
                    font-weight: 600;
                    line-height: 1.3;
                }

                .nvm-stores-regions__summary:hover .nvm-stores-regions__name {
                    color: var(--nvm-color-gold);
                }

                .nvm-stores-regions__count {
                    flex: 0 0 auto;
                    min-width: 26px;
                    padding: 2px 8px;
                    border-radius: 999px;
                    background: var(--nvm-color-white);
                    color: var(--nvm-color-stone);
                    font-size: 12px;
                    line-height: 1.5;
                    text-align: center;
                }

                /* A plus that turns into a minus. */
                .nvm-stores-regions__toggle {
                    position: relative;
                    flex: 0 0 auto;
                    width: 14px;
                    height: 14px;
                }

                .nvm-stores-regions__toggle::before,
                .nvm-stores-regions__toggle::after {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 0;
                    width: 14px;
                    height: 1.5px;
                    margin-top: -0.75px;
                    background: currentColor;
                    transition: transform 0.2s ease-in-out;
                }

                .nvm-stores-regions__toggle::after {
                    transform: rotate( 90deg );
                }

                .nvm-stores-regions__region[open] .nvm-stores-regions__toggle::after {
                    transform: rotate( 0deg );
                }

            .responsiville .nvm-stores-regions__stores {
                margin: 0;
                padding: 0 0 16px;
                list-style: none;
            }

                .responsiville .nvm-stores-regions__store {
                    display: flex;
                    flex-direction: column;
                    gap: 3px;
                    margin: 0;
                    padding: 14px 0;
                    border-top: 1px solid var(--nvm-color-sand-dark);
                    font-size: 14px;
                    line-height: 1.4;
                }

                .responsiville .nvm-stores-regions__store::before {
                    content: none;
                }

                    .nvm-stores-regions__store-name {
                        font-weight: 700;
                    }

                    .nvm-stores-regions__store-about,
                    .nvm-stores-regions__store-address {
                        color: var(--nvm-color-stone);
                    }

                    .nvm-stores-regions__store-links {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 4px 18px;
                        margin-top: 4px;
                    }

                        .responsiville .nvm-stores-regions__store-links a {
                            padding: 0;
                            background: none;
                            color: var(--nvm-color-gold);
                            font-weight: 600;
                            text-decoration: none;
                        }

                        .responsiville .nvm-stores-regions__store-links a:hover,
                        .responsiville .nvm-stores-regions__store-links a:focus-visible {
                            background: none;
                            color: var(--nvm-color-ink);
                            text-decoration: underline;
                        }
