/* Cebu Pickleball Hub - Court Directory Filters */

.cph-court-directory {
    background: #f5f7f5;
    color: #17352b;
    min-height: 60vh;
    padding: 56px 20px 80px;
}

.cph-directory-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.cph-directory-header {
    margin-bottom: 28px;
}

.cph-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .14em;
    color: #2f7d5a;
}

.cph-directory-header h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #12352a;
}

.cph-directory-intro {
    max-width: 720px;
    margin: 0;
    color: #617069;
    font-size: 17px;
    line-height: 1.65;
}

.cph-court-filters {
    background: #fff;
    border: 1px solid #e0e7e2;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(17, 48, 37, .06);
    margin-bottom: 22px;
}

.cph-filter-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 14px;
}

.cph-filter-field label {
    display: block;
    margin: 0 0 7px;
    color: #28453b;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 750;
}

.cph-filter-field input,
.cph-filter-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ccd8d1;
    border-radius: 10px;
    background: #fff;
    color: #17352b;
    padding: 0 13px;
    font-size: 15px;
    box-sizing: border-box;
}

.cph-filter-field input:focus,
.cph-filter-field select:focus {
    outline: 2px solid rgba(47, 125, 90, .22);
    outline-offset: 1px;
    border-color: #2f7d5a;
}

.cph-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.cph-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #1e6b4a;
    color: #fff !important;
    font-weight: 750;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.cph-filter-button:hover {
    background: #17563c;
    transform: translateY(-1px);
}

.cph-clear-filters {
    color: #49635a;
    font-weight: 650;
    text-decoration: none;
}

.cph-clear-filters:hover {
    color: #1e6b4a;
    text-decoration: underline;
}

.cph-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    margin-bottom: 12px;
    color: #52645d;
    font-size: 14px;
}

.cph-results-bar strong {
    color: #17352b;
    font-size: 18px;
}

.cph-results-filtered {
    margin-left: 5px;
    color: #77857f;
}

.cph-court-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cph-court-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e7e2;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(17, 48, 37, .06);
}

.cph-court-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dfe8e2;
    text-decoration: none;
}

.cph-court-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.cph-court-card:hover .cph-court-card-media img {
    transform: scale(1.03);
}

.cph-court-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(29, 100, 70, .95), rgba(45, 132, 94, .8));
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
}

.cph-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cph-badge-featured {
    background: #f3d56b;
    color: #4b3a00;
}

.cph-badge-status {
    top: auto;
    bottom: 12px;
    background: rgba(22, 44, 36, .9);
    color: #fff;
}

.cph-court-card-body {
    padding: 18px 18px 20px;
}

.cph-card-kicker {
    margin-bottom: 6px;
    color: #2f7d5a;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cph-court-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -.015em;
}

.cph-court-card h2 a {
    color: #17352b;
    text-decoration: none;
}

.cph-court-card h2 a:hover {
    color: #1e6b4a;
}

.cph-card-location {
    margin: 7px 0 0;
    color: #718078;
    font-size: 14px;
}

.cph-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.cph-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 999px;
    background: #edf4ef;
    color: #315c49;
    font-size: 12px;
    font-weight: 700;
}

.cph-card-fee {
    margin-top: 13px;
    color: #1b3f32;
    font-size: 14px;
    font-weight: 750;
}

.cph-card-amenities {
    margin-top: 10px;
    color: #73817b;
    font-size: 12px;
    line-height: 1.45;
}

.cph-card-amenities span {
    color: #1e6b4a;
    font-weight: 800;
}

.cph-view-court {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 17px;
    color: #1e6b4a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.cph-view-court:hover {
    text-decoration: underline;
}

.cph-pagination {
    margin-top: 36px;
}

.cph-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cph-pagination li {
    margin: 0;
    padding: 0;
}

.cph-pagination a,
.cph-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d7e1db;
    border-radius: 9px;
    background: #fff;
    color: #28483b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.cph-pagination .current {
    background: #1e6b4a;
    border-color: #1e6b4a;
    color: #fff;
}

.cph-pagination a:hover {
    border-color: #1e6b4a;
    color: #1e6b4a;
}

.cph-no-results {
    padding: 70px 25px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e7e2;
    border-radius: 18px;
}

.cph-no-results-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #edf4ef;
    color: #1e6b4a;
    font-size: 28px;
}

.cph-no-results h2 {
    margin: 0 0 8px;
    color: #17352b;
}

.cph-no-results p {
    margin: 0 0 20px;
    color: #6d7c75;
}

@media (max-width: 980px) {
    .cph-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cph-court-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cph-court-directory {
        padding: 38px 15px 60px;
    }

    .cph-directory-header h1 {
        font-size: 36px;
    }

    .cph-filter-grid {
        grid-template-columns: 1fr;
    }

    .cph-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cph-filter-button {
        width: 100%;
    }

    .cph-clear-filters {
        text-align: center;
    }

    .cph-court-grid {
        grid-template-columns: 1fr;
    }
}
