/**
 * IndianMarriage Platform - Vendor System Styles
 * Complete styling for vendor profiles, services, portfolios, and bookings
 */

/* ============================================================================
   VENDOR CARD STYLES
   ============================================================================ */

.vendor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.vendor-card-inner.premium {
    border: 2px solid #FFD700;
}

.vendor-premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vendor-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

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

.vendor-bookmark-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.vendor-bookmark-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.vendor-bookmark-btn i {
    font-size: 18px;
    color: #E74C3C;
}

.vendor-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    position: absolute;
    top: 160px;
    left: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.vendor-card-content {
    padding: 50px 20px 20px;
}

.vendor-card-category {
    color: #7F8C8D;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.vendor-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #2C3E50;
}

.vendor-card-title a {
    color: inherit;
    text-decoration: none;
}

.vendor-card-title a:hover {
    color: #E74C3C;
}

.vendor-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.vendor-card-rating .stars {
    display: flex;
    gap: 2px;
    color: #FFD700;
    font-size: 14px;
}

.vendor-card-rating .rating-value {
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
}

.vendor-card-rating .rating-count {
    color: #95A5A6;
    font-size: 13px;
}

.vendor-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7F8C8D;
    font-size: 14px;
    margin-bottom: 12px;
}

.vendor-card-location i {
    color: #E74C3C;
}

.vendor-card-price {
    font-size: 16px;
    font-weight: 600;
    color: #27AE60;
    margin-bottom: 16px;
}

.vendor-card-price .price-from,
.vendor-card-price .price-custom {
    display: inline-block;
}

.vendor-card-stats {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #ECF0F1;
    margin-bottom: 16px;
}

.vendor-card-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7F8C8D;
}

.vendor-card-stats .stat i {
    color: #3498DB;
}

.vendor-card-actions {
    display: flex;
    gap: 10px;
}

.vendor-card-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vendor-card-actions .btn-outline {
    background: transparent;
    border: 1px solid #E74C3C;
    color: #E74C3C;
}

.vendor-card-actions .btn-outline:hover {
    background: #E74C3C;
    color: #fff;
}

.vendor-card-actions .btn-primary {
    background: #E74C3C;
    color: #fff;
}

.vendor-card-actions .btn-primary:hover {
    background: #C0392B;
}

/* ============================================================================
   VENDOR GRID
   ============================================================================ */

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.vendor-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.vendor-list .vendor-card {
    display: flex;
    flex-direction: row;
}

.vendor-list .vendor-card-image {
    width: 300px;
    height: auto;
}

.vendor-list .vendor-card-content {
    flex: 1;
    padding: 20px;
}

.vendor-grid-loading,
.vendor-grid-error,
.vendor-grid-empty {
    text-align: center;
    padding: 60px 20px;
}

.vendor-grid-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E74C3C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.vendor-grid-error i,
.vendor-grid-empty i {
    font-size: 48px;
    color: #BDC3C7;
    margin-bottom: 16px;
}

.vendor-grid-error h3,
.vendor-grid-empty h3 {
    color: #2C3E50;
    margin-bottom: 12px;
}

.vendor-grid-error p,
.vendor-grid-empty p {
    color: #7F8C8D;
    margin-bottom: 20px;
}

/* ============================================================================
   VENDOR DASHBOARD
   ============================================================================ */

.vendor-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.vendor-dashboard-overview {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: #fff;
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 4px;
}

.stat-label {
    color: #7F8C8D;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 13px;
    font-weight: 500;
}

.stat-change.positive {
    color: #27AE60;
}

.stat-change.negative {
    color: #E74C3C;
}

.stat-action a {
    color: #3498DB;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.stat-action a:hover {
    text-decoration: underline;
}

.quick-actions {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    margin: 0 0 20px;
    color: #2C3E50;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #E74C3C;
    color: #fff;
    border-color: #E74C3C;
}

.vendor-dashboard-bookings,
.vendor-dashboard-leads {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    color: #2C3E50;
}

.section-header .view-all {
    color: #3498DB;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.section-header .view-all:hover {
    text-decoration: underline;
}

.bookings-list,
.leads-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-request-card {
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.booking-request-card:hover {
    border-color: #E74C3C;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.customer-info h4 {
    margin: 0 0 4px;
    color: #2C3E50;
}

.customer-info p {
    margin: 0;
    color: #7F8C8D;
    font-size: 14px;
}

.booking-date {
    color: #E74C3C;
    font-weight: 600;
    font-size: 14px;
}

.booking-details p {
    margin: 0 0 16px;
    color: #7F8C8D;
    line-height: 1.6;
}

.booking-actions {
    display: flex;
    gap: 10px;
}

.booking-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-actions .btn-success {
    background: #27AE60;
    color: #fff;
}

.booking-actions .btn-success:hover {
    background: #229954;
}

/* ============================================================================
   SERVICE CARDS & EDITOR
   ============================================================================ */

.service-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-list {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#services-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #E74C3C;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.service-info {
    flex: 1;
}

.service-info h4 {
    margin: 0 0 8px;
    color: #2C3E50;
}

.service-info p {
    margin: 0 0 12px;
    color: #7F8C8D;
    font-size: 14px;
    line-height: 1.5;
}

.service-price {
    color: #27AE60;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-status {
    margin-top: 8px;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #D4EDDA;
    color: #155724;
}

.badge-secondary {
    background: #E2E3E5;
    color: #6C757D;
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-form-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.service-form .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E9ECEF;
}

.service-form .form-header h3 {
    margin: 0;
    color: #2C3E50;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #95A5A6;
    cursor: pointer;
}

.btn-close:hover {
    color: #E74C3C;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2C3E50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E9ECEF;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E74C3C;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E9ECEF;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #E74C3C;
    color: #fff;
}

.btn-primary:hover {
    background: #C0392B;
}

.btn-outline {
    background: transparent;
    border: 1px solid #E74C3C;
    color: #E74C3C;
}

.btn-outline:hover {
    background: #E74C3C;
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-danger {
    background: #E74C3C;
    color: #fff;
}

.btn-danger:hover {
    background: #C0392B;
}

.service-includes,
.service-excludes {
    font-size: 14px;
    color: #7F8C8D;
}

/* ============================================================================
   PORTFOLIO GALLERY
   ============================================================================ */

.portfolio-manager {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.portfolio-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.portfolio-gallery {
    margin-top: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.portfolio-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-image-card:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image-card:hover .image-overlay {
    opacity: 1;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #2C3E50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #fff;
    transform: scale(1.1);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 12px;
    font-size: 13px;
}

.portfolio-upload-zone {
    border: 2px dashed #BDC3C7;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-upload-zone:hover {
    border-color: #E74C3C;
    background: rgba(231, 76, 60, 0.05);
}

.portfolio-upload-zone i {
    font-size: 48px;
    color: #BDC3C7;
    margin-bottom: 16px;
}

.portfolio-upload-zone p {
    color: #7F8C8D;
    margin: 0;
}

.portfolio-videos {
    margin-top: 20px;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.portfolio-video-card {
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-video-card:hover {
    border-color: #E74C3C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f5f5f5;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.video-info {
    padding: 16px;
}

.video-info h4 {
    margin: 0 0 8px;
    color: #2C3E50;
}

.video-link {
    color: #3498DB;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.video-link:hover {
    text-decoration: underline;
}

.video-actions {
    padding: 16px;
    border-top: 1px solid #E9ECEF;
}

.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.portfolio-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* ============================================================================
   BOOKING CALENDAR
   ============================================================================ */

.booking-calendar {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-header h3 {
    margin: 0;
    color: #2C3E50;
}

.calendar-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #7F8C8D;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background: #D4EDDA;
    border: 1px solid #27AE60;
}

.legend-color.booked {
    background: #F8D7DA;
    border: 1px solid #E74C3C;
}

.legend-color.blocked {
    background: #E2E3E5;
    border: 1px solid #95A5A6;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #7F8C8D;
    font-size: 14px;
    padding: 12px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #E9ECEF;
}

.calendar-day.empty {
    border: none;
    cursor: default;
}

.calendar-day-available {
    background: #D4EDDA;
    border-color: #27AE60;
}

.calendar-day-available:hover {
    background: #C3E6CB;
}

.calendar-day-booked {
    background: #F8D7DA;
    border-color: #E74C3C;
    cursor: default;
}

.calendar-day-blocked {
    background: #E2E3E5;
    border-color: #95A5A6;
}

.calendar-day-blocked:hover {
    background: #D6D8DB;
}

.calendar-day.today {
    border: 2px solid #3498DB;
}

.day-number {
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
}

.day-status {
    font-size: 10px;
    color: #7F8C8D;
    margin-top: 4px;
}

.calendar-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E9ECEF;
}

/* ============================================================================
   QUOTE GENERATOR
   ============================================================================ */

.quote-generator {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.quote-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E9ECEF;
}

.quote-header h3 {
    margin: 0 0 12px;
    color: #2C3E50;
}

.quote-header p {
    margin: 4px 0;
    color: #7F8C8D;
    font-size: 14px;
}

.quote-items {
    margin-bottom: 30px;
}

#items-container {
    margin: 20px 0;
}

.quote-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    margin-bottom: 12px;
}

.item-details {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.item-details input {
    padding: 8px 12px;
    border: 1px solid #E9ECEF;
    border-radius: 6px;
    font-size: 14px;
}

.item-total {
    font-weight: 600;
    color: #27AE60;
}

.btn-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E9ECEF;
    color: #E74C3C;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #E74C3C;
    color: #fff;
    border-color: #E74C3C;
}

.quote-summary {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E9ECEF;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #2C3E50;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #2C3E50;
}

.quote-notes {
    margin-bottom: 24px;
}

.quote-notes label {
    display: block;
    margin-bottom: 8px;
    color: #2C3E50;
    font-weight: 500;
}

.quote-notes textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E9ECEF;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.quote-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.quote-preview {
    background: #fff;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================================================
   VENDOR FILTERS
   ============================================================================ */

.vendor-filters {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E9ECEF;
}

.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h4 {
    margin: 0 0 16px;
    color: #2C3E50;
    font-size: 16px;
}

.filter-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E9ECEF;
    background: #fff;
    color: #7F8C8D;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill:hover {
    border-color: #E74C3C;
    color: #E74C3C;
}

.filter-pill.active {
    background: #E74C3C;
    color: #fff;
    border-color: #E74C3C;
}

.filter-location input,
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #E9ECEF;
    border-radius: 6px;
    font-size: 14px;
}

.filter-price-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-price-range input {
    flex: 1;
}

.filter-price-range span {
    color: #7F8C8D;
}

.filter-rating {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.rating-option input[type="radio"] {
    margin: 0;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.filter-actions .btn {
    flex: 1;
}

/* ============================================================================
   REVIEWS
   ============================================================================ */

.review-card {
    background: #fff;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-rating .stars {
    color: #FFD700;
    font-size: 16px;
}

.review-rating .rating-value {
    font-weight: 600;
    color: #2C3E50;
}

.review-response {
    margin-top: 16px;
    padding: 16px;
    background: #F8F9FA;
    border-left: 3px solid #E74C3C;
    border-radius: 6px;
}

.rating-breakdown {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.rating-breakdown h4 {
    margin: 0 0 20px;
    color: #2C3E50;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-bar-label {
    min-width: 60px;
    font-size: 14px;
    color: #7F8C8D;
}

.rating-bar-fill {
    flex: 1;
    height: 8px;
    background: #E9ECEF;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-value {
    height: 100%;
    background: #FFD700;
    transition: width 0.3s ease;
}

.rating-bar-count {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    color: #7F8C8D;
}

/* ============================================================================
   VENDOR PAGINATION
   ============================================================================ */

.vendor-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #E9ECEF;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination li a {
    display: block;
    padding: 10px 16px;
    border: 1px solid #E9ECEF;
    border-radius: 6px;
    color: #2C3E50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background: #E74C3C;
    color: #fff;
    border-color: #E74C3C;
}

.pagination li.active a {
    background: #E74C3C;
    color: #fff;
    border-color: #E74C3C;
}

.pagination li.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================================
   EMPTY STATES
   ============================================================================ */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7F8C8D;
}

.empty-list {
    color: #95A5A6;
    font-style: italic;
    padding: 12px;
    text-align: center;
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.loading {
    text-align: center;
    padding: 40px;
    color: #7F8C8D;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .vendor-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .service-editor {
        grid-template-columns: 1fr;
    }

    .service-form-container {
        position: static;
        max-height: none;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .vendor-grid {
        grid-template-columns: 1fr;
    }

    .vendor-card-actions {
        flex-direction: column;
    }

    .vendor-card-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-weekdays,
    .calendar-days {
        gap: 4px;
    }

    .weekday,
    .day-number {
        font-size: 12px;
    }

    .item-details {
        grid-template-columns: 1fr;
    }

    .filter-category-pills {
        flex-direction: column;
    }

    .filter-pill {
        width: 100%;
        text-align: center;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .booking-header {
        flex-direction: column;
        gap: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vendor-card-image {
        height: 160px;
    }

    .vendor-card-logo {
        width: 60px;
        height: 60px;
        top: 130px;
    }

    .vendor-card-content {
        padding: 40px 16px 16px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .video-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .vendor-card-actions,
    .booking-actions,
    .service-actions,
    .calendar-actions,
    .quote-actions,
    .filter-actions,
    .vendor-bookmark-btn {
        display: none;
    }

    .vendor-card,
    .booking-request-card,
    .service-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3498DB;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .vendor-card,
    .service-card,
    .booking-request-card {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
