/* Variables */
:root {
    --primary-color: #048aae;
    --secondary-color: #43BDA7;
    --text-color: #2E2E2E;
    --border-color: #D4D4D4;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --background-light: #f8f9fa;
    --background-success: #E0FFF9;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --gray-dark: #343a40;
}

/* Business Card Styles */
.business-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    padding: 2px;
}

.business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-color);
}

.business-image-section {
    background-color: var(--background-light);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px 0 0 12px;
}

.circular-image-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(67, 189, 167, 0.2);
}

.circular-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-name {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
}

.business-details {
    padding: 2rem;
}

.business-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    font-size: 1rem;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.business-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

.modality-badge .badge {
    background-color: var(--background-success);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modality-badge .badge i {
    color: var(--secondary-color);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.action-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #3aa893;
    border-color: #3aa893;
}

/* Loading States */
.loader-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.empty-state img {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Scroll Buttons */
.scroll-to-top,
.scroll-to-bottom {
    position: fixed;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(67, 189, 167, 0.3);
    transition: all 0.2s;
    z-index: 1000;
}

.scroll-to-top {
    bottom: 80px;
}

.scroll-to-bottom {
    bottom: 20px;
}

.scroll-to-top:hover,
.scroll-to-bottom:hover {
    background-color: #3aa893;
    transform: translateY(-2px);
}

/* Loading More */
.loading-more {
    text-align: center;
    padding: 2rem;
    display: none;
}

.loading-more .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--background-light);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991px) {
    .business-image-section {
        border-radius: 12px 12px 0 0;
    }

    .business-details {
        padding: 1.5rem;
    }

    .business-title {
        font-size: 1.3rem;
    }

    .circular-image-container {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 767px) {

    .business-image-section {
        padding: 1.5rem;
    }

    .business-details {
        padding: 1rem;
    }

    .circular-image-container {
        width: 120px;
        height: 120px;
    }

    .business-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: row;
        justify-content: flex-end;
    }

    .action-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .business-image-section {
        padding: 1rem;
    }

    .circular-image-container {
        width: 100px;
        height: 100px;
    }

    .business-name {
        font-size: 1rem;
    }

    .business-title {
        font-size: 1.1rem;
    }

    .contact-item {
        font-size: 0.85rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}
