/* ===================================================
   EstateEgypt — Main Stylesheet (LTR / English)
   Bootstrap 5 based — No inline CSS in Blade files
   =================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    --primary: #137fec;
    --primary-dark: #0d6bc6;
    --primary-light: #e8f3fd;
    --accent: #d4af37;
    --accent-dark: #b8961e;
    --dark: #101922;
    --dark-secondary: #1a2736;
    --bg-light: #f6f7f8;
    --text-muted: #6c757d;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all .25s ease;
    --font-sans: 'Inter', 'Manrope', sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: #fff;
    color: #1a2736;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Bootstrap Overrides ---- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: .5rem 1.25rem;
    transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19,127,236,.35);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ---- Navbar ---- */
.navbar-main {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
}

.navbar-main .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.navbar-main .navbar-brand span {
    color: var(--accent);
}

.navbar-main .navbar-nav {
    gap: 0.75rem;
}

.navbar-main .nav-link {
    font-weight: 500;
    color: #374151;
    padding: .5rem .75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: .9rem;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
}

.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .35;
    transition: transform 8s ease;
}

.hero-section:hover .hero-bg { transform: scale(1.04); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,25,34,.75) 0%, rgba(19,127,236,.25) 100%);
}

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

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero-content p.lead {
    color: rgba(255,255,255,.85);
    font-size: 1.15rem;
}

/* ---- Hero (3 أقسام: فورم + داشبورد أبيض | عدادات داكنة) ---- */
.hero-section-wrap {
    background: #fff;
}
.hero-dashboard-row {
    display: flex;
    flex-wrap: wrap;
    min-height: 380px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-dashboard-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.88);
    pointer-events: none;
}
.hero-half {
    flex: 1 1 50%;
    min-width: 320px;
    position: relative;
    z-index: 1;
}
.hero-half-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}
.hero-search-stack {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}
@media (min-width: 992px) {
    .hero-search-stack {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 1.25rem;
    }
}
.hero-form-label {
    color: var(--primary);
    letter-spacing: .05em;
    font-size: .85rem;
    margin: 0;
}
.hero-form-title {
    font-size: clamp(1.125rem, 3vw, 1.6875rem);
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}
.hero-primary-word {
    color: #137fec;
}
.hero-accent-text {
    color: var(--accent);
}
.dashboard-half {
    flex: 1 1 50%;
    min-width: 320px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
}
.dashboard-half-inner {
    width: 100%;
}
.dashboard-label {
    color: var(--primary);
    letter-spacing: .05em;
    font-size: .85rem;
    margin: 0;
}
.dashboard-section-title {
    font-size: clamp(1.125rem, 3vw, 1.6875rem);
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}
.hero-stats-bar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    border-top: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 991.98px) {
    .hero-dashboard-row { flex-direction: column; }
    .hero-half, .dashboard-half { min-width: 100%; }
}

/* ---- Hero Vertical Search Form ---- */
.hero-search-vertical {
    max-width: 100%;
    height: 100%;
}
.hero-search-vertical .hscv-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
}
.hero-search-vertical .hscv-field { text-align: start; }
.hero-search-vertical .hscv-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: .3rem;
}
.hero-search-vertical .hscv-input-wrap {
    position: relative;
}
.hero-search-vertical .hscv-icon {
    position: absolute;
    top: 50%;
    left: .75rem;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}
[dir="rtl"] .hero-search-vertical .hscv-icon { left: auto; right: .75rem; }
.hero-search-vertical .hscv-input {
    width: 100%;
    padding: .6rem .75rem .6rem 2.25rem;
    border: 1.5px solid var(--border-color);
    border-radius: .5rem;
    font-size: .9rem;
    background: #f8fafc;
}
[dir="rtl"] .hero-search-vertical .hscv-input { padding: .6rem 2.25rem .6rem .75rem; }
.hero-search-vertical .hscv-select {
    border: 1.5px solid var(--border-color);
    border-radius: .5rem;
    font-size: .9rem;
}
.hero-search-vertical .hscv-actions { margin-top: .25rem; }
.hero-search-card--compact {
    max-width: 100%;
    margin-inline-start: 0;
    margin-inline-end: 0;
    height: 100%;
    width: 100%;
}
.hero-search-card--compact .hscv-body {
    gap: .55rem;
    padding: .85rem;
}
.hero-search-card--compact .hscv-label {
    font-size: .66rem;
    margin-bottom: .2rem;
}
.hero-search-card--compact .hscv-input,
.hero-search-card--compact .hscv-select {
    font-size: .84rem;
    padding-top: .45rem;
    padding-bottom: .45rem;
}
.hero-search-card--property {
    min-height: 392px;
}
.hero-search-card--compact .purpose-pills.hero-search-purpose-tabs {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.hero-search-card--compact .hero-search-purpose-tabs .purpose-pill {
    font-size: .68rem;
    flex: 1 1 28%;
    min-width: 0;
    max-width: 100%;
    padding: .4rem .35rem;
    letter-spacing: .02em;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    hyphens: auto;
}

/* ---- Hero Indicators Dashboard ---- */
.hero-dashboard {
    background: transparent;
    padding: 0;
    height: 100%;
    min-height: 320px;
}
.dashboard-label { margin: 0; }
.dashboard-section-title {
    font-size: clamp(1.125rem, 3vw, 1.6875rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.hero-dashboard__cards { margin-bottom: .6rem; }
.hero-dashboard__card {
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: .85rem 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-dashboard__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
}
.hero-dashboard__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(19,127,236,.12) 0%, rgba(19,127,236,.06) 100%);
    color: var(--primary);
    margin-inline-end: .5rem;
    font-size: .85rem;
}
.hero-dashboard__card-name {
    font-size: .72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-dashboard__card-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.hero-dashboard__change {
    font-size: .7rem;
    font-weight: 600;
    margin-left: .3rem;
}
.hero-dashboard__change--up { color: #22c55e; }
.hero-dashboard__change--down { color: #ef4444; }
.hero-dashboard__change--flat { color: #64748b; }
.hero-dashboard__chart-wrap {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: .85rem;
    border: 1px solid var(--border-color);
}
.hero-dashboard__chart-title {
    font-size: .85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .5rem;
}
.hero-dashboard__chart { width: 100%; }

/* ---- Navbar Avatar Button ---- */
.navbar-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.navbar-avatar-btn::after { display: none; }
.navbar-avatar-btn:hover { border-color: var(--primary); }

/* Navbar Properties dropdown - custom toggle */
#navbarPropertiesDropdownWrap { position: relative; }
#navbarPropertiesDropdownWrap .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 12rem;
}
#navbarPropertiesDropdownWrap.show .dropdown-menu { display: block !important; z-index: 1050; }
[dir="rtl"] #navbarPropertiesDropdownWrap .dropdown-menu { left: auto; right: 0; }

/* Navbar Directory dropdown (brokers / developers) — same toggle pattern as Properties */
#navbarDirectoryDropdownWrap { position: relative; }
#navbarDirectoryDropdownWrap .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 12rem;
}
#navbarDirectoryDropdownWrap.show .dropdown-menu { display: block !important; z-index: 1050; }
[dir="rtl"] #navbarDirectoryDropdownWrap .dropdown-menu { left: auto; right: 0; }

.coop-share-progress .progress-bar {
    background-color: var(--primary);
}

/* Navbar user dropdown - custom toggle */
#navbarUserDropdownWrap { position: relative; }
#navbarUserDropdownWrap .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    left: auto;
    min-width: 220px;
}
#navbarUserDropdownWrap.show .dropdown-menu { display: block !important; z-index: 1050; }
[dir="rtl"] #navbarUserDropdownWrap .dropdown-menu { right: auto; left: 0; }

/* ---- Hero Search Card (matches design) ---- */
.hero-search-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: .5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Inner layout: flex row on large screens */
.hsc-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
@media (min-width: 992px) {
    .hsc-body {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Left section: purpose pills + keyword */
.hsc-left {
    flex: 1 1 320px;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
}

/* Purpose pills: pill buttons inside a gray pill-group container */
.purpose-pills {
    display: flex;
    gap: .2rem;
    background: #f1f5f9;
    border-radius: .5rem;
    padding: .2rem;
}
.purpose-pill {
    flex: 1;
    padding: .45rem .6rem;
    border-radius: .375rem;
    font-size: .75rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all .18s ease;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    white-space: nowrap;
}
.purpose-pill:hover { color: var(--primary); }
.purpose-pill.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* Keyword search input */
.hsc-keyword {
    position: relative;
}
.hsc-icon {
    position: absolute;
    top: 50%;
    left: .85rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}
[dir="rtl"] .hsc-icon {
    left: auto;
    right: .85rem;
}
.hsc-keyword-input {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: .75rem;
    padding: .75rem .85rem .75rem 2.5rem;
    font-size: .9rem;
    background: #f8fafc;
    transition: var(--transition);
    outline: none;
}
[dir="rtl"] .hsc-keyword-input {
    padding: .75rem 2.5rem .75rem .85rem;
}
.hsc-keyword-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(19,127,236,.12);
}
.hsc-keyword-input::placeholder { color: #b0bec5; }

/* Vertical divider (desktop only) */
.hsc-divider {
    display: none;
}
@media (min-width: 992px) {
    .hsc-divider {
        display: block;
        width: 1px;
        background: var(--border-color);
        margin: .5rem 0;
        flex-shrink: 0;
    }
}

/* Middle filters: location / type / price */
.hsc-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .5rem;
}
@media (min-width: 992px) {
    .hsc-filters {
        flex-direction: row;
        align-items: stretch;
        flex-wrap: nowrap;
    }
}
.hsc-filter-item {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .5rem .75rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: background .15s;
    min-width: 0;
}
.hsc-filter-item:hover { background: #f8fafc; }
.hsc-filter-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-bottom: .15rem;
    white-space: nowrap;
}
.hsc-filter-select {
    border: none;
    background: transparent;
    font-size: .9rem;
    font-weight: 600;
    color: #1a2736;
    padding: 0;
    cursor: pointer;
    outline: none;
    appearance: auto;
    max-width: 100%;
}
.hsc-filter-select:focus { outline: none; }

/* Right: search button + advanced link */
.hsc-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .4rem;
    padding: .5rem;
}
@media (min-width: 992px) {
    .hsc-actions {
        flex-direction: column;
        justify-content: center;
    }
}
.hsc-search-btn {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: .75rem;
    padding: .85rem 1.5rem;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: .4rem;
    justify-content: center;
    white-space: nowrap;
}
.hsc-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19,127,236,.35);
}
.hsc-advanced-link {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: .4rem .6rem;
    border-radius: .5rem;
    transition: var(--transition);
    white-space: nowrap;
}
.hsc-advanced-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Legacy search styles (keep for other pages) */
.search-bar-wrapper {
    background: rgba(255,255,255,.97);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}
.search-tabs .nav-link {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    padding: .5rem 1.5rem;
}
.search-tabs .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    border-bottom: 2px solid var(--primary);
}
.btn-search {
    height: 48px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    min-width: 140px;
    transition: var(--transition);
}
.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19,127,236,.4);
}

/* ---- Site branding (navbar / footer / auth) ---- */
.navbar-brand-logo {
    height: 56px;
    width: auto;
    max-width: min(360px, 88vw);
    object-fit: contain;
    object-position: start center;
    display: block;
    image-rendering: auto;
}
@media (min-width: 992px) {
    .navbar-brand-logo {
        height: 72px;
        max-width: min(420px, 38vw);
    }
}
.footer-brand-logo {
    height: 64px;
    width: auto;
    max-width: min(380px, 92vw);
    object-fit: contain;
    object-position: center;
    display: block;
}
@media (min-width: 768px) {
    .footer-brand-logo {
        height: 80px;
        max-width: 440px;
    }
}
.auth-brand-logo-wrap,
.footer-brand-logo-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem 1.35rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    max-width: 100%;
}
.auth-brand-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    display: block;
}
@media (min-width: 992px) {
    .auth-brand-logo {
        max-width: 420px;
        max-height: 180px;
    }
    .auth-brand-logo-wrap,
    .footer-brand-logo-wrap {
        padding: 1.15rem 1.5rem;
    }
}

/* ---- Property Card ---- */
.property-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background: #fff;
    height: 100%;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.property-card .card-img-wrapper {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: var(--bg-light);
}

.property-card .card-img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

/* MISR / default cover — logo readable, not cropped */
.property-card .card-img-wrapper img[src*="property-placeholder"] {
    object-fit: contain;
    padding: 0.65rem;
    background: #f0f2f4;
}

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

.property-gallery-main[src*="property-placeholder"] {
    object-fit: contain;
    background: #f0f2f4;
    padding: min(2rem, 4vw);
}

td img[src*="property-placeholder"],
.wall-property-attachment img[src*="property-placeholder"],
#ads-pane img[src*="property-placeholder"] {
    object-fit: contain !important;
    background: #f0f2f4;
}

.property-card .badge-purpose {
    position: absolute;
    top: .75rem;
    left: .75rem;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 50px;
}

.property-card .badge-purpose.sale { background: var(--primary); color: #fff; }
.property-card .badge-purpose.rent { background: var(--accent); color: #fff; }
.property-card .badge-purpose.new { background: #10b981; color: #fff; }

.property-card {
    position: relative;
}

.property-card .btn-wishlist {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background-color .2s, color .2s;
    cursor: pointer;
    z-index: 10;
}

.property-card .btn-wishlist:hover,
.property-card .btn-wishlist.active {
    background: #fff;
    color: #ef4444;
}

.property-card .card-body { padding: 1.25rem; }

.property-card .card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card .card-location {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.property-card .card-specs {
    display: flex;
    gap: .75rem;
    font-size: .82rem;
    color: #4b5563;
    padding: .75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: .75rem;
}

.property-card .card-specs span {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.property-card .card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.property-card .card-price small {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ---- Section Headers ---- */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header .section-label {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    background: var(--primary-light);
    padding: .3rem .85rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: .5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---- Area Card ---- */
.area-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 220px;
    cursor: pointer;
    transition: var(--transition);
}

.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .4s ease;
}

.area-card:hover img { transform: scale(1.06); }

.area-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16,25,34,.8) 0%, rgba(16,25,34,.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.area-card-overlay h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.area-card-overlay span {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
}

.area-card-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark), var(--primary));
}

/* ---- Explore cities carousel (homepage) ---- */
.explore-cities-wrap {
    position: relative;
    padding: 1.15rem 1rem 1.25rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
    .explore-cities-wrap {
        padding: 1.5rem 1.4rem 1.6rem;
    }
}

.explore-cities-wrap.pt-4.border-top.border-secondary-subtle {
    border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.explore-cities-heading {
    margin-bottom: 1.1rem;
}

.section-header .explore-cities-heading__label {
    font-size: 0.72rem;
    padding: 0.22rem 0.7rem;
    margin-bottom: 0.55rem;
}

.section-header .explore-cities-heading__title {
    position: relative;
    display: inline-block;
    font-size: clamp(1.02rem, 1.65vw, 1.28rem);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #1f2937;
    margin-bottom: 0.2rem;
    padding: 0.15rem 0.85rem 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(19, 127, 236, 0.08), rgba(212, 175, 55, 0.1), rgba(19, 127, 236, 0.08));
    border: 1px solid rgba(19, 127, 236, 0.14);
}

.section-header .explore-cities-heading__title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.36rem;
    width: 2.65rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent, #d4af37));
}

@media (max-width: 767.98px) {
    .section-header .explore-cities-heading__label {
        font-size: 0.68rem;
    }

    .section-header .explore-cities-heading__title {
        font-size: 0.98rem;
    }
}

.explore-cities-carousel {
    position: relative;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.explore-cities-carousel__inner {
    padding-bottom: 2.5rem;
}

.explore-cities-carousel__indicators {
    bottom: 0;
    margin-bottom: 0;
}

.explore-cities-carousel__indicators [type="button"] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(16, 25, 34, 0.35);
    border: 0;
}

.explore-cities-carousel__indicators [type="button"].active {
    background-color: var(--primary);
}

.explore-cities-carousel__control {
    width: 2.75rem;
    height: 2.75rem;
    top: 42%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(16, 25, 34, 0.55);
    opacity: 1;
}

.explore-cities-carousel__control:hover,
.explore-cities-carousel__control:focus {
    background: var(--primary);
}
.explore-cities-carousel__control .carousel-control-prev-icon,
.explore-cities-carousel__control .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 767.98px) {
    .explore-cities-carousel__control {
        width: 2.25rem;
        height: 2.25rem;
    }
}

/* ---- Home: random published property blocks ---- */
.home-recent-random-properties__main-title {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

.home-recent-random-properties__top-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.home-recent-random-properties__top-divider-line {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(19, 127, 236, .35) 20%,
        rgba(212, 175, 55, .45) 50%,
        rgba(19, 127, 236, .35) 80%,
        transparent 100%
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.home-recent-random-properties__top-divider-ornament {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary);
    background: linear-gradient(145deg, #fff 0%, rgba(19, 127, 236, .1) 100%);
    border: 2px solid rgba(19, 127, 236, .2);
    box-shadow: 0 4px 14px rgba(16, 25, 34, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
    flex-shrink: 0;
}

.home-recent-random-properties__between {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 25, 34, .1), transparent);
}

.home-recent-random-properties__block {
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    background: #fff;
}

.home-recent-random-properties__block--sale-apartments {
    background: linear-gradient(160deg, rgba(19, 127, 236, .07) 0%, rgba(99, 102, 241, .06) 45%, rgba(248, 250, 252, .95) 100%);
    border-color: rgba(19, 127, 236, .18);
    border-inline-start: 4px solid var(--primary);
    box-shadow: 0 8px 28px rgba(19, 127, 236, .06);
}

.home-recent-random-properties__block--sale-land {
    background: linear-gradient(135deg, rgba(19, 127, 236, .08) 0%, rgba(212, 175, 55, .1) 55%, rgba(19, 127, 236, .05) 100%);
    border-color: rgba(19, 127, 236, .22);
}

.home-recent-random-properties__block--rent {
    background: linear-gradient(165deg, rgba(25, 135, 84, .08) 0%, rgba(16, 185, 129, .07) 40%, rgba(236, 253, 245, .92) 100%);
    border-color: rgba(25, 135, 84, .2);
    border-inline-start: 4px solid #198754;
    box-shadow: 0 8px 28px rgba(25, 135, 84, .07);
}

.home-random-section-head__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.home-random-section-head__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(19, 127, 236, .12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.home-recent-random-properties__block--sale-apartments .home-random-section-head__icon {
    background: rgba(99, 102, 241, .14);
    color: #4f46e5;
}

.home-recent-random-properties__block--sale-land .home-random-section-head__icon {
    background: rgba(19, 127, 236, .2);
    color: var(--primary-dark);
}

.home-recent-random-properties__block--rent .home-random-section-head__icon {
    background: rgba(25, 135, 84, .14);
    color: #198754;
}

.home-random-section-head__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.home-random-section-head__badge {
    font-size: .72rem;
    font-weight: 700;
    padding: .22rem .6rem;
    border-radius: 50rem;
    background: var(--dark);
    color: #fff;
}

.home-recent-random-properties__block--sale-apartments .home-random-section-head__badge {
    background: var(--primary);
}

.home-recent-random-properties__block--sale-land .home-random-section-head__badge {
    background: var(--primary-dark);
}

.home-recent-random-properties__block--rent .home-random-section-head__badge {
    background: #157347;
}

.home-random-section-head__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
}

.home-random-section-head__subtitle {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 42rem;
    font-weight: 500;
}

/* ---- Features Section ---- */
.features-section { background: var(--dark); }

.feature-item {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.08);
    transition: var(--transition);
    height: 100%;
}

.feature-item:hover {
    border-color: var(--primary);
    background: rgba(19,127,236,.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(19,127,236,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}

/* ---- Homepage: developer new projects (premium showcase) ---- */
.home-new-projects--premium {
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 45%, #f5f7fa 100%);
    border-block: 1px solid rgba(15, 23, 42, 0.06);
}

@media (min-width: 992px) {
    .home-new-projects--premium {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

.home-new-projects__bg {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(19, 127, 236, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(212, 175, 55, 0.06), transparent 50%),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(19, 127, 236, 0.05), transparent 45%);
}

.home-new-projects__head {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .home-new-projects__head {
        margin-bottom: 2.5rem;
    }
}

.home-new-projects__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent, #b8962e);
    margin-bottom: 0.75rem;
}

.home-new-projects__title {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.85rem;
    line-height: 1.2;
}

.home-new-projects__lead {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #475569;
    max-width: 40rem;
    font-weight: 500;
}

.home-new-projects__tabs-wrap {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.5rem 0.65rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    max-width: 100%;
    margin-inline: auto;
    width: fit-content;
}

@media (max-width: 575.98px) {
    .home-new-projects__tabs-wrap {
        width: 100%;
        border-radius: 1rem;
        justify-content: center;
    }
}

.home-new-projects__tab.nav-link {
    border-radius: 999px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-new-projects__tab.nav-link:hover {
    color: var(--primary);
    background: rgba(19, 127, 236, 0.08);
}

.home-new-projects__tab.nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, #0d6efd 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(19, 127, 236, 0.35);
}

.home-new-projects__tab .badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25em 0.45em;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.25) !important;
    color: inherit;
}

.home-new-projects__tab.nav-link:not(.active) .badge {
    background: rgba(15, 23, 42, 0.08) !important;
    color: #64748b;
}

.home-new-projects__empty {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 28rem;
    margin-inline: auto;
    line-height: 1.65;
}

.home-new-projects__card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.home-new-projects__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    border-color: rgba(19, 127, 236, 0.22);
}

.home-new-projects__thumb-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
}

.home-new-projects__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-new-projects__card:hover .home-new-projects__thumb-img {
    transform: scale(1.06);
}

.home-new-projects__thumb-placeholder {
    color: #94a3b8;
    font-size: 2rem;
}

.home-new-projects__thumb-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.home-new-projects__card:hover .home-new-projects__thumb-shine {
    opacity: 1;
}

.home-new-projects__card-body {
    padding: 1rem 1.1rem 1.15rem;
}

.home-new-projects__dev-name {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.3;
}

.home-new-projects__proj-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-new-projects__loc {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.home-new-projects__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.85;
    transition: opacity 0.2s ease, gap 0.2s ease;
}

.home-new-projects__card:hover .home-new-projects__cta {
    opacity: 1;
    gap: 0.5rem;
}

.home-new-projects__btn-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.65rem 1.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-new-projects__btn-all:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
}

/* ---- Homepage: featured developers (متماشٍ مع المشاريع الجديدة) ---- */
.home-featured-devs {
    position: relative;
}

.home-featured-devs__shell {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    padding: 1.35rem 1rem 2.85rem;
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
    .home-featured-devs__shell {
        padding: 1.75rem 2.25rem 2.85rem;
    }
}

.home-featured-devs__carousel {
    position: relative;
}

.home-featured-devs__inner {
    padding-bottom: 0;
}

.home-featured-devs__slide-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
    padding: 1rem 1rem 0;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
    min-height: 11rem;
}

.home-featured-devs__slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    border-color: rgba(19, 127, 236, 0.22);
}

.home-featured-devs__logo-area {
    min-height: 5.5rem;
    margin-bottom: 0.5rem;
}

.home-featured-devs__logo {
    max-height: 4.5rem;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.home-featured-devs__badge {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #92400e;
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid rgba(180, 83, 9, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.home-featured-devs__page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: calc(100% + 2rem);
    margin-inline: -1rem;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    transition: color 0.2s ease, background 0.2s ease;
}

.home-featured-devs__page-link:hover {
    color: #fff;
    background: var(--primary);
}

.home-featured-devs__indicators {
    bottom: 0.65rem;
    margin-bottom: 0;
}

.home-featured-devs__indicators [type="button"] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.2);
    border: 0;
    opacity: 1;
}

.home-featured-devs__indicators [type="button"].active {
    background-color: var(--primary);
    transform: scale(1.12);
}

.home-featured-devs__control {
    width: 2.65rem;
    height: 2.65rem;
    top: 42%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    border: 0;
    opacity: 1;
}

.home-featured-devs__control:hover,
.home-featured-devs__control:focus {
    background: var(--primary);
}

.home-featured-devs__control .carousel-control-prev-icon,
.home-featured-devs__control .carousel-control-next-icon {
    width: 1.2rem;
    height: 1.2rem;
}

@media (max-width: 767.98px) {
    .home-featured-devs__control {
        width: 2.25rem;
        height: 2.25rem;
    }

    .home-featured-devs__shell {
        padding-inline: 0.65rem;
    }
}

/* ---- Homepage: CTA «أضف عقارك» — فاصل عن القسم السابق ---- */
.home-cta-anchor {
    margin-top: 0;
}

.home-cta__separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.75rem 1rem 2rem;
    background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 45%, #ffffff 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-cta__separator::before,
.home-cta__separator::after {
    content: "";
    flex: 1;
    max-width: 10rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.14), transparent);
}

.home-cta__separator-line {
    display: block;
    width: 3.5rem;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent, #d4af37), var(--primary));
    box-shadow: 0 2px 14px rgba(19, 127, 236, 0.3);
}

.home-cta__section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.14);
}

.home-cta__section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    pointer-events: none;
}

@media (min-width: 992px) {
    .home-cta__section {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }

    .home-cta__separator {
        padding-top: 2.25rem;
        padding-bottom: 2.35rem;
    }
}

.home-cta__lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.65;
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}

/* ---- Broker/Developer Card ---- */
.professional-card {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
    height: 100%;
    text-align: center;
}

.professional-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.professional-card .card-cover {
    height: 100px;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    position: relative;
}

.professional-card .card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-light);
}

.professional-card .card-body { padding: 3.5rem 1.5rem 1.5rem; }

/* ---- Pagination ---- */
.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    color: var(--primary);
    border-color: var(--border-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ---- Footer ---- */
.footer-main {
    background: var(--dark);
    color: rgba(255,255,255,.75);
}

.footer-main h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-main a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .9rem;
    transition: var(--transition);
    display: block;
    padding: .2rem 0;
}

.footer-main a:hover {
    color: var(--accent);
    padding-left: .25rem;
}

.footer-main .footer-quick-link {
    color: rgba(255,255,255,.65);
    background: none;
    border: none;
    font-size: inherit;
    padding: .2rem 0;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: start;
    transition: var(--transition);
}

.footer-main .footer-quick-link:hover {
    color: var(--accent);
    padding-left: .25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.25rem;
    font-size: .85rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    transition: var(--transition);
    margin-left: .5rem;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ---- Badges ---- */
.badge-verified {
    background: #10b981;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 50px;
}

.badge-featured {
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 50px;
}

/* ---- Stats Row ---- */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: .35rem;
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

/* ---- Breadcrumb ---- */
.breadcrumb-wrapper {
    background: var(--bg-light);
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ---- Loading Skeleton ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Utility ---- */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-dark-custom { background-color: var(--dark) !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }
.transition-all { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section { min-height: 480px; }
    .hero-content h1 { font-size: 2rem; }
    .search-bar-wrapper { padding: 1rem; }
}

@media (max-width: 767.98px) {
    .hero-section { min-height: 420px; }
    .property-card .card-specs { flex-wrap: wrap; gap: .5rem; }
    .area-card { min-height: 180px; }
}

/* ---- Navbar: Messages & Notifications (Facebook-style) ---- */
.nav-icon-btn {
    transition: var(--transition);
}
.nav-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.06) !important;
}
.nav-notif-menu {
    margin-top: 0.5rem;
    border-radius: var(--radius);
}
.nav-notif-item:hover {
    background-color: var(--bg-light);
}

/* ---- Homepage: News-style layout + Sidebar widgets ---- */
.home-widget .card-header {
    border-radius: 0;
}
.sidebar-news-item:hover {
    background-color: var(--bg-light);
}

/* ---- Indicator Ticker (News-style) ---- */
.indicator-ticker {
    direction: ltr;
    background: linear-gradient(180deg, #0f1419 0%, #1a2332 100%);
    border-bottom: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
}
.indicator-ticker__wrapper {
    display: flex;
    align-items: center;
    min-height: 44px;
}
.indicator-ticker__label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(212,175,55,.08);
    height: 100%;
}
.indicator-ticker__track {
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    mask-image: linear-gradient(to right, black 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 5%, black 95%, transparent 100%);
}
.indicator-ticker__scroll {
    display: inline-flex;
    width: max-content;
    flex-shrink: 0;
    animation: ticker-scroll 60s linear infinite;
    transform-origin: left center;
}
.indicator-ticker:hover .indicator-ticker__scroll {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .indicator-ticker__scroll {
        animation: none;
    }
}
.indicator-ticker__content {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem 0;
    padding: .65rem 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.indicator-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.indicator-ticker__name {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
}
.indicator-ticker__value {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
}
.indicator-ticker__change {
    font-size: .9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .15rem;
}
.indicator-ticker__change--up {
    color: #22c55e;
}
.indicator-ticker__change--down {
    color: #ef4444;
}
.indicator-ticker__change--flat {
    color: rgba(255,255,255,.5);
}
.indicator-ticker__sep {
    color: rgba(255,255,255,.25);
    font-size: .6rem;
    margin: 0 .25rem;
    pointer-events: none;
}

/* ---- Cooperative building — infographic detail ---- */
.coop-infographic {
    --coop-infographic-dark: #0f172a;
    --coop-infographic-mid: #1e3a5f;
    --coop-infographic-accent: #38bdf8;
}
.coop-infographic__hero {
    background: linear-gradient(135deg, var(--coop-infographic-dark) 0%, var(--coop-infographic-mid) 55%, #0c4a6e 100%);
    box-shadow: 0 12px 40px rgba(15, 23, 42, .35);
}
.coop-infographic__hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        radial-gradient(circle at 20% 30%, #fff 0, transparent 45%),
        radial-gradient(circle at 80% 70%, var(--coop-infographic-accent) 0, transparent 35%);
    pointer-events: none;
}
.coop-infographic__breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255,255,255,.45);
    font-size: .875rem;
}
.coop-infographic__breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
}
.coop-infographic__breadcrumb .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}
.coop-infographic__breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,.55);
}
.coop-infographic__eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--coop-infographic-accent);
}
.coop-infographic__title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.25;
}
.coop-infographic__stats { margin-top: 0; }
.coop-infographic__stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.coop-infographic__stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .1);
}
.coop-infographic__stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: linear-gradient(145deg, rgba(13, 110, 253, .12), rgba(56, 189, 248, .15));
    color: var(--primary);
    font-size: 1.15rem;
}
.coop-infographic__stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.coop-infographic__stat-value--sm {
    font-size: 1.05rem;
    font-weight: 700;
}
.coop-infographic__stat-denom {
    font-size: .95rem;
    font-weight: 600;
    color: #64748b;
}
.coop-infographic__stat-label {
    font-size: .75rem;
    color: #64748b;
    margin-top: .35rem;
    font-weight: 600;
}
.coop-infographic__progress-block {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 6px 24px rgba(15, 23, 42, .07);
}
.coop-infographic__progress-block .text-uppercase {
    letter-spacing: .06em;
}
.coop-infographic__donut {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) calc(var(--p, 0) * 1%),
        #e2e8f0 0
    );
    display: grid;
    place-items: center;
}
.coop-infographic__donut-inner {
    width: 72%;
    height: 72%;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
    font-size: 1.2rem;
}
.coop-infographic__progress-bar {
    height: .65rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.coop-infographic__fee-pill {
    font-size: .9rem;
    color: #334155;
}
.coop-offer-timer--infographic .coop-offer-timer__msg {
    line-height: 1.45;
}

/* ---- Cooperative building: boxed countdown (deal-style) ---- */
.coop-countdown-boxes__prefix {
    font-size: .8rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    letter-spacing: .02em;
}
.coop-countdown-boxes__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: .25rem .45rem;
}
.coop-countdown-boxes__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    min-width: 3rem;
}
.coop-countdown-boxes__value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: .4rem .45rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: .5rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .22), inset 0 1px 0 rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .07);
}
.coop-countdown-boxes__label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: #64748b;
    text-align: center;
    max-width: 4.5rem;
    line-height: 1.2;
}
[dir="rtl"] .coop-countdown-boxes__label {
    letter-spacing: 0;
}
.coop-countdown-boxes__sep {
    font-size: 1.15rem;
    font-weight: 800;
    color: #cbd5e1;
    padding-bottom: 1.65rem;
    line-height: 1;
    user-select: none;
}
.coop-offer-timer--infographic .coop-countdown-boxes__value {
    min-width: 2.85rem;
    min-height: 2.85rem;
    font-size: 1.45rem;
}
.coop-offer-timer--infographic .coop-countdown-boxes__prefix {
    text-align: start;
}
[dir="rtl"] .coop-offer-timer--infographic .coop-countdown-boxes__prefix {
    text-align: right;
}
.coop-infographic__section {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
    overflow: hidden;
}
.coop-infographic__section-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, rgba(13, 110, 253, .06), rgba(56, 189, 248, .08));
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.coop-infographic__step {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), #0369a1);
}
.coop-infographic__section-body {
    padding: 1.25rem 1.35rem;
}
.coop-infographic__lead {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}
.coop-infographic__mini {
    background: #fff;
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}
.coop-infographic__mini--accent {
    background: linear-gradient(145deg, rgba(13, 110, 253, .07), rgba(56, 189, 248, .1));
    border-color: rgba(13, 110, 253, .15);
}
.coop-infographic__mini-icon {
    font-size: 1.35rem;
    color: var(--primary);
    display: block;
    margin-bottom: .35rem;
}
.coop-infographic__gallery-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    background: rgba(13, 110, 253, .1);
    color: var(--primary);
    font-size: 1.2rem;
}
.coop-infographic__carousel {
    border: 1px solid rgba(15, 23, 42, .08);
}
.coop-infographic__carousel-img {
    max-height: 420px;
    object-fit: cover;
}
.coop-infographic__thumb {
    opacity: .85;
    transition: opacity .15s ease, transform .15s ease;
}
.coop-infographic__thumb:hover,
.coop-infographic__thumb:focus {
    opacity: 1;
    transform: scale(1.02);
}
.coop-infographic__attachments {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 1px solid rgba(15, 23, 42, .06);
}
.coop-infographic__attach-link {
    color: var(--primary);
    text-decoration: none;
    font-size: .9rem;
    padding: .35rem .5rem;
    border-radius: .5rem;
}
.coop-infographic__attach-link:hover {
    background: rgba(13, 110, 253, .08);
    color: #0a58ca;
}
.coop-infographic__cta {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    top: 1rem;
}
.coop-infographic__cta-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, .15);
    color: #d97706;
    font-size: 1.35rem;
}
@media (max-width: 991.98px) {
    .coop-infographic__cta { position: relative !important; top: 0 !important; }
}

/* ---- Dashboard: cooperative offer form sections ---- */
.coop-dash-form-section {
    background: #fff;
    border-color: var(--border-color, #e5e7eb) !important;
}
.coop-budget-lines-table th {
    font-size: .8rem;
    font-weight: 600;
}
.admin-coop-budget-table {
    max-width: 28rem;
}
.admin-coop-multiline {
    white-space: pre-wrap;
    word-break: break-word;
}
.admin-coop-gallery-thumb {
    max-height: 120px;
    width: 100%;
    object-fit: cover;
}
.admin-coop-index-ref {
    max-width: 10rem;
}

/* ---- Cooperative offer form wizard (dashboard) ---- */
.coop-offer-wizard__pills--row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
}
.coop-offer-wizard__pills--row .coop-offer-wizard__pill--tab {
    flex: 1 1 0;
    min-width: 6.5rem;
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
}
@media (min-width: 1200px) {
    .coop-offer-wizard__pills--row .coop-offer-wizard__pill--tab {
        font-size: 0.82rem;
        min-width: 0;
    }
}
.coop-offer-wizard__progress-track {
    height: 6px;
    background-color: rgba(13, 110, 253, 0.12);
}
.coop-offer-wizard__progress-fill {
    width: 25%;
    min-width: 6%;
    transition: width 0.25s ease;
}
.coop-offer-wizard__pill {
    border-color: var(--border-color, #dee2e6) !important;
    color: #64748b;
    background: #fff;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.coop-offer-wizard__pill--active {
    border-color: var(--primary) !important;
    color: var(--primary);
    font-weight: 600;
    background: rgba(13, 110, 253, 0.06);
}
.coop-offer-wizard__pill--done {
    border-color: #22c55e !important;
    color: #15803d;
    background: rgba(34, 197, 94, 0.08);
}
.coop-offer-wizard__pane:focus-visible {
    outline: none;
}
.coop-infographic-budget-table thead th {
    font-size: .85rem;
}

/* ---- Auth register — working property categories (compact chip toggles) ---- */
.register-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.register-category-chips .btn-check + .btn {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}
.register-category-chips .btn-check:checked + .btn {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.register-category-chips .btn-check:focus-visible + .btn {
    box-shadow: 0 0 0 0.2rem rgba(19, 127, 236, 0.35);
}

/* ---- Legal pages (privacy / terms) — Stitch-inspired layout ---- */
.legal-page {
    background: var(--bg-light);
}
.letter-spacing-wide {
    letter-spacing: 0.06em;
}
.legal-sidebar.sticky-lg-top {
    top: 5.5rem;
}
.legal-sidebar__link {
    color: var(--text-muted, #6c757d);
    border: 1px solid transparent;
}
.legal-sidebar__link:hover {
    background: rgba(19, 127, 236, 0.08);
    color: var(--primary);
}
.legal-sidebar__card {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm);
}
.legal-section {
    scroll-margin-top: 6rem;
}
.legal-data-card {
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-sm);
}
.legal-rights-card {
    border-color: var(--border-color) !important;
}
.legal-callout {
    border-radius: var(--radius-sm);
}
.legal-search-wrap .form-control:focus {
    box-shadow: none;
}
.legal-article {
    max-width: 48rem;
}
