@charset "UTF-8";
/* CSS Document */

/* ==========================================================================
   Filter Area Styles (UPDATED)
   ========================================================================== */

.wg-venue-filter-wrapper {
    /* Border and Radius */
    border: 1px solid var(--wg-medium-gray);
    border-radius: 10px;
    
    /* Padding (Desktop/Tablet default) */
    padding: 30px; 
    margin-bottom: 30px; /* Space below the filter */
}

/* Filter Title */
.wg-venue-filter-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

/* Desktop/Tablet Filter List */
.wg-venue-filter-list {
    list-style: none; 
    /* REMOVED PADDING using !important to override theme/browser defaults */
    padding: 0 !important; 
    margin: 0;
    display: flex;
    flex-wrap: wrap; 
    /* Line height with !important for vertical spacing */
    line-height: 2.5 !important; 
}

.wg-venue-filter-list li {
    display: inline-block;
    /* Spacing between button items (at least 10px) */
    margin-right: 10px; 
    margin-bottom: 10px; /* Vertical margin for wrapping items */
}

/* Fix: Remove the left margin/indentation for the first item only ("All") */
.wg-venue-filter-list li:first-child {
    margin-left: 0;
}

.wg-venue-filter-list li a {
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--wg-red); 
    border-radius: 3px; 
    color: inherit; 
    background-color: transparent;
}

/* Hover State Styling */
.wg-venue-filter-list li a:hover {
    background-color: var(--wg-red); 
    color: var(--wg-white) !important;
    border-color: var(--wg-red);
    text-decoration: none;
}

/* Active Button Styling */
.wg-venue-filter-list li a.active {
    font-weight: bold;
    
    /* Text colour to white with !important */
    color: var(--wg-white) !important; 
    
    /* Active Button Colors */
    background-color: var(--wg-green); /* Green Background */
    border-color: var(--wg-green); /* Green Border */
}

/* Mobile Dropdown (Hidden on Desktop) */
.wg-venue-filter-mobile-dropdown {
    display: none;
}

/* ==========================================================================
   Results Grid Styles (No change)
   ========================================================================== */

.wg-venue-grid {
    display: grid;
    gap: 15px; 
    /* Margin added below the grid to separate from pagination */
    margin-bottom: 40px; 
}

.wg-venue-grid-item {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    align-items: center;
    background-color: var(--wg-light-gray);
    border-radius: 10px;
    padding: 30px; 
}

.wg-venue-name {
    font-weight: bold;
    font-size: 1.1em;
}

.wg-venue-name a {
    text-decoration: none;
    color: inherit; 
}

.wg-venue-name a:hover {
    text-decoration: underline;
}

.wg-venue-location {
    text-align: right;
    font-size: 0.9em;
    color: #555; 
}

/* ==========================================================================
   Responsive Adjustments (Mobile - screens up to 768px)
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Filter Area Mobile Adjustments */
    .wg-venue-filter-wrapper {
        padding: 20px; 
    }

    /* Hide list and show dropdown */
    .wg-venue-filter-list {
        display: none;
    }

    .wg-venue-filter-mobile-dropdown {
        display: block;
    }

    .wg-venue-filter-mobile-dropdown select {
        width: 100%;
        padding: 10px;
        border-radius: 4px;
        border: 1px solid var(--wg-medium-gray);
        font-size: 1.3em; 
    }
    
    /* Results Grid Mobile Adjustments */
    .wg-venue-grid-item {
        grid-template-columns: 1fr;
        padding: 20px; 
    }
    
    /* Reset text alignment */
    .wg-venue-location {
        text-align: left;
        margin-top: 5px; 
    }
    
    .wg-venue-name {
        border-bottom: 1px solid var(--wg-medium-gray);
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
}