/* ==========================================
   Amine Immobilier - Luxury Imperial Styles
   ========================================== */

/* --- CSS Custom Properties (Luxury Palette) --- */
:root {
    --gold: #C5A467;
    --gold-light: #D4B97A;
    --gold-dark: #A8894E;
    --gold-muted: rgba(197, 164, 103, 0.15);
    --burgundy: #6B1D2A;
    --burgundy-light: #8B2E3D;
    --burgundy-muted: rgba(107, 29, 42, 0.15);
    --teal-dark: #1A3A3A;
    --teal-deeper: #0F2828;
    --black: #0A0A0A;
    --off-black: #141414;
    --charcoal: #1C1C1E;
    --white: #FAFAFA;
    --off-white: #F0EDE8;
    --cream: #F5F0E8;
}

/* --- Base & Transitions --- */

* {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background-color: rgba(197, 164, 103, 0.25);
    color: #0A0A0A;
}

.dark ::selection {
    background-color: rgba(197, 164, 103, 0.3);
    color: #F0EDE8;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(197, 164, 103, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 164, 103, 0.5);
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes counter {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes goldShine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.animate-ken-burns {
    animation: kenBurns 20s linear infinite alternate;
}

/* Hero Slider Enhancements */
.hero-swiper .swiper-slide-active .animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0, 0.2, 1) both;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--gold);
    width: 30px;
    border-radius: 5px;
}

/* Hero Navigation Arrows */
.hero-prev,
.hero-next {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
    opacity: 1;
    box-shadow: 0 8px 25px rgba(197, 164, 103, 0.35);
}

@media (max-width: 640px) {

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }
}

/* Hero Title Clarity */
.hero-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Stagger children animations */
.stagger-children>* {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-children>*:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 0.6s;
}

.stagger-children>*:nth-child(7) {
    animation-delay: 0.7s;
}

.stagger-children>*:nth-child(8) {
    animation-delay: 0.8s;
}

.stagger-children>*:nth-child(9) {
    animation-delay: 0.9s;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}



.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

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

/* --- Property Card --- */
.property-card {
    will-change: transform, box-shadow;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Scrollbar hide utility (alias) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================ */
/* LIQUID GLASS & EFFECTS */
/* ============================================ */
.liquid-glass {
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(197, 164, 103, 0.15);
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(197, 164, 103, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.35);
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.dark .glass-nav {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(197, 164, 103, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.glass-pill {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 9999px;
    border: 1px solid rgba(197, 164, 103, 0.15);
}

.dark .glass-pill {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(197, 164, 103, 0.15);
}


@media (max-width: 1024px) {
    .glass-nav {
        border-radius: 1.5rem;
        padding: 1rem;
    }
}

.pill-indicator {
    position: absolute;
    background: rgba(197, 164, 103, 0.25);
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .pill-indicator {
    background: rgba(197, 164, 103, 0.15);
}

/* --- Search Section Glassmorphism --- */
.search-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .search-glass {
    background: rgba(10, 10, 10, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

/* --- Counter Animation --- */
.counter-value {
    animation: counter 0.5s ease-out forwards;
}

/* --- Gallery Slider Styles --- */
.gallery-thumb-active {
    border-color: var(--gold) !important;
    opacity: 1 !important;
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(197, 164, 103, 0.2), transparent);
}

/* --- Placeholder Shimmer --- */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .shimmer {
    background: linear-gradient(90deg, #1C1C1E 25%, #2C2C2E 50%, #1C1C1E 75%);
    background-size: 200% 100%;
}

/* --- Swiper Customization --- */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(197, 164, 103, 0.3);
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--gold);
    width: 28px;
    border-radius: 4px;
}

.swiper-button-prev,
.swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--gold);
    box-shadow: 0 4px 20px rgba(197, 164, 103, 0.3);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px !important;
    font-weight: bold;
    color: #0A0A0A;
    transition: color 0.3s;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    color: white;
}

.dark .swiper-button-prev,
.dark .swiper-button-next {
    background: rgba(28, 28, 30, 0.9);
    border: 1px solid rgba(197, 164, 103, 0.15);
}

.dark .swiper-button-prev::after,
.dark .swiper-button-next::after {
    color: var(--off-white);
}

/* --- Filter Slider (range input) --- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--gold), var(--gold));
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(197, 164, 103, 0.3);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ============================================ */
/* WHY CHOOSE US - Fixed Background Section     */
/* ============================================ */
.why-choose-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.85) 50%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.why-choose-section>* {
    position: relative;
    z-index: 2;
}

/* ============================================ */
/* CTA SECTION - Faded Property Image           */
/* ============================================ */
.cta-section {
    position: relative;
    background: #000000 !important;
    /* Pitch black */
    overflow: hidden;
}

.cta-property-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    /* Take up more of the right side */
    height: 100% !important;
    /* Absolute full height */
    object-fit: cover !important;
    opacity: 0.8;
    /* Keep it visible and vibrant */
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ============================================ */
/* LUXURY GOLD UTILITIES                         */
/* ============================================ */
.text-gold {
    color: var(--gold);
}

.bg-gold {
    background-color: var(--gold);
}

.border-gold {
    border-color: var(--gold);
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-shine-text {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 4s linear infinite;
}

/* --- Admin Sidebar --- */
.admin-sidebar {
    transition: transform 0.3s ease, width 0.3s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }

    .hero-bg {
        background-attachment: scroll;
    }

    .why-choose-section {
        background-attachment: scroll;
    }

    .cta-property-image {
        width: 100%;
        right: 0;
        opacity: 0.15;
        mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 100%);
        -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 100%);
    }
}

/* --- Print Styles (Luxury Brochure) --- */
@media print {

    /* Hide non-content elements */
    nav,
    footer,
    .whatsapp-float,
    aside,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination,
    section.pb-4,
    #video-tour,
    #virtual-tour,
    .section-divider,
    button,
    form {
        display: none !important;
    }

    /* Reset layout for print */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .max-w-7xl {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Force background colors and images */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Property Detail Layout */
    .lg\:flex {
        display: block !important;
    }

    /* Ensure specific grid layouts for features */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    /* Gallery - Show only the first few images if possible, or just the main one */
    .swiper-slide:not(:first-child) {
        display: none !important;
    }

    .rounded-2xl {
        border-radius: 5px !important;
    }

    /* Professional Header for Print */
    .print-header {
        display: block !important;
        border-bottom: 2px solid #C5A467;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }

    /* Gold Accents keep their color */
    .text-gold,
    .text-gold-dark,
    .gold-gradient-text {
        color: #A8894E !important;
        -webkit-text-fill-color: #A8894E !important;
    }

    .bg-black {
        background-color: #1a1a1a !important;
        color: white !important;
    }
}

/* ============================================ */
/* SELL PAGE - TIMELINE INTERACTION             */
/* ============================================ */

/* Background Mask */
.sell-bg-mask {
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.94) 0%, rgba(250, 250, 250, 0.98) 50%, rgba(250, 250, 250, 1) 100%);
    position: absolute;
    inset: 0;
    z-index: 1;
}

.dark .sell-bg-mask {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.98) 50%, rgba(10, 10, 10, 1) 100%);
}

/* Branded Gold & Split Layout Styles (Home Redesign) */
:root {
    --lime-gold: #c5a467;
    --lime-gold-dark: #a6894f;
}

.bg-lime-gold {
    background-color: var(--lime-gold);
}

.text-lime-gold {
    color: var(--lime-gold);
}

.floating-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--lime-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(150%) scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    box-shadow: 0 8px 25px rgba(197, 164, 103, 0.4);
}

.property-card-horizontal:hover .floating-arrow {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Clean Featured Section Rebuild (RHOS) will be appended below */

/* The Grand Masking Effect */
.split-mask-left {
    position: relative;
    z-index: 30;
}

/* Ensure the text and buttons stay on top of the mask */
.split-mask-content {
    position: relative;
    z-index: 20;
}

/* Masking element that covers swiper overflow from the right - LG ONLY */
@media (min-width: 1024px) {
    .split-mask-left::before {
        content: '';
        position: absolute;
        top: -500px;
        bottom: -500px;
        right: 0;
        width: 200vw;
        background: #F9FAFB;
        /* gray-50 fallback */
        z-index: 10;
        pointer-events: none;
    }

    .dark .split-mask-left::before {
        background: #0A0A0A;
        /* Same as dark-bg */
    }
}

/* Destinations Coverflow Effect */
.destinations-swiper-container {
    padding: 20px 0 40px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.destinations-swiper .swiper-slide {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* ==========================================
   View Toggle Bar
   ========================================== */
.view-toggle-btn {
    color: #6B7280;
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, #8B7355, #6B1D2A);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

/* ==========================================
   Map View Styles
   ========================================== */
#properties-map {
    z-index: 1;
}

/* Custom Leaflet popup */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 260px !important;
}

.leaflet-popup-tip {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.map-popup {
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.map-popup img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.map-popup-content {
    padding: 12px 16px;
}

.map-popup-title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.3;
}

.map-popup-location {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 8px;
}

.map-popup-price {
    font-weight: 800;
    font-size: 15px;
    color: #8B7355;
}

.map-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #8B7355;
    text-decoration: none;
    margin-top: 8px;
}

.map-popup-link:hover {
    color: #6B1D2A;
}

/* Map card highlight on hover */
.map-property-card.highlighted {
    border-color: #8B7355 !important;
    box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.3), 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: scale(1.02);
}

/* Custom map pin marker */
.property-marker-wrapper {
    background: none !important;
    border: none !important;
}

.property-pin {
    width: 30px;
    height: 42px;
    position: relative;
    cursor: pointer;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.property-pin svg {
    width: 100%;
    height: 100%;
}

.property-pin:hover,
.property-pin.active {
    transform: scale(1.3) translateY(-4px);
    filter: drop-shadow(0 6px 12px rgba(139, 115, 85, 0.5));
    z-index: 1000 !important;
}

/* Dark mode map overrides */
.dark .leaflet-popup-content-wrapper {
    background: #141414 !important;
}

.dark .leaflet-popup-tip {
    background: #141414 !important;
}

.dark .map-popup-title {
    color: #F0EDE8;
}

.dark .map-popup-location {
    color: #9CA3AF;
}

/* Timeline Components */
.timeline-pillar {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(197, 164, 103, 0.1);
    transform: translateX(-50%);
    overflow: hidden;
    /* Contains the filling progress bar */
}

.timeline-card {
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple-style ease-out */
    opacity: 0.35;
    transform: translateY(30px) scale(0.98);
    filter: blur(1px);
}

/* Highlight effect on reveal */
.timeline-active .timeline-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #FAFAFA;
    border: 3px solid var(--gold);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.5s ease;
}

.dark .timeline-dot {
    background: #0A0A0A;
}

.timeline-active .timeline-dot {
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold-dark);
    transform: translate(-50%, -50%) scale(1.4);
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .timeline-pillar {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content-left,
    .timeline-content-right {
        margin-left: 50px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
}

/* ============================================================
   FEATURED & LATEST SECTIONS — Clean rebuild, mobile-first, zero bugs
   ============================================================ */

/* Section */
.featured-section,
.latest-section {
    padding: 5rem 0 6rem;
    background: #F9FAFB;
}

.dark .featured-section,
.dark .latest-section {
    background: var(--dark-bg, #0a0a0a);
}

/* Inner container: stacked on mobile, side-by-side on lg */
.featured-inner,
.latest-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {

    .featured-section,
    .latest-section {
        padding: 8rem 0 10rem;
    }

    .featured-inner,
    .latest-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
        padding: 0 2rem;
    }
}

/* ── LEFT BRAND COLUMN ── */
.featured-brand,
.latest-brand {
    width: 100%;
    position: relative;
    z-index: 10;
    /* Keep content above mask */
}

@media (max-width: 1023px) {

    html[lang="ar"] .featured-brand,
    html[lang="ar"] .latest-brand {
        text-align: right;
        direction: rtl;
    }
}

@media (min-width: 1024px) {

    .featured-brand,
    .latest-brand {
        width: 340px;
        flex-shrink: 0;
        /* Stick while swiper scrolls on desktop */
        position: sticky;
        top: 8rem;
    }

    /* Infinite Masking Effect: Cards slide UNDER the brand column */
    .featured-brand::after,
    .latest-brand::after {
        content: "";
        position: absolute;
        top: -8rem;
        /* Match section padding-top */
        bottom: -10rem;
        /* Match section padding-bottom */
        /* Use logical properties or handle RTL */
        left: -999px;
        right: 0;
        background: #F9FAFB;
        z-index: -1;
        pointer-events: none;
    }

    [dir="rtl"] .featured-brand::after,
    [dir="rtl"] .latest-brand::after {
        left: 0;
        right: -999px;
    }

    .dark .featured-brand::after,
    .dark .latest-brand::after {
        background: #0a0a0a;
    }
}

.featured-badge,
.latest-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(197, 164, 103, 0.1);
    border: 1px solid rgba(197, 164, 103, 0.25);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #a6894f;
    margin-bottom: 1.25rem;
}

.dark .featured-badge,
.dark .latest-badge {
    color: #c5a467;
}

.featured-badge-dot,
.latest-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a6894f;
    display: inline-block;
}

.dark .featured-badge-dot,
.dark .latest-badge-dot {
    background: #c5a467;
}

.featured-heading,
.latest-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 1rem;
    /* Prevent text from overflowing its column */
    overflow-wrap: break-word;
    word-break: break-word;
}

.dark .featured-heading,
.dark .latest-heading {
    color: #fff;
}

.featured-heading-gold,
.latest-heading-gold {
    background: linear-gradient(135deg, #c5a467, #a6894f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-desc,
.latest-desc {
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    max-width: 320px;
}

.dark .featured-desc,
.dark .latest-desc {
    color: #9CA3AF;
}

.featured-ctas,
.latest-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.featured-btn,
.latest-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.featured-btn:hover,
.latest-btn:hover {
    transform: translateY(-2px);
}

.featured-btn--gold,
.latest-btn--gold {
    background: #c5a467;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(197, 164, 103, .35);
}

.featured-btn--gold:hover,
.latest-btn--gold:hover {
    background: #a6894f;
}

.featured-btn--white,
.latest-btn--white {
    background: #fff;
    color: #111827 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.dark .featured-btn--white,
.dark .latest-btn--white {
    background: #1a1a1a;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .1);
}

.featured-btn--white {
    background: #fff;
    color: #111827 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.dark .featured-btn--white {
    background: #1a1a1a;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .1);
}


/* ── RIGHT SLIDER COLUMN ── */
.featured-slider-wrap,
.latest-slider-wrap {
    width: 100%;
    /* Clip the swiper to the column — never the page */
    overflow: hidden;
}

@media (min-width: 1024px) {

    .featured-slider-wrap,
    .latest-slider-wrap {
        flex: 1;
        min-width: 0;
        /* critical: prevents flex blowout */
        overflow: visible;
        /* let peek show on desktop */
    }
}

/* Swiper container */
.featured-swiper,
.latest-swiper {
    overflow: visible !important;
    width: 100%;
}

.featured-swiper .swiper-wrapper,
.latest-swiper .swiper-wrapper {
    align-items: stretch;
}

.featured-swiper .swiper-slide,
.latest-swiper .swiper-slide {
    height: auto !important;
    box-sizing: border-box;
}

/* Nav buttons */
.featured-nav,
.latest-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

@media (min-width: 1024px) {

    .featured-nav,
    .latest-nav {
        justify-content: flex-start;
    }
}

.fnav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 13px;
}

.dark .fnav-btn {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, .1);
    color: #6B7280;
}

.fnav-btn:hover {
    color: #111827;
    border-color: #D1D5DB;
}

.dark .fnav-btn:hover {
    color: #fff;
}


/* ── PROPERTY CARD ── */
.fcard {
    background: #fff;
    border-radius: 2rem;
    border: 1px solid #F3F4F6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .3s;
}

.dark .fcard {
    background: var(--dark-card, #141414);
    border-color: rgba(255, 255, 255, .05);
}

.fcard:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

/* Card image */
.fcard-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    /* FIXED — never collapses */
    flex-shrink: 0;
    background: #E5E7EB;
    /* skeleton color while loading */
    overflow: hidden;
}

.dark .fcard-img-wrap {
    background: #222;
}

.fcard-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.fcard-img-link--error {
    background: #D1D5DB;
}

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

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

/* Status badge */
.fcard-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 10;
}

/* Arrow */
.fcard-arrow {
    position: absolute;
    bottom: 14px;
    inset-inline-end: 14px;
    width: 44px;
    height: 44px;
    background: var(--gold, #c5a467);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-decoration: none;
    transition: background .2s, transform .2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.fcard-arrow:hover {
    background: #111;
    transform: translateY(-2px);
}

.fcard-arrow-icon {
    color: #fff;
    font-size: 16px;
    transform: rotate(-45deg);
}

[dir="rtl"] .fcard-arrow-icon {
    transform: scaleX(-1) rotate(-45deg);
}

.fcard-arrow:hover .fcard-arrow-icon {
    color: var(--gold, #c5a467);
}

/* Card body */
.fcard-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fcard-meta {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1rem;
}

.fcard-icon {
    flex-shrink: 0;
    font-size: 1.75rem;
    color: rgba(197, 164, 103, .35);
    margin-top: 2px;
    transition: color .2s;
}

.fcard:hover .fcard-icon {
    color: #c5a467;
}

.fcard-titles {
    min-width: 0;
}

.fcard-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dark .fcard-title {
    color: #fff;
}

.fcard-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.fcard:hover .fcard-title a {
    color: #c5a467;
}

.fcard-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #c5a467;
}

.fcard-divider {
    border: none;
    border-top: 1px solid #F3F4F6;
    margin: 0 0 1rem;
}

.dark .fcard-divider {
    border-color: rgba(255, 255, 255, .05);
}

.fcard-desc {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    margin: 0 0 1rem;
}

.dark .fcard-desc {
    color: #9CA3AF;
}

.fcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #F3F4F6;
}

.dark .fcard-footer {
    border-color: rgba(255, 255, 255, .05);
}

.fcard-location {
    font-size: 0.8125rem;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.fcard-location i {
    flex-shrink: 0;
    font-size: 12px;
    transition: color .2s;
}

.fcard:hover .fcard-location i {
    color: #c5a467;
}

.fcard-price {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}

.dark .fcard-price {
    color: #fff;
}

/* ============================================ */
/* ULTIMATE LEAFLET FIXES FOR TAILWIND         */
/* ============================================ */
.leaflet-container img,
.leaflet-container img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Ensure map container handles overflow perfectly */
#properties-map {
    overflow: hidden !important;
    background: #f8f9fa !important;
}

.leaflet-tile-pane {
    z-index: 2 !important;
}

.leaflet-layer {
    z-index: 1 !important;
}