.facility-grid {
    box-sizing: border-box;
    width: 100%;
    max-width: 1140px;
    margin: 2em auto 0 auto;
    /* min-height: 80vh; */
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 28vw, 380px), 1fr));
    align-items: start;

    @media screen and (max-width: 768px) {
        min-height: auto;
    }
}

.facility-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.facility-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    min-height: 20vh;
}

.facility-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.facility-card__name {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
}

.facility-card__meta p {
    margin: 8px 0;
    color: #555;
}

.facility-card__services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.facility-card__service-tag {
    background-color: #e7f3ff;
    color: #005a9c;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}

.facility-list-container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5em 1em;
}

.search-results-summary {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
}

.facility-list-container .catchphrase-title {
    opacity: 1;
    transform: none;
    color: #005a9c;
    margin: 3rem auto;
}

.facility-search-form {

    border-radius: 8px;
    margin-bottom: 2em;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 3rem auto;

}

.facility-search-form .form-group {
    display: flex;
    flex-direction: column;
}

.facility-search-form label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.facility-search-form select,
.facility-search-form input[type="text"],
.facility-search-form button {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.facility-search-form button {
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    border-color: #0073aa;
    align-self: flex-end;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    border: 1px solid #ddd;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}


@media (max-width: 768px) {
    .facility-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .facility-search-form button {
        align-self: auto;
    }
}


.facility-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.facility-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}

.facility-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.facility-modal__content {
    position: relative;
    width: 90%;
    height: 85%;
    max-width: 960px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.facility-modal__content iframe {
    width: 100%;
    height: 100%;
}

.facility-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}



.search-results-summary.no-results {
    margin-top: 100px;
    text-align: center;
    min-height: 40vh;
}

body>main>div.facility-list-container>div>p {
    font-size: 1.2em;
    margin: 2em 0;
}

.facility-promo {
    display: inline-block;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    text-align: center;
}

.facility-promo__lead {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.facility-promo__desc {
    color: #666;
    margin: 0 0 12px;
}

.facility-promo__btn {
    display: inline-block;
    padding: 10px 16px;
    background: #0a63c7;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(10, 99, 199, 0.18);
}

.facility-promo__btn:hover {
    opacity: 0.95;
}