/* Find a store (/stores; markup in Views/Home/Stores.cshtml, behaviour in store-locator.js).
   Live site colours and Montserrat, as the rest of navigation phase 1. Every button here opens a map
   or filters the list, so they are navy, not gold (gold is for money in and the one action a
   screen exists for). Phones: the map on top, the stores below. Desktop: the stores left, the map
   right and sticky. The page clears the site header with its own 52px, like the promotions page. */

.pgsl {
    --pgsl-navy: #00263E;
    --pgsl-blue: #C21E15;
    --pgsl-blue-dark: #0A3550;
    --pgsl-body: #3C3E41;
    --pgsl-muted: #6E7075;
    --pgsl-line: #DCDDDF;
    --pgsl-soft: #F2F2F3;
    --pgsl-green: #1E7B34;
    --pgsl-red: #B42318;
    --pgsl-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    margin: 52px auto 0;
    padding: 24px 16px 40px;
    max-width: 1200px;
    box-sizing: border-box;
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--pgsl-navy);
}

    .pgsl *, .pgsl *::before, .pgsl *::after { box-sizing: border-box; }
    .pgsl [hidden] { display: none !important; }

.pgsl-mono { font-family: var(--pgsl-mono); font-weight: 700; font-variant-numeric: tabular-nums; }

.pgsl-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
    .pgsl-head h1 { margin: 0; font-family: inherit; font-size: 28px; font-weight: 800; line-height: 1.15; color: var(--pgsl-navy); }
    .pgsl-head p { margin: 0; font-size: 15px; color: var(--pgsl-body); }

.pgsl-empty { padding: 24px 16px; border: 1px solid var(--pgsl-line); border-radius: 12px; background: #ffffff; font-size: 15px; color: var(--pgsl-body); }

/* Buttons */
.pgsl-btn {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

    .pgsl-btn:focus-visible, .pgsl-chip:focus-visible, .pgsl-link:focus-visible, .pgsl-more summary:focus-visible { outline: 3px solid var(--pgsl-navy); outline-offset: 2px; }
.pgsl-btn-blue, .pgsl-btn-blue:hover { background: var(--pgsl-navy); color: #ffffff; }
    .pgsl-btn-blue:hover { background: var(--pgsl-blue-dark); }
    .pgsl-btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.pgsl-link { min-height: 44px; padding: 0 4px; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--pgsl-blue); cursor: pointer; }
    .pgsl-link:hover { color: var(--pgsl-navy); }

/* Tools: Use my location, island chips, status line */
.pgsl-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
    .pgsl-tools > .pgsl-btn { align-self: stretch; }
.pgsl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .pgsl-chips::-webkit-scrollbar { display: none; }
.pgsl-chip {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--pgsl-line);
    border-radius: 999px;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--pgsl-navy);
    cursor: pointer;
}

    .pgsl-chip[aria-pressed="true"] { background: #E1251B; border-color: #E1251B; color: #ffffff; }
.pgsl-status { margin: 0; font-size: 13px; color: var(--pgsl-muted); }
    .pgsl-status:empty { display: none; }

/* Map and list */
.pgsl-body { display: flex; flex-direction: column; gap: 16px; }
.pgsl-map-wrap { border: 1px solid var(--pgsl-line); border-radius: 12px; overflow: hidden; background: #EDEEEF; }
.pgsl-map { height: 300px; z-index: 0; }

.pgsl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pgsl-card { padding: 14px 16px; border: 1px solid var(--pgsl-line); border-radius: 12px; background: #ffffff; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 120px; }
    .pgsl-card.is-active { border-color: var(--pgsl-blue); box-shadow: 0 0 0 1px var(--pgsl-blue); }
.pgsl-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
    .pgsl-card-head h2 { margin: 0; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--pgsl-navy); }
.pgsl-dist { flex-shrink: 0; font-size: 14px; color: var(--pgsl-navy); }
.pgsl-addr { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pgsl-body); }
.pgsl-hours { margin: 0; font-size: 14px; font-weight: 600; color: var(--pgsl-body); }
    .pgsl-hours .is-open { color: var(--pgsl-green); }
    .pgsl-hours .is-closed { color: var(--pgsl-red); }

.pgsl-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
    .pgsl-facts li { min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--pgsl-soft); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--pgsl-navy); }
        .pgsl-facts li i { font-size: 12px; color: var(--pgsl-blue); }

.pgsl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
    .pgsl-actions > .pgsl-btn { flex: 1 1 100%; }
.pgsl-more { position: relative; }
    .pgsl-more summary { min-height: 44px; padding: 0 4px; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--pgsl-blue); cursor: pointer; list-style: none; }
        .pgsl-more summary::-webkit-details-marker { display: none; }
        .pgsl-more summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; }
    .pgsl-more[open] summary::after { transform: rotate(180deg); }
    .pgsl-more ul { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
        .pgsl-more a { min-height: 36px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--pgsl-blue); }

.pgsl-note { margin: 20px 0 0; font-size: 12px; color: var(--pgsl-muted); }

/* Map pins: our stores only, navy with a white store; the chosen one blue and larger. */
.pgsl-pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; background: var(--pgsl-navy, #00263E); border: 2px solid #ffffff; box-shadow: 0 2px 6px rgba(0, 38, 62, .35); transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; }
    .pgsl-pin i { transform: rotate(45deg); color: #ffffff; font-size: 13px; }
    .pgsl-pin.is-active { background: #E1251B; width: 38px; height: 38px; }
.pgsl-you { width: 18px; height: 18px; border-radius: 50%; background: #C21E15; border: 3px solid #ffffff; box-shadow: 0 0 0 6px rgba(194, 30, 21, .2); }

.pgsl .leaflet-popup-content { margin: 12px 14px; font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.pgsl-pop { display: flex; flex-direction: column; gap: 8px; min-width: 180px; }
    .pgsl-pop b { font-size: 14px; color: #00263E; }
    .pgsl-pop span { font-size: 12px; color: #3C3E41; }
    .pgsl-pop a.pgsl-btn { min-height: 40px; font-size: 14px; color: #ffffff; }

@media (min-width: 992px) {
    .pgsl { padding: 32px 24px 48px; }
        .pgsl-head h1 { font-size: 32px; }
    .pgsl-tools { flex-direction: row; flex-wrap: wrap; align-items: center; }
        .pgsl-tools > .pgsl-btn { align-self: auto; }
    .pgsl-status { flex-basis: 100%; }
    .pgsl-body { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; gap: 20px; }
    .pgsl-map-wrap { order: 2; position: sticky; top: 76px; }
    .pgsl-map { height: calc(100vh - 140px); min-height: 420px; max-height: 760px; }
    .pgsl-list { order: 1; }
    .pgsl-actions > .pgsl-btn { flex: 0 0 auto; }
}
