/* Extracted from category.php */
.cg-category-page *,
.cg-category-page *::before,
.cg-category-page *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

.cg-category-page {
    scroll-behavior: smooth
}

.cg-category-page {
    font-family: var(--cg-font-sans);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    letter-spacing: .3px
}

.grounds-main-wrapper {
    width: min(100% - 40px, 1280px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px
}

.grounds-breadcrumbs-section {
    margin-bottom: 24px
}

.grounds-breadcrumbs {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px
}

.grounds-breadcrumbs li {
    display: flex;
    align-items: center
}

.grounds-breadcrumbs li:not(:last-child)::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    margin-left: 10px
}

.grounds-breadcrumbs a {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    transition: .3s
}

.grounds-breadcrumbs a:hover {
    color: #0052a3;
    text-decoration: underline
}

.grounds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px
}

.cg-category-page .grounds-header {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #d9e5f3;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    box-shadow: 0 18px 46px rgba(15, 35, 65, .1);
}

.cg-category-page .grounds-header-title h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.14;
}

.cg-category-page .cg-category-intro {
    max-width: 760px;
    margin-top: 16px;
    color: #52667e;
    font-size: 1rem;
    line-height: 1.7;
}

.grounds-header-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px
}

.grounds-header-title i {
    color: #0066cc;
    font-size: 30px
}

.grounds-header-sub {
    font-size: 14px;
    color: #666;
    margin-top: 4px
}

.grounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 10px
}

.grounds-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    transition: .3s;
    border: 1px solid transparent;
    height: 100%;
    animation: grounds-fadeIn .3s ease-out
}

.grounds-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .12);
    border-color: #0066cc
}

.grounds-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%)
}

.grounds-card-content {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1
}

.grounds-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4
}

.grounds-card-address {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: flex;
    gap: 8px;
}

.grounds-card-address span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3em
}

.grounds-card-address i {
    color: #0066cc;
    flex-shrink: 0;
    margin-top: 2px
}

.grounds-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0
}

.grounds-review {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px
}

.grounds-review i {
    color: #ffc107
}

.grounds-rating {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 102, 204, .25)
}

.grounds-load-more-wrap {
    text-align: center;
    margin-top: 32px
}

.grounds-load-more-btn {
    padding: 12px 36px;
    border-radius: 10px;
    border: 2px solid #0066cc;
    background: #fff;
    color: #0066cc;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 204, .15);
    transition: .3s
}

.grounds-load-more-btn:hover {
    background: #0066cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, .35)
}

.grounds-load-more-btn:disabled {
    opacity: .65;
    cursor: not-allowed
}

.grounds-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1
}

.grounds-empty i {
    font-size: 52px;
    color: #ddd;
    margin-bottom: 16px
}

.grounds-empty p {
    margin-bottom: 6px
}

#category-scroll-sentinel {
    width: 100%;
    height: 1px;
    margin-top: 10px
}

.scroll-end-message {
    text-align: center;
    padding: 30px 20px;
    color: #6b7280;
    font-size: 14px
}

@keyframes grounds-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:1024px) {
    .grounds-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))
    }
}

@media (max-width:768px) {
    .grounds-main-wrapper {
        padding: 24px 16px
    }

    .grounds-breadcrumbs-section {
        display: none
    }

    .grounds-header {
        flex-direction: column;
        align-items: flex-start
    }

    .grounds-header-title h1 {
        font-size: 22px
    }

    .grounds-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px
    }

    .grounds-card-image {
        height: 170px
    }

    .grounds-card-content {
        padding: 14px
    }
}

@media (max-width:480px) {
    .grounds-main-wrapper {
        padding: 18px 12px
    }

    .grounds-grid {
        grid-template-columns: 1fr
    }

    .grounds-card-image {
        height: 150px
    }
}
