/* Page styles: passage browsing section and store cards. */

.passage-platform-header {
    width: auto;
    margin: 0 0 15px;
}

.passage-search-container {
    display: flex;
    align-items: center;
}

.passage-header-back-btn {
    display: inline-flex;
    color: #374151;
}

.passage-header-filter-btn {
    position: absolute;
    left: 9px;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    cursor: pointer;
    z-index: 2;
}

.passage-search-container .clear-search-icon {
    left: 56px;
    right: auto;
}

.passage-search-container .search-input {
    padding-left: 92px;
}

.passage-search-container.has-province-chip .search-input {
    padding-left: 190px;
}

.passage-search-container.has-province-chip .clear-search-icon {
    left: 168px;
}

.passage-filter-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(320px, calc(100vw - 32px));
    max-height: min(72vh, 460px);
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    z-index: 1500;
}

.passage-filter-dropdown.hidden {
    display: none;
}

.passage-filter-group {
    display: grid;
    gap: 7px;
}

.passage-filter-group[data-passage-province-options] {
    max-height: min(48vh, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-left: 4px;
    scrollbar-width: thin;
}

.passage-filter-group[data-passage-province-options]::-webkit-scrollbar {
    width: 6px;
}

.passage-filter-group[data-passage-province-options]::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 999px;
}

.passage-filter-group + .passage-filter-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.passage-filter-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.passage-filter-item {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
}

.passage-filter-item.active,
.passage-filter-item:hover,
.passage-filter-item:focus-visible {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    outline: none;
}

.passage-stores-heading {
    width: min(100% - 24px, 1180px);
    margin: 0 auto;
    text-align: right;
}

.passage-stores-heading h1 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1.5;
    font-weight: 900;
}

.passage-stores-heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.8;
}

.passage-stores-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(145px, 1fr));
    gap: 12px;
    justify-content: center;
}

.passage-store-card {
    background: #fff;
    border: 1px solid #edf0f7;
    border-radius: 14px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 6px 18px rgba(50, 50, 93, 0.08);
    position: relative;
    max-width: 260px;
    width: 100%;
}

@media (min-width: 900px) {
    .passage-stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
        gap: 14px;
    }
}

@media (min-width: 1280px) {
    .passage-stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 230px));
        gap: 16px;
    }
}

.passage-store-province {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-block;
    background: #fff1f2;
    color: #ef4444;
    border: 1px solid #ffe4e6;
    border-radius: 999px;
    padding: 2px 24px 2px 8px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    isolation: isolate;
}

.passage-store-province::before {
    content: "";
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ef4444' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.25A2.25 2.25 0 1 1 12 6.75a2.25 2.25 0 0 1 0 4.5Z'/%3E%3C/svg%3E");
    opacity: 0.62;
    pointer-events: none;
}

.passage-store-province-text {
    position: relative;
    z-index: 1;
    letter-spacing: -0.1px;
}

.passage-store-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f6fb;
    border: 1px solid #e7ebf5;
    margin: 4px auto 0;
}

.passage-store-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fb;
    color: #8898aa;
    border: 1px solid #e7ebf5;
    font-size: 24px;
    margin: 4px auto 0;
}

.passage-store-name {
    margin-top: 8px;
    margin-bottom: 3px;
    font-weight: 800;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.35;
    min-height: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.passage-store-description {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.35;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.passage-store-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: #e8f2ff;
    color: #2e5fb8;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.passage-stores-controls {
    display: block;
    margin-bottom: 12px;
}

@media (max-width: 1023px) {
    #mainAppContainer:has(#passage-section.active-section) {
        padding-bottom: 16px !important;
    }

    #mainAppContainer:has(#passage-section.active-section) > .bottom-nav,
    body:has(#passage-section.active-section) .bottom-nav {
        display: none !important;
    }

    .passage-header-back-btn {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .passage-header-back-btn svg {
        width: 23px;
        height: 23px;
    }
}

.passage-search-wrap {
    position: relative;
}

.passage-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #7e8ba9;
}

.passage-search-wrap .search-input {
    width: 100%;
    padding-right: 34px;
    padding-left: 44px;
}

/* Match the homepage's edge-to-edge platform header on the passage route. */
#passage-section.active-section {
    padding-block-start: 0 !important;
}

#passage-section .passage-platform-header {
    top: 0;
    width: calc(100% + 20px);
    margin-inline: -10px;
    border-radius: 0;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    #passage-section .passage-platform-header {
        padding: 11px 18px;
    }

    #passage-section .passage-platform-header .shop-search-sort-row {
        min-height: 48px;
        gap: 12px;
    }

    #passage-section .passage-platform-header .passage-header-back-btn {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    #passage-section .passage-platform-header .passage-header-back-btn svg {
        width: 25px;
        height: 25px;
    }

    #passage-section .passage-platform-header .search-input {
        min-height: 46px;
        padding-block: 12px;
        font-size: 15px;
    }

    #passage-section .passage-platform-header .search-icon {
        width: 19px;
        height: 19px;
        right: 12px;
    }

    #passage-section .passage-platform-header .passage-header-filter-btn {
        left: 8px;
        width: 38px;
        height: 38px;
    }

    #passage-section .passage-platform-header .passage-filter-svg {
        width: 18px;
        height: 18px;
    }

    #passage-section .passage-platform-header .desktop-header-nav {
        gap: 10px;
    }

    #passage-section .passage-platform-header .desktop-header-nav-btn {
        min-height: 46px;
        padding: 10px 17px;
        gap: 9px;
        font-size: 0.96rem;
    }

    #passage-section .passage-platform-header .desktop-header-nav-btn .nav-icon-svg {
        width: 22px;
        height: 22px;
    }

    #passage-section .passage-platform-header .desktop-account-nav-btn {
        min-height: 46px;
        max-width: 196px;
        padding-inline: 15px;
    }

    #passage-section .passage-platform-header .desktop-account-nav-btn .desktop-account-icon {
        width: 19px !important;
        height: 19px !important;
        inline-size: 19px !important;
        block-size: 19px !important;
        min-width: 19px !important;
        max-width: 19px !important;
        min-height: 19px !important;
        max-height: 19px !important;
        flex-basis: 19px !important;
    }
}

.passage-province-chip {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: min(110px, 34%);
    background: #f3f7ff;
    color: #3458a9;
    border: 1px solid #d8e6ff;
    border-radius: 999px;
    padding: 4px 8px 4px 6px;
    z-index: 3;
}

.passage-province-chip-text {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.passage-province-chip-clear {
    border: 0;
    background: transparent;
    color: #d23242;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.passage-filter-svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 360px) {
    .passage-stores-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}
