/* ===================================================================
   IMOOB REAL ESTATE - SHARP MINIMALIST ARCHITECTURAL DESIGN (RTL)
   Typography: Alexandria (Arabic)
   Philosophy: Clean Lines • Zero Rounded Corners • Minimal Editorial Aesthetic
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #1d4ed8;
    /* Vibrant architectural royal blue */
    --primary-hover: #1e40af;
    --primary-accent: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #0f172a;
    --accent: #d97706;
    /* Warm amber gold */
    --whatsapp: #16a34a;
    /* Fresh green */
    --whatsapp-hover: #15803d;

    --bg-main: #ffffff;
    --bg-surface: #f9fafb;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    --border-color: #e5e7eb;
    --border-dark: #0f172a;
    --border-light: #f3f4f6;

    --shadow-none: none;
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 12px 0 rgba(0, 0, 0, 0.08);

    /* ZERO ROUNDED CORNERS (SHARP RECTILINEAR ARCHITECTURE) */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    --radius-pill: 0px;
    --radius-full: 0px;

    --transition: all 0.2s ease-in-out;
}

/* Reset & Foundation */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    /* Strict sharp corners everywhere */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Alexandria', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0 !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border-radius: 0 !important;
}

/* Bulletproof LTR Phone Number & Tel Input Handling inside RTL */
.phone-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

input[type="tel"] {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
    font-variant-numeric: tabular-nums;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* -------------------------------------------------------------
   NAVBAR (UNIFIED ARCHITECTURAL HEADER — IDENTICAL AR & FR)
   ------------------------------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 10px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo img {
    height: 36px;
    width: auto;
    transition: transform 0.2s ease;
}

.brand-logo:hover img {
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
    flex: 1;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-weight: 500;
    color: #334155;
    font-size: 13.5px;
    line-height: 1;
    padding: 0 13px;
    position: relative;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    inset-inline: 10px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-cta-btn,
.header-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: var(--transition);
    border-radius: 0 !important;
}

.header-cta-btn {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
}

.header-cta-btn:hover,
.header-cta-btn.active {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.header-cta-btn i {
    font-size: 15px;
}

.header-account-btn {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.header-account-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.header-account-btn.is-logged {
    border-color: #93c5fd;
    background: #eff6ff;
    color: var(--primary);
}

.header-account-btn i {
    font-size: 14px;
}

.header-verified-dot {
    width: 6px;
    height: 6px;
    background: #16a34a;
    display: inline-block;
    flex-shrink: 0;
}

.header-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin-inline: 2px;
    flex-shrink: 0;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 58px;
    height: 36px;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-flag-svg {
    display: block;
    width: 18px;
    height: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.lang-code-ar {
    font-family: 'Alexandria', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
}

.lang-switch-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Minimalist Sharp Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    border-radius: 0 !important;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.btn-accent {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.btn-accent:hover {
    background: #334155;
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #0f172a;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
}

.btn-lg {
    padding: 11px 22px;
    font-size: 13.5px;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
    border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* -------------------------------------------------------------
   HERO SECTION (MINIMALIST CLEAN HERO)
   ------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 36px 0 34px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    border-bottom: 1px solid #dbeafe;
    color: var(--text-main);
}

.hero-content {
    text-align: right;
    max-width: 820px;
    margin-inline: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #1d4ed8;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
    color: #0f172a;
}

.hero-title span {
    color: var(--primary-accent);
}

.hero-subtitle {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.75;
    max-width: 660px;
    margin-inline: auto;
}

/* Minimalist Search Box (Sharp Modular Grid) */
.search-widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    text-align: right;
    margin-top: 10px;
}

.search-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    margin-bottom: 20px;
    width: fit-content;
}

.search-tab {
    background: transparent;
    border: none;
    border-left: 1px solid #cbd5e1;
    padding: 9px 22px;
    font-weight: 500;
    font-size: 13.5px;
    color: #334155;
    cursor: pointer;
    transition: var(--transition);
}

.search-tab:last-child {
    border-left: none;
}

.search-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.search-tab.active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 500;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 12px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    font-size: 13.5px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
    background: #ffffff;
}

/* -------------------------------------------------------------
   PROPERTIES FILTER (ARCHITECTURAL MINIMALIST)
   ------------------------------------------------------------- */
.filter-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    margin-bottom: 35px;
    border-radius: 0 !important;
}

.filter-tabs {
    display: flex;
    border-bottom: 1px solid #cbd5e1;
    background: #f1f5f9;
}

.filter-tab {
    background: transparent;
    border: none;
    border-left: 1px solid #cbd5e1;
    padding: 13px 28px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.filter-tab.active {
    color: #ffffff;
    font-weight: 500;
    background: var(--primary);
    border-left-color: var(--primary);
}

.filter-body {
    padding: 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: flex-end;
}

.filter-col-keyword {
    grid-column: span 2;
}

.filter-col-category {
    grid-column: span 1;
}

.filter-col-city {
    grid-column: span 1;
}

.filter-col-bedrooms {
    grid-column: span 1;
}

.filter-col-price {
    grid-column: span 1;
}

.filter-col-sort {
    grid-column: span 1;
}

.filter-col-actions {
    grid-column: span 1;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-filter-submit {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
}

.btn-filter-reset {
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
    color: #64748b;
    border-color: var(--border-color);
    background: #ffffff;
}

.btn-filter-reset:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #94a3b8;
}

.filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #fcfcfd;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.filter-results-count {
    font-size: 13.5px;
    color: #334155;
}

.filter-results-count strong {
    color: #0f172a;
    font-weight: 600;
}

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

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    font-size: 12px;
    color: #1e293b;
    border-radius: 0 !important;
}

.filter-chip-remove {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip-remove:hover {
    color: #ef4444;
}

.filter-clear-all {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    margin-right: 4px;
}

.filter-clear-all:hover {
    color: #ef4444;
}

/* -------------------------------------------------------------
   SECTIONS & TITLES
   ------------------------------------------------------------- */
.section {
    padding: 70px 0;
}

.section-bg {
    background-color: #f9fafb;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.section-title-wrap {
    max-width: 650px;
}

.section-tag {
    display: none;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 21px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #d97706;
    flex-shrink: 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

/* -------------------------------------------------------------
   PROPERTY CARDS (SHARP RECTILINEAR ARCHITECTURE)
   ------------------------------------------------------------- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.property-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.08);
}

.property-thumb {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-thumb img {
    transform: scale(1.04);
}

.badge-purpose {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-white);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.badge-sale {
    background: rgba(29, 78, 216, 0.88);
}

.badge-rent {
    background: rgba(5, 150, 105, 0.88);
}

.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
    font-size: 13px;
    z-index: 2;
}

.property-price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.84);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-right: 3px solid #d97706;
    color: #ffffff;
    padding: 3px 9px;
    font-weight: 500;
    font-size: 12px;
}

.property-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.property-category {
    color: #475569;
    font-weight: 500;
}

.property-ref {
    background: #f1f5f9;
    padding: 2px 6px;
    font-weight: 500;
    font-size: 11px;
}

.property-title {
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.55;
    margin-bottom: 8px;
}

.property-title a:hover {
    color: var(--primary-accent);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.property-location i {
    color: var(--primary);
}

.property-features-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.feature-item strong {
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

/* WhatsApp Intermediary Button on Card (Small, Icon with Send Arrow, No Words) */
.whatsapp-btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--whatsapp);
    color: #ffffff;
    padding: 6px 12px;
    height: 34px;
    font-size: 14px;
    flex-grow: 0;
    border: 1px solid var(--whatsapp);
    transition: var(--transition);
    border-radius: 0 !important;
}

.whatsapp-btn-card:hover {
    background: var(--whatsapp-hover);
    color: #ffffff;
}

.property-footer .btn-outline {
    flex-grow: 1;
}

/* -------------------------------------------------------------
   WHATSAPP BROKER CALLOUT BOX (SHARP & CLEAN)
   ------------------------------------------------------------- */
.broker-box {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--whatsapp);
    padding: 20px;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.broker-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.broker-icon {
    width: 40px;
    height: 40px;
    background: var(--whatsapp);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.broker-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.broker-info p {
    font-size: 13px;
    color: #475569;
}

.broker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* -------------------------------------------------------------
   CITY CARDS (SHARP EDITORIAL)
   ------------------------------------------------------------- */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.city-card {
    position: relative;
    height: 200px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.city-card:hover {
    border-color: #0f172a;
}

.city-card:hover img {
    transform: scale(1.05);
}

.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #ffffff;
}

.city-name {
    font-size: 16px;
    font-weight: 600;
}

.city-count {
    font-size: 12px;
    color: #cbd5e1;
}

/* -------------------------------------------------------------
   PROPERTY DETAILS PAGE
   ------------------------------------------------------------- */
.property-details-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.mobile-price-corner {
    display: none;
}

.details-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 26px;
}

.details-gallery {
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 16px;
    background: #0f172a;
    user-select: none;
}

.details-main-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.18s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.18s ease, border-color 0.18s ease;
    padding: 0;
}

.gallery-nav-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.gallery-nav-prev {
    right: 12px;
}

.gallery-nav-next {
    left: 12px;
}

html[dir="ltr"] .gallery-nav-prev {
    right: auto;
    left: 12px;
}

html[dir="ltr"] .gallery-nav-next {
    left: auto;
    right: 12px;
}

.gallery-counter-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 10px;
    z-index: 4;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.gallery-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    padding: 0;
    transition: background 0.18s ease;
}

.gallery-zoom-btn:hover {
    background: #1d4ed8;
}

.gallery-thumbs-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.gallery-thumb-wrap {
    border: 1px solid var(--border-color);
    padding: 2px;
    cursor: pointer;
    flex-shrink: 0;
    background: #ffffff;
    transition: border-color 0.15s ease, opacity 0.15s ease;
    opacity: 0.78;
}

.gallery-thumb-wrap:hover,
.gallery-thumb-wrap.active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.gallery-thumb-wrap img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    display: block;
}

/* Fullscreen Lightbox */
.imoob-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.94);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.imoob-lightbox.open {
    display: flex;
}

.imoob-lightbox-img {
    max-width: 92vw;
    max-height: 84vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    user-select: none;
}

.imoob-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
}

.imoob-lightbox-close:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.imoob-lightbox-counter {
    position: fixed;
    top: 22px;
    left: 22px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.78);
    padding: 6px 12px;
    direction: ltr;
    z-index: 100001;
}

.imoob-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
}

.imoob-lightbox-nav:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.imoob-lightbox-prev {
    right: 18px;
}

.imoob-lightbox-next {
    left: 18px;
}

html[dir="ltr"] .imoob-lightbox-prev {
    right: auto;
    left: 18px;
}

html[dir="ltr"] .imoob-lightbox-next {
    left: auto;
    right: 18px;
}

@media (max-width: 640px) {
    .details-main-img {
        height: 290px;
    }
    .gallery-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }
    .gallery-thumb-wrap img {
        width: 82px;
        height: 58px;
    }
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #f8fafc;
    padding: 18px;
    border: 1px solid var(--border-color);
    margin: 20px 0;
}

.spec-box {
    text-align: center;
}

.spec-box span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.spec-box strong {
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 600;
}

.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.feature-tag {
    background: #f8fafc;
    color: #0f172a;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
}

.feature-tag i {
    color: #059669;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary);
    padding: 24px;
    margin-bottom: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-price {
    font-size: 21px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

/* -------------------------------------------------------------
   FOOTER (SHARP & CLEAN)
   ------------------------------------------------------------- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 25px;
    margin-top: 70px;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    margin: 0;
    line-height: 1.5;
}

.footer-contact-item i {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

/* Alert Boxes */
.alert {
    padding: 13px 16px;
    margin-bottom: 18px;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN
   ------------------------------------------------------------- */
@media (max-width: 992px) {
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-grid .btn {
        grid-column: span 2;
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-col-keyword {
        grid-column: span 2;
    }

    .filter-col-category,
    .filter-col-city,
    .filter-col-bedrooms,
    .filter-col-price,
    .filter-col-sort,
    .filter-col-actions {
        grid-column: span 1;
    }

    .property-details-layout {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .mobile-price-corner {
        display: inline-flex;
        align-items: center;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 5;
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        color: #0f172a;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
        padding: 3px 8px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.25;
        pointer-events: none;
    }

    html[dir="ltr"] .mobile-price-corner {
        right: auto;
        left: 10px;
    }

    .sidebar-price {
        display: none;
    }

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

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        height: auto;
        flex: none;
        background: #ffffff;
        padding: 10px 16px;
        gap: 2px;
        border-bottom: 1px solid #cbd5e1;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        height: auto;
        padding: 11px 14px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f8fafc;
    }

    .nav-link::after {
        inset-inline: auto;
        inset-inline-start: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
        transform: scaleY(0);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleY(1);
    }
}

@media (max-width: 768px) {
    .site-header .container {
        padding-inline: 14px;
    }

    .nav-wrapper {
        height: 58px;
        gap: 8px;
    }

    .nav-menu {
        top: 58px;
    }

    .nav-actions {
        gap: 5px;
    }

    .header-divider {
        display: none;
    }

    /* Keep ONLY "أضف إعلان / Publier" with compact text */
    .header-cta-btn {
        height: 30px;
        padding: 0 9px;
        font-size: 11.5px;
        gap: 4px;
    }

    .header-cta-btn i {
        font-size: 13px;
    }

    /* Compact icon-only squares for Account, Language & Menu */
    .header-account-btn {
        position: relative;
        width: 30px;
        height: 30px;
        padding: 0;
        gap: 0;
    }

    .header-account-btn .header-btn-label {
        display: none;
    }

    .header-account-btn i {
        font-size: 14px;
    }

    .header-account-btn .header-verified-dot {
        position: absolute;
        top: 3px;
        inset-inline-end: 3px;
        width: 5px;
        height: 5px;
    }

    .lang-switch-btn {
        min-width: 0;
        width: 30px;
        height: 30px;
        padding: 0;
        gap: 0;
    }

    .lang-switch-btn .lang-code-label {
        display: none;
    }

    .lang-flag-svg {
        width: 15px;
        height: 10px;
    }

    .mobile-menu-btn {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .hero-title {
        font-size: 23px;
    }

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

    .search-grid .btn {
        grid-column: span 1;
    }

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

    .filter-col-keyword,
    .filter-col-category,
    .filter-col-city,
    .filter-col-bedrooms,
    .filter-col-price,
    .filter-col-sort,
    .filter-col-actions {
        grid-column: span 1;
    }

    .filter-body {
        padding: 16px;
    }

    .filter-footer {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .footer-col-brand,
    .footer-col-contact {
        grid-column: 1 / -1;
    }

    .footer-contact-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
    }

    .footer-contact-item {
        font-size: 12.5px;
    }

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


/* =============================================================
   ADSENSE POLICY-SAFE CONTAINERS & COOKIE BANNER
   ============================================================= */
.ad-slot-wrapper {
    margin: 26px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    text-align: center;
    overflow: hidden;
}

.ad-slot-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ad-slot-inner {
    width: 100%;
    overflow-x: auto;
}

.ad-slot-infeed {
    grid-column: 1 / -1;
    margin: 8px 0;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-top: 2px solid #2563eb;
    padding: 14px 0;
    z-index: 9999;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

/* =============================================================
   ADVERTISER PROFILE, ACCOUNT UI & PUBLISHER RATINGS
   ============================================================= */
.account-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.account-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    border: 1px solid transparent;
    margin-bottom: 6px;
    transition: var(--transition);
}

.account-nav-link:hover,
.account-nav-link.active {
    background: #f8fafc;
    border-color: var(--border-color);
    border-right: 3px solid var(--primary);
    color: #0f172a;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
}

.unverified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
}

.publisher-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.publisher-avatar {
    width: 56px;
    height: 56px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.review-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.star-pick-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    padding: 2px 4px;
    transition: transform 0.12s ease;
}

.star-pick-btn:hover {
    transform: scale(1.15);
}

.review-tag-pill {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .account-shell {
        grid-template-columns: 1fr;
    }
}


/* =============================================================
   DISTINCT 3-TIER PUBLISHER BADGES (ZERO CONFUSION)
   ============================================================= */
.publisher-badges-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pbadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 0 !important;
    white-space: nowrap;
}

/* 1. حساب مفعّل (تفعيل عادي عبر واتساب أو Google) */
.pbadge-active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* غير مفعّل */
.pbadge-pending {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* 2. معلن موثق (شارة الثقة والسمعة - أزرق مميز واضح) */
.pbadge-trusted {
    background: #1d4ed8;
    color: #ffffff;
    border: 1px solid #1e40af;
}

/* 3. وكالة عقارية (صفة مهنية - كحلي داكن) */
.pbadge-agency {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #475569;
}

/* وكالة معتمدة (وكالة موثقة بالوثائق - ذهبي داكن فاخر) */
.pbadge-agency-cert {
    background: #78350f;
    color: #fef3c7;
    border: 1px solid #d97706;
}

/* مالك فردي */
.pbadge-individual {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}


/* =============================================================
   UNIFIED LIGHT & HARMONIOUS TYPOGRAPHY NORMALIZATION
   Prevents heavy/bulky 700/800/900 inline styles across all pages
   ============================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 24px;
    line-height: 1.4;
}

.hero-title {
    font-size: 23px !important;
    font-weight: 600 !important;
    margin-bottom: 14px;
}

h2 {
    font-size: 20px;
    line-height: 1.45;
}

h3 {
    font-size: 16px;
    line-height: 1.5;
}

h4 {
    font-size: 14.5px;
    line-height: 1.5;
}

strong,
b {
    font-weight: 500 !important;
}

label,
.form-group label {
    font-weight: 500 !important;
    font-size: 12.5px !important;
}

.btn,
button[type="submit"] {
    font-weight: 500 !important;
}

.pbadge,
.verified-badge,
.unverified-badge,
.review-tag-pill {
    font-weight: 500 !important;
    font-size: 11.5px;
}

.account-nav-link {
    font-weight: 400 !important;
    font-size: 13.5px;
}

.account-nav-link.active {
    font-weight: 500 !important;
}

.site-footer p,
.site-footer a,
.site-footer li {
    font-size: 13.5px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 23px !important;
    }

    h1 {
        font-size: 20px;
    }

    h2,
    .section-title {
        font-size: 18px;
    }

    .section-title::before {
        width: 8px;
        height: 8px;
    }

    .section-title::before {
        width: 8px;
        height: 8px;
    }
}


/* =============================================================
   MINIMALIST SMART SEARCH BAR & COLLAPSIBLE FILTERS
   ============================================================= */
.hero-search-row,
.filter-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-search-row {
    padding: 16px 20px;
}

.hero-search-input-wrap {
    position: relative;
    flex: 1;
}

.hero-search-input-wrap i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.hero-search-input-wrap .form-control {
    height: 46px;
    padding-right: 40px;
    font-size: 13.5px;
    border: 1px solid #cbd5e1;
}

.filter-search-row .hero-search-input-wrap .form-control {
    height: 44px;
}

.advanced-filters-panel {
    border-top: 1px solid var(--border-color);
    background: #fafbfc;
}

.active-filter-toggle {
    border-color: #0f172a !important;
    background: #f8fafc !important;
}

@media (max-width: 640px) {

    .hero-search-row,
    .filter-search-row {
        flex-wrap: wrap;
    }

    .hero-search-input-wrap {
        width: 100%;
        flex: 1 0 100%;
    }

    .hero-search-row .btn,
    .filter-search-row .btn {
        flex: 1;
    }
}


/* Modern Remix Icon Alignment */
[class^="ri-"],
[class*=" ri-"] {
    vertical-align: -0.12em;
    line-height: 1;
    font-style: normal;
    font-weight: normal;
}


/* =============================================================
   SINGLE-ELEMENT BRAND LOGO (EDITABLE FROM ADMIN PANEL)
   ============================================================= */
.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-img {
    width: auto !important;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.brand-logo:hover .site-logo-img {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .site-header .site-logo-img {
        max-height: 28px !important;
        max-width: 115px;
    }
}

@media (max-width: 400px) {
    .site-header .site-logo-img {
        max-height: 25px !important;
        max-width: 96px;
    }

    .header-cta-btn {
        padding: 0 7px;
        font-size: 11px;
    }
}


/* Quick Category Shortcuts below Hero Search */
.hero-quick-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 400;
    color: #334155;
    transition: var(--transition);
}

.hero-cat-link i {
    color: var(--primary);
    font-size: 14px;
}

.hero-cat-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}


/* =============================================================
   FULL LTR (FRENCH) SUPPORT
   ============================================================= */
html[dir="ltr"] body {
    font-family: 'Plus Jakarta Sans', 'Alexandria', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .search-widget {
    text-align: left;
}

html[dir="ltr"] .hero-search-input-wrap i {
    right: auto;
    left: 14px;
}

html[dir="ltr"] .hero-search-input-wrap .form-control {
    padding-right: 12px;
    padding-left: 40px;
}

html[dir="ltr"] .search-tab,
html[dir="ltr"] .filter-tab {
    border-left: none;
    border-right: 1px solid #cbd5e1;
}

html[dir="ltr"] .search-tab:last-child {
    border-right: none;
}

html[dir="ltr"] .filter-tab.active {
    border-right-color: var(--primary);
}

html[dir="ltr"] .badge-purpose {
    right: auto;
    left: 12px;
}

html[dir="ltr"] .badge-featured {
    left: auto;
    right: 12px;
}

html[dir="ltr"] .property-price-tag {
    right: auto;
    left: 12px;
    border-right: none;
    border-left: 3px solid #3b82f6;
}

html[dir="ltr"] .broker-box {
    border-right: 1px solid var(--border-color);
    border-left: 4px solid var(--whatsapp);
}

html[dir="ltr"] .account-nav-link:hover,
html[dir="ltr"] .account-nav-link.active {
    border-right: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
}

html[dir="ltr"] .rtl-flip {
    display: inline-block;
    transform: scaleX(-1);
}


/* =============================================================
   AI DESCRIPTION ASSISTANT BUTTON
   ============================================================= */
.ai-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.ai-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.ai-write-btn i {
    color: #d97706;
    font-size: 14px;
}

.ai-write-btn:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.ai-write-btn:hover:not(:disabled) i {
    color: #fde68a;
}

.ai-write-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

@keyframes aiSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ai-spin {
    display: inline-block;
    animation: aiSpin 0.9s linear infinite;
}


/* =============================================================
   STRICT LTR PRICE & NUMBER ISOLATION (ARABIC RTL SAFE)
   ============================================================= */
.price-display {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.price-num {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.price-prefix {
    font-size: 0.85em;
    opacity: 0.9;
}

input[type="number"] {
    direction: ltr;
    unicode-bidi: isolate;
}

html[dir="rtl"] input[type="number"] {
    text-align: right;
}


/* =============================================================
   ELEGANT ADVERTISER CONTACT CARD & SIDEBAR CONTACT ACTIONS
   ============================================================= */
.advertiser-contact-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-inline-start: 3px solid #d97706;
    padding: 22px 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.adv-contact-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.adv-contact-avatar {
    width: 50px;
    height: 50px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.adv-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.adv-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.adv-contact-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.adv-amber-dot {
    width: 7px;
    height: 7px;
    background: #d97706;
    display: inline-block;
    flex-shrink: 0;
}

.adv-contact-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.adv-contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    transition: color 0.18s ease;
}

a.adv-contact-name:hover {
    color: var(--primary);
}

.adv-contact-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
}

.adv-rating-score {
    color: #0f172a;
    font-weight: 600;
}

.adv-rating-sep {
    color: #cbd5e1;
}

.adv-rate-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.adv-rate-link:hover {
    text-decoration: underline;
}

.adv-contact-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.adv-btn-wa,
.adv-btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: var(--transition);
    border-radius: 0 !important;
}

.adv-btn-wa {
    background: #16a34a;
    color: #ffffff;
    border: 1px solid #16a34a;
}

.adv-btn-wa:hover {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.adv-btn-wa i {
    font-size: 17px;
}

.adv-btn-call {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.adv-btn-call:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.adv-btn-call i {
    font-size: 15px;
}

.sidebar-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-contact-actions .adv-btn-wa,
.sidebar-contact-actions .adv-btn-call {
    width: 100%;
    height: 42px;
    padding: 0 10px;
}

.sidebar-form-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .advertiser-contact-box {
        padding: 18px;
        gap: 16px;
    }

    .adv-contact-actions {
        width: 100%;
    }

    .adv-contact-actions .adv-btn-wa,
    .adv-contact-actions .adv-btn-call {
        flex: 1;
    }
}


/* Footer Owner Company Info Bar */
.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.6;
}

.footer-company-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #cbd5e1;
}

.footer-company-ids {
    font-size: 12px;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.2px;
    unicode-bidi: isolate;
    text-align: inherit;
}


/* Footer Owner Company Info Bar */
.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.6;
}

.footer-company-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #cbd5e1;
}

.footer-company-ids {
    font-size: 12px;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.2px;
    unicode-bidi: isolate;
    text-align: inherit;
}


/* =============================================================
   ADVERTISER PROFESSIONAL PACKAGES & PRO TIER BADGES
   ============================================================= */
.pub-badge-pro-tier {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

/* -------------------------------------------------------------
   CLEAN ICON-ONLY ACTION BUTTON & SHARE POSTER MODAL
   ------------------------------------------------------------- */
.icon-action-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    background: #ffffff;
    color: #334155;
    border: 1px solid var(--border-color);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.icon-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}

.imoob-brand-format-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.imoob-brand-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Plus Jakarta Sans", inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    transition: all 0.18s ease;
}

.imoob-brand-btn.is-ig {
    border-color: rgba(220, 39, 67, 0.3);
}

.imoob-brand-btn.is-ig .brand-name-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.imoob-brand-btn.is-ig.active {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(220, 39, 67, 0.28);
}

.imoob-brand-btn.is-ig.active .brand-name-ig {
    background: none;
    color: #ffffff;
}

.imoob-brand-btn.is-fb {
    border-color: rgba(24, 119, 242, 0.3);
}

.imoob-brand-btn.is-fb .brand-name-fb {
    color: #1877F2;
}

.imoob-brand-btn.is-fb.active {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 3px 10px rgba(24, 119, 242, 0.28);
}

.imoob-brand-btn.is-fb.active .brand-name-fb {
    color: #ffffff;
}

.imoob-brand-btn.active svg {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85));
}

.imoob-quick-share-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px 14px;
    background: #ffffff;
}

.imoob-quick-share-row.is-three {
    grid-template-columns: repeat(3, 1fr);
}

.imoob-qshare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.imoob-qshare-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.imoob-qshare-btn.is-wa {
    background: #f0fdf4;
    border-color: rgba(37, 211, 102, 0.45);
    color: #128C7E;
}

.imoob-qshare-btn.is-wa:hover {
    background: #dcfce7;
}

.imoob-qshare-btn.is-fb {
    background: #eff6ff;
    border-color: rgba(24, 119, 242, 0.35);
    color: #1877F2;
}

.imoob-qshare-btn.is-fb:hover {
    background: #dbeafe;
}

.imoob-simple-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.imoob-seg-group {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.imoob-seg-btn {
    border: none;
    background: transparent;
    color: #475569;
    padding: 5px 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.imoob-seg-btn.active {
    background: #0f172a;
    color: #ffffff;
}

.imoob-poster-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.imoob-poster-modal.open {
    display: flex;
}

.imoob-poster-dialog {
    background: #ffffff;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 440px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.imoob-poster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
    font-size: 14px;
    color: #0f172a;
}

.imoob-poster-close {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.imoob-poster-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.imoob-poster-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.imoob-poster-tab {
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
}

.imoob-poster-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #f8fafc;
}

.imoob-poster-preview-stage {
    padding: 16px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    min-height: 260px;
}

.imoob-poster-preview-stage canvas {
    max-width: 100%;
    max-height: 54vh;
    width: auto;
    height: auto;
    display: block;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.imoob-poster-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

/* -------------------------------------------------------------
   MOROCCAN REAL ESTATE CALCULATOR CARD (EMBEDDED & STANDALONE)
   ------------------------------------------------------------- */
.morocco-calc-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 22px;
    margin-bottom: 25px;
}

.morocco-calc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.morocco-calc-head h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calc-tabs {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border-bottom: 1px solid #cbd5e1;
    margin-bottom: 16px;
}

.calc-tab-btn {
    border: 1px solid #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    margin-bottom: -1px;
    background: #f1f5f9;
    color: #475569;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.calc-tab-btn.tab-fees {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
    border-bottom-color: #cbd5e1;
}

.calc-tab-btn.tab-fees:hover {
    background: #dbeafe;
}

.calc-tab-btn.tab-fees.active {
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 600;
    border-color: #93c5fd;
    border-top: 2px solid #1d4ed8;
    border-bottom-color: #ffffff;
    padding-top: 6px;
}

.calc-tab-btn.tab-loan {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
    border-bottom-color: #cbd5e1;
}

.calc-tab-btn.tab-loan:hover {
    background: #fef3c7;
}

.calc-tab-btn.tab-loan.active {
    background: #ffffff;
    color: #b45309;
    font-weight: 600;
    border-color: #fcd34d;
    border-top: 2px solid #d97706;
    border-bottom-color: #ffffff;
    padding-top: 6px;
}

.calc-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 13.5px;
}

.calc-row.is-total {
    background: #eff6ff;
    border-color: #bfdbfe;
    font-weight: 600;
    color: #0f172a;
}

.calc-row strong {
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.calc-row.is-total strong {
    color: var(--primary);
    font-size: 15px;
}

.daam-sakane-badge {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-right: 3px solid #16a34a;
    color: #166534;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

html[dir="ltr"] .daam-sakane-badge {
    border-right: 1px solid #bbf7d0;
    border-left: 3px solid #16a34a;
}

.calc-inputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.calc-monthly-box {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-right: 4px solid #d97706;
    margin-bottom: 10px;
}

html[dir="ltr"] .calc-monthly-box {
    border-right: none;
    border-left: 4px solid #d97706;
}

@media (max-width: 640px) {
    .calc-inputs-grid {
        grid-template-columns: 1fr;
    }
}

.pkg-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pkg-filter-tab {
    height: 36px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.pkg-filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pkg-filter-tab.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.packages-grid-public {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.pkg-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pkg-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.pkg-card-popular {
    border-color: var(--primary);
    border-top: 3px solid #d97706;
    box-shadow: 0 10px 26px rgba(29, 78, 216, 0.08);
}

.pkg-popular-ribbon {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

.pkg-card-top {
    margin-bottom: 16px;
}

.pkg-target-chip {
    display: inline-block;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.pkg-name {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.pkg-badge-preview {
    display: flex;
    align-items: center;
}

.pkg-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.pkg-price-amount {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
}

.pkg-duration {
    font-size: 12.5px;
    color: #64748b;
}

.pkg-quotas-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    font-size: 12px;
    color: #334155;
    margin-bottom: 16px;
}

.pkg-quotas-bar span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pkg-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.pkg-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
}

.pkg-features-list li i {
    color: #16a34a;
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}

.pkg-card-footer {
    margin-top: auto;
}


/* Activity-Based Advertiser Level Badges */
.pbadge-new {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.pbadge-active-pub {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.pbadge-top {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
}
