/* SpeedyBook Modern Profile - production fix */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

.sb-profile-modern {
    font-family: 'Inter', sans-serif !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    display: block !important;
    padding-top: 20px !important;
}

/* 1. Breadcrumbs (Modern Style) */
.sb-profile-modern .sb-breadcrumb-container {
    margin-bottom: 24px !important;
}

.sb-profile-modern .sb-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
}

.sb-profile-modern .sb-breadcrumb li {
    display: flex !important;
    align-items: center !important;
    color: #64748b !important;
}

.sb-profile-modern .sb-breadcrumb li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.sb-profile-modern .sb-breadcrumb li a:hover {
    color: #2563eb !important;
}

.sb-profile-modern .sb-breadcrumb li:not(:last-child)::after {
    content: "→" !important;
    margin: 0 10px !important;
    font-size: 11px !important;
    color: #cbd5e1 !important;
    opacity: 0.8 !important;
}

.sb-profile-modern .sb-breadcrumb li:last-child {
    color: #1e293b !important;
    font-weight: 500 !important;
}

/* 1.1 Main Profile Header */
.sb-profile-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 32px !important;
    position: relative !important;
}

.sb-profile-modern .sb-profile-title,
.sb-profile-modern .sb-h1-fake {
    display: block !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

.sb-profile-modern .sb-profile-subtitle {
    font-size: 16px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

/* Hide standard system breadcrumbs on this page */
.sb-profile-modern .bread-crumbs,
.sb-profile-modern .breadcrumbs,
.sb-profile-modern #bread_crumbs,
.sb-profile-modern #content > .bread-crumbs,
.sb-profile-modern #content > .breadcrumbs,
.sb-profile-modern .nav-path {
    display: none !important;
}

/* 2. Decision Panel Fixes */
.sb-profile-modern .sb-decision-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 24px 28px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
    position: sticky !important;
    top: 40px !important;
    z-index: 10 !important;
}

/* Specific button styles */
.sb-profile-modern .booking-anchor {
    border-color: #22c55e !important;
    color: #166534 !important;
    background: #f0fdf4 !important;
}

.sb-profile-modern .booking-anchor:hover {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
}

/* Action Buttons Grid - Desktop Defaults */
.sb-cta-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin: 20px 0 !important;
}

.sb-cta-section .sb-btn {
    height: 52px !important;
}

.sb-cta-section .booking-anchor {
    grid-column: span 2 !important;
}

/* 3. Trust Tags Style */
.sb-profile-modern .sb-location-info {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
}

.sb-profile-modern .sb-icon-location-big {
    width: 48px !important;
    height: 48px !important;
    background: #eff6ff !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3b82f6 !important;
    flex-shrink: 0 !important;
}

.sb-icon-location-big i {
    font-size: 24px !important;
}

/* Fallback icons via CSS if i tags are empty */
.sb-icon-remote::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f0ac"; font-size: 20px; }
.sb-icon-location::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f3c5"; font-size: 20px; }

.sb-profile-modern .sb-location-address {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}

.sb-profile-modern .sb-location-hint {
    font-size: 14px !important;
}

.sb-profile-modern .sb-trust-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.sb-profile-modern .sb-trust-tag {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.sb-profile-modern .sb-trust-tag i {
    color: #2563eb !important;
    font-size: 14px !important;
}

/* 4. Unified Buttons Style */
.sb-profile-modern .sb-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
    border: none !important;
    cursor: pointer !important;
}

.sb-profile-modern .sb-btn-primary { 
    background: #2563eb !important; 
    color: white !important;
    height: 56px !important;
    font-size: 17px !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39) !important;
}

.sb-profile-modern .sb-btn-primary:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23) !important;
}

.sb-profile-modern .sb-btn-outline {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    height: 52px !important;
    font-size: 15px !important;
}

.sb-profile-modern .sb-btn-outline:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Stats and Meta Actions */
.sb-profile-modern .sb-panel-stats {
    font-size: 13px !important;
    color: #94a3b8 !important; /* Lighter color for labels */
}

.sb-profile-modern .sb-stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.sb-profile-modern .sb-stat-item strong {
    color: #475569 !important; /* Darker color for actual values */
    font-weight: 600 !important;
}

.sb-profile-modern .sb-stat-item i {
    font-size: 14px !important;
    color: #cbd5e1 !important;
}

.sb-owner-link {
    color: #2563eb !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.sb-owner-link:hover {
    text-decoration: underline !important;
}

/* Icons removed from here to prevent minifier from stripping backslashes */


.sb-btn-fav-round {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    color: #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    padding: 0 !important;
}

.sb-btn-fav-round:hover {
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
}
.sb-btn-fav-round.remove {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
}
.sb-btn-fav-round .sb-icon-heart {
    font-size: 20px;
    color: #94a3b8;
    fill: none;
    transition: all 0.2s !important;
}
.sb-btn-fav-round:hover .sb-icon-heart {
    color: #f87171 !important;
}

.sb-btn-fav-round.remove .sb-icon-heart {
    fill: currentColor !important;
    color: #ef4444 !important;
}

.sb-inactive-warning {
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: #9a3412 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.sb-map-expand-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 500 !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #475569 !important;
}

.sb-map-expand-btn:hover {
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    color: #2563eb !important;
    border-color: #cbd5e1 !important;
}

.sb-map-expand-btn:active {
    transform: translateY(0) !important;
}


/* 5. Seller Info Alignment Fix */
.sb-seller-brief-modern {
    display: flex !important;
    align-items: center !important; /* Aligns avatar and text vertically */
    gap: 16px !important;
}

.sb-seller-avatar-md {
    flex-shrink: 0 !important;
}

.sb-avatar-placeholder-md,
.sb-avatar-img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
}

.sb-avatar-placeholder-md {
    background: #2563eb !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.sb-seller-info-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
}

.sb-seller-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

/* ROBUST GRID SYSTEM */
.sb-profile-modern .sb-mosaic-grid { 
    display: grid !important; 
    gap: 8px !important; 
    background: transparent !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    height: 460px !important; /* Fixed total height */
}

/* Sidebar & Sticky logic */
.sb-profile-sidebar-container {
    position: sticky;
    top: 130px;
}

/* Description Text Styles (Standardized) */
.sb-text-content {
    line-height: 1.6 !important;
    color: #334155 !important;
    font-size: 15px !important;
    word-break: break-word !important;
}

.sb-text-content p {
    margin-bottom: 1em !important;
}

.sb-text-content p:last-child {
    margin-bottom: 0 !important;
}

/* Modern Schedule List */

.sb-modern-schedule {
    display: flex;
    flex-direction: column;
}

.sb-schedule-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.sb-schedule-line:last-child {
    border-bottom: none;
}

.sb-day-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e; /* Green for Open */
    display: block;
}

.sb-day-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-transform: capitalize;
}

.sb-time-info {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.sb-day-off .sb-status-indicator {
    background: #cbd5e1; /* Gray for Closed */
}

.sb-day-off .sb-day-label {
    color: #94a3b8;
    font-weight: 500;
}

.sb-off-label {
    color: #94a3b8;
    font-size: 12px;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 4px;
}

.sb-availability-block {
    border-top: 2px dashed #f1f5f9;
}

.sb-booking-services-block {
    padding-bottom: 20px;
}

.sb-working-hours .col-md-7 {
    border-left: 1px solid #f1f5f9;
    padding-left: 30px;
}

/* Calendar Styling Refinement */
/* Final DOM-Verified Calendar Styles */
#booking_calendar_target .content-padding {
    padding: 0 !important;
}

#booking_calendar {
    position: relative !important;
    padding: 10px 0 !important;
}

#calendar_map {
    width: 100% !important;
    margin: 0 !important;
}

#calendar_map > div {
    float: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 320px !important;
}

.month-name {
    text-align: center !important;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.month-name b {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    font-family: 'Outfit', sans-serif !important;
    display: block !important;
}

.month-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
}

.dayName td div {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    padding-bottom: 10px !important;
    text-align: center !important;
}

.calendar_td {
    padding: 2px !important;
    text-align: center !important;
}

.calendar_td .date {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Day Statuses */
.calendar_td .date.available {
    background: #f8fafc !important;
}

.calendar_td .date.available:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

/* Today Indicator (Subtle dot below number) */
.calendar_td .date.today:not(:empty) {
    color: #2563eb !important;
    font-weight: 700 !important;
    position: relative !important;
}

.calendar_td .date.today:not(:empty)::after {
    content: '' !important;
    position: absolute !important;
    bottom: 4px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 4px !important;
    height: 4px !important;
    background: #2563eb !important;
    border-radius: 50% !important;
}

/* Active Selection (The Big Blue Circle) */
.calendar_td .date.active,
.calendar_td .date.active_start,
.calendar_td .date.active_end {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    border: none !important;
    z-index: 2 !important;
}

/* Ensure Today Dot is white when Today is selected */
.calendar_td .date.today.active::after {
    background: #ffffff !important;
}

/* Base style for all dates to ensure they "off" correctly */
.calendar_td .date {
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.calendar_td .date.available {
    background: #f8fafc !important;
}

.calendar_td .date.available:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.calendar_td .date.past {
    opacity: 0.3 !important;
    cursor: default !important;
    background: transparent !important;
}
    opacity: 0.3 !important;
    cursor: default !important;
}

.calendar_td .date.booked {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    text-decoration: line-through !important;
}

/* Navigation Styling */
.booking-horizontal {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.booking-horizontal .prev,
.booking-horizontal .next {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background: #ffffff !important;
}

.booking-horizontal .prev:hover,
.booking-horizontal .next:hover {
    border-color: #2563eb !important;
    background: #f0f7ff !important;
    transform: translateY(-1px) !important;
}

/* Primary Booking Button Redesign */
.form-buttons input[type="submit"] {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    width: 100% !important;
    margin-top: 15px !important;
    font-family: 'Outfit', sans-serif !important;
}

.form-buttons input[type="submit"]:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

.form-buttons input[type="submit"]:active {
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .sb-working-hours .col-md-7 {
        border-left: none;
        padding-left: 15px;
        margin-top: 30px;
    }
}

.sb-profile-modern .sb-mosaic-item {
    position: relative !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    height: 100% !important; /* Take full height of grid cell */
}

.sb-profile-modern .sb-mosaic-item:hover img {
    transform: scale(1.05) !important;
}

.sb-profile-modern .sb-mosaic-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.sb-show-all-photos {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.sb-show-all-photos:hover {
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Grids logic */
.sb-profile-modern .sb-mosaic-1 { grid-template-columns: 1fr !important; }

.sb-profile-modern .sb-mosaic-2 { grid-template-columns: 1fr 1fr !important; }

/* 3 Photos: 1 Big Left, 2 Small Right */
.sb-profile-modern .sb-mosaic-3 { 
    grid-template-columns: 1.5fr 1fr !important; 
    grid-template-rows: 1fr 1fr !important;
}
.sb-profile-modern .sb-mosaic-3 .sb-mosaic-item-1 { grid-row: span 2 !important; }

/* 4 Photos: 2x2 Grid */
.sb-profile-modern .sb-mosaic-4 { 
    grid-template-columns: 1fr 1fr !important; 
    grid-template-rows: 1fr 1fr !important;
}

/* 5+ Photos: 1 Big Left, 4 Small Right (2x2) */
.sb-profile-modern .sb-mosaic-5,
.sb-profile-modern .sb-mosaic-5plus { 
    grid-template-columns: 1.5fr 1fr 1fr !important; 
    grid-template-rows: 1fr 1fr !important;
}
.sb-profile-modern .sb-mosaic-5 .sb-mosaic-item-1,
.sb-profile-modern .sb-mosaic-5plus .sb-mosaic-item-1 { grid-row: span 2 !important; }

/* Mobile Adaptation for Gallery */
@media screen and (max-width: 767px) {
    .sb-profile-modern .sb-mosaic-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        height: auto !important;
        gap: 8px !important;
    }
    .sb-profile-modern .sb-mosaic-item {
        height: 160px !important;
        grid-row: span 1 !important;
        grid-column: span 1 !important;
    }
    .sb-profile-modern .sb-mosaic-item-1 {
        grid-column: span 2 !important;
        height: 240px !important;
    }
}

.sb-video-play-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid white !important;
    color: white !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.sb-video-play-icon i {
    font-size: 24px !important;
}

.sb-mosaic-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Pricing */
.sb-profile-modern .sb-amount {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
}

.sb-profile-modern .sb-amount-negotiable {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #64748b !important;
}

/* Location Card */

.sb-location-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sb-icon-location-big {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.sb-location-address {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
}

.sb-profile-modern .sb-company-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    margin-top: 2px !important;
}

.sb-seller-email {
    font-size: 13px !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

.sb-seller-email a {
    color: inherit !important;
    text-decoration: none !important;
}

.sb-seller-email a:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

.sb-seller-role {
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 4px !important;
}

/* Social and Web Links */
.sb-social-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 16px !important;
}

.sb-social-item {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    font-size: 18px !important;
}

.sb-social-item:hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
}

.sb-social-item.sb-social-instagram:hover { color: #e1306c !important; }
.sb-social-item.sb-social-facebook:hover { color: #1877f2 !important; }
.sb-social-item.sb-social-tiktok:hover { color: #000000 !important; }
.sb-social-item.sb-social-web:hover { color: #2563eb !important; }

/* Languages Block */
.sb-languages-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 20px !important;
}

.sb-lang-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

/* Cards Base */
.sb-description-card,
.sb-location-card,
.sb-booking-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}



.sb-booking-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.sb-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.sb-hours-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-empty-state {
    color: #94a3b8 !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 20px 0 !important;
    font-size: 15px !important;
}

.sb-hour-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.sb-hour-row:last-child { border: none; }

/* Section Navigation */
.sb-profile-nav {
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(8px);
    z-index: 90;
    margin-left: -5px;
    margin-right: -5px;
}

.sb-nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.sb-nav-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.sb-nav-list li a {
    display: block;
    padding: 16px 0;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.sb-nav-list li.active a,
.sb-nav-list li a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Services Grid Styling */
/* Services List (Compact) */
.sb-services-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.sb-service-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 16px !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

.sb-service-item:hover {
    border-color: #cbd5e1 !important;
    background: #fcfdfe !important;
}

.sb-service-info {
    flex: 1 !important;
    min-width: 0 !important;
    padding-right: 20px !important;
}

.sb-service-name-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.sb-service-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
}

.sb-service-duration {
    font-size: 11px !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
}

.sb-service-short-desc {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.sb-service-actions {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-shrink: 0 !important;
}

.sb-service-price-small {
    text-align: right !important;
    min-width: 70px !important;
}

.sb-service-price-small .sb-amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.sb-service-price-small .sb-curr {
    font-size: 11px !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
}

.sb-link-btn {
    background: none !important;
    border: none !important;
    color: #2563eb !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.sb-link-btn:hover {
    text-decoration: underline !important;
}

/* Updated Button Sizing */
.sb-btn-xs {
    padding: 5px 12px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.sb-btn-outline-primary {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: none !important;
}

.sb-btn-outline-primary:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    transform: none !important;
    box-shadow: none !important;
}
    height: auto !important;
    min-height: unset !important;
    transition: all 0.2s !important;
}

/* Empty block styling */
.sb-empty-state {
    background: #f8fafc;
    border: 2px dashed #e2e8f0 !important;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    display: block !important;
}

/* Sections */
.sb-section-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    color: #0f172a !important;
}

/* SaaS Booking Calendar Styling */
.sb-profile-modern #booking_calendar {
    padding: 20px 0 !important;
    background: white !important;
}

/* Hide default QR Code from top stats (moved to owner panel) */
.sb-profile-modern .sb-stats-controls .qrCodeModal {
    display: none !important;
}

/* Hide second month and navigation for 1-month focus */
.sb-profile-modern #calendar_map > div:nth-child(2),
.sb-profile-modern #booking_calendar .booking-horizontal {
    display: none !important;
}

/* Center the single month column */
.sb-profile-modern #calendar_map > div:nth-child(1) {
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    float: none !important;
}

.sb-profile-modern #booking_calendar table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 4px !important;
    margin: 0 auto !important;
}

.sb-profile-modern #booking_calendar th {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding-bottom: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.sb-profile-modern #booking_calendar .month_title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    padding-bottom: 24px !important;
    text-align: center !important;
}

.sb-profile-modern .calendar_td {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: none !important;
}

.sb-profile-modern .calendar_td > div {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}

/* 1. Global Reset & Layout */
#bread_crumbs,
section#content > h1,
section#content > .h1-nav,
.listing-details.details > .top-navigation,
.side_block.similarlistings,
.side_block.monetize {
    display: none !important;
}

/* Available dates */
.sb-profile-modern .calendar_td .available {
    background: #f1f5f9 !important;
    color: #475569 !important;
    cursor: pointer !important;
}

.sb-profile-modern .calendar_td:hover .available {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Today */
.sb-profile-modern .calendar_td .today {
    border: 2px solid #2563eb !important;
    color: #2563eb !important;
    font-weight: 700 !important;
}

/* Selected dates */
.sb-profile-modern .calendar_td .daySelect,
.sb-profile-modern .calendar_td .current-request {
    background: #2563eb !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3) !important;
}

/* Booked/Closed dates */
.sb-profile-modern .calendar_td .booked,
.sb-profile-modern .calendar_td .closed {
    background: transparent !important;
    color: #cbd5e1 !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
}

/* "Proceed to booking" button styling */
.sb-profile-modern #step_1_button, 
.sb-profile-modern .booking-button,
.sb-profile-modern input[id^="step_"][type="button"],
.sb-profile-modern input[id^="step_"][type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 32px !important;
    background: #2563eb !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    margin-top: 24px !important;
}

.sb-profile-modern #step_1_button:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Fix for the "Proceed" button appearing below calendar */
.sb-profile-modern #booking_calendar + div,
.sb-profile-modern #booking_calendar + form {
    text-align: center !important;
}

/* Reviews & Comments SaaS Styling */
.sb-profile-modern .sb-reviews-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

#sb_reviews_container .sb-empty-state {
    padding: 40px 0 !important;
    background: transparent !important;
    border: none !important;
}

.sb-profile-modern #area_comments {
    display: block !important;
}

.sb-profile-modern #area_comments .content-padding {
    padding: 0 !important;
}

/* Form Styling Fixes */
.sb-profile-modern .form_add_comment {
    max-width: 600px !important;
    margin: 40px auto 0 !important;
    padding: 32px !important;
    background: #f8fafc !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
}

.sb-profile-modern .form_add_comment .fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.sb-profile-modern .form_add_comment header {
    display: block !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
}

.sb-profile-modern .form_add_comment .submit-cell {
    margin-bottom: 16px !important;
    border: none !important;
    padding: 0 !important;
}

.sb-profile-modern .form_add_comment input[type="text"],
.sb-profile-modern .form_add_comment textarea {
    width: 100% !important;
    background: white !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    color: #1e293b !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
}

.sb-profile-modern .form_add_comment input[type="text"]:focus,
.sb-profile-modern .form_add_comment textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* Stars Rating */
.sb-profile-modern .comment-star-add {
    width: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    background: url('../img/star.png') no-repeat center !important;
    background-size: contain !important;
    margin-right: 6px !important;
    opacity: 0.3 !important;
    transition: all 0.2s !important;
}

.sb-profile-modern .comment-star-add.active,
.sb-profile-modern .comment-star-add:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.sb-profile-modern .form_add_comment .buttons {
    margin-top: 24px !important;
}

.sb-profile-modern .form_add_comment input[type="submit"] {
    background: #2563eb !important;
    color: white !important;
    padding: 16px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

.sb-profile-modern .form_add_comment input[type="submit"]:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
}

/* Comments List Styling */
.sb-profile-modern .comments-list li {
    padding: 24px !important;
    background: white !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    transition: all 0.2s !important;
}

.comments-list li:hover {
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.comments-list .Author {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.comments-list .date {
    color: #94a3b8 !important;
}

/* Similar Listings Modern Styling - Clean Version */
.sb-profile-modern .sb-similar-container {
    margin-top: 32px !important;
}

.sb-profile-modern .sb-similar-container ul.featured {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 -10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.sb-profile-modern .sb-similar-container ul.featured li {
    padding: 12px !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: auto !important;
}

.sb-similar-container ul.featured li::before,
.sb-similar-container ul.featured li::after {
    display: none !important;
}

.sb-profile-modern .sb-similar-card-inner {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.sb-profile-modern .sb-similar-container ul.featured li:hover .sb-similar-card-inner {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1 !important;
}

.sb-profile-modern .sb-similar-container .picture {
    position: relative !important;
    height: 160px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.sb-profile-modern .sb-similar-container .picture a {
    display: block !important;
    height: 100% !important;
}

.sb-profile-modern .sb-similar-container .card-info {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    list-style: none !important;
    margin: 0 !important;
    gap: 4px !important;
}

.sb-profile-modern .sb-similar-container .card-info .title {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    display: block !important;
}

.sb-profile-modern .sb-similar-container .card-info .title a {
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.sb-profile-modern .sb-similar-container .card-info .fields {
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}

.sb-profile-modern .sb-similar-container .price_tag {
    margin-top: auto !important;
    padding: 12px 16px !important;
    border-top: 1px solid #f1f5f9 !important;
    display: block !important;
    background: #fcfdff !important;
}

.sb-profile-modern .sb-similar-container .price_tag > div {
    font-weight: 800 !important;
    color: #2563eb !important;
    font-size: 18px !important;
    margin: 0 !important;
}

/* Hide everything else */
.sb-profile-modern .sb-similar-container .offer-task,
.sb-profile-modern .sb-similar-container .offer-service,
.sb-profile-modern .sb-similar-container .icons,
.sb-profile-modern .sb-similar-container .nav-icons,
.sb-profile-modern .sb-similar-container .card-info li[data-listing-id],
.sb-profile-modern .sb-similar-container .card-info li.two-inline:not(.price_tag) {
    display: none !important;
}

.sb-profile-modern .sb-action-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    color: #64748b !important;
    transition: all 0.2s !important;
}

.sb-profile-modern .sb-action-btn i {
    font-size: 20px !important;
}

.sb-profile-modern .sb-action-btn span {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.sb-profile-modern .sb-action-btn:hover {
    color: #0f172a !important;
    transform: translateY(-1px) !important;
}

.sb-profile-modern .sb-action-btn.text-danger:hover {
    color: #ef4444 !important;
}

/* Owner Controls Styling */
.sb-owner-actions {
    background: #fdfdfd !important;
}

.sb-btn-outline-indigo {
    background: transparent !important;
    border: 1px solid #4f46e5 !important;
    color: #4f46e5 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-align: center !important;
    transition: all 0.2s !important;
}

.sb-btn-outline-indigo:hover {
    background: #4f46e5 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
    text-decoration: none !important;
}

/* Reviews Section Styling */
.sb-reviews-header {
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 20px !important;
}

.sb-rating-value {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.sb-stars-wrap i {
    font-size: 24px !important;
    color: #f59e0b !important;
}

/* Add Review Plate */
.sb-add-review-plate {
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
}

.sb-plate-title {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #1e40af !important;
    margin-bottom: 2px !important;
}

.sb-plate-desc {
    font-size: 13px !important;
    color: #60a5fa !important;
}

/* Empty State Reviews */
.sb-empty-state-reviews {
    text-align: center !important;
    padding: 40px 20px !important;
    background: #f8fafc !important;
    border-radius: 20px !important;
    border: 2px dashed #e2e8f0 !important;
}

.sb-empty-icon {
    font-size: 40px !important;
    color: #cbd5e1 !important;
    margin-bottom: 16px !important;
}

.sb-empty-title {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
}

.sb-empty-text {
    font-size: 14px !important;
    color: #94a3b8 !important;
    max-width: 300px !important;
    margin: 0 auto !important;
}

/* Modern Review Form Styling */
.sb-modern-form-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 28px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04) !important;
    margin-top: 20px !important;
}

.sb-form-grid {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.sb-form-grid > div {
    flex: 1 !important;
}

@media (max-width: 768px) {
    .sb-form-grid {
        flex-direction: column !important;
    }
}

.sb-input {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #1e293b !important;
    background-color: #fff !important;
    background-image: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.sb-input:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
    background-color: #fff !important;
}

.sb-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.sb-rating-selector {
    margin-bottom: 20px !important;
}

.sb-star-btn {
    font-size: 28px !important;
    line-height: 1 !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    display: inline-block !important;
}

.sb-star-btn.active,
.sb-star-btn:hover,
.sb-star-btn.hover {
    color: #fbbf24 !important;
    transform: scale(1.1) !important;
}

.sb-star-btn:hover ~ .sb-star-btn {
    color: #cbd5e1 !important;
}

.sb-modern-form-card .sb-btn-indigo {
    background: #4f46e5 !important;
    color: #fff !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.sb-modern-form-card .sb-btn-indigo:hover {
    background: #4338ca !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3) !important;
}

/* Review Card Enhancements */
.sb-profile-modern .sb-comment-card {
    background: white !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    transition: all 0.2s !important;
}

.sb-profile-modern .sb-comment-card:hover {
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

.sb-profile-modern .sb-comment-author {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 15px !important;
}

.sb-profile-modern .sb-comment-date {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

.sb-profile-modern .sb-comment-title {
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 8px 0 !important;
}

.sb-profile-modern .sb-comment-text {
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}

/* Global Cleanup - Final Suppression (ONLY on modern profile) */
.sb-profile-modern #area_comments,
.sb-profile-modern #area_description.tab_area,
.sb-profile-modern #area_listing.tab_area,
.sb-profile-modern .listing-details.details,
.sb-profile-modern .main-section,
.sb-profile-modern .content-section > .tabs,
.sb-profile-modern .content-section > .tabs-hash,
.sb-profile-modern .side_block.seller-short,
.sb-profile-modern .side_block.seller-info,
.sb-profile-modern .side_block.contact-owner,
.sb-profile-modern section[class*="seller"],
.sb-profile-modern section[class*="contact"],
.sb-profile-modern #get_more_details,
.sb-profile-modern aside.left.order-2 section.side_block,
.sb-profile-modern #tab_comments,
.sb-profile-modern #area_comments > .fieldset,
.sb-profile-modern .sl_similar_listings.side_block {
    display: none !important;
}

/* Special handling for booking: hide it globally ONLY on modern profile, but show inside our target */
.sb-profile-modern #area_booking {
    display: none !important;
}
.sb-profile-modern #booking_calendar_target #area_booking {
    display: block !important;
}

/* ================================================================
   MOBILE OPTIMIZATION (Final Touch)
================================================================ */

@media screen and (max-width: 991px) {
    .sb-profile-modern {
        padding-top: 15px !important;
        padding-bottom: 80px !important; /* Space for fixed bar */
    }

    .sb-profile-header {
        margin-bottom: 24px !important;
        text-align: center !important;
    }

    .sb-h1-fake, 
    .sb-profile-title {
        font-size: 26px !important;
        line-height: 1.1 !important;
        margin-bottom: 12px !important;
    }

    .sb-profile-subtitle {
        font-size: 14px !important;
        display: block !important;
        padding: 0 10px !important;
    }

    /* Decision Panel Mobile */
    .sb-profile-modern .sb-decision-panel {
        position: static !important;
        padding: 20px !important;
        border-radius: 20px !important;
        margin-bottom: 24px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }

    /* Hide redundant CTA buttons in the body on mobile, 
       since we have a better fixed bottom bar */
    .sb-cta-section,
    .contact-owner,
    .phone-block,
    .phone-block-fixed,
    .listing-phone,
    [id*="phone"],
    [class*="phone-block"],
    #get_more_details,
    .side_block.contact-owner,
    .sb-profile-modern .sb-cta-section {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Suppress monetization and other legacy blocks */
    .side_block.monetize,
    .side_block.no-header.monetize,
    .side_block.statistics,
    .side_block.social-share {
        display: none !important;
    }

    /* Bottom Fixed Navigation Bar (Modern Redesign) */
    .booking-bar,
    .mobile-fixed-nav,
    .bottom-nav-fixed {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 72px !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        z-index: 9999 !important;
        padding: 0 16px !important;
        box-shadow: 0 -10px 20px rgba(0,0,0,0.05) !important;
    }

    .booking-bar .button,
    .booking-bar button,
    .bottom-nav-fixed .btn-book {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
        color: white !important;
        border: none !important;
        border-radius: 14px !important;
        height: 48px !important;
        padding: 0 24px !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
        text-transform: none !important;
        font-size: 15px !important;
    }

    /* Hide redundant text labels in bottom bar if they are ugly */
    .booking-bar span.text {
        display: none !important;
    }

    /* Info sections on mobile */
    .sb-description-card, 
    .sb-location-card, 
    .sb-booking-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .sb-location-info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
}

@media screen and (min-width: 600px) and (max-width: 991px) {
    /* Two columns on tablets */
    .sb-similar-container ul.featured {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Fix for the breadcrumbs on mobile */
@media screen and (max-width: 480px) {
    .sb-breadcrumb {
        justify-content: center !important;
    }
    .sb-breadcrumb li:not(:last-child)::after {
        margin: 0 6px !important;
    }
}

/* ============================================================
   TRUST TAGS — booking badge variant
   ============================================================ */
.sb-profile-modern .sb-trust-tag--booking {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}
.sb-profile-modern .sb-trust-tag--booking i {
    color: #22c55e !important;
}

/* ============================================================
   PHONE FIELDS IN CHARACTERISTICS (details_modern.tpl)
   ============================================================ */

/* Обёртка открытого номера: номер + мессенджеры в ряд */
.sb-profile-modern .sb-details-phone-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Ссылка открытого номера */
.sb-profile-modern .sb-details-phone-link {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: color 0.15s;
}
.sb-profile-modern .sb-details-phone-link:hover {
    color: #2563eb;
}

/* Кнопка "Показать номер" для скрытых телефонов */
.sb-profile-modern .sb-details-phone-hidden {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}
.sb-profile-modern .sb-details-phone-hidden:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}
.sb-profile-modern .sb-details-phone-hidden i {
    font-size: 12px;
}

/* Ссылки email / url в характеристиках */
.sb-profile-modern .sb-details-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    word-break: break-all;
    transition: color 0.15s;
}
.sb-profile-modern .sb-details-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ============================================================
   MESSENGER PANEL (moved from inline style in seller_modern.tpl)
   ============================================================ */

/* Панель мессенджеров в CTA сайдбара */
.sb-profile-modern .sb-messengers-panel {
    min-height: 0;
}
.sb-profile-modern .sb-messengers-panel .messenger-icons,
.sb-profile-modern .sb-messengers-wrapper .messenger-icons {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    justify-content: center;
}
.sb-profile-modern .sb-messengers-panel .messenger-icons a,
.sb-profile-modern .sb-messengers-wrapper .messenger-icons a {
    display: block;
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.sb-profile-modern .sb-messengers-panel .messenger-icons a:hover,
.sb-profile-modern .sb-messengers-wrapper .messenger-icons a:hover {
    transform: scale(1.12);
    filter: brightness(1.1);
}
.sb-profile-modern .sb-messengers-panel .messenger-icons img,
.sb-profile-modern .sb-messengers-wrapper .messenger-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Мессенджеры в блоке характеристик (компактнее) */
.sb-profile-modern .sb-details-phone-wrap .messenger-icons {
    display: flex;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.sb-profile-modern .sb-details-phone-wrap .messenger-icons a {
    width: 26px;
    height: 26px;
}

/* ============================================================
   OWNER MANAGEMENT PANEL (.sb-owner-panel)
   ============================================================ */

.sb-profile-modern .sb-owner-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.sb-profile-modern .sb-owner-panel__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.sb-profile-modern .sb-owner-panel__header i {
    font-size: 14px;
    color: #cbd5e1;
}

.sb-profile-modern .sb-owner-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Основная кнопка-действие (Редактировать) */
.sb-profile-modern .sb-owner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1.5px solid #6366f1;
    color: #4f46e5 !important;
    background: #eef2ff;
    cursor: pointer;
    letter-spacing: 0.1px;
}
.sb-profile-modern .sb-owner-btn:hover {
    background: #e0e7ff;
    border-color: #4f46e5;
    color: #3730a3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Вторичная кнопка (Продлить / Улучшить) */
.sb-profile-modern .sb-owner-btn--upgrade {
    background: transparent;
    color: #64748b !important;
    border-color: #e2e8f0;
}
.sb-profile-modern .sb-owner-btn--upgrade:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569 !important;
    transform: translateY(-1px);
    box-shadow: none;
}

/* Слот аналитики — невидим пока пустой */
.sb-profile-modern .sb-owner-panel__stats:empty {
    display: none;
}
.sb-profile-modern .sb-owner-panel__stats {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* === Mobile Swiper === */
.sb-mobile-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #000;
    aspect-ratio: 4/3;
}
.sb-mobile-swiper-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
}
.sb-mobile-swiper-track:active {
    cursor: grabbing;
}
.sb-mobile-swiper-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.sb-mobile-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.sb-mobile-swiper-dots {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}
.sb-swiper-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.sb-swiper-dot.active {
    background: #fff;
    transform: scale(1.3);
}
.sb-mobile-swiper-counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 10;
    font-family: 'Outfit', sans-serif;
}
/* Explicit display overrides in case Flynax template disables standard Bootstrap 3 classes */
@media (min-width: 768px) {
    .sb-mobile-swiper { display: none !important; }
}
@media (max-width: 767px) {
    .sb-mosaic-grid { display: none !important; }
    .sb-mobile-swiper { display: block !important; }
}

/* Sticky Mobile Bottom Bar */
.sb-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}
.sb-mobile-bar-price {
    flex: 1;
}
.sb-mobile-price-val {
    display: flex;
    flex-direction: column;
}
.sb-mobile-price-prefix {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}
.sb-mobile-price-val .price-tag, .sb-mobile-price-val .sb-amount-negotiable {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}
.sb-mobile-price-val .sb-amount-negotiable {
    color: #059669;
}
.sb-mobile-bar-actions {
    display: flex;
    gap: 8px;
}
.sb-mobile-bar-actions .sb-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.sb-mobile-bar-actions .sb-btn i {
    font-size: 18px;
    margin: 0;
}
/* Padding to body to prevent overlap */
@media (max-width: 991px) {
    body {
        padding-bottom: 80px;
    }
}

/* Image rounding for mobile gallery and similar listings */
@media (max-width: 991px) {
    .sb-mobile-swiper,
    .sb-mobile-swiper-slide img,
    #area_similar .sb-card__photo img,
    #area_similar .sb-card__photo,
    #area_similar .picture img,
    #area_similar .picture {
        border-radius: 12px !important;
        overflow: hidden;
    }
}

/* --- Mobile Sticky CTA Bar --- */
.sb-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
}

.sb-mobile-sticky-bar__inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.sb-mobile-sticky-bar .sb-profile-modern {
    padding: 0 !important;
    margin: 0 !important;
}

.sb-mobile-sticky-bar .gap-2 {
    gap: 8px !important;
}

.sb-mobile-sticky-bar .sb-btn {
    flex: 1; /* By default, equal width for secondary buttons */
    white-space: nowrap;
    padding: 0 10px;
    height: 38px;
    font-size: 14px;
}

.sb-mobile-sticky-bar .sb-btn-primary-wide {
    flex: 2; /* Primary button takes twice the width */
}

.sb-mobile-sticky-bar .sb-btn-icon-only {
    flex: 0 0 38px;
    width: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-mobile-sticky-bar .sb-btn-icon-only .fa-heart {
    font-size: 20px;
}
.sb-mobile-sticky-bar .favorite.remove .fa-heart,
.sb-mobile-sticky-bar .favorite.added .fa-heart {
    font-weight: 900;
    color: #ef4444; /* red for favorite */
}

/* Ensure body doesn't hide content behind the sticky bar on mobile */
@media (max-width: 991px) {
    article.sb-profile-modern {
        padding-bottom: 80px;
    }
    .sb-profile-actions .sb-btn-fav-round {
        display: none !important;
    }
    .sb-mobile-sticky-bar .contact-owner,
    .sb-mobile-sticky-bar .login {
        display: flex !important;
        visibility: visible !important;
    }
    .sb-mobile-sticky-bar .favorite {
        position: relative !important;
        right: auto !important;
        top: auto !important;
    }
    .sb-mobile-sticky-bar .sb-btn {
        display: flex !important;
        flex: 1;
        min-width: 0;
        padding: 0 8px !important;
        font-size: 13px !important;
        white-space: nowrap;
        height: 38px !important;
    }
    .sb-mobile-sticky-bar .sb-btn-icon-only {
        flex: 0 0 38px !important;
        width: 38px !important;
        padding: 0 !important;
    }
    .sb-mobile-sticky-bar .sb-btn-primary-wide {
        flex: 1.2 !important;
    }
    .sb-mobile-sticky-bar .sb-btn i {
        margin-right: 4px !important;
    }
    .sb-mobile-sticky-bar .sb-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
