.vendor-directory {
    padding: 40px 0;
    background: #FFFFFF;
    font-family: 'Poppins', Arial, sans-serif;
}

.vendor-directory .rhm-vd-filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px 24px;
    flex-wrap: wrap;
}

.vendor-directory .rhm-vd-filter-btn,
.vendor-directory .rhm-vd-filter-chip {
    background: #fff;
    border: 1.5px solid #E5D3B3;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 15px;
    color: #7A5B2B;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vendor-directory .rhm-vd-filter-btn {
    background: #F3E6D6;
    border: none;
}

.vendor-directory .rhm-vd-vendor-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.vendor-directory .rhm-vd-vendor-card {
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #707070;
    border-radius: 10px;
    background: #FFFFFF; /* ← Changed from #FFFFF1 */
    padding: 24px 32px;
    position: relative;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease;
}

.vendor-directory .rhm-vd-vendor-card:hover {
    background: #FFFFF1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.vendor-directory .rhm-vd-vendor-left {
    flex: 1;
}

.vendor-directory .rhm-vd-vendor-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #000;
    text-decoration: underline;
    margin-bottom: 12px;
}

.vendor-directory .rhm-vd-vendor-location {
    font-size: 16px;
    font-weight: 600;
    color: #707070;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.vendor-directory .rhm-vd-vendor-desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    color: #1E1E1E;
}

.vendor-directory .rhm-vd-vendor-right {
    flex: 2;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.vendor-directory .rhm-vd-vendor-section {
    min-width: 200px;
}

.vendor-directory .rhm-vd-vendor-section-title {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vendor-directory .rhm-vd-vendor-section-content {
    font-size: 18px;
    font-weight: 500;
    color: #707070;
    line-height: 27px;
}

.vendor-directory .rhm-vd-vendor-section-content span {
    display: block;
}

.vendor-directory .rhm-vd-vendor-whatsapp {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #C18E56;
    border-radius: 10px;
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFF1;
    font-size: 24px;
    cursor: pointer;
}

/* Optional: prevent styles from leaking */
.vendor-directory * {
    box-sizing: border-box;
}

/* Vendor Detail Header */
.rhm-vd-detail-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #E5D3B3;
    padding-bottom: 18px;
}
.rhm-vd-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #C18E56;
    margin-bottom: 8px;
}
.rhm-vd-detail-location {
    font-size: 18px;
    color: #707070;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Main Detail Grid */
.rhm-vd-detail-main {
    display: flex;
    gap: 40px;
    width: 100%;
    margin-top: 32px;
}
.rhm-vd-detail-about,
.rhm-vd-detail-info,
.rhm-vd-detail-certs {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 220px;
}
.rhm-vd-details-section {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}
.rhm-vd-details-section strong {
    color: #C18E56;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}

/* Responsive for mobile */
@media (max-width: 900px) {
    .rhm-vd-detail-main {
        flex-direction: column;
        gap: 24px;
    }
    .rhm-vd-detail-about,
    .rhm-vd-detail-info,
    .rhm-vd-detail-certs {
        min-width: 100%;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 12px;
}

.pagination-btn {
    background-color: #C18E56;
    color: #FFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #A56944;
}

.no-vendors-message {
    text-align: center;
    font-size: 18px;
    color: #707070;
    margin: 20px 0;
}

.vendor-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}


.pagination-info {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.vendor-directory-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.vendor-directory-filters {
    width: 280px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #E5E5E5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px 18px;
    position: sticky;
    top: 20px;
    height: 600px;
    overflow-y: auto;
    color: #111;
}

.rhm-vd-vendor-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Filter Section Headings */
.vendor-directory-filters h3 {
    font-size: 20px;
    color: #333333;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 12px;
}


/* Clear Location Button */
.clear-location-btn {
    background-color: #999;
    color: #FFFFFF;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 16px;
    transition: background-color 0.3s;
}

.clear-location-btn:hover {
    background-color: #777;
}

/* Show More Button */
.vendor-directory-filters .filter-section .show-more {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    font-weight: 500;
}

/* Apply and Clear Buttons */
.apply-filters-btn, .clear-filters-btn {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-bottom: 12px;
}

.apply-filters-btn:hover {
    background-color: #333333;
}

.clear-filters-btn {
    background-color: #555555;
}

.clear-filters-btn:hover {
    background-color: #333333;
}

/* Show More / Show Less Toggle */
.vendor-directory-filters .filter-section ul.expanded {
    max-height: 300px;
}

/* Responsive for Mobile */
@media (max-width: 900px) {
    .vendor-directory-wrapper {
        flex-direction: column;
    }
    .vendor-directory-filters {
        width: 100%;
        position: static;
        height: auto;
        margin-bottom: 20px;
    }
}

.filter-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}
.filter-nav button {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}
.filter-nav button:hover {
    background: #333;
}

/* Force Reduced Padding for Filter Sections */
.filter-section-custom {
    margin-bottom: 6px !important;  /* Force tighter bottom margin */
    padding-bottom: 4px !important;  /* Force reduced padding */
}

/* Ensure consistency across all sections */
.filter-section-custom strong {
    margin-bottom: 4px !important;
}

/* Consistent Checkbox List Spacing */
.filter-section-custom ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 160px !important;
    overflow-y: auto !important;
}

/* Checkbox Item Spacing */
.filter-section-custom ul li {
    margin-bottom: 4px !important;  /* Reduce spacing */
    font-size: 14px !important;
    color: #333333 !important;
    display: flex !important;
    align-items: center !important;
}

/* Consistent Checkbox Size */
.filter-section-custom ul li input {
    margin-right: 6px !important;
    cursor: pointer !important;
    width: 16px !important;
    height: 16px !important;
}

/* Clear Button */
.clear-location-btn-custom {
    background-color: #999 !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    width: 100% !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-top: 6px !important;
    margin-bottom: 12px !important;
    transition: background-color 0.3s !important;
}

.clear-location-btn-custom:hover {
    background-color: #777 !important;
}
