/* ==================== VENUES PAGE CONTENT STYLES ==================== */
/* Base styles (header, footer, nav, buttons) are in main.css */

/* ==================== PAGE HEADER ==================== */
.page-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #0A0E27 0%, #1E293B 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: white;
}

.page-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== FILTERS SECTION (TOP) ==================== */
.filters-section {
    background: white;
    padding: 1rem 0;  /* Even tighter - 1rem */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 85px;
    z-index: 100;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(255, 51, 102, 0.1));
    border: 2px solid var(--primary);
    border-radius: 12px;
    transition: all 0.3s;
}

.filters-toggle:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
}

.filters-toggle i {
    transition: transform 0.3s;
}

.filters-toggle.active i {
    transform: rotate(180deg);
}

.filters-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.results-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
}

.results-count span {
    color: var(--primary);
    font-weight: 700;
}

.filters-clear {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
}

.filters-clear:hover {
    background: var(--primary);
    color: white;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.filters-container.active {
    max-height: 800px;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light);
    overflow: visible;  /* Add this line */
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label i {
    color: var(--primary);
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    transition: all 0.3s;
    cursor: pointer;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-checkboxes::-webkit-scrollbar {
    width: 4px;
}

.filter-checkboxes::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.filter-checkboxes::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Amenities Dropdown */
.amenities-dropdown {
    position: relative;
}

.amenities-dropdown-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.amenities-dropdown-btn:hover,
.amenities-dropdown-btn.active {
    border-color: var(--primary);
    background: var(--light);
}

.amenities-dropdown-btn i {
    transition: transform 0.3s;
    color: var(--gray);
}

.amenities-dropdown-btn.active i {
    transform: rotate(180deg);
}

.amenities-dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--light);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
}

.amenities-dropdown-content.active {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.amenities-dropdown-content .filter-checkbox-item {
    padding: 0.6rem 0.8rem;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-checkbox-item:hover {
    background: var(--light);
}

.filter-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-checkbox-item label {
    flex: 1;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--slate);
}

.price-range-inputs {
    display: flex;
    gap: 0.8rem;
}

.price-input-wrapper {
    flex: 1;
}

.price-input-wrapper input {
    width: 100%;
}

/* Quick Filters */
.quick-filters {
    display: none;;
}

.quick-filter-chip {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid var(--light);
    color: var(--slate);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-filter-chip:hover,
.quick-filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* ==================== RESULTS SECTION ==================== */
.results-section {
    padding: 60px 0 80px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.active-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(255, 51, 102, 0.1));
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag i {
    cursor: pointer;
    transition: color 0.3s;
}

.filter-tag i:hover {
    color: var(--secondary);
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--light);
    padding: 0.3rem;
    border-radius: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sort-select {
    padding: 0.7rem 1.2rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==================== VENUES GRID (4 COLUMNS) ==================== */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.venue-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.venue-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.venue-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.venue-card:hover .venue-image img {
    transform: scale(1.1);
}

.venue-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.venue-badge.featured {
    background: var(--gold);
}

.venue-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--slate);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.venue-wishlist:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.venue-info {
    padding: 1.2rem;
}

.venue-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.8rem;
}

.venue-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.venue-location {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.venue-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--gold), #F59E0B);
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.venue-amenities {
    display: flex;
    gap: 0.6rem;
    margin: 0.8rem 0;
    flex-wrap: wrap;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.amenity-item i {
    color: var(--accent);
    font-size: 0.8rem;
}

.venue-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--light);
}

.venue-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
}

.price-amount span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray);
}

.btn-book {
    display: inline-block;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .venues-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filters-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .venues-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .filters-container {
        grid-template-columns: 1fr;
    }

    .filters-section {
        top: 80px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-controls {
        width: 100%;
        justify-content: space-between;
    }

    .venues-grid {
        grid-template-columns: 1fr;
    }
}