/* Cebu Pickleball Hub - Court Templates */

.cph-court-page,
.cph-archive-page {
    --cph-text: #17201c;
    --cph-muted: #66716c;
    --cph-border: #e3e8e5;
    --cph-soft: #f5f8f6;
    --cph-accent: #1d6b4f;
    --cph-accent-dark: #124c38;
    --cph-white: #fff;
    color: var(--cph-text);
}

.cph-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.cph-court-page a,
.cph-archive-page a {
    text-decoration: none;
}

.cph-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 13px;
    color: var(--cph-muted);
    margin-bottom: 28px;
}

.cph-breadcrumb a {
    color: var(--cph-accent);
}

.cph-court-hero {
    background: var(--cph-soft);
    padding: 34px 0 60px;
}

.cph-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.cph-hero-copy h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: .98;
    letter-spacing: -2px;
    margin: 12px 0 18px;
}

.cph-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cph-badge,
.cph-card-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.cph-badge-featured {
    background: #e4f1eb;
    color: var(--cph-accent-dark);
}

.cph-status-active {
    background: #e9f7ef;
    color: #16653f;
}

.cph-status-warning {
    background: #fff3d8;
    color: #8a5c00;
}

.cph-status-closed {
    background: #fce8e8;
    color: #9a3131;
}

.cph-status-neutral {
    background: #edf0ef;
    color: #59625e;
}

.cph-location {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px;
}

.cph-icon {
    color: var(--cph-accent);
}

.cph-address {
    color: var(--cph-muted);
    margin: 0;
}

.cph-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 700;
    transition: .2s ease;
}

.cph-btn-primary {
    background: var(--cph-accent);
    color: #fff !important;
}

.cph-btn-primary:hover {
    background: var(--cph-accent-dark);
}

.cph-btn-secondary {
    background: #fff;
    color: var(--cph-text) !important;
    border: 1px solid var(--cph-border);
}

.cph-hero-image {
    min-height: 380px;
    overflow: hidden;
    border-radius: 18px;
    background: #dfe7e3;
}

.cph-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
}

.cph-image-placeholder {
    min-height: 250px;
    display: grid;
    place-items: center;
    background: #dfe7e3;
    color: #52605a;
    font-weight: 700;
}

.cph-content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 70px;
    padding-top: 70px;
    padding-bottom: 90px;
}

.cph-section {
    padding: 0 0 55px;
    margin-bottom: 55px;
    border-bottom: 1px solid var(--cph-border);
}

.cph-section-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 25px;
}

.cph-section-heading span {
    color: var(--cph-accent);
    font-size: 12px;
    font-weight: 800;
}

.cph-section-heading h2 {
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
}

.cph-rich-content {
    color: #4e5954;
    font-size: 17px;
    line-height: 1.75;
}

.cph-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cph-info-card {
    padding: 22px;
    border: 1px solid var(--cph-border);
    border-radius: 12px;
    background: #fff;
}

.cph-info-card small {
    display: block;
    color: var(--cph-muted);
    margin-bottom: 7px;
}

.cph-info-card strong {
    font-size: 18px;
}

.cph-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cph-amenity {
    border: 1px solid var(--cph-border);
    background: var(--cph-soft);
    padding: 11px 15px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.cph-hours {
    border: 1px solid var(--cph-border);
    border-radius: 12px;
    overflow: hidden;
}

.cph-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--cph-border);
}

.cph-hours-row:last-child {
    border-bottom: 0;
}

.cph-hours-day {
    font-weight: 700;
}

.cph-hours-time {
    color: var(--cph-muted);
    text-align: right;
}

.cph-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cph-gallery-item {
    display: block;
    aspect-ratio: 1 / .8;
    overflow: hidden;
    border-radius: 12px;
}

.cph-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.cph-gallery-item:hover img {
    transform: scale(1.04);
}

.cph-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cph-sidebar-card {
    border: 1px solid var(--cph-border);
    border-radius: 14px;
    padding: 24px;
    background: #fff;
}

.cph-sidebar-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
}

.cph-sidebar-card p {
    color: var(--cph-muted);
    line-height: 1.6;
}

.cph-sidebar-location {
    color: var(--cph-text) !important;
    font-weight: 700;
}

.cph-sidebar-link {
    color: var(--cph-accent);
    font-weight: 700;
}

.cph-contact-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--cph-border);
}

.cph-contact-row:last-of-type {
    border-bottom: 0;
}

.cph-contact-row span {
    color: var(--cph-muted);
}

.cph-contact-row strong {
    color: var(--cph-text);
    text-align: right;
}

.cph-full {
    width: 100%;
    margin-top: 18px;
}

.cph-map-placeholder {
    padding: 25px 15px;
    background: var(--cph-soft);
    border-radius: 10px;
    text-align: center;
}

.cph-map-placeholder span {
    font-size: 28px;
}

.cph-map-placeholder p {
    font-size: 12px;
    margin: 8px 0;
}

.cph-map-placeholder a {
    color: var(--cph-accent);
    font-weight: 700;
}

.cph-archive-hero {
    background: var(--cph-soft);
    padding: 34px 0 65px;
}

.cph-eyebrow {
    color: var(--cph-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 12px;
}

.cph-archive-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -2px;
    margin: 0 0 18px;
}

.cph-archive-intro {
    max-width: 650px;
    color: var(--cph-muted);
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
}

.cph-archive-content {
    padding-top: 60px;
    padding-bottom: 90px;
}

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

.cph-court-card {
    overflow: hidden;
    border: 1px solid var(--cph-border);
    border-radius: 14px;
    background: #fff;
}

.cph-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dfe7e3;
}

.cph-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cph-card-featured {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 7px 10px;
    background: #fff;
    color: var(--cph-accent-dark);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.cph-card-body {
    padding: 22px;
}

.cph-card-status {
    background: var(--cph-soft);
    color: var(--cph-accent-dark);
    margin-bottom: 10px;
}

.cph-card-body h2 {
    font-size: 23px;
    line-height: 1.15;
    margin: 0 0 9px;
}

.cph-card-body h2 a {
    color: var(--cph-text);
}

.cph-card-location {
    color: var(--cph-muted);
    margin: 0 0 15px;
    font-size: 14px;
}

.cph-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.cph-card-meta span {
    font-size: 12px;
    padding: 7px 9px;
    background: var(--cph-soft);
    border-radius: 6px;
    color: var(--cph-muted);
}

.cph-card-link {
    color: var(--cph-accent);
    font-weight: 800;
}

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

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

.cph-pagination a,
.cph-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--cph-border);
    border-radius: 8px;
    color: var(--cph-text);
}

.cph-pagination .current {
    background: var(--cph-accent);
    border-color: var(--cph-accent);
    color: #fff;
}

.cph-empty {
    text-align: center;
    padding: 80px 20px;
    border: 1px dashed var(--cph-border);
    border-radius: 14px;
}

@media (max-width: 900px) {
    .cph-hero-grid,
    .cph-content-wrap {
        grid-template-columns: 1fr;
    }

    .cph-sidebar {
        order: 2;
    }

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

    .cph-hero-image,
    .cph-hero-image img {
        min-height: 300px;
    }
}

@media (max-width: 620px) {
    .cph-wrap {
        width: min(100% - 28px, 1180px);
    }

    .cph-court-hero,
    .cph-archive-hero {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .cph-hero-copy h1,
    .cph-archive-hero h1 {
        letter-spacing: -1px;
    }

    .cph-actions {
        flex-direction: column;
    }

    .cph-btn {
        width: 100%;
    }

    .cph-content-wrap,
    .cph-archive-content {
        padding-top: 45px;
        padding-bottom: 60px;
    }

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

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

    .cph-section-heading h2 {
        font-size: 25px;
    }

    .cph-hours-row {
        padding: 13px 14px;
    }
}
