/* =========================================================
           Souq Okaz — v2 layout
           Uses the project's existing palette & assets.
           Primary #01a7c1 · Secondary #2d4759 · Text #3D3E3F
           ========================================================= */
        :root {
            --v2-primary: #01a7c1;
            --v2-primary-d: #018299;
            --v2-secondary: #2d4759;
            --v2-text: #3D3E3F;
            --v2-muted: #7b8794;
            --v2-bg: #f5f7f9;
            --v2-border: #e7ecef;
            --v2-radius: 16px;
            --v2-shadow: 0 10px 30px rgba(45, 71, 89, .08);
            --v2-shadow-sm: 0 4px 14px rgba(45, 71, 89, .06);
        }

        .v2-page {
            background: var(--v2-bg);
            color: var(--v2-text);
            font-family: "Rubik", "Tajawal", sans-serif;
        }
        .v2-page a { text-decoration: none; }
        .v2-container {
            width: 100%;
            max-width: 1240px;
            margin-inline: auto;
            padding-inline: 20px;
        }

        /* ---------------- Header ---------------- */
        .v2-header {
            position: sticky;
            top: 0;
            z-index: 999;
            background: rgba(255, 255, 255, .92);
            backdrop-filter: saturate(180%) blur(12px);
            border-top: 5px solid #2d4759;
            border-bottom: 1px solid var(--v2-border);
        }
        .v2-header-inner {
            display: flex;
            align-items: center;
            gap: 24px;
            height: 76px;
        }
        .v2-logo img { height: 42px; width: auto; display: block; }
        .v2-nav { display: flex; align-items: center; gap: 6px; margin-inline-start: 8px; }
        .v2-nav a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--v2-secondary);
            font-weight: 500;
            font-size: 15px;
            padding: 10px;
            border-left: 1px solid #c1ffff;
            transition: .2s;
            white-space: nowrap;
        }
        .v2-nav a:last-child { border-left: none; }
        .v2-nav a i { font-size: 15px; color: var(--v2-primary); }
        .v2-nav a:hover { background: rgba(1, 167, 193, .1); color: var(--v2-primary); }
        .v2-header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
        .v2-city {
            display: inline-flex; align-items: center; gap: 6px;
            height: 44px; padding: 0 12px;
            border: 1px solid var(--v2-border); border-radius: 12px; background: #fff;
            transition: .2s;
        }
        .v2-city:hover { border-color: var(--v2-primary); }
        .v2-city > i { color: var(--v2-primary); font-size: 14px; }
        .v2-city select {
            border: 0; outline: 0; background: transparent; font-family: inherit;
            font-size: 14px; font-weight: 500; color: var(--v2-secondary);
            cursor: pointer; max-width: 130px;
        }
        .v2-user {
            width: 44px; height: 44px;
            display: grid; place-items: center;
            border-radius: 12px;
            border: 1px solid var(--v2-border);
            color: var(--v2-secondary);
            background: #fff;
            transition: .2s;
        }
        .v2-user:hover { border-color: var(--v2-primary); color: var(--v2-primary); }
        .v2-btn {
            display: inline-flex; align-items: center; gap: 8px;
            background: var(--v2-primary);
            color: #fff !important;
            font-weight: 600;
            font-size: 15px;
            padding: 12px 22px;
            border-radius: 12px;
            transition: .2s;
            box-shadow: 0 8px 20px rgba(1, 167, 193, .28);
        }
        .v2-btn:hover { background: var(--v2-primary-d); transform: translateY(-1px); }
        .v2-btn i { font-size: 13px; }
        .v2-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--v2-border); background: #fff; place-items: center; color: var(--v2-secondary); font-size: 20px; }

        /* ---------------- Hero ---------------- */
        .v2-hero { position: relative; overflow: hidden; background: #162330; }
        .v2-hero-video { position: absolute; inset: 0; z-index: 0; }
        .v2-hero-video video { width: 100%; height: 100%; object-fit: cover; }
        .v2-hero-overlay {
            position: absolute; inset: 0; z-index: 1;
            background: linear-gradient(135deg, rgba(22, 35, 48, .96) 0%, rgba(36, 61, 80, .94) 55%, rgba(47, 80, 104, .90) 100%);
        }
        .v2-hero-inner { position: relative; z-index: 2; padding: 30px 0 20px; text-align: center; color: #fff; }
        /* two columns: text on the right, search + chips on the left (RTL) */
        .v2-hero-grid { display: flex; align-items: center; gap: 44px; text-align: start; }
        .v2-hero-text { flex: 0 0 28%; }
        .v2-hero-form { flex: 1 1 auto; min-width: 0; }
        .v2-hero-grid .v2-search-card { max-width: none; margin: 0; }
        .v2-hero-grid p.lead { margin: 0; max-width: none; }
        .v2-hero-grid .v2-chips { justify-content: flex-start; }
        @media (max-width: 992px) {
            .v2-hero-grid { flex-direction: column; text-align: center; gap: 22px; }
            .v2-hero-text { flex: none; }
            .v2-hero-grid p.lead { margin: 0 auto; }
            .v2-hero-grid .v2-chips { justify-content: center; }
        }
        .v2-eyebrow {
            display: inline-flex; align-items: center; gap: 7px;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .2);
            padding: 4px 13px; border-radius: 100px;
            font-size: 12px; font-weight: 500; margin-bottom: 10px;
        }
        .v2-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #7CF0C6; }
        .v2-hero h1 { font-size: 27px; line-height: 1.3; font-weight: 800; margin: 0; padding: 0; color: #fff; }
        .v2-hero p.lead { font-size: 14px; color: #fff; opacity: .95; margin: 0; padding: 0; max-width: 620px; }

        /* Search form (reuses component markup) sits on a white card */
        .v2-search-card { max-width: 640px; margin: 0 auto; }
        /* redesigned compact search bar */
        .v2-searchbar {
            display: flex; align-items: stretch; gap: 0;
            background: #fff; border-radius: 14px; padding: 6px;
            box-shadow: var(--v2-shadow);
        }
        .v2-searchbar .v2-sb-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; flex: 0 0 auto; }
        .v2-searchbar .v2-sb-field.v2-sb-text { flex: 1 1 auto; min-width: 0; }
        .v2-searchbar .v2-sb-field > i { color: var(--v2-muted); font-size: 15px; flex: 0 0 auto; }
        .v2-searchbar input { border: 0; outline: 0; width: 100%; font-size: 14px; color: var(--v2-text); background: transparent; height: 46px; }
        .v2-searchbar input::placeholder { color: var(--v2-muted); }
        .v2-searchbar select {
            border: 0; outline: 0; background: transparent; font-family: inherit;
            font-size: 14px; color: var(--v2-secondary); height: 46px; cursor: pointer; max-width: 128px;
        }
        .v2-searchbar .v2-sb-sep { width: 1px; background: var(--v2-border); margin: 9px 0; flex: 0 0 auto; }
        .v2-searchbar .v2-sb-sub-wrap { display: inline-flex; align-items: stretch; }
        .v2-searchbar .v2-sb-btn {
            flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
            background: var(--v2-primary); color: #fff; border: 0; border-radius: 10px;
            padding: 0 22px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s;
        }
        .v2-searchbar .v2-sb-btn:hover { background: var(--v2-primary-d); }
        @media (max-width: 640px) {
            .v2-searchbar { flex-wrap: wrap; padding: 8px; }
            .v2-searchbar .v2-sb-sep { display: none; }
            .v2-searchbar .v2-sb-sub-wrap { width: 100%; }
            .v2-searchbar .v2-sb-field { flex: 1 1 100%; border: 1px solid var(--v2-border); border-radius: 10px; margin-bottom: 6px; }
            .v2-searchbar select { max-width: none; width: 100%; }
            .v2-searchbar .v2-sb-btn { flex: 1 1 100%; justify-content: center; padding: 12px; }
        }

        /* Quick category chips under the hero */
        .v2-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
        .v2-chips a {
            display: inline-flex; align-items: center; gap: 7px;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .22);
            color: #fff; font-size: 13px; font-weight: 500;
            padding: 6px 14px; border-radius: 100px; transition: .2s;
        }
        .v2-chips a:hover { background: #fff; color: var(--v2-secondary); }

        /* ---------------- News ticker (before hero) ---------------- */
        .v2-newsbar {
            display: flex; align-items: center; height: 46px;
            background: #fff; border-bottom: 1px solid var(--v2-border);
            overflow: hidden;
        }
        .v2-newsbar-label {
            flex: 0 0 auto; height: 46px;
            background: var(--v2-primary); color: #fff;
            font-weight: 700; font-size: 14px;
            display: flex; align-items: center; gap: 8px; padding: 0 22px;
            white-space: nowrap; position: relative; z-index: 2;
        }
        .v2-newsbar-label::after {
            content: ""; position: absolute; inset-inline-start: 100%; top: 0;
            border-block: 23px solid transparent;
            border-inline-start: 12px solid var(--v2-primary);
        }
        .v2-newsbar-label .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: v2-pulse 1.2s infinite; }
        @keyframes v2-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
        .v2-newsbar-viewport { flex: 1 1 auto; overflow: hidden; }
        .v2-newsbar-track { display: inline-flex; align-items: center; white-space: nowrap; animation: v2-scroll-x 120s linear infinite; will-change: transform; }
        .v2-newsbar:hover .v2-newsbar-track { animation-play-state: paused; }
        .v2-newsbar-item { display: inline-flex; align-items: center; gap: 9px; padding: 0 24px; color: var(--v2-secondary); font-size: 14px; font-weight: 500; }
        .v2-newsbar-item:hover { color: var(--v2-primary); }
        .v2-newsbar-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--v2-primary); flex: 0 0 auto; }
        .v2-newsbar-item .v2-newsbar-place { color: var(--v2-muted); font-weight: 400; font-size: 11px; }

        /* ---------------- Logos ticker (after hero) ---------------- */
        .v2-logobar { background: #1c3245; overflow: hidden; height: 44px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.05); }
        .v2-logobar-track { white-space: nowrap; display: inline-flex; align-items: center; animation: v2-scroll-x 320s linear infinite; will-change: transform; }
        .v2-logobar:hover .v2-logobar-track { animation-play-state: paused; }
        /* start moving only after the page has finished loading */
        .v2-newsbar-track, .v2-logobar-track { animation-play-state: paused; }
        .v2-marq-ready .v2-newsbar-track,
        .v2-marq-ready .v2-logobar-track { animation-play-state: running; }
        .v2-logobar-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; height: 44px; }
        .v2-logobar-item img { max-height: 26px; max-width: 104px; width: auto; object-fit: contain; display: block; filter: brightness(0) invert(1); opacity: .85; }
        .v2-logobar-item:hover img { opacity: 1; }
        .v2-logobar-item span { font-weight: 700; font-size: 12px; color: #cbd5e1; white-space: nowrap; }

        @keyframes v2-scroll-x { from { transform: translateX(0); } to { transform: translateX(50%); } }

        /* ---------------- 5 ads per row ---------------- */
        .v2-page .property-grid-wrap { grid-template-columns: repeat(5, 1fr) !important; gap: 16px !important; }
        .v2-page .property-grid-wrap > .box-dream { max-width: none; }
        @media (max-width: 1200px) { .v2-page .property-grid-wrap { grid-template-columns: repeat(3, 1fr) !important; } }
        @media (max-width: 767px)  { .v2-page .property-grid-wrap { grid-template-columns: repeat(2, 1fr) !important; } }
        @media (max-width: 480px)  { .v2-page .property-grid-wrap { grid-template-columns: repeat(1, 1fr) !important; } }

        /* ---------------- Compact card (fits 5 per row / slide) ---------------- */
        .v2-page .box-dream.style-1 { border-radius: 14px; }
        .v2-page .box-dream .image { margin: 0; aspect-ratio: auto; height: 100px; width: 100%; padding: 10px; }
        .v2-page .box-dream .image img { height: 100%; width: auto; object-fit: cover; border-radius: 8px; }
        /* no zoom on hover */
        .v2-page .box-dream:hover .image img { -webkit-transform: none !important; transform: none !important; transition: none !important; }
        .v2-page .box-dream .content { padding: 8px 12px 12px; }
        .v2-page .box-dream .content .head { margin-bottom: 3px; }
        .v2-page .box-dream .content .title { font-size: 12px; line-height: 16px; min-height: 30px; }
        .v2-page .box-dream .content .location { margin: 3px 0 6px; gap: 5px; }
        .v2-page .box-dream .content .location .icon i { font-size: 11px; }
        .v2-page .box-dream .content .location p,
        .v2-page .box-dream .content .location a { font-size: 10px; }
        /* meta line: smaller text, wraps onto two lines (sub-section on its own line) */
        .v2-page .box-dream.style-1 .content .icon-box { flex-wrap: wrap; gap: 3px 8px; }
        .v2-page .box-dream.style-1 .content .icon-box .item { gap: 3px; }
        .v2-page .box-dream.style-1 .content .icon-box .item i { font-size: 10px; }
        .v2-page .box-dream.style-1 .content .icon-box .item p { font-size: 10px; line-height: 14px; }
        .v2-page .box-dream.style-1 .content .icon-box .item:nth-child(3) { flex-basis: 100%; }

        /* card meta: line 1 = user (right) + place (left) · line 2 = section + sub-section */
        .v2-page .box-dream .v2-meta { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
        .v2-page .box-dream .v2-meta-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
        .v2-page .box-dream .v2-meta-user {
            display: inline-flex; align-items: center; gap: 5px;
            color: var(--v2-secondary); font-size: 11px; font-weight: 600;
            min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .v2-page .box-dream .v2-meta-place {
            display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
            color: var(--v2-muted); font-size: 10px; white-space: nowrap;
        }
        .v2-page .box-dream .v2-meta-user i,
        .v2-page .box-dream .v2-meta-place i { font-size: 11px; }
        .v2-page .box-dream .v2-meta-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
        .v2-page .box-dream .v2-meta-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--v2-muted); font-size: 10px; }
        .v2-page .box-dream .v2-meta-tag i { font-size: 10px; }

        /* smaller brand logos in the .slider-brand strip (beats the inline max-height:50px) */
        .v2-page .slider-brand .slogan-logo-img img { max-height: 30px !important; max-width: 88px !important; }
        .v2-page .slider-brand .slogan-logo p { font-size: 13px; }

        /* ---------------- Featured slider (سوق +) ---------------- */
        .v2-souq-box { border: 3px solid #01a7c1; border-radius: 20px; padding: 10px 30px; background: rgba(1, 167, 193, .06); }
        .v2-featured { padding-bottom: 4px; }
        .v2-featured .swiper-slide { height: auto; }
        .v2-slider-nav { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
        .v2-nav-btn {
            width: 42px; height: 42px; border-radius: 11px;
            border: 1px solid var(--v2-border); background: #fff; color: var(--v2-secondary);
            font-size: 22px; line-height: 1; cursor: pointer; transition: .2s;
            display: grid; place-items: center;
        }
        .v2-nav-btn:hover { background: var(--v2-primary); color: #fff; border-color: var(--v2-primary); }
        .v2-nav-btn.swiper-button-disabled { opacity: .4; cursor: default; }

        /* ---------------- Section shell ---------------- */
        .v2-section { padding: 20px 0; }
        .v2-section.tight { padding: 0; }
        .v2-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
        .v2-section-head .titles { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
        .v2-section-head .titles h2 {
            font-size: 27px; font-weight: 700; color: var(--v2-secondary); margin: 0;
            display: inline-flex; align-items: center; gap: 10px;
        }
        .v2-section-head .titles h2 .accent { color: var(--v2-primary); }
        .v2-section-head .titles h2 > i { color: var(--v2-primary); font-size: 20px; }
        .v2-section-head .titles p { color: var(--v2-muted); margin: 0; font-size: 15px; }
        .v2-viewall {
            display: inline-flex; align-items: center; gap: 8px;
            color: var(--v2-primary); font-weight: 600; font-size: 15px;
            padding: 10px 18px; border-radius: 12px; border: 1px solid var(--v2-border);
            background: #fff; transition: .2s; white-space: nowrap;
        }
        .v2-viewall:hover { background: var(--v2-primary); color: #fff !important; border-color: var(--v2-primary); }

        /* ---------------- Category tiles ---------------- */
        .v2-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
        .v2-cat {
            position: relative; display: block; border-radius: var(--v2-radius); overflow: hidden;
            height: 190px; box-shadow: var(--v2-shadow-sm); transition: .25s;
        }
        .v2-cat:hover { transform: translateY(-4px); box-shadow: var(--v2-shadow); }
        .v2-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .4s; }
        .v2-cat:hover img { transform: scale(1.07); }
        .v2-cat .cover {
            position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(45, 71, 89, 0) 30%, rgba(45, 71, 89, .88) 100%);
        }
        .v2-cat .label {
            position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
            padding: 16px; color: #fff; font-weight: 700; font-size: 18px;
            display: flex; align-items: center; gap: 8px;
        }
        .v2-cat .label i { color: #7CF0C6; }

        /* ---------------- Category block ---------------- */
        .v2-catblock { background: #fff; border: 1px solid var(--v2-border); border-radius: 20px; padding: 26px 24px; margin-bottom: 26px; box-shadow: var(--v2-shadow-sm); }
        .v2-catblock .v2-section-head { margin-bottom: 20px; }

        /* ---------------- Ads banner ---------------- */
        .v2-ads { margin: 8px auto 0; }
        .v2-ads img { width: 100%; border-radius: var(--v2-radius); display: block; }
        .v2-ads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

        /* ---------------- CTA ---------------- */
        .v2-cta {
            display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
            border-radius: 16px; padding: 20px 28px;
            background: linear-gradient(120deg, rgba(1, 167, 193, .10), rgba(45, 71, 89, .05));
            border: 1px solid rgba(1, 167, 193, .18);
        }
        .v2-cta-text { text-align: start; }
        .v2-cta h3 { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; margin: 0 0 3px; color: var(--v2-secondary); }
        .v2-cta h3 > i { color: var(--v2-primary); font-size: 20px; }
        .v2-cta p { font-size: 14px; margin: 0; color: var(--v2-muted); }
        .v2-cta .v2-cta-btn { flex: 0 0 auto; }
        @media (max-width: 560px) {
            .v2-cta { justify-content: center; text-align: center; }
            .v2-cta-text { text-align: center; }
        }

        /* ---------------- Stats ---------------- */
        .v2-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
        .v2-stat { background: #fff; border: 1px solid var(--v2-border); border-radius: var(--v2-radius); padding: 24px; text-align: center; box-shadow: var(--v2-shadow-sm); }
        .v2-stat .num { font-size: 30px; font-weight: 800; color: var(--v2-primary); line-height: 1; }
        .v2-stat .lbl { color: var(--v2-muted); font-size: 15px; margin-top: 8px; }

        /* ---------------- Footer ---------------- */
        .v2-footer { background: var(--v2-secondary); color: #cfd8de; margin-top: 20px; }
        .v2-footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding: 44px 0 34px; }
        .v2-footer .brand { max-width: 300px; }
        .v2-footer .brand img { height: 42px; margin-bottom: 14px; }
        .v2-footer .brand p { font-size: 14px; line-height: 1.5; color: #b6c2cc; margin: 0; }
        .v2-footer .brand-copy { margin-top: 16px; font-size: 13px; line-height: 1.5; color: #9fb0bb; }
        .v2-footer h4 { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 600; margin: 0 0 18px; }
        .v2-footer h4 > i { color: var(--v2-primary); font-size: 16px; }
        .v2-footer ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
        .v2-footer ul a, .v2-footer ul button { color: #cfd8de; font-size: 15px; transition: .2s; background: none; border: 0; padding: 0; text-align: start; cursor: pointer; }
        .v2-footer ul a:hover, .v2-footer ul button:hover { color: var(--v2-primary); }
        .v2-social { display: flex; gap: 10px; margin-top: 18px; }
        .v2-social a {
            width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
            background: rgba(255, 255, 255, .08); color: #fff; transition: .2s;
        }
        .v2-social a:hover { background: var(--v2-primary); }
        .v2-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; text-align: center; font-size: 14px; color: #9fb0bb; }

        /* ============================================================
           Card tiles — alternating white / #eee (applied site-wide)
           ============================================================ */
        .v2-catblock .flat-brand { background: #f9f9f9; padding: 0; border-radius: 12px; }
        .v2-catblock .slogan-logo { width: 100%; height: 50px; background-color: #eee; }
        .souq-slot { border-radius: 12px; overflow: hidden; border: 1px solid var(--v2-border); }
        .souq-slot.is-white { background: #fff; }
        .souq-slot.is-gray  { background: #eee; }
        .souq-slot .box-dream { background: transparent; box-shadow: none; border: 0; }
        .souq-slot .box-dream .image { padding: 0; background: transparent; }

        /* ---------------- Responsive ---------------- */
        @media (max-width: 1100px) {
            .v2-cats { grid-template-columns: repeat(3, 1fr); }
        }
        @media (max-width: 992px) {
            .v2-nav { display: none; }
            .v2-burger { display: grid; }
            .v2-hero h1 { font-size: 34px; }
            .v2-footer-top { grid-template-columns: 1fr 1fr; }
            .v2-stats { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 640px) {
            .v2-cats { grid-template-columns: repeat(2, 1fr); }
            .v2-ads-grid { grid-template-columns: 1fr; }
            .v2-hero h1 { font-size: 27px; }
            .v2-hero p.lead { font-size: 16px; }
            .v2-section-head { flex-direction: column; align-items: flex-start; }
            .v2-footer-top { grid-template-columns: 1fr; gap: 28px; }
            .v2-btn span.txt-hide { display: none; }
        }
