/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 12px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
}

/* Card Styles - Updated for better UX */
/* Enhanced image consistency */
.stall-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.06);
}

.stall-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.stall-card:active {
    transform: translateY(-2px);
    transition: all 0.15s ease;
}

.stall-image-container {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.stall-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.stall-card:hover .stall-image {
    transform: scale(1.05);
}

.stall-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    position: absolute;
    top: 0;
    left: 0;
}



/* Ensure consistent image container */
.stall-card .position-relative {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

/* Make sure images fill the entire container */
.stall-card .position-relative img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.stall-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 140px;
    justify-content: flex-start;
}

.stall-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
    flex-shrink: 0;
}

.stall-number {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Rating Styles - Updated */
.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.875rem;
}

.rating-count {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Badge Styles - Updated */
.badge {
    font-size: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
    padding: 4px 8px;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}



/* Mobile responsive adjustments */
@media (max-width: 575px) {
    .stall-info {
        padding: 12px;
        gap: 6px;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }
    
    .stall-name {
        font-size: 0.9rem;
        min-height: 2.4rem;
        line-height: 1.3;
        text-align: left;
        align-self: flex-start;
    }
    
    .stall-number {
        font-size: 0.8rem;
        margin-bottom: 6px;
        text-align: left;
        align-self: flex-start;
    }
    
    .rating {
        align-self: flex-start;
        justify-content: flex-start;
    }
}