/* ==========================================================================
   OPENSOOQ AUTO DOORS SERVICES PLATFORM - UNIFIED STYLES (PAGES 1, 2, 3)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=Alexandria:wght@300;400;500;600;700;800;900&family=Almarai:wght@300;400;700;800&display=swap');

:root {
    --primary-blue: #006aff;
    --secondary-blue: #0056cc;
    --primary-hover: #0052c6;
    --orange: #f5a213;
    --orange-hover: #d88900;
    --bg-color: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #475569;
    --text-gray: #475569;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --white: #ffffff;
    --price-red: #d32f2f;
    --whatsapp-green: #25d366;
    --whatsapp-green-dark: #1da851;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', 'Almarai', 'Alexandria', 'Segoe UI', Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure FontAwesome 6 Icons retain their font family and override universal selector */
.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   TOP BAR (OpenSooq Style)
   ========================================================================== */
.top-bar {
    background: linear-gradient(90deg, #0052c6 0%, #006aff 100%);
    color: white;
    padding: 9px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.top-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar span i {
    color: #4ade80;
    font-size: 12px;
}

.btn-وثق {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-وثق:hover {
    background: white;
    color: var(--primary-blue);
    border-color: white;
    transform: translateY(-1px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-top {
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    padding: 10px 24px;
    max-width: 1240px;
    margin: 0 auto;
    font-size: 13px;
    font-weight: 700;
    flex-wrap: wrap;
    gap: 12px;
    color: #475569;
}

.header-nav-right,
.header-nav-left {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.header-nav span {
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-nav span:hover {
    color: var(--primary-blue);
}

.header-main {
    background: white;
    padding: 14px 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid #f8fafc;
    height: 72px;
}

.header-main-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #16a34a;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    cursor: pointer;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-links {
    display: flex;
    gap: 24px;
    font-weight: 700;
    font-size: 14px;
}

.header-links a {
    transition: color 0.2s ease;
    color: #334155;
}

.header-links a:hover,
.header-links a.active {
    color: var(--primary-blue);
}

.search-container {
    display: flex;
    flex: 1;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-width: 280px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.search-container:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.15);
}

.search-input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
}

.search-category {
    padding: 10px 16px;
    background: #f8fafc;
    border-left: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.search-category:hover {
    background: #f1f5f9;
}

.search-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0 28px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: var(--secondary-blue);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.user-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    padding: 8px;
}

.user-action-btn:hover {
    background: transparent;
    color: var(--primary-blue);
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    background: transparent;
    color: var(--primary-blue);
}

.badge-notify {
    position: absolute;
    top: -2px;
    left: -2px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-ad-blue {
    background-color: var(--primary-blue);
    color: white;
    padding: 0 16px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 106, 255, 0.25);
    white-space: nowrap;
}

.btn-add-ad-blue:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 106, 255, 0.35);
}

/* ==========================================================================
   PAGE 1 LANDING PAGE STYLES (gemini-code-1785615798871.html)
   ========================================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    background: linear-gradient(135deg, #0052c6 0%, #006aff 60%, #0284c7 100%);
    padding: 55px 24px;
    border-radius: var(--radius-lg);
    margin-top: 24px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 12px 30px rgba(211, 211, 211, 0.22);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.hero-section p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 400;
}

.search-box {
    background: var(--white);
    padding: 10px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 10px;
    max-width: 920px;
    margin: 0 auto;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.search-box select,
.search-box input {
    flex: 1;
    min-width: 160px;
    padding: 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    background: #fff;
    transition: border-color 0.2s ease;
}

.search-box input:focus,
.search-box select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.1);
}

.btn-search {
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
    padding: 13px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(242, 154, 0, 0.3);
}

.btn-search:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin: 44px 0 22px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    letter-spacing: -0.3px;
}

/* ==========================================================================
   OPENSOOQ CATEGORIES SECTION (MATCHING REFERENCE IMAGE)
   ========================================================================== */
/* ==========================================================================
   OPENSOOQ CATEGORIES SECTION (MATCHING REFERENCE IMAGE)
   ========================================================================== */
.categories-section-wrapper {
    margin-top: 18px;
    margin-bottom: 24px;
}

.categories-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.categories-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: #006aff;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.view-all-link:hover {
    color: #004bbf;
    gap: 9px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (min-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 580px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 8px;
    height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    box-shadow: none;
}

.category-card:hover {
    background: #fafcff;
    transform: translateY(-3px);
    box-shadow: none;
    border-color: #006aff;
}

.category-card:active {
    transform: scale(0.96);
}

.cat-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .cat-icon-badge {
    transform: scale(1.08);
}

.cat-img-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.category-card:hover .cat-img-icon {
    transform: scale(1.12);
}

.cat-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f1f5f9;
    box-shadow: none;
    transition: all 0.25s ease;
    background: #f8fafc;
}

.category-card:hover .cat-icon {
    border-color: #006aff;
    transform: scale(1.08);
    box-shadow: none;
}

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

.category-card:hover .cat-img {
    transform: scale(1.1);
}

.split-sections {
    display: flex;
    gap: 24px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.find-engineer-box {
    flex: 1;
    min-width: 320px;
    background: url('assets/garage_door_sample_1785611722446.png') center/cover;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 44px;
    color: var(--white);
    min-height: 260px;
    box-shadow: var(--shadow-md);
}

.find-engineer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 204, 0.92) 0%, rgba(0, 106, 255, 0.85) 100%);
    z-index: 1;
}

.find-engineer-content {
    position: relative;
    z-index: 2;
}

.find-engineer-content h2 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 800;
}

.find-engineer-content p {
    font-size: 15px;
    margin-bottom: 22px;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-find {
    background: var(--white);
    color: var(--primary-blue);
    font-weight: 800;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-find:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.engineer-login-box {
    flex: 1;
    min-width: 320px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.engineer-login-box h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 800;
}

.engineer-login-box p {
    color: var(--text-gray);
    margin-bottom: 28px;
    font-size: 14px;
}

.btn-google {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: var(--shadow-sm);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    margin: 18px 0;
    width: 100%;
    max-width: 320px;
    font-size: 13px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider:not(:empty)::before {
    margin-left: .5em;
}

.divider:not(:empty)::after {
    margin-right: .5em;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    background: #f0f7ff;
}

/* ==========================================================================
   PAGE 2 & PAGE 3 MARKETPLACE & ENGINEER STYLES
   ========================================================================== */
.filter-section-container {
    max-width: 1240px;
    margin: 16px auto 0 auto;
    padding: 0 15px;
}

.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #cce5f7;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.filter-toggle-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0284c7;
}

.filter-bar {
    display: flex;
    gap: 12px;
    background: transparent;
    /* البطاقة الخارجية بدون خلفية ملونة */
    padding: 4px 0;
    border: none;
    box-shadow: none;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.filter-group .filter-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0284c7;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.filter-select {
    width: 100%;
    padding: 11px 40px 11px 36px;
    border: 1px solid #cce5f7;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    background-color: #eef7fc;
    /* الخلفية السماوي الخفيف للخيارات/الانبوت نفسه */
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

.filter-select:hover {
    border-color: #0284c7;
    background-color: #e2f2fc;
}

.filter-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-select option {
    padding: 10px;
    background-color: #ffffff;
    color: var(--text-dark);
}

/* Active Filters & Clear All Bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    gap: 12px;
}

.active-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
}

.active-chip i {
    cursor: pointer;
    font-size: 12px;
    color: #0284c7;
    transition: color 0.15s ease;
}

.active-chip i:hover {
    color: #dc2626;
}

.btn-clear-all {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.btn-clear-all:hover {
    color: #b91c1c;
}

.filter-select:hover {
    border-color: #0284c7;
}

.filter-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-select option {
    padding: 10px;
    background-color: #ffffff;
    color: var(--text-dark);
}

.main-container {
    max-width: 1240px;
    margin: 24px auto 40px auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 0 15px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-box {
    background: white;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list li {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-list li:hover {
    color: var(--primary-blue);
    background: #f0f7ff;
}

.category-list li.active {
    color: var(--primary-blue);
    background: #e6f0ff;
    font-weight: 800;
}

.ad-promo {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ad-promo button {
    width: 100%;
    background: var(--orange);
    color: #0f172a;
    border: none;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(242, 154, 0, 0.25);
}

.ad-promo button:hover {
    background: var(--orange-hover);
}

.emergency-box {
    border-color: #fecaca;
    background: #fff5f5;
}

.btn-emergency-sidebar {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.btn-emergency-sidebar:hover {
    background: #b91c1c;
}

.listings-area {
    flex: 1;
    min-width: 0;
}

.page-header {
    margin-bottom: 20px;
}

.breadcrumbs {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    cursor: pointer;
}

.page-title {
    font-size: 23px;
    margin-bottom: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.active-filters {
    background: white;
    padding: 14px 18px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tag {
    background: #e6f0ff;
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   OPENSOOQ EXACT DESIGN SYSTEM (FILTER BAR + CARD LAYOUT)
   ========================================================================== */
.opensooq-filter-bar {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    display: flex;
    width: 100%;
    margin-bottom: 20px;

}

.os-filter-col {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.os-profile-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 6px;
    border: 1px solid #e5e7eb;
}

.os-filter-col:last-child {
    border-left: none;
}

.os-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    background-color: #f1f1f1;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.os-filter-select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    padding: 2px 0;
}

.opensooq-header-info {
    margin-bottom: 20px;
}

.os-breadcrumbs {
    font-size: 12.5px;
    color: #350647;
    margin-bottom: 8px;
    font-weight: 600;
}

.os-breadcrumbs a {
    color: #0f1455;
    text-decoration: none;
}

.os-page-title {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 4px;
}

.os-page-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}

.os-pills-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.os-pill-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.os-pill-btn.active,
.os-pill-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.os-pill-more {
    color: #2563eb;
    border-color: #93c5fd;
}

.os-active-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.os-active-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-clear-all {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.btn-clear-all:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

.active-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.active-chip {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #1f2937;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.active-chip:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.active-chip i {
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 2px;
    border-radius: 50%;
}

.active-chip i:hover {
    color: #ef4444;
    transform: scale(1.15);
}

.os-sort-select {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    outline: none;
    cursor: pointer;
}

/* OPENSOOQ CARD STYLES */
.listing-card-opensooq {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 18px;
    align-items: stretch;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

.listing-card-opensooq:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-os-img-box {
    width: 210px;
    height: 155px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.card-os-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.os-img-badge-time {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.os-img-badge-truck {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: #eab308;
    color: #000000;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.os-img-badge-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-os-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.card-os-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-os-price {
    font-size: 15.5px;
    font-weight: 800;
    color: #d32f2f;
    line-height: 1.2;
    margin-bottom: 4px;
}

.card-os-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 6px 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-os-specs {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-os-specs i {
    color: #9ca3af;
}

.card-os-dashed-divider {
    border-bottom: 1px dashed #e5e7eb;
    margin: 10px 0;
}

.card-os-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-os-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.os-category-label {
    color: #4b5563;
}

.os-location-label {
    color: #6b7280;
}

.os-location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-os-engineer-name {
    color: #444444 !important;
    font-weight: 700;
}

.card-os-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-os-call-chat-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-os-heart {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    color: #ef4444;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

@media (min-width: 769px) {
    .listing-card-opensooq {
        position: relative;
    }

    .btn-os-heart {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 5;
    }

    .card-os-user-info,
    .card-os-title,
    .card-os-top {
        padding-left: 48px;
    }
}

.btn-os-heart:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.btn-os-chat {
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-os-chat i {
    color: #25d366;
}

.btn-os-chat:hover {
    border-color: #25d366;
    background: #f0fdf4;
}

.btn-os-call {
    height: 38px;
    padding: 0 20px;
    border-radius: 8px;
    border: none;
    background: #006aff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.btn-os-call:hover {
    background: #0056cc;
}

.listing-card-refined {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 16px;
    display: flex;
    gap: 22px;
    align-items: center;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
}

.listing-card-refined:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.card-refined-img-box {
    width: 210px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

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

.listing-card-refined:hover .card-refined-img {
    transform: scale(1.04);
}

.card-refined-verified {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.95);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.card-refined-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.card-refined-profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.eng-profile-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eng-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.eng-name-text {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.eng-rating-badge {
    font-size: 13px;
    font-weight: 800;
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 2.5px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.eng-rating-badge i {
    color: #f59e0b;
    font-size: 11.5px;
}

.card-refined-city {
    font-size: 13.5px;
    font-weight: 800;
    color: #0284c7;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-refined-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.card-refined-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.chip-item {
    background: transparent;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.chip-item:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

.card-refined-subtext {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-refined-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-refined-call {
    background: #006aff;
    color: #ffffff;
    border: none;
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-refined-call:hover {
    background: #0056cc;
}

.btn-refined-whatsapp {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-refined-whatsapp i {
    color: #25d366;
}

.btn-refined-whatsapp:hover {
    border-color: #25d366;
    background: #f8fafc;
}

.btn-refined-details {
    background: transparent;
    color: #475569;
    border: none;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
    transition: color 0.2s ease;
}

.btn-refined-details:hover {
    color: #0f172a;
}

.listing-card-modern-split {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    display: flex;
    gap: 22px;
    align-items: stretch;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    position: relative;
}

.listing-card-modern-split:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-work-img-wrapper {
    width: 220px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.card-work-img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.listing-card-modern-split:hover .card-work-img {
    transform: scale(1.04);
}

.card-modern-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-eng-name-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.verified-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
    vertical-align: middle;
}

.verified-inline-badge i {
    color: #0284c7;
    font-size: 12px;
}

.listing-card-mockup {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.listing-card-mockup:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-rating-badge {
    background: #fffbeb;
    border: 1px solid #fef08a;
    color: #d97706;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-rating-badge i {
    color: #f59e0b;
    font-size: 12px;
}

.card-user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.card-user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.card-eng-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.card-eng-subtitle {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 600;
}

.card-avatar-wrapper {
    position: relative;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.card-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-verified-pill {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.card-verified-pill i {
    color: #2563eb;
    font-size: 11px;
}

.card-mockup-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.pill-tag-green {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-tag-gray {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-mockup-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 20px;
}

.card-mockup-meta i {
    color: #94a3b8;
}

.card-mockup-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.btn-mockup-call {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-mockup-call:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-mockup-whatsapp {
    background: #22c55e;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
    transition: all 0.2s ease;
}

.btn-mockup-whatsapp:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.btn-mockup-details {
    background: transparent;
    color: #64748b;
    border: none;
    padding: 12px 16px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    transition: color 0.2s ease;
}

.btn-mockup-details:hover {
    color: #0f172a;
}

.listing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    display: flex;
    gap: 18px;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.listing-img-wrapper {
    position: relative;
    width: 210px;
    height: 155px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.listing-img {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-img {
    transform: scale(1.03);
}

.trusted-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(20, 20, 20, 0.349));
    z-index: 2;
}

.listing-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.listing-time {
    font-size: 13px;
    color: #475569;
    font-weight: 700;
    white-space: nowrap;
}

.listing-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.45;
    color: #0f172a;
    transition: color 0.2s ease;
}

.listing-title:hover {
    color: var(--primary-blue);
}

.listing-location-unified {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-location-unified i {
    color: #0284c7;
    font-size: 14px;
}

.listing-location-unified strong {
    color: var(--primary-blue);
    font-weight: 800;
}

.listing-tags-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-free-inspection {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 2px rgba(21, 128, 61, 0.1);
}

.tag-specialty {
    background: #f0f7ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag-warranty {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.listing-engineer-info {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-call {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 9px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 106, 255, 0.25);
}

.btn-call:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
}

.btn-chat {
    background: white;
    border: 1.5px solid #cbd5e1;
    padding: 9px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s ease;
}

.btn-chat i {
    color: #25d366;
    font-size: 16px;
}

.btn-chat:hover {
    background: #f8fafc;
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-green-dark);
    transform: translateY(-1px);
}

.btn-profile {
    background: transparent;
    color: #475569;
    border: none;
    padding: 6px 4px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.btn-profile:hover {
    color: #0f172a;
    background: transparent;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 32px 0;
    direction: ltr;
    flex-wrap: wrap;
}

.page-num {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.page-num:hover:not(.empty-nav) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.page-num.active {
    background: #e6f0ff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 800;
}

.promo-banner {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.promo-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.promo-images div {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-text {
    text-align: right;
    flex: 1;
    padding-right: 28px;
}

.promo-text h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0f172a;
}

.promo-text ul {
    margin-bottom: 16px;
    color: var(--text-gray);
}

.promo-text ul li {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.btn-promo {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 11px 36px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.25);
}

.btn-promo:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
}

/* Page 3 Detail View Layout */
.detail-page-container {
    flex-direction: column;
}

.detail-header-breadcrumbs {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 18px;
    padding: 0 4px;
}

.detail-header-breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 700;
}

.detail-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    width: 100%;
}

.listing-detail-header-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.listing-price-large {
    color: var(--price-red);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.listing-title-large {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.listing-meta-row {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}

.text-orange {
    color: var(--orange);
}

.text-green {
    color: #16a34a;
}

.detail-gallery-box {
    background: white;
    /*   border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;*/
    margin-bottom: 8px !important;
    box-shadow: var(--shadow-sm);
}

.gallery-main-view {
    position: relative;
    height: 420px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f172a;
    margin-bottom: 12px;
}

.gallery-main-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-trusted-gallery {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgb(16, 102, 37);
    color: white;
    padding: 3px 10px;

    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.199);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-top-left-controls {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.gallery-image-counter {
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    direction: ltr;
}

.gallery-expand-btn {
    background: rgba(0, 0, 0, 0.65);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(4px);
    border: none;
    transition: all 0.2s ease;
    z-index: 5;
}

.gallery-expand-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.detail-left-col {
    min-width: 0;
}

.gallery-thumbs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 35px;
}

.gallery-arrow {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.gallery-arrow:hover {

    color: white;
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.gallery-arrow.prev-arrow {
    right: 0px;
}

.gallery-arrow.next-arrow {
    left: 0px;
}

.gallery-thumbs-row {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-thumbs-row::-webkit-scrollbar {
    display: none;
}

.gallery-thumb-item {
    width: 95px;
    height: 68px;
    border-radius: 1px;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-thumb-item.active,
.gallery-thumb-item:hover {
    opacity: 1;
    border-bottom-color: var(--primary-blue);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-box {
    background: white;
    border-radius: var(--radius-md);
    /*  border: 0.5px solid #eaeaea;
     Slightly more visible border */
    padding: 16px 14px;
    margin-bottom: 64px;
    margin-top: 64px;
    position: relative;
}

/* Match Heading Font Style from the User's Image ("الوصف") */
.detail-box h3 {
    position: absolute;
    top: -40px;
    right: 14px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 0;
    color: #2b2b2b;
    letter-spacing: -0.3px;
    background-color: transparent;
    padding: 0;
    border-radius: 0px;
}

.detail-specs-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.spec-cell {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: #ffffff;
    padding: 0;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    text-align: right;
}

.spec-cell:last-child {
    border-bottom: none;
}

.spec-cell.full-width {
    grid-template-columns: 1fr;
}

.spec-cell:hover {
    background: #fdfdfd;
}

.spec-cell .label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    padding: 14px 16px;
    margin: 0;
    border: none;
}

.spec-cell .val {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    padding: 14px 16px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .spec-cell {
        grid-template-columns: 1fr;
    }
}

.about-me-box {
    background-color: #fbfbfb;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.description-content {
    font-size: 15px;
    line-height: 1.85;
    color: #334155;
    font-weight: 400;
}

.description-content p {
    margin-bottom: 12px;
}

.description-content h4 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 18px 0 10px 0;
}

.description-content ul {
    margin-bottom: 16px;
    padding-right: 18px;
}

.description-content ul li {
    margin-bottom: 8px;
    position: relative;
}

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

.btn-sm-outline {
    background: none;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sm-outline:hover {
    background: #f0f7ff;
}

.reviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card-item {
    background: transparent;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.review-card-item:last-child {
    border-bottom: none;
}

.review-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rev-author-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rev-avatar {
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
}

.rev-author-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.rev-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    color: #c2410c;
}

.rev-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    padding-right: 50px;
}

/* OpenSooq Sidebar Action Stack & Cards (Matching User Image Reference) */
.detail-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 993px) {
    .detail-right-col {
        position: sticky;
        top: 90px;
        align-self: start;
    }
}

.opensooq-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;

    border-radius: 0;
}

.btn-phone-opensooq-pill {
    background: #0066ff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    direction: ltr;
}

.btn-phone-opensooq-pill:hover {
    background: #0052cc;
}

.btn-chat-opensooq-white {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-chat-opensooq-white:hover {
    background: transparent;
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-green);
}

.btn-quote-opensooq-orange {
    background: var(--orange);
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-quote-opensooq-orange:hover {
    background: var(--orange-hover);
}

.opensooq-seller-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 24px 20px 20px 20px;
    position: relative;
}

.opensooq-top-verified-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #0066ff;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 102, 255, 0.25);
}

.opensooq-seller-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.opensooq-avatar-container {
    width: 82px;
    height: 82px;
    margin: 10px auto 12px auto;
    border-radius: 50%;
    border: 3.5px solid #0066ff;
    padding: 2px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.opensooq-avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.opensooq-seller-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.btn-opensooq-follow {
    background: none;
    border: none;
    color: #0066ff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.btn-opensooq-follow:hover {
    color: #0040a8;
}

.opensooq-stats-grey-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    border: none;
    margin-bottom: 14px;
}

.opensooq-stats-grey-box .stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.opensooq-stats-grey-box .stat-lbl {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
}

.opensooq-stats-grey-box .stat-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
}

.opensooq-all-ads-link {
    color: #0066ff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.opensooq-all-ads-link:hover {
    color: #0040a8;
}

/* OpenSooq Verified Promo Box (Matching Image Blue Card) */
.opensooq-promo-card-blue {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: .5px dashed rgb(190, 190, 190);
    position: relative;
    overflow: hidden;
}

.opensooq-promo-card-blue h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.opensooq-promo-card-blue p {
    font-size: 11px;
    color: #475569;
    margin-bottom: 10px;
    font-weight: 600;
}

.opensooq-promo-card-blue button {
    background: none;
    border: none;
    color: #0066ff;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

/* ==========================================================================
   FLEXED ENGINEER HEADER CARD (Replaces Old Title Card)
   ========================================================================== */
.engineer-flex-header-card {
    background: transparent;
    border: none;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.eng-flex-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.eng-flex-avatar-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    padding: 2px;
    background: #ffffff;
    flex-shrink: 0;
}

.eng-flex-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.eng-flex-text-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eng-flex-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eng-flex-name {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
}

.verified-icon-blue {
    color: #0066ff;
    font-size: 22px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.eng-flex-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

.eng-flex-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-top: 2px;
}

.meta-separator {
    color: #cbd5e1;
}

.eng-flex-action-col {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   STICKY ENGINEER HEADER ON SCROLL (Full Width, No Margins, No Radius, High Z-Index)
   ========================================================================== */
.sticky-engineer-header {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #ffffff;
    z-index: 1100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--border-color);
    padding: 10px 24px;
    height: 74px;
}

.sticky-engineer-header.active {
    display: block;
}

.sticky-eng-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

.sticky-eng-main-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sticky-eng-avatar-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    padding: 2px;
    background: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 106, 255, 0.15);
}

.sticky-eng-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sticky-eng-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-eng-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-eng-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-eng-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}

.sticky-eng-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-follow-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid var(--primary-blue);
    background: #e6f0ff;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sticky-follow-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.sticky-call-btn,
.sticky-chat-btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.eng-flex-action-col .btn-opensooq-follow {
    font-size: 15px;
    margin-bottom: 0;
    background: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    padding: 8px 18px;
    border-radius: 20px;
    color: #0066ff;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eng-flex-action-col .btn-opensooq-follow:hover {
    background: #0066ff;
    color: #ffffff !important;
    border-color: #0066ff;
}

/* Desktop Sidebar Quick Specs Card (City & Specialty) */
.sidebar-specs-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.sidebar-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-spec-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-spec-item .spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-spec-item .spec-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-spec-item .spec-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

.sidebar-spec-item .spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.hide-on-desktop {
    display: none;
}

.under-gallery-spec-item {
    display: grid !important;
    grid-template-columns: 36px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 2px !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease !important;
    text-align: right !important;
}

.under-gallery-spec-item:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.under-gallery-spec-item .spec-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 36px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.under-gallery-spec-item:hover .spec-icon {
    background: #e5e7eb !important;
    color: #111827 !important;
}

.under-gallery-spec-item .spec-label {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    display: block !important;
}

.under-gallery-spec-item .spec-label::after {
    content: "" !important;
}

.under-gallery-spec-item .spec-value {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    display: block !important;
}

/* Flex Action Buttons Row (Fixed Side-by-side / Not Stacked) */
.under-gallery-actions-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    padding: 0 !important;
}

/* Phone Call Button with Wave Animation Effect (Compact 46px, No Shadow) */
.btn-phone-opensooq-pill,
.btn-opensooq-call-inline,
.sticky-call-btn {
    position: relative !important;
    background: #0062ff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: background 0.2s ease !important;
    direction: ltr !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

/* White Light Wave Sweep INSIDE the Call Button (Left to Right LTR) */
.btn-phone-opensooq-pill::after,
.btn-opensooq-call-inline::after,
.sticky-call-btn::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 70% !important;
    height: 100% !important;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0) 100%) !important;
    transform: skewX(-20deg) !important;
    animation: whiteWaveSweepLTR 2.5s infinite ease-in-out !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.btn-phone-opensooq-pill i,
.btn-opensooq-call-inline i,
.sticky-call-btn i,
.btn-phone-opensooq-pill span,
.btn-opensooq-call-inline span,
.sticky-call-btn span {
    position: relative !important;
    z-index: 2 !important;
    color: #ffffff !important;
}

@keyframes whiteWaveSweepLTR {
    0% {
        left: -100%;
    }

    60%,
    100% {
        left: 150%;
    }
}

.btn-opensooq-call-inline {
    flex: 1 !important;
    width: auto !important;
}

.btn-phone-opensooq-pill:hover,
.btn-opensooq-call-inline:hover,
.sticky-call-btn:hover {
    background: #0052cc !important;
}

/* WhatsApp Chat Button (Exact Same 46px Height, White Icon) */
.btn-opensooq-chat-inline {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid #25d366 !important;
    background: #25d366 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.btn-opensooq-chat-inline i {
    color: #ffffff !important;
    font-size: 21px !important;
    margin: 0 !important;
}

.btn-opensooq-chat-inline:hover {
    background: #1eb956 !important;
    border-color: #1eb956 !important;
}

/* Engineer Profile Bar Under Buttons */
.under-gallery-engineer-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
}

.eng-bar-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2.5px solid #0066ff;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.15);
}

.eng-bar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eng-bar-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eng-bar-title {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.eng-bar-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.eng-bar-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.opensooq-promo-card-blue button:hover {
    color: #0040a8;
}

.promo-icon-illus {
    font-size: 42px;
    color: rgba(0, 102, 255, 0.2);
}

/* OpenSooq Safety Tips Card (Matching Image Teal/Mint Card) */
.opensooq-safety-tips-card {
    background: #e0f2fe;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #bae6fd;
}

.opensooq-safety-tips-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.opensooq-promo-card-blue p {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 12px;
}

.opensooq-safety-tips-card ul {
    padding-right: 22px;
}

.opensooq-safety-tips-card ul li {
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 600;
    list-style-type: disc;
}


.seller-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 4px;
}

.seller-joined {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seller-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    background: #f8fafc;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    border: 1px solid #f1f5f9;
}

.seller-stats-row strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

.seller-stats-row span {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
}

.btn-seller-chat {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-seller-chat:hover {
    background: #e2e8f0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
    color: var(--text-gray);
    font-size: 14px;
}

.footer-top {
    background: white;
    padding: 36px 24px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

.footer-top-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.app-downloads {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-btn {
    background: #0f172a;
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.app-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.footer-main {
    background: #f8fafc;
    padding: 44px 24px;
    text-align: right;
}

.footer-links {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-col {
    min-width: 160px;
    flex: 1;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 800;
    color: #0f172a;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-col ul li:hover {
    color: var(--primary-blue);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.social-icons span {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    transition: all 0.2s ease;
    font-size: 15px;
}

.social-icons span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 106, 255, 0.3);
}

/* MODALS & TOASTS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background: white;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 490px;
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card.modal-lg {
    max-width: 660px;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-header h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 22px;
}

/* Star Rating Picker Styles */
.star-rating-picker {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 30px;
    cursor: pointer;
    margin: 8px 0;
}

.star-rating-picker .star-item {
    color: #cbd5e1;
    transition: transform 0.15s ease, color 0.15s ease;
}

.star-rating-picker .star-item.active,
.star-rating-picker .star-item.hovered {
    color: #f29a00;
}

.star-rating-picker .star-item:hover {
    transform: scale(1.22);
}

.star-rating-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-blue);
    background: #e6f0ff;
    padding: 4px 16px;
    border-radius: 20px;
    margin-top: 4px;
}

.modal-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px auto;
}

.bg-blue {
    background: #e6f0ff;
    color: var(--primary-blue);
}

.phone-display-box {
    background: #f8fafc;
    border: 2px dashed var(--primary-blue);
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 22px;
}

.phone-number {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 10px;
    direction: ltr;
}

.btn-copy {
    background: #e2e8f0;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-copy:hover {
    background: #cbd5e1;
}

.btn-call-now {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    padding: 13px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.3);
}

.phone-tip {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-blue);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-dark);
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.full-width {
    width: 100%;
}

.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #0f172a;
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 14px;
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: #4ade80;
    font-size: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Search Trigger & Nav Drawer Styles */
.mobile-search-btn,
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-search-btn:hover,
.mobile-menu-btn:hover {
    background: #e6f0ff;
    color: var(--primary-blue);
}

.mobile-nav-drawer {
    display: none;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-nav-drawer.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mobile-nav-item:hover {
    background: #f0f7ff;
    color: var(--primary-blue);
}

/* MEDIA QUERIES FOR RESPONSIVE MOBILE DISPLAY */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }

    .listings-area {
        width: 100%;
        order: 1;
    }

    .sidebar {
        width: 100%;
        order: 2;
        margin-top: 24px;
    }

    .detail-content-layout {
        grid-template-columns: 1fr;
    }

    .detail-left-col {
        order: 1;
    }

    .detail-right-col {
        order: 2;
    }

    .sticky-action-box {
        position: static;
    }

    .promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .promo-text {
        padding-right: 0;
        text-align: center;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-col {
        min-width: 45%;
        margin-bottom: 20px;
    }

    .split-sections {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    /* Hide top two headers completely on mobile screens */
    .top-bar,
    .header-top {
        display: none !important;
    }

    header {
        padding: 0;
    }

    .header-main {
        padding: 10px 16px;
    }

    .header-main-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .logo span {
        font-size: 10px;
    }

    /* Hide inline desktop search bar on mobile, replace with search modal icon button */
    .search-container {
        display: none !important;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .filter-bar {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 8px;
    }

    .filter-bar.is-open {
        display: flex;
    }

    .mobile-search-btn,
    .mobile-menu-btn {
        display: inline-flex !important;
    }

    .header-links {
        display: none !important;
    }

    .user-actions {
        gap: 8px;
    }

    .user-action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .btn-add-ad-blue {
        padding: 0 12px;
        font-size: 12px;
        height: 36px;
    }

    .user-profile-btn {
        display: inline-flex !important;
        padding: 0 10px;
        font-size: 14px;
        height: 36px;
        align-items: center;
        justify-content: center;
    }

    /* Hide text labels on header buttons on mobile screens (< 768px) */
    .nav-btn-text {
        display: none !important;
    }

    .opensooq-filter-bar {
        flex-direction: column;
    }

    .os-filter-col {
        border-left: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .os-filter-col:last-child {
        border-bottom: none;
    }

    /* Refined Mobile Layout for OpenSooq Header Info & Active Filter Tags */
    .opensooq-header-info {
        padding: 12px 16px;
        margin-bottom: 12px;
    }

    .os-breadcrumbs {
        font-size: 11.5px;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .os-page-title {
        font-size: 16px;
        font-weight: 800;
        line-height: 1.35;
        margin-bottom: 4px;
        color: #111827;
    }

    .os-page-subtitle {
        font-size: 11.5px;
        margin-bottom: 12px;
        line-height: 1.45;
    }

    .os-active-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .os-active-right {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
    }

    .btn-clear-all {
        font-size: 12px;
        padding: 3px 6px;
    }

    .active-chips {
        gap: 6px;
        flex-wrap: wrap;
    }

    .active-chip {
        font-size: 11.5px;
        padding: 3px 10px;
        border-radius: 16px;
    }

    .os-sort-left {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .os-sort-select {
        width: auto;
        font-size: 12.5px;
        padding: 6px 12px;
        border-radius: 8px;
    }

    .listing-card,
    .listing-card-modern-split,
    .listing-card-refined,
    .listing-card-opensooq {
        flex-direction: column;
    }

    .listing-img-wrapper,
    .card-work-img-wrapper,
    .card-refined-img-box,
    .card-os-img-box {
        width: 100%;
        height: 180px;
    }

    .card-os-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-os-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between !important;
    }

    .btn-os-heart {
        position: static !important;
        top: auto !important;
        left: auto !important;
    }

    .card-os-call-chat-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .action-btns {
        width: 100%;
        flex-direction: column;
    }

    .btn-call,
    .btn-chat {
        width: 100%;
        justify-content: center;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .search-box {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
        border-radius: 16px;
    }

    .search-box select,
    .search-box input {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
        border-radius: 10px;
    }

    .btn-search {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        font-size: 16px;
        border-radius: 10px;
    }

    .hero-section {
        padding: 28px 16px;
        border-radius: 18px;
        margin-top: 12px;
        margin-bottom: 20px;
    }

    .hero-section h1 {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .hero-section p {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .category-card {
        height: 110px;
        padding: 10px 6px;
        border-radius: 12px;
    }

    .category-card .cat-icon {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }

    .category-card .cat-title {
        font-size: 12px;
    }

    .category-card:active {
        transform: scale(0.97);
        border-color: var(--primary-blue);
    }

    .find-engineer-box,
    .engineer-login-box {
        padding: 24px 16px;
        border-radius: 16px;
    }

    /* Mobile Background White & Zero Outer Margins */
    body {
        background-color: #f8fafc !important;
    }

    .hero-section,
    .categories-section-wrapper,
    .split-sections {
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding: 0 12px;
    }

    .main-container,
    .detail-page-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .detail-content-layout {
        gap: 0 !important;
    }

    .detail-header-breadcrumbs {
        padding: 12px 16px !important;
        margin-bottom: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .listing-detail-header-card,
    .opensooq-under-gallery-card,
    .opensooq-action-stack,
    .opensooq-seller-card,
    .opensooq-promo-card-blue,
    .opensooq-safety-tips-card,
    .sidebar-box {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        padding: 16px 14px !important;
        background: #ffffff !important;
    }

    .detail-gallery-box {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 32px !important;
        padding: 16px 14px !important;
        background: #ffffff !important;
    }

    .detail-box {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 64px !important;
        margin-bottom: 32px !important;
        padding: 16px 14px !important;
        background: #ffffff !important;
        border-bottom: none;
    }

    .opensooq-promo-card-blue {
        background: #e6f0ff !important;
        border-radius: 10px !important;
        margin: 12px 14px !important;
    }

    .gallery-main-view {
        border-radius: 8px !important;
        height: 280px !important;
    }

    .gallery-thumbs-row {
        padding: 4px 0 !important;
    }

    .under-gallery-specs-grid {
        padding-bottom: 14px !important;
        margin-bottom: 14px !important;
    }

    .under-gallery-actions-flex {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin-bottom: 14px !important;
    }

    .btn-opensooq-call-inline {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        font-size: 15px !important;
        margin: 0 !important;
    }

    .btn-opensooq-chat-inline {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        margin: 0 !important;
    }

    .hide-on-desktop {
        display: grid !important;
    }

    .hide-on-mobile {
        display: none !important;
    }

    #btnCallEngineerDetail,
    #btnWhatsAppEngineerDetail {
        display: none !important;
    }

    .sticky-engineer-header {
        padding: 8px 12px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .sticky-eng-subtitle {
        display: none;
    }

    .sticky-eng-name {
        font-size: 14px;
    }

    .sticky-eng-avatar-wrapper {
        width: 38px;
        height: 38px;
    }

    .sticky-eng-actions {
        gap: 6px;
    }

    .sticky-follow-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    .sticky-call-btn,
    .sticky-chat-btn {
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }
}

/* Ensure native fullscreen video doesn't crop */
video:fullscreen {
    object-fit: contain !important;
}

video:-webkit-full-screen {
    object-fit: contain !important;
}

video:-moz-full-screen {
    object-fit: contain !important;
}

video:-ms-fullscreen {
    object-fit: contain !important;
}

/* ==========================================================================
   AUTH MODAL & HEADER CREATE ACCOUNT BUTTON STYLES
   ========================================================================== */
.btn-create-account {
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 106, 255, 0.22);
}

.btn-create-account:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.35);
}

.auth-nav-link {
    color: var(--primary-blue);
    font-weight: 700;
    cursor: pointer;
}

.auth-tabs-container {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 18px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab.active {
    background: #ffffff;
    color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-google-full {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-google-full:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 12px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.auth-switch-note {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
}

.auth-switch-note a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-note a:hover {
    text-decoration: underline;
}

.btn-link-login {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    margin-top: 12px;
}

/* ==========================================================================
   GROUPED CATEGORIES ACCORDION & DROPDOWN SYSTEM
   ========================================================================== */
.grouped-categories-section {
    width: 100%;
    margin-top: 10px;
}

.category-groups-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.group-accordion-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.group-accordion-card.active {
    border-color: #006aff;
    box-shadow: 0 4px 16px rgba(0, 106, 255, 0.06);
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: #ffffff;
    user-select: none;
    transition: background 0.15s ease;
}

.group-header:hover {
    background: #f8fafc;
}

.group-title-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.group-title-info h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.group-count {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

.group-arrow {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.group-accordion-card.active .group-arrow {
    transform: rotate(180deg);
    color: #006aff;
}

.group-content {
    display: none;
    padding: 0 16px 16px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.group-accordion-card.active .group-content {
    display: block;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s ease;
}

.subcat-card:hover {
    background: #ffffff;
    border-color: #006aff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.1);
}

.subcat-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.subcat-card span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.btn-link-login {
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.btn-link-login:hover {
    text-decoration: underline;
}