* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-section {
    position: relative;
    height: 450px;
    width: 100%;
    background-image: url('https://images.unsplash.com/photo-1573132223210-d65883b944aa?q=80&w=1494&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Dark overlay to make text readable */
.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker for better text contrast */
    z-index: 1; /* Sits above the background image */
}

.hero-section .container {
    position: relative;
    z-index: 2; /* Sits above the overlay */
}

.container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1100px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Bar Styling */
/* Ensure the search box doesn't have a white background clash */
.search-box {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 20px; /* Gives space between the text and the search bar */
}

.search-box .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    z-index: 3;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.form-group {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border-right: 1px solid #eee;
}

.form-group:nth-last-child(2) {
    border-right: none;
}

.form-group input, 
.form-group select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
    cursor: pointer;
}

.btn-container {
    flex: 0.8;
    border-right: none;
}

.search-btn {
    width: 100%;
    background-color: #ff5a5f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background-color: #e34b50;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .search-form {
        flex-direction: column;
    }
    .form-group {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .btn-container {
        border-bottom: none;
    }
}

.form-group {
    position: relative; /* Needed for absolute positioning of icons */
    flex: 1;
    min-width: 150px;
    padding: 10px 10px 10px 40px; /* Added 40px left padding for icon space */
    border-right: 1px solid #eee;
}

.icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888; /* Subtle gray for icons */
    font-size: 0.9rem;
}

/* Ensure inputs and selects take up the remaining space */
.form-group input, 
.form-group select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
}

.form-group.btn-container {
    padding-left: 10px; 
}

/* Listings Page Specific Styles */


.listings-container {
    padding: 40px 0;
}

.filters-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filters-section h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.5rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.filter-actions .btn {
    flex: 1;
    text-align: center;
}

/* Optional: if you still want a dedicated "clear" style */
.clear-filters-btn {
    background: var(--gray) !important;
}
.clear-filters-btn:hover {
    background: var(--dark) !important;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-count {
    font-size: 1.1rem;
    color: var(--gray);
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: white;
    font-size: 1rem;
}

/* ✅ Unified with index.html: use .business-grid and .business-card */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.business-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.business-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.business-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.business-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.business-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.business-info p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.business-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
}

.business-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.business-meta i {
    color: var(--primary);
    width: 16px;
}

.business-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 12px 20px;
    border: 2px solid var(--light-gray);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.no-results h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .business-meta {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filters-section {
        padding: 20px;
    }

    .business-info {
        padding: 20px;
    }

    .business-info h3 {
        font-size: 1.2rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}