.hero-container {
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin-top: -64px; /* Pull up to hide under transparent header */
    overflow: hidden;
}

.hero-section {
    height: 85vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.85); */ 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 80px; /* Space for stats */
}

.hero-title {
    color: white;
    font-size: 64px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 48px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    transition: all 0.4s ease;
}

/* Sticky Search Wrapper */
.sticky-search-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Default state */
    z-index: 900; /* Lower than header (1100) */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Mobile-friendly: Disable sticky search triggers on small screens */
@media (min-width: 769px) {
    body.scrolled .hero-title {
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }

    body.scrolled .sticky-search-wrapper {
        position: fixed;
        top: 64px; /* Dock right under the navbar */
        left: 0;
        right: 0;
        padding: 10px 0;
        z-index: 1050;
    }

    body.scrolled .search-bar-lg {
        transform: scale(0.85);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    }
}

/* Ensure categories scroll away and don't stick on desktop/mobile */
body.scrolled .hero-categories-list {
    display: none; 
}

/* Floating Search Bar */
.search-bar-lg {
    background: white;
    border-radius: 50px;
    padding: 8px;
    padding-inline-start: 32px;
    padding-inline-end: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 800px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.search-input-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #eee;
}

[dir="rtl"] .search-input-group:not(:last-child)::after {
    right: auto;
    left: -8px;
}

.search-input-group i {
    color: #999;
}

.search-input {
    font-family: 'Solomon Sans', 'Inter', sans-serif;
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #777;
}

.search-btn-lg {
    font-family: 'Solomon Sans', 'Inter', sans-serif;
    background: #000000; /* Use Black as requested */
    color: white;
    border: none;
    border-radius: 40px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s;
}

.search-btn-lg:hover {
    transform: scale(1.02);
}

/* Stats Overlay */
.hero-stats {
    position: absolute;
    bottom: 40px;
    left: 60px;
    right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: white;
}

.hero-stat-text {
    max-width: 400px;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.9;
}

.stats-grid {
    display: flex;
    gap: 60px;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}
.stat-item p {
    font-size: 13px;
    opacity: 0.8;
}

/* Content Sections */
.content-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.see-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.see-all-link:hover {
    background: #e0e0e0;
}

.section-nav-arrows {
    display: flex;
    gap: 12px;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #444;
    font-size: 12px;
    transition: all 0.2s;
}

.nav-arrow:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 16px;
}

.property-grid {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-left: 4px;
    padding-right: 4px;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.property-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
    min-width: 280px;
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* .property-card:hover { transform: translateY(-4px); } */

.property-img {
    width: 100%;
    aspect-ratio: 1.2 / 1; /* Slightly wider aspect for compact view */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f0f0f0;
}

.property-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.property-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 4px;
}

.price {
    margin-top: 4px;
    font-size: 15px;
    color: #111;
}

.guest-favourite-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

[dir="rtl"] .guest-favourite-badge {
    left: auto;
    right: 12px;
}

/* See All Card */
.see-all-card {
    min-width: 280px;
    flex: 0 0 280px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.2s;
    scroll-snap-align: start;
}

.see-all-card:hover {
    border-color: #ddd;
    background: #fcfcfc;
}

.see-all-stack {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

.stack-img {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}

.stack-1 { top: 10px; left: 10px; z-index: 3; background: #fff; }
.stack-2 { top: 0; left: 20px; z-index: 2; transform: rotate(5deg); background: #fcfcfc; }
.stack-3 { top: -10px; left: 15px; z-index: 1; transform: rotate(-5deg); background: #fafafa; }

.see-all-text {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

/* Inline Extracted Classes */
.hero-categories-list {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.category-link {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-link:hover {
    background: rgba(255,255,255,0.3);
}

.card-image-wrapper {
    position: relative;
}

.property-img-nomb {
    margin-bottom: 0;
}

.wishlist-btn-card-style {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

[dir="rtl"] .wishlist-btn-card-style {
    right: auto;
    left: 12px;
}

.wishlist-icon {
    font-size: 24px;
    -webkit-text-stroke: 2px white;
    text-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.wishlist-icon.active {
    color: #ff385c;
}

.wishlist-icon.inactive {
    color: rgba(0,0,0,0.3);
}

.property-info-mt {
    margin-top: 12px;
}

.font-weight-normal {
    font-weight: 400;
}

.font-size-small {
    font-size: 13px;
}

/* --- Responsive Design --- */

/* Tablets */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 46px;
    }
    .hero-stats {
        left: 30px;
        right: 30px;
    }
    .stats-grid {
        gap: 30px;
    }
    .hero-stat-text br, .section-title br, .section-subtitle br {
        display: none;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .content-container {
        padding: 0 20px;
        margin: 40px auto;
    }

    .hero-section {
        height: 600px;
        min-height: unset;
    }

    .hero-container {
        width: 100vw;
        margin-left: max(-50vw + 50%, -50vw + 50%); /* Safer breakout */
        margin-top: -64px;
        border-radius: 0;
        overflow: hidden;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 24px;
        padding: 0 20px;
        max-width: 100%;
        word-wrap: break-word;
    }

    .search-bar-lg {
        flex-direction: column;
        border-radius: 20px;
        padding: 16px;
        gap: 12px;
        width: calc(100% - 40px); /* Leave margin */
        max-width: 400px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .search-input-group {
        width: 100%;
        padding: 8px 0;
    }

    .search-input-group:not(:last-child)::after {
        display: none;
    }

    .search-input-group:not(:last-child) {
        border-bottom: 1px solid #eee;
    }

    .search-btn-lg {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        margin-top: 8px;
    }

    .hero-categories-list {
        margin-top: 32px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-overlay {
        padding-bottom: 0px; /* Space removed since stats are hidden */
    }

    .hero-stats {
        display: none;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* Hide Navigation Arrows and See All Circle Arrow on Mobile */
    .section-nav-arrows, .see-all-link {
        display: none !important;
    }
}

/* RTL Specific Fixes */
[dir="rtl"] .search-btn-lg i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .category-link i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .section-title i {
    transform: rotate(180deg);
}

[dir="rtl"] .see-all-link i {
    transform: rotate(180deg);
}
