/* ==========================================================================
   VENDOR PROFILE PAGE STYLES
   ========================================================================== */

/* Breadcrumbs */
.vendor-breadcrumbs {
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 0;
}

.vendor-breadcrumbs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.vendor-breadcrumbs-container a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.vendor-breadcrumbs-container a:hover {
    color: #5B6EF5;
}

.vendor-breadcrumbs-container strong {
    color: #1F2937;
    font-weight: 600;
}

.vendor-breadcrumbs-container i {
    color: #9CA3AF;
    font-size: 12px;
}

/* Vendor Hero Section */
.vendor-hero {
    background: linear-gradient(135deg, #5B6EF5 0%, #4C5FE5 100%);
    padding: 48px 0;
    margin-bottom: 40px;
}

.vendor-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.vendor-hero-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    min-width: 280px;
}

/* Vendor Hero Map Section */
.vendor-hero-map {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vendor-map-container {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.vendor-map-placeholder {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.vendor-map-placeholder i {
    font-size: 2.5rem;
}

.vendor-map-placeholder span {
    font-size: 0.875rem;
}

.vendor-map-no-api {
    min-height: 150px;
}

/* Vendor Map Wrapper with Overlay Button */
.vendor-map-wrapper {
    position: relative;
    width: 100%;
}

.btn-get-directions-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: white;
    color: #5B6EF5;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    border: none;
}

.btn-get-directions-overlay:hover {
    background: #5B6EF5;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(91, 110, 245, 0.4);
}

.btn-get-directions-overlay i {
    font-size: 0.9rem;
}

.btn-get-directions-overlay span {
    display: inline;
}

@media (max-width: 480px) {
    .btn-get-directions-overlay {
        padding: 0.6rem;
        border-radius: 50%;
    }

    .btn-get-directions-overlay span {
        display: none;
    }

    .btn-get-directions-overlay i {
        font-size: 1rem;
    }
}

.vendor-map-info-window {
    padding: 8px;
    font-family: inherit;
    font-size: 14px;
}

.vendor-map-hint {
    flex-direction: column;
    gap: 0.75rem;
}

.vendor-map-hint span {
    font-size: 0.8rem;
    text-align: center;
    max-width: 220px;
}

.btn-get-directions-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.vendor-logo-large {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 5px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vendor-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5B6EF5 0%, #4C5FE5 100%);
    color: white;
    font-size: 48px;
    font-weight: 700;
    border-radius: 12px;
}

.vendor-hero-info {
    flex: 1;
}

.vendor-badge-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #5B6EF5 0%, #4C5FE5 100%);
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.35);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.vendor-badge-category-text {
    line-height: 1;
}

.vendor-badge-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.45);
}

/* Color variations per business type (match vendors listing page) */
.vendor-badge-category[data-business-type="car-rental"],
.vendor-badge-category[data-business-type="car_rental"] {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.vendor-badge-category[data-business-type="wine-shop"],
.vendor-badge-category[data-business-type="wine_shop"] {
    background: linear-gradient(135deg, #7C2D12 0%, #92400E 100%);
}

.vendor-badge-category[data-business-type="tours-experiences"],
.vendor-badge-category[data-business-type="tours_experiences"],
.vendor-badge-category[data-business-type="tours-and-experiences"] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.vendor-badge-category[data-business-type="local-business"],
.vendor-badge-category[data-business-type="local_business"] {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
}

.vendor-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.vendor-meta-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.meta-badge i {
    font-size: 15px;
}

/* Main Content Container */
.vendor-profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 60px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.vendor-profile-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

/* Main Content Column */
.vendor-main-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* About Section */
.about-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #5B6EF5;
    font-size: 22px;
}

.about-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4B5563;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Services Offered Section */
.services-offered-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    box-sizing: border-box;
    width: 100%;
}

.vendor-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* Contact Card */
.vendor-sidebar {
    position: relative;
    padding-top: 0 !important;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.contact-card.sticky {
    position: sticky;
    top: 20px;
    margin-top: 0 !important;
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-title i {
    color: #5B6EF5;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: #F9FAFB;
    border-radius: 10px;
    transition: all 0.2s;
}

.contact-item:hover {
    background: #F3F4F6;
}

.contact-item>i {
    font-size: 20px;
    color: #5B6EF5;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item>div {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 14px;
    color: #1F2937;
    font-weight: 500;
    text-decoration: none;
    display: block;
    word-break: break-word;
}

.contact-item a:hover {
    color: #5B6EF5;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
    margin-bottom: 20px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-call {
    background: #10B981;
    color: white;
}

.btn-call:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Social Links Section */
.social-links-section {
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.social-links-title {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #F3F4F6;
    border-radius: 10px;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 18px;
}

.social-link:hover {
    background: #5B6EF5;
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 18px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #9CA3AF;
}

.empty-state-icon i {
    font-size: 64px;
}

.empty-state h3 {
    color: #1F2937;
    margin-bottom: 10px;
    font-size: 20px;
}

.empty-state-text {
    color: #6B7280;
    font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet and below - Stack sidebar */
@media (max-width: 1199px) {
    .vendor-profile-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-card.sticky {
        position: static;
    }

    .vendor-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .vendor-hero {
        padding: 32px 0;
    }

    .vendor-hero-left {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .vendor-logo-large {
        width: 120px;
        height: 120px;
    }

    .vendor-title {
        font-size: 24px;
    }

    .vendor-meta-info {
        justify-content: center;
    }

    .vendor-profile-container {
        padding: 0 16px 40px;
    }

    .vendor-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-section,
    .services-offered-section {
        padding: 24px;
    }

    .contact-card {
        padding: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .vendor-breadcrumbs-container {
        padding: 0 16px;
        font-size: 13px;
    }

    .vendor-hero-container {
        padding: 0 16px;
    }
}

@media (max-width: 992px) {
    .vendor-hero-container {
        flex-direction: column;
        text-align: center;
    }

    .vendor-hero-left {
        flex-direction: column;
    }

    .vendor-hero-map {
        max-width: 100%;
        width: 100%;
    }

    .vendor-map-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .vendor-map-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .vendor-map-container {
        height: 150px;
    }
}

/* ===== Vendor Stats Strip ===== */
.vendor-stats-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 12px;
}

.vendor-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    color: #3d4eac;
    white-space: nowrap;
    font-weight: 500;
}

.vendor-stat-item i {
    font-size: 12px;
    opacity: 1;
    color: #3d4eac;
}

.vendor-stat-item .stat-value {
    font-weight: 700;
    font-size: 14px;
    color: #2d3a8c;
}

.vendor-stat-item .stat-label {
    opacity: 0.8;
    font-size: 12px;
    color: #3d4eac;
}

@media (max-width: 767px) {
    .vendor-stats-strip {
        gap: 6px;
        padding: 8px 0 2px;
    }

    .vendor-stat-item {
        padding: 4px 10px;
        font-size: 12px;
        color: #3d4eac;
    }

    .vendor-stat-item .stat-value {
        font-size: 13px;
        color: #2d3a8c;
    }
}

/* --- Password Change Section --- */
.password-change-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.password-change-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.password-change-title i {
    margin-right: 8px;
    color: #1b4f72;
}

.password-change-hint {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 20px;
}