/* custom styles for business directory */

:root {
    --primary-color: #2d2d2d;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #fbbf24;
    --info-color: #0dcaf0;
    --bg-dark: #1a1a1a;
    --bg-medium: #2d2d2d;
    --bg-light: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
}

/* basic layout */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.container {
    flex: 1;
}

.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #d4d4d4;
}

.logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border: 1px solid #e5e5e5;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-container-large {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border: 1px solid #e5e5e5;
}

.logo-img-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating i {
    font-size: 1.2rem;
}

.rating-small i {
    font-size: 0.9rem;
}

.contact-info div {
    padding: 5px 0;
}

.contact-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details i {
    width: 25px;
    color: var(--primary-color);
}

.avis-item {
    padding: 15px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.avis-item:last-child {
    border-bottom: none !important;
}

footer {
    margin-top: auto;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge {
    padding: 6px 14px;
    font-weight: 500;
    border-radius: 6px;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

.table {
    background-color: white;
}

.table thead {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #2d2d2d;
    box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.1);
    outline: none;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-bottom: 1px solid #e5e5e5;
}

.card-sm {
    font-size: 0.9rem;
}

.card-sm .card-body {
    padding: 12px;
}

#map {
    width: 100%;
}

@media (max-width: 768px) {
    .logo-container {
        width: 60px;
        height: 60px;
    }
    
    .logo-container-large {
        width: 100px;
        height: 100px;
    }
    
    .contact-info {
        font-size: 0.9rem;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #f5f5f5 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}
