* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-bottom: 80px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.location-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f4;
    padding: 8px 15px;
    border-radius: 24px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.location-select:hover {
    background: #e8eaeb;
}

.location-select select {
    border: none;
    background: transparent;
    font-weight: 500;
    cursor: pointer;
}

.search-bar {
    background: white;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 500px;
}

.search-bar:focus-within {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.search-bar i {
    color: #666;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    margin-left: 12px;
    font-size: 1rem;
    background: transparent;
}

.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    background: white;
    margin: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .categories {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

    /* Header adjustments */
    .header {
        padding: 10px 16px;
        flex-direction: column;
        gap: 12px;
    }

    .header-top {
        width: 100%;
        justify-content: space-between;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
    }

    /* Category grid adjustments */
    .categories {
        grid-template-columns: repeat(2, 1fr);
        margin: 10px;
        gap: 12px;
        padding: 15px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* Logo size adjustment */
    .logo {
        width: 80px;
    }

    /* Button and interactive elements */
    .contact-button,
    .view-button,
    .call-button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Bottom navigation */
    .bottom-nav {
        width: 95%;
        padding: 10px 0;
    }

    .nav-item {
        padding: 8px 10px;
    }

    /* Business card adjustments */
    .business-card {
        flex-direction: column;
        text-align: center;
    }

    .business-img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* Listing card adjustments */
    .listing-card {
        flex-direction: column;
    }

    .listing-image {
        width: 100%;
        margin-bottom: 10px;
    }

    .category-item {
        text-align: center;
        cursor: pointer;
        padding: 12px;
        border-radius: 12px;
        transition: transform 0.2s, background 0.2s;
    }

    .category-item:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
    }

    .category-icon {
        background: linear-gradient(135deg, #3B82F6, #6366f1);
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin: 0 auto 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
    }

    .listing-card {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        margin: 10px;
        padding: 15px;
        border-radius: 16px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    @media (min-width: 768px) {
        .listing-card {
            margin: 16px;
            padding: 20px;
        }
    }

    .listing-card:hover {
        transform: translateY(-2px);
    }

    .listing-image {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .rating {
        color: #f59e0b;
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.9rem;
        margin: 8px 0;
    }

    .contact-button {
        background: #3B82F6;
        color: white;
        padding: 10px 24px;
        border-radius: 24px;
        border: none;
        margin-top: 12px;
        cursor: pointer;
        font-weight: 500;
        transition: background 0.2s, transform 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .contact-button:hover {
        background: #2563eb;
        transform: scale(0.98);
    }

    .bottom-nav {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-around;
        padding: 12px 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-radius: 50px;
        z-index: 1000;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .bottom-nav:hover {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    }

    @media (max-width: 480px) {
        .bottom-nav {
            padding: 8px 0;
        }
    }

    .nav-item {
        text-align: center;
        color: #64748b;
        font-size: 0.8rem;
        cursor: pointer;
        padding: 10px 15px;
        border-radius: 20px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .nav-item.active {
        color: #3B82F6;
        background: rgba(59, 130, 246, 0.1);
    }

    .nav-item:hover {
        color: #3B82F6;
    }

    .nav-item i {
        font-size: 1.4rem;
    }

    .nav-item span {
        font-size: 0.7rem;
        font-weight: 500;
    }

    @media (max-width: 480px) {
        .nav-item {
            padding: 8px 12px;
            font-size: 0.7rem;
        }

        .nav-item i {
            font-size: 1.2rem;
        }

        .nav-item span {
            font-size: 0.6rem;
        }
    }

    .suggestions {
        position: absolute;
        background: white;
        width: calc(100% - 40px);
        margin: 8px 20px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 10;
        display: none;
    }

    .suggestions div {
        padding: 14px 20px;
        border-bottom: 1px solid #f1f3f4;
        cursor: pointer;
        transition: background 0.2s;
    }

    .suggestions div:hover {
        background: #f8f9fa;
    }

    /* Dropdown menu styles */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f8f9fa;
        min-width: 160px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        border-radius: 8px;
        margin-top: 8px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-item {
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        color: #333;
        transition: background 0.2s;
        border-radius: 8px;
    }

    .dropdown-item:hover {
        background-color: #ddd;
    }

    @media (max-width: 480px) {
        .categories {
            grid-template-columns: repeat(2, 1fr);
            margin: 10px;
            gap: 12px;
        }

        .category-icon {
            width: 48px;
            height: 48px;
            font-size: 20px;
        }

        .logo {
            width: 100px;
        }
    }

    .category-selection {
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .category-selection label {
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .category-selection select {
        padding: 10px 14px;
        font-size: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: #f9f9f9;
        transition: border 0.3s ease, background-color 0.3s ease;
    }

    .category-selection select:disabled {
        background-color: #e8e8e8;
        cursor: not-allowed;
    }

    .category-selection select:focus {
        border-color: #3B82F6;
        background-color: #fff;
        outline: none;
    }

    .category-selection button {
        padding: 12px 20px;
        font-size: 1rem;
        background: #3B82F6;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
        font-weight: 600;
    }

    .category-selection button:disabled {
        background: #b3d1f7;
        cursor: not-allowed;
    }

    .category-selection button:hover:enabled {
        background: #2563eb;
    }

    .third-party-header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 12px 20px;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .third-party-header .logo {
        width: 100px;
        height: auto;
    }

    .third-party-header .actions {
        display: flex;
        gap: 12px;
    }

    .third-party-header .action-btn {
        background: transparent;
        border: none;
        color: #3B82F6;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .third-party-header .action-btn:hover {
        background: rgba(59, 130, 246, 0.1);
    }

    @media (max-width: 480px) {
        .third-party-header {
            padding: 10px 15px;
        }

        .third-party-header .logo {
            width: 80px;
        }
    }

    /* Ensure the container is displayed in a row */
    .listing-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 10px;
    }

    /* Details section should be on the left */
    .listing-details {
        flex: 1;
        padding-right: 20px;
    }

    /* Image container should be on the right */
    .listing-image-container {
        flex-shrink: 0;
    }

    .listing-image {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 10px;
    }

    /* Optional styling for the contact button */
    .contact-button {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .contact-button:hover {
        background-color: #45a049;
    }

    /* Business List Styling */
    .business-card {
        display: flex;
        align-items: center;
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin: 10px 0;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .business-card:hover {
        transform: scale(1.03);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .business-img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 15px;
        border: 3px solid #ff9800;
    }

    .business-info {
        flex-grow: 1;
    }

    .business-info h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

    .business-info .subsubcategory {
        font-size: 14px;
        color: #007BFF;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .business-info p {
        margin: 5px 0;
        font-size: 14px;
        color: #666;
    }

    .call-button {
        display: inline-block;
        padding: 8px 12px;
        background: #ff9800;
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        border-radius: 5px;
        transition: background 0.3s;
    }

    .call-button:hover {
        background: #e68900;
    }

    .no-results {
        text-align: center;
        font-size: 16px;
        color: #888;
        margin-top: 20px;
    }

    .view-button {
        display: inline-block;
        padding: 8px 12px;
        background: #007bff;
        /* Blue color */
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        border-radius: 5px;
        transition: background 0.3s;
        border: none;
        cursor: pointer;
    }

    .view-button:hover {
        background: #0056b3;
        /* Darker blue on hover */
    }

    .no-results {
        text-align: center;
        font-size: 16px;
        color: #888;
        margin-top: 20px;
    }