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

:root {
    --primary-color: #0a192f;
    /* Deep Luxurious Navy */
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-hover: #b8860b;
    --text-dark: #111111;
    --text-light: #555555;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0;
    /* For page transition */
    animation: fadeInPage 0.8s var(--transition-smooth) forwards;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 25, 47, 0.2);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 24px;
    left: 4%;
    width: 92%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 18px 0;
    margin-top: 0;
}


.navbar.scrolled {
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


    .navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 4px;
}

.auth-user-pill {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px 16px 4px 4px;
    border-radius: 30px;
    gap: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.auth-user-pill:hover {
    background: #e2e8f0;
}

.auth-user-pill .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-user-pill .user-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.auth-user-pill i {
    color: var(--text-light);
    font-size: 0.8rem;
}

    cursor: pointer;
}

/* Currency Toggle Styles */
#currency-toggle {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    font-weight: 800;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
}

#currency-toggle:hover {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
    color: var(--accent-color);
    transform: translateY(-1px);
}

#currency-toggle i {
    color: var(--accent-color);
    font-size: 1rem;
}

#current-currency-label {
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    #currency-toggle {
        padding: 8px 12px;
        min-width: unset;
    }
    #current-currency-label {
        display: none; /* Hide text on mobile to save space */
    }
    #currency-toggle::after {
        content: attr(data-currency); /* We can use data-currency if we set it in JS */
    }
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}


/* Telegram Style Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 10001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 24px;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
}

.drawer-header .close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

.drawer-header .close-btn:hover {
    opacity: 1;
}

.drawer-user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.drawer-user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
}

.drawer-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.drawer-email {
    font-size: 0.9rem;
    opacity: 0.8;
}

.drawer-links {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.drawer-links a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.2s;
}

.drawer-links a:hover, .drawer-links a.active {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-hover);
}

.drawer-links a i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

.drawer-links a:hover i, .drawer-links a.active i {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center 0;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark only on the right side for Arabic text, completely transparent in the center/left for the villa */
    background: linear-gradient(to left, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.7) 40%, transparent 60%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Cloud Overlay Animation */
.cloud-overlay {
    position: absolute;
    inset: 0;
    /* Softly mask out the center-bottom area (where the villa stands) so clouds appear to go behind it */
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 100%, transparent 40%, rgba(0, 0, 0, 1) 60%);
    mask-image: radial-gradient(ellipse 90% 100% at 50% 100%, transparent 40%, rgba(0, 0, 0, 1) 60%);
    z-index: 3;
    /* Above hero-overlay (2) */
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    filter: brightness(1.6) contrast(1.1);
}

.cloud-1 {
    top: 10%;
    left: -40%;
    width: 60vw;
    min-width: 900px;
    max-width: 1600px;
    opacity: 0.9;
}

.cloud-2 {
    top: 20%;
    right: -45%;
    width: 65vw;
    min-width: 900px;
    max-width: 1700px;
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    color: var(--bg-white);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideUp 1s 0.2s var(--transition-smooth) forwards;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.25;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 48px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Search Bar (Hero) */
.hero-search {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s 0.6s var(--transition-smooth) forwards;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.search-input input,
.search-input select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    outline: none;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.search-input input:focus,
.search-input select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.hero-search .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Sections General */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 20px auto 0;
    font-weight: 500;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px dashed var(--border-color);
    margin: 40px auto;
    max-width: 600px;
}

.no-results .icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Property Cards Redesign */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Properties Page Grid — 3 col desktop / 2 col mobile */
.properties-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1100px) {
    .property-grid,
    .properties-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .property-grid,
    .properties-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* Scale down card internals for 2-col mobile */
    .property-content {
        padding: 14px 12px;
        gap: 8px;
    }
    .property-price {
        font-size: 1.1rem;
    }
    .property-title {
        font-size: 0.95rem;
    }
    .property-location {
        font-size: 0.8rem;
    }
    .property-features {
        gap: 8px;
        padding: 10px 0;
    }
    .feature {
        font-size: 0.75rem;
    }
    .property-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .publisher-avatar {
        width: 28px;
        height: 28px;
    }
    .publisher-name {
        font-size: 0.78rem;
    }
    .prop-stats {
        font-size: 0.75rem;
        gap: 8px;
    }
    .btn-view-details {
        padding: 9px 0;
        font-size: 0.85rem;
        margin-top: 10px;
    }
    .property-type-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.property-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.amenities-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
}

.amenity-tag {
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.property-card:hover .amenity-tag {
    transform: scale(1.1);
    background: var(--primary-color);
}

.property-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-type-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    height: 1.4em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.property-location {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.property-features {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.feature i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Type badge on image */
.property-type-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.promo-vip    { background: linear-gradient(135deg, #d4af37, #b48600) !important; color: white !important; }
.promo-premium{ background: #f59e0b !important; color: white !important; }

/* Footer row: publisher + stats */
.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.publisher-info-block {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.publisher-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.publisher-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publisher-office {
    font-size: 0.75rem;
    color: var(--text-light);
}

.prop-stats {
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.prop-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* View Details Button */
.btn-view-details {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 0;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 14px;
    transition: background 0.25s, transform 0.2s;
    cursor: pointer;
}

.btn-view-details:hover {
    background: #1e3a5f;
    transform: translateY(-1px);
}


/* ==========================================================
   Property Card (pc-card) — Responsive 3-col → 2-col
   ========================================================== */

.pc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.pc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: var(--accent-color);
}

/* ---- Image ---- */
.pc-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}
.pc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.pc-card:hover .pc-image img { transform: scale(1.07); }

/* Type badge — top right */
.pc-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Promo badges — top left */
.pc-promo {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pc-promo-vip     { background: linear-gradient(135deg,#d4af37,#b48600); color:#fff; }
.pc-promo-premium { background: #f59e0b; color:#fff; }

/* ---- Body ---- */
.pc-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pc-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.2;
}

.pc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.pc-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-location i { color: var(--accent-color); flex-shrink: 0; }

/* Specs row */
.pc-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
}
.pc-spec {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}
.pc-spec i { color: var(--accent-color); font-size: 0.85rem; }

/* Footer: publisher + stats */
.pc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.pc-publisher {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
}
.pc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
    flex-shrink: 0;
}
.pc-pub-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-verified {
    color: #3b82f6;
    font-size: 0.75rem;
    margin-right: 2px;
}

.pc-stats {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.pc-stats .reaction-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
    z-index: 100;
}
.pc-stats .reaction-btn:hover {
    background: #f1f5f9;
    color: #64748b;
    border-color: #cbd5e1;
}
.pc-stats .reaction-btn.liked {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}
.pc-stats .reaction-btn.liked i {
    color: #ef4444;
}
.pc-stats .reaction-btn.saved {
    color: var(--primary-color);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}
.pc-stats .reaction-btn .count {
    font-weight: 700;
    font-size: 0.75rem;
}

/* Details button */
.pc-btn {
    display: block;
    text-align: center;
    padding: 10px 0;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 6px;
    transition: background 0.2s, transform 0.15s;
}

/* Property Details Actions */
.pd-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.main-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-action-btn:hover {
    border-color: var(--primary-color);
    background: #fdfcf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.main-action-btn i {
    font-size: 1.2rem;
}

.main-action-btn.liked {
    background: #fff1f2;
    border-color: #fda4af;
    color: #e11d48;
}

.main-action-btn.liked i {
    color: #e11d48;
}

.main-action-btn.saved {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
}

.main-action-btn.saved i {
    color: #b45309;
}

.main-action-btn .count {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.main-action-btn.liked .count {
    background: #fb7185;
    color: #fff;
}
.pc-btn:hover {
    background: #1e3a5f;
    transform: translateY(-1px);
}

/* ---- Mobile: 2-col compact ---- */
@media (max-width: 600px) {
    .pc-body         { padding: 11px 10px; gap: 6px; }
    .pc-price        { font-size: 1rem; }
    .pc-title        { font-size: 0.82rem; -webkit-line-clamp: 2; }
    .pc-location     { font-size: 0.72rem; }
    .pc-specs        { gap: 6px; padding: 6px 0; }
    .pc-spec         { font-size: 0.7rem; }
    .pc-footer       { flex-direction: column; align-items: flex-start; gap: 5px; }
    .pc-pub-name     { font-size: 0.7rem; }
    .pc-stats        { gap: 3px; }
    .pc-stats .reaction-btn { padding: 4px 7px; font-size: 0.7rem; }
    .pc-avatar       { width: 22px; height: 22px; }
    .pc-btn          { padding: 8px 0; font-size: 0.8rem; border-radius: 8px; margin-top: 4px; }
    .pc-type-badge   { font-size: 0.65rem; padding: 3px 8px; }
}

/* Details Page Enhancements */

.property-details-container {
    padding-top: 140px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 60px;
}

.gallery-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    background: #000;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb {
    width: 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.gallery-thumb.active {
    opacity: 1;
    border: 2px solid var(--accent-color);
}

.details-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.price-tag {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #f8fafc;
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 35px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.spec-item i {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.spec-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.spec-item label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.description-section {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-light);
}

.feature-item i {
    color: var(--accent-color);
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publisher-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.pub-profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-color);
}

.pub-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pub-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
    .info-header {
        flex-direction: column;
        gap: 15px;
    }
}

/* Filters (Properties Page) */
.filters-bar {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    border: 1px solid var(--border-color);
}

/* Details Content */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    margin-bottom: 50px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-main {
    grid-row: 1 / -1;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.gallery-img:hover {
    opacity: 0.85;
}

.details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.main-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sidebar-info {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.contact-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.features-list {
    margin-top: 40px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 120px;
}

.contact-form {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    transition: all var(--transition-fast);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.contact-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 30px;
    transition: transform var(--transition-fast);
}

.info-block:hover {
    transform: translateX(-10px);
}

.info-block i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 100px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 80px;
}

.footer h3 {
    color: var(--bg-white);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.footer-links li {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {

    .details-content,
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 350px 200px 200px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Sticky Mobile Footer */
    .mobile-sticky-actions {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 12px 16px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 9999;
        gap: 12px;
        border-top: 1px solid var(--border-color);
        justify-content: space-between;
    }
    
    /* Ensure body doesn't hide behind footer */
    body.has-sticky-footer {
        padding-bottom: 80px;
    }
    
    .mobile-sticky-actions .btn {
        flex: 1;
        font-size: 1.1rem;
        padding: 12px;
        border-radius: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar {
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 0;
        border-radius: 0;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    
    .navbar-brand {
        font-size: 1.4rem;
    }

    .nav-icons {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }

    

    

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-lg);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path var(--transition-smooth);
        gap: 24px;
        z-index: 100;
    }
    
    .navbar.scrolled .nav-links {
        top: 100%;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Mobile Menu Button - Global Styles */
.mobile-menu-btn {
    display: none; /* Hidden on Desktop */
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
    outline: none;
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* Publisher Info Block */
.publisher-info-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-top: 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.publisher-info-block:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.publisher-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.publisher-details {
    display: flex;
    flex-direction: column;
}

.publisher-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.publisher-office {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Likes System */
.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    transition: all 0.2s ease;
}

.reaction-btn:hover {
    background: #f3f4f6;
}

.reaction-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.reaction-btn.liked i {
    animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Publisher Profile Hero */
.publisher-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #172a45 100%);
    padding: 120px 0 60px;
    color: white;
    text-align: center;
}

.publisher-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    margin: 0 auto 20px;
    display: block;
}

.publisher-hero-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.publisher-hero-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.publisher-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.publisher-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Notifications UI (Premium) */
.notifications-wrapper {
    position: relative;
}
.notifications-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    padding: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}
.notifications-btn:hover,
.notifications-btn.has-unread {
    color: var(--accent-color);
    transform: scale(1.1);
}
.unread-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.notifications-drawer {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    width: 380px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}
.notifications-drawer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notifications-drawer::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-white);
    transform: rotate(45deg);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}
.drawer-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}
.btn-text:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}
.btn-text[id="clear-all-notifs"]:hover {
    color: #dc2626 !important;
}
.notifications-list {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.notifications-list::-webkit-scrollbar {
    width: 6px;
}
.notifications-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s ease;
    position: relative;
    text-align: right;
}
.notification-item:hover {
    background: #f8fafc;
}
.notification-item.unread {
    background: rgba(212, 175, 55, 0.04);
}
.notif-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.notif-icon.admin {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    color: white;
}
.notif-icon.like {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}
.notif-content {
    flex-grow: 1;
    padding-top: 4px;
}
.notif-message {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.5;
    color: var(--primary-color);
}
.notif-time {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.unread-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 24px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

@media (max-width: 768px) {
    .notifications-drawer {
        width: 100%;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    }
    .notifications-drawer.active {
        transform: translateY(0);
    }
    .notifications-drawer::before {
        display: none;
    }
}

/* --- Properties Page Advanced UI --- */
.adv-toggle-btn {
    background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color);
    padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
}
.adv-toggle-btn:hover { background: var(--primary-color); color: white; }

.advanced-filters-container {
    background: white; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-md); margin-bottom: 32px;
}

.adv-filters-smooth {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 24px !important;
    margin-bottom: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.adv-filters-smooth.open {
    max-height: 1000px;
    opacity: 1;
    padding: 24px !important;
    margin-bottom: 24px !important;
    visibility: visible;
}

.adv-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.adv-section {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.adv-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.adv-section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.adv-filter-group { display: flex; flex-direction: column; gap: 8px; }
.adv-filter-group label { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); }
.adv-filter-group select, .adv-filter-group input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 8px;
    background: white; font-family: inherit; font-size: 0.95rem; color: var(--text-dark); transition: border-color 0.2s;
}
.adv-filter-group select:focus, .adv-filter-group input:focus {
    outline: none; border-color: var(--accent-color);
}
.adv-range-inputs { display: flex; gap: 10px; align-items: center; }

.adv-actions {
    grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px;
    padding-top: 20px; border-top: 1px solid #f1f5f9;
}

.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; margin-bottom: 24px; }
.chip {
    background: white; border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm);
}
.chip i { color: #ef4444; cursor: pointer; transition: transform 0.2s; }
.chip i:hover { transform: scale(1.2); }

/* Horizontal Property Card (List View) */
.property-list-view {
    display: flex !important; flex-direction: column !important; gap: 24px !important;
}
.property-list-view .property-card {
    display: flex; flex-direction: row; height: 260px;
}
.property-list-view .property-image {
    width: 320px; height: 100%; flex-shrink: 0;
}
.property-list-view .property-content {
    flex: 1; display: flex; flex-direction: column; padding: 20px;
}
.property-list-view .property-features {
    margin-bottom: auto; /* push publisher and reactions to the bottom */
}
@media (max-width: 768px) {
    .property-list-view .property-card {
        flex-direction: column; height: auto;
    }
    .property-list-view .property-image {
        width: 100%; height: 220px;
    }
    .adv-sections-grid { grid-template-columns: 1fr; }
    .adv-section-content { grid-template-columns: 1fr; }
    .adv-actions { flex-direction: column; align-items: flex-start !important; }
    .adv-actions > div { margin-bottom: 12px; width: 100%; justify-content: space-between; }
}

/* Fallback Recommendations */
.recommendation-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(245, 158, 11, 0.1); color: #d97706;
    padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700;
    margin-bottom: 12px; border: 1px solid rgba(245, 158, 11, 0.2);
    width: fit-content;
}
.recommendation-header {
    margin-top: 40px; margin-bottom: 24px; padding-top: 32px;
    border-top: 1px solid var(--border-color); text-align: right;
}
.recommendation-header h3 {
    color: var(--primary-color); font-size: 1.3rem; margin-bottom: 8px;
}
.recommendation-message {
    background: white; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 24px; text-align: center; margin-bottom: 32px; box-shadow: var(--shadow-sm);
}
.recommendation-message i { font-size: 2rem; color: #f59e0b; margin-bottom: 12px; }
.recommendation-message h4 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 8px; }
.recommendation-message p { color: var(--text-light); }

/* Desktop overrides for sticky footer */
.mobile-sticky-actions {
    display: none;
}

/* Wizard Styles */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    color: var(--text-light);
    transition: all 0.3s;
}
.wizard-step.active {
    color: var(--primary-color);
}
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
}
.wizard-step.active .step-circle {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}
.wizard-step.completed .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}
.step-label {
    font-size: 0.9rem;
    font-weight: 600;
}
.wizard-line {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    margin: 0 10px;
    margin-top: -24px;
    border-radius: 2px;
    z-index: 1;
    transition: background 0.3s;
}
.wizard-line.active {
    background: var(--primary-color);
}
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Share Modal Styles */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.share-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.share-modal {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.share-modal-overlay.active .share-modal {
    transform: translateY(0);
}
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.share-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}
.share-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}
.share-modal-close:hover {
    color: var(--danger-color);
}
.share-option {
    margin-bottom: 24px;
}
.share-option label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.share-link-wrapper {
    display: flex;
    gap: 8px;
}
.share-link-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
    color: var(--text-dark);
}
.share-copy-btn {
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.share-copy-btn:hover {
    background: #e5b300;
}
.share-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.share-send-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.share-send-btn:hover {
    background: #2563eb;
}
.share-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}
.share-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border-color);
    z-index: 1;
}
.share-divider span {
    background: white;
    padding: 0 16px;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* ------------------------------------------- */
/* Mobile Bottom Navigation Bar */
/* ------------------------------------------- */
.mobile-bottom-nav {
    display: none;
}

/* ================================================
   Mobile Glass Header — hidden on desktop
   ================================================ */
.mobile-glass-header {
    display: none; /* hidden on desktop by default */
}

@media (max-width: 768px) {
    /* Glass header */
    .mobile-glass-header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        z-index: 5000;
        background: rgba(0, 0, 0, 0.60);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(0);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-glass-header--hidden {
        transform: translateY(-100%);
    }

    .mobile-glass-header__logo {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        gap: 6px;
    }

    .mobile-glass-header__logo strong {
        color: #d4af37;
        font-weight: 900;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for the bottom nav */
        /* No padding-top — glass header is fixed and overlays content */
    }

    /* Hide header/navbar completely on mobile */
    .navbar,
    nav.navbar,
    header.site-header,
    .mobile-header-old {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        padding-bottom: env(safe-area-inset-bottom, 8px); /* For iOS Safe Area */
        transition: transform 0.3s ease;
        will-change: transform;
    }

    .mobile-bottom-nav.hide-nav {
        transform: translateY(100%);
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-light);
        font-size: 0.75rem;
        gap: 4px;
        transition: color 0.2s;
        width: 20%;
    }
    
    .bottom-nav-item i {
        font-size: 1.25rem;
    }
    
    .bottom-nav-item.active {
        color: var(--primary-color);
        font-weight: 700;
    }
    
    .bottom-nav-item.add-btn {
        position: relative;
        top: -15px;
    }
    
    .add-icon-wrapper {
        background: var(--primary-color);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
        margin-bottom: 2px;
        border: 4px solid #f8fafc;
    }
    
    .bottom-nav-item.add-btn.active .add-icon-wrapper {
        background: var(--text-dark);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* Hide header notifications on mobile to prevent duplication with bottom nav */
    .notifications-wrapper {
        display: none !important;
    }

    /* Hide header account pill on mobile — moved into bottom nav */
    .user-dropdown,
    .auth-actions-wrapper .user-dropdown {
        display: none !important;
    }

    /* Show login button in header only when NOT showing user (logged out state) */
    .auth-actions-wrapper a.btn.btn-outline {
        display: none !important;
    }
}

/* ================================================
   Mobile Bottom Nav — Dark Theme (Refined)
   Scoped strictly to .mobile-bottom-nav
   ================================================ */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        background: #000000 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22);
    }

    /* Inactive items — soft gray */
    .mobile-bottom-nav .bottom-nav-item,
    .mobile-bottom-nav .bottom-nav-item span,
    .mobile-bottom-nav .bottom-nav-item i,
    .mobile-bottom-nav .bottom-nav-account,
    .mobile-bottom-nav .bottom-nav-account-trigger,
    .mobile-bottom-nav .bottom-nav-account-trigger span,
    .mobile-bottom-nav .bottom-nav-account-trigger i {
        color: rgba(255, 255, 255, 0.50) !important;
    }

    /* Active item — clear bright white */
    .mobile-bottom-nav .bottom-nav-item.active,
    .mobile-bottom-nav .bottom-nav-item.active span,
    .mobile-bottom-nav .bottom-nav-item.active i,
    .mobile-bottom-nav .bottom-nav-account.active,
    .mobile-bottom-nav .bottom-nav-account.active .bottom-nav-account-trigger,
    .mobile-bottom-nav .bottom-nav-account.active .bottom-nav-account-trigger span,
    .mobile-bottom-nav .bottom-nav-account.active .bottom-nav-account-trigger i {
        color: #ffffff !important;
    }

    /* Add button — calm gold, no strong glow */
    .mobile-bottom-nav .bottom-nav-item.add-btn .add-icon-wrapper {
        background: #d4af37;
        box-shadow: 0 3px 10px rgba(212, 175, 55, 0.22);
    }

    .mobile-bottom-nav .bottom-nav-item.add-btn i {
        color: #ffffff !important;
    }
}


/* ================================================
   Mobile Bottom Nav — Account Dropdown
   Scoped ONLY to .mobile-bottom-nav (mobile-only)
   ================================================ */

/* Wrapper acts as the 5th nav item */
.bottom-nav-account {
    position: static;  /* let the dropdown use fixed positioning on its own */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    overflow: visible; /* never clip the dropdown */
}

/* Trigger: avatar + name + chevron */
.bottom-nav-account-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    padding: 4px 0;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
}

.bottom-nav-account-trigger .bnav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color, #d4af37);
    display: block;
}

.bottom-nav-account-trigger .bnav-name {
    font-size: 0.68rem;
    font-weight: 600;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.bottom-nav-account-trigger .bnav-chevron {
    font-size: 0.5rem;
    opacity: 0.6;
    transition: transform 0.25s ease;
}

/* Rotate chevron when dropdown is open */
.bottom-nav-account-dropdown.open ~ .bottom-nav-account-trigger .bnav-chevron,
.bottom-nav-account-trigger[aria-expanded="true"] .bnav-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel — fixed to viewport, always fully visible */
.bottom-nav-account-dropdown {
    position: fixed;
    bottom: 72px;        /* sits just above the bottom nav bar */
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 360px;
    margin: 0 auto;      /* centre on wide-ish phones */
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 10000;
    direction: rtl;
    text-align: right;
}

.bottom-nav-account-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Dropdown header with full name + email */
.bnav-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.bnav-dd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color, #d4af37);
    flex-shrink: 0;
}

.bnav-dd-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.bnav-dd-email {
    font-size: 0.72rem;
    color: #64748b;
    direction: ltr;
    unicode-bidi: plaintext;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

/* Divider */
.bnav-dropdown-divider {
    height: 1px;
    background: #e8ecf0;
    margin: 2px 0;
}

/* Each menu item */
.bnav-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}

.bnav-dd-item:hover,
.bnav-dd-item:active {
    background: #f1f5f9;
}

.bnav-dd-item i {
    width: 18px;
    text-align: center;
    color: var(--accent-color, #d4af37);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Accent item (admin) */
.bnav-dd-accent {
    color: var(--accent-color, #d4af37);
    font-weight: 800;
}

.bnav-dd-accent i {
    color: var(--accent-color, #d4af37);
}

/* Logout button */
.bnav-dd-logout {
    color: #ef4444 !important;
}

.bnav-dd-logout i {
    color: #ef4444 !important;
}

/* Floating Contact Bar (Mobile Only) */
.floating-contact-bar {
    display: none;
}

@media (max-width: 768px) {
    .floating-contact-bar {
        display: flex;
        position: fixed;
        bottom: 70px; /* Above the bottom nav bar */
        left: 0;
        width: 100%;
        background: white;
        padding: 12px 16px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 12px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }
    .floating-contact-bar .btn {
        flex: 1;
        text-align: center;
        padding: 12px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.2s;
}
.lightbox-close:hover {
    color: var(--accent-color);
}
.lightbox-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    user-select: none;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: 0.3s;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-counter {
    position: absolute;
    bottom: -40px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* ------------------------------------------- */
/* Property Details Page Redesign */
/* ------------------------------------------- */
.property-details-page {
  direction: rtl;
}

.property-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 360px;
  gap: 28px;
  align-items: start;
}

.property-main-gallery,
.property-main-info,
.property-publisher-card,
.property-description-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.property-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}

.property-side-column {
  position: sticky;
  top: 120px;
}

@media (max-width: 768px) {

  .property-details-grid {
    grid-template-columns: 1fr;
  }

  .property-side-column {
    position: static;
  }
}

