.search-container {
        max-width: 1200px;
        margin: 80px auto 0; /* Updated margin to account for fixed header */
        padding: 2rem;
        min-height: calc(100vh - 80px); /* Ensure content fills the viewport minus header height */
}

.search-title {
        text-align: center;
        color: #1E5359;
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 2rem;
        font-family: 'Poppins', sans-serif;
}

.search-form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
        background: white;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-field {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
}

.search-field label {
        font-weight: 500;
        color: #333;
}

.search-field input,
.search-field select {
        padding: 0.75rem;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        font-size: 14px;
}

.search-button {
        padding: 0.75rem;
        background-color: #1E5359;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
        transition: background-color 0.2s;
        margin-top: auto;
}

.search-button:hover {
        background-color: #1E5359;
}

.business-card {
        display: flex;
        gap: 1.5rem;
        background: white;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 1.5rem;
}

.business-image {
        width: 200px;
        height: 400px;
        object-fit: contain;
        border-radius: 4px;
}

.business-info {
        flex: 1;
}

.business-info h2 {
        margin: 0 0 0.5rem 0;
        color: #333;
}

.business-location {
        color: #666;
        margin-bottom: 0.5rem;
}

.category-tag {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: #e0e7ff;
        color: #4f46e5;
        border-radius: 9999px;
        font-size: 12px;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
}

.business-description {
        color: #666;
        margin: 1rem 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        line-height: 1.5;
        max-height: 4.5em; /* 3 lines * 1.5 line-height */
}

.view-details {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: #f3f4f6;
        color: #374151;
        text-decoration: none;
        border-radius: 4px;
        font-weight: 500;
        transition: background-color 0.2s;
}

.view-details:hover {
        background: #e5e7eb;
}

.pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
}

.pagination a {
        padding: 0.5rem 1rem;
        background: #f3f4f6;
        color: #374151;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.2s;
}

.pagination a:hover {
        background: #e5e7eb;
}

.current-page {
        color: #666;
}

.no-results {
        text-align: center;
        padding: 3rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
        .business-card {
            flex-direction: column;
    }

    .business-image {
            width: 100%;
            height: 350px;
            max-width: 280px;
            align-self: center;
    }
}

.rating {
        display: inline-flex;
        gap: 0.25rem;
    }
.star {
        color: #ffd700;
        cursor: pointer;
        font-size: 1.25rem;
    }
.star.empty {
        color: #ccc;
    }
.rating-count {
        font-size: 0.875rem;
        color: #666;
        margin-left: 0.5rem;
    }
.card-meta svg {
        width: 1em;
        height: 1em;
        vertical-align: middle;
        margin-right: 0.25em;
    }
.view-details-btn {
        background: #1E5359;
        color: #fff;
        padding: 6px 18px;
        border-radius: 6px;
        font-weight: 600;
        margin-top: 10px;
        display: inline-block;
        text-decoration: none;
        transition: background 0.2s;
    }
.view-details-btn:hover {
        background: #219269;
    }

.page-item.active .pl-act{
        z-index: 4;
        color: black;
        background-color:  #1E5359 !important;
        border-color:  #1E5359 !important;
    }

.page-item .pl-act {
        z-index: 4;
        color: black;
        background-color: whitesmoke !important;
    }

.page-item .nxt {
        z-index: 4;
        color: black;
        background-color:  whitesmoke !important;
    }

.page-item .prv {
        z-index: 4;
        color: black;
        background-color:  whitesmoke !important;
    }
.pagination {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

.pagination-info {
        color: #666;
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

.pagination-list {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 0.25rem;
        align-items: center;
        justify-content: center;
    }

.page-item {
        display: inline-block;
    }

/* Current page styling */
.page-item.active .page-link.current-page {
        background-color: #1E5359;
        color: white;
        border-color: #1E5359;
        font-weight: 600;
        min-width: 40px;
        text-align: center;
    }

/* Navigation arrows styling */
.page-link.nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        color: #666;
        text-decoration: none;
        transition: all 0.2s;
        min-width: 36px;
        height: 36px;
        background-color: #f8f9fa;
    }

.page-link.nav-link:hover {
        background-color: #1E5359;
        border-color: #1E5359;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(30, 83, 89, 0.2);
    }

.page-link.nav-link i {
        font-size: 0.9rem;
    }

/* Disabled state for navigation arrows */
.page-item.disabled .page-link.nav-link {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

.page-item.disabled .page-link.nav-link:hover {
        background-color: #f8f9fa;
        border-color: #ddd;
        color: #666;
        transform: none;
        box-shadow: none;
    }

.business-featured-badge {
        background: rgb(41, 152, 41);
        color: white;
        padding: 2px 8px;
        border-radius: 6px;
        font-weight: 600;
        margin-left: 8px;
        font-size: 1rem;
        display: inline-block;
    }

@media (max-width: 700px) {
    .business-back-btn {
        display: block;
        width: 90vw;
        margin: 1.5rem auto 1rem auto;
        font-size: 1.1rem;
        z-index: 1000;
        position: relative;
        background: #fff;
        padding: 0.8rem 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        text-align: center;
    }
    
    /* Mobile pagination adjustments */
    .pagination-list {
        gap: 0.15rem;
    }
    
    .page-link.nav-link {
        min-width: 32px;
        height: 32px;
        padding: 0.4rem 0.6rem;
    }
    
    .page-item.active .page-link.current-page {
        min-width: 36px;
        font-size: 0.9rem;
    }
    
    .page-link.nav-link i {
        font-size: 0.8rem;
    }
}

/* Rating Styles */
.rating-container {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star.active {
    color: #ffd700;
}

.star:hover {
    color: #ffd700;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

/* Auth Popup Styles */
.auth-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.auth-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.auth-popup h3 {
    margin-bottom: 1rem;
    color: #333;
}

.auth-popup p {
    margin-bottom: 1.5rem;
    color: #666;
}

.auth-popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.auth-popup-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-popup-btn.primary {
    background: #1E5359;
    color: white;
}

.auth-popup-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.auth-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Business Cards Grid Container */
.business-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Tablet: 2 columns side by side (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .business-cards-container {
        gap: 1rem;
    }

    .business-card {
        width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        flex: 0 0 calc(50% - 0.5rem);
        flex-direction: column;
        margin-bottom: 0;
    }

    .business-image {
        width: 100%;
        height: 350px;
        max-width: none;
    }
}

/* Desktop: 3 columns side by side (1024px and above) */
@media (min-width: 1024px) {
    .business-cards-container {
        gap: 1.5rem;
    }

    .business-card {
        width: calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
        flex: 0 0 calc(33.333% - 1rem);
        flex-direction: column;
        margin-bottom: 0;
    }

    .business-image {
        width: 100%;
        height: 350px;
        max-width: none;
    }
}
