/* ==========================================================================
   Archive Location
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header + Filters
   -------------------------------------------------------------------------- */

.archive-location__header {
    margin-bottom: 30px;
    padding-top: 45px;
}

.archive-location__title {
    margin-bottom: 24px;
}

.archive-location__header .filterbox__searchbar {
    position: relative;
}

.archive-location__header .filterbox__search-label {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.archive-location__header .filterbox__searchbar-wrapper {
    background: #fff;
    border: 1px solid #8e8e8e;
    display: flex;
    max-width: 480px;
    padding: 0;
    position: relative;
}

.archive-location__header .filterbox__searchbar-input {
    border: 0;
    font-size: inherit;
    line-height: inherit;
    padding: 3px 9px;
    width: 100%;
}

.archive-location__header .filterbox__search-btn {
    appearance: none;
    background: transparent;
    border: 0;
    color: #424242;
    cursor: pointer;
    display: grid;
    font-size: inherit;
    line-height: inherit;
    padding: 0 8px;
    place-items: center;
}

/* --------------------------------------------------------------------------
   Tile Grid (reusing ODP list styles)
   -------------------------------------------------------------------------- */

.odp-list-container {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
    min-height: 250px;
}

@media screen and (width >= 500px) {
    .odp-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (width >= 768px) {
    .odp-list-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Tile Card
   -------------------------------------------------------------------------- */

.odp-list-container .tiles__tile {
    background: var(--color-navy);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--reduced-motion, 0.3s);
}

.odp-list-container .tiles__tile:hover {
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.15);
}

.tiles__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    order: -1;
}

.tiles__img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media screen and (width >= 1080px) {
    .tiles__img {
        height: 300px;
    }
}

.tiles--txt {
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px 20px 20px;
}

@media screen and (width >= 500px) and (width >= 1080px) {
    .tiles--txt {
        margin-inline: 36px;
    }
}

.description__head {
    color: var(--color-white);
}

.description__headtext {
    color: var(--color-white);
    font-size: var(--h5-fs);
    line-height: var(--h5-lh);
    margin: 0;
}

.tiles__title-link {
    color: inherit;
    text-decoration: none;
}

.odp-list-container .tiles__title-link:hover {
    color: inherit;
}

.item-address {
    color: var(--color-white);
    font-size: 14px;
    font-style: normal;
    margin-top: 8px;
}

.actionbar {
    margin-top: auto;
    padding-top: 15px;
}

.link-overlay {
    inset: 0;
    position: absolute;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   No Results
   -------------------------------------------------------------------------- */

.archive-location__no-results {
    font-style: italic;
    padding: 60px 0;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.blog-overview__pagination {
    margin-top: 30px;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin: 0 0 30px;
    padding: 0;
}

.pager__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pager__item {
    align-items: center;
    border-radius: 50%;
    color: var(--color-navy);
    display: flex;
    font-weight: 400;
    height: 30px;
    justify-content: center;
    line-height: 30px;
    min-width: 30px;
    text-decoration: none;
    transition: var(--reduced-motion, 0.2s);
}

a.pager__item {
    color: var(--color-navy);
}

a.pager__item:hover,
.pager__item.--current {
    background-color: var(--color-navy);
    color: #fff;
}

span.pager__item {
    background-color: transparent;
    color: var(--color-text-muted);
}

.pager__item.--previous,
.pager__item.--next {
    color: var(--color-navy);
    font-size: 0;
}

.pager__item.--previous svg,
.pager__item.--next svg {
    height: 20px;
    width: 20px;
}

.pager__item.--dots {
    color: var(--color-text-muted);
    cursor: default;
    pointer-events: none;
}

.pager__item .button__title {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* --------------------------------------------------------------------------
   Mobile: horizontal card layout
   -------------------------------------------------------------------------- */

@media screen and (width <= 499px) {
    .odp-list-container .tiles__tile {
        flex-direction: row;
        gap: 8px;
        min-height: 100px;
    }

    .odp-list-container .tiles__img {
        aspect-ratio: auto;
        height: 100%;
        min-height: 100px;
        width: 100px;
        flex-shrink: 0;
    }

    .odp-list-container .tiles--txt {
        padding: 12px 15px;
    }

    .odp-list-container .description__headtext {
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .odp-list-container .actionbar,
    .odp-list-container .item-address__zipcode {
        display: none;
    }
}
