/* General Styling */
body {
    font-family: var(--font-body);
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Vendor List Container */
.vendor-list-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Vendor Card */
.vendor-card {
    display: flex;
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Vendor Card Image Section */
.vendor-card-image {
    width: 30%;
    position: relative;
    min-height: 240px;
    overflow: hidden;
}

.vendor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.slider-image.active {
    opacity: 1;
    display: block;
}

.slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 5;
}

.slider-prev, .slider-next {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s;
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

/* Vendor Card Content */
.vendor-card-content {
    width: 70%;
    padding: 1.5rem;
}

/* Vendor Header */
.vendor-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.vendor-logo {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.vendor-name {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    margin: 0;
    color: var(--secondary-color);
}

.vendor-name a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.vendor-name a:hover {
    color: var(--primary-color);
}

/* Vendor Rating */
.vendor-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rating-badge {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Vendor Location */
.vendor-location {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.vendor-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Vendor Tags */
.vendor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: var(--background-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Vendor Contact */
.vendor-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: var(--font-secondary);
}

.phone-btn {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.phone-btn:hover {
    background-color: var(--border-color);
}

.whatsapp-btn {
    background-color: #25D366;
    color: var(--text-white);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.enquiry-btn {
    background-color: var(--primary-color);
    color: var(--text-white);
    position: relative;
    padding-bottom: 1.5rem;
}

.enquiry-btn:hover {
    background-color: var(--primary-dark);
}

.response-time {
    position: absolute;
    bottom: 4px;
    font-size: 0.7rem;
    font-weight: normal;
}

.contact-btn i {
    margin-right: 0.5rem;
}

/* No Vendor Found */
.no-vendor {
    text-align: center;
    padding: 3rem;
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .vendor-card {
        flex-direction: column;
    }
    
    .vendor-card-image, .vendor-card-content {
        width: 100%;
    }
    
    .vendor-card-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .vendor-contact {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
    }
}

/* Modal Styling */
.modal-content {
    border-radius: 8px;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-family: var(--font-primary);
}

.btn-close {
    color: var(--text-white);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-light);
}

.create_inquiry {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.create_inquiry:hover {
    background-color: var(--primary-dark);
}