/* =============================================
   holstrandoljak.com – Beaches Page
   ============================================= */

/* ===== HERO ===== */
.beaches-hero {
    padding: 130px 0 50px;
    background: linear-gradient(175deg, #e0f7fa 0%, #b2ebf2 50%, var(--white) 100%);
    text-align: center;
}

.beaches-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--ocean-deep);
    margin-bottom: 8px;
}

.beaches-hero-subtitle {
    font-size: 1rem;
    color: rgba(10, 77, 104, 0.6);
    margin-bottom: 28px;
}

/* Keresősáv */
.beaches-search-bar {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(10, 77, 104, 0.1);
    border-radius: 16px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 4px 20px rgba(10, 77, 104, 0.08);
    gap: 10px;
}

.beaches-search-bar i {
    color: var(--ocean-light);
    font-size: 0.95rem;
}

.beaches-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: transparent;
}

.beaches-search-bar input::placeholder {
    color: #b0bec5;
}

.beaches-search-bar button {
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-deep));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beaches-search-bar button:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(8, 131, 149, 0.3);
}

/* ===== MAIN LAYOUT ===== */
.beaches-main {
    padding: 40px 0 80px;
    background: var(--white);
}

.beaches-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.beaches-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.sidebar-inner {
    background: var(--white);
    border: 1px solid rgba(10, 77, 104, 0.06);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(10, 77, 104, 0.06);
}

.sidebar-header-mobile {
    display: none;
}

/* Szűrő csoportok */
.filter-group {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(10, 77, 104, 0.05);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
}

.filter-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title i {
    color: var(--ocean-mid);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.filter-select {
    width: 100%;
    border: 1px solid rgba(10, 77, 104, 0.1);
    border-radius: 10px;
    padding: 9px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--dark);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
}

.filter-select:focus {
    border-color: var(--ocean-mid);
}

/* Szolgáltatás checkboxok */
.amenity-category {
    margin-bottom: 12px;
}

.amenity-category-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8895a4;
    display: block;
    margin-bottom: 6px;
}

.amenity-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amenity-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--sand-light);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sand-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.amenity-check:has(input:checked) {
    background: rgba(8, 131, 149, 0.1);
    color: var(--ocean-deep);
}

.amenity-check input {
    display: none;
}

.amenity-check i {
    font-size: 0.7rem;
}

/* Szűrő gombok */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-apply-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-deep));
    color: white;
    border: none;
    padding: 11px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(8, 131, 149, 0.3);
}

.filter-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #8895a4;
    text-decoration: none;
    background: var(--sand-light);
    transition: all 0.2s ease;
}

.filter-clear-btn:hover {
    background: rgba(239, 83, 80, 0.08);
    color: #c62828;
}

/* ===== CONTENT ===== */
.beaches-content {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.beaches-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-toggle-btn {
    background: var(--white);
    border: 1px solid rgba(10, 77, 104, 0.1);
    border-radius: 10px;
    padding: 9px 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    border-color: var(--ocean-mid);
    color: var(--ocean-mid);
}

.filter-count {
    background: var(--ocean-mid);
    color: white;
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 10px;
}

/* Aktív szűrő chip-ek */
.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(8, 131, 149, 0.06);
    border: 1px solid rgba(8, 131, 149, 0.12);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ocean-deep);
}

.filter-chip i { font-size: 0.7rem; }

.filter-chip a {
    color: var(--ocean-mid);
    display: flex;
    margin-left: 2px;
    transition: color 0.2s;
}

.filter-chip a:hover { color: #c62828; }

/* ===== GRID ===== */
.beaches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.beaches-grid-item {
    display: flex;
}

.beaches-grid-item .beach-card {
    width: 100%;
}

/* Üres állapot */
.beaches-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #8895a4;
}

.beaches-empty i {
    font-size: 3rem;
    color: var(--ocean-light);
    margin-bottom: 16px;
    display: block;
}

.beaches-empty h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.beaches-empty p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.beaches-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-deep));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.beaches-empty-btn:hover {
    transform: translateY(-2px);
    color: white;
}

/* Lapozás */
.beaches-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.beaches-pagination .pagination .page-link {
    border: 1px solid rgba(10, 77, 104, 0.08);
    color: var(--dark);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    border-radius: 8px !important;
    margin: 0 3px;
    padding: 8px 14px;
}

.beaches-pagination .pagination .page-item.active .page-link {
    background: var(--ocean-mid);
    border-color: var(--ocean-mid);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .beaches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .beaches-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 320px;
        z-index: 1050;
        background: var(--white);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: 100vh;
        border-radius: 0;
    }

    .beaches-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-inner {
        border: none;
        border-radius: 0;
        box-shadow: none;
        height: 100%;
        overflow-y: auto;
        padding-bottom: 40px;
    }

    .sidebar-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(10, 77, 104, 0.08);
    }

    .sidebar-header-mobile h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--dark);
        margin: 0;
    }

    .sidebar-close-btn {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #8895a4;
        cursor: pointer;
    }

    .filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1045;
        display: none;
    }

    .filter-overlay.show {
        display: block;
    }

    .beaches-layout {
        gap: 0;
    }

    .beaches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .beaches-grid {
        grid-template-columns: 1fr;
    }

    .beaches-search-bar {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    .beaches-search-bar i {
        display: none;
    }

    .beaches-search-bar input {
        width: 100%;
        padding: 10px;
    }

    .beaches-search-bar button {
        width: 100%;
        text-align: center;
    }
}

/* Scrollbar sidebar */
.beaches-sidebar::-webkit-scrollbar,
.sidebar-inner::-webkit-scrollbar {
    width: 4px;
}

.beaches-sidebar::-webkit-scrollbar-thumb,
.sidebar-inner::-webkit-scrollbar-thumb {
    background: var(--ocean-light);
    border-radius: 4px;
}