/*!* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ *!*/
/*!* -------------- GENERAL --------------*/
/*!* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ *!*/
@font-face {
    font-family: 'Nunito';
    src: url('../../fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../../fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-blue: #0C9FE3;
    --bs-primary: #0C9FE3 !important;
    --bg-primary: #0C9FE3 !important;
    --english-font: Nunito !important;
    --arabic-font: Tajawal !important;
    --main-color: #0C9FE3;
    --primary-color: #0C9FE3;
}

html, body {
    height: 100%;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--english-font), sans-serif !important;
    background-color: #FDFDFD;
    color: var(--bs-body-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: 10px;
}

.btn-primary:hover {
    background-color: #0b83bb !important;
}

.container {
    max-width: clamp(1400px, 50vw, 1800px);
}

/* GSAP Targets */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(70px);
}

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

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

a {
    color: #535353;
    text-decoration: none;
}

a:hover {
    color: var(--main-color);
}

.list-unstyled {
    text-align: left !important;
}

.btn-explode {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--main-color);
    border: none;
    padding: 8px 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.3s ease, background 1s ease; /* smooth return */
}

/* Explosion Layer */
.btn-explode::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle,
    rgba(0, 0, 0, 0.58) 0%,
    #000000 40%,
    transparent 60%
    );
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0.9;
    z-index: 0; /* behind text */
}

.btn-explode:hover::before {
    width: 300px;
    height: 300px;
    opacity: 1;
    z-index: -1;
    transition: width 1s ease, height 1s ease, opacity 1s ease;

}

.btn-explode:hover {
    color: #ffffff;
    background: var(--main-color);
    transition: width 1s ease, height 1s ease, opacity 1s ease;
    z-index: 2222;
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- LENIS --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important; /* Force disable native smooth scroll to let Lenis handle it */
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- Lang --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
.lang-floating {
    position: absolute;
    top: 0;
    left: 20px;
    display: flex;
    margin-top: 20px;
    justify-content: center;
    z-index: 999;
}

.lang-floating a {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

.lang-floating a:hover {
    background: #333;
    transform: translateY(-2px);
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- SLIDERS --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
.hero-slider {
    height: 100vh;
    position: relative;
}

.hero-slider.swiper {
    overflow: visible !important; /* Allows dropdowns to show if they go outside bounds */
    position: relative;
    z-index: 1;
}

.swiper-slide:not(.swiper-slide-active) .slider-text {
    opacity: 0;
    visibility: hidden;
}

.swiper-slide {
    overflow: hidden;
    z-index: 1;
}

.swiper-pagination {
    display: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* For zoom effect */
}

.swiper-slide-active .hero-bg {
    animation: slowZoom 10s infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== HERO SEARCH PANEL ===== */
.hero-search-wrapper {
    overflow: visible !important;
    z-index: 999 !important;
    pointer-events: none;
}

.hero-search-wrapper .container {
    pointer-events: auto;
}

.home-search-title {
    text-align: center;
    font-size: clamp(30px, 5vw, 50px);
    color: #ffffff;
    margin: 0;
}

.search-glass-panel {
    overflow: visible !important;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.inner-input label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.inner-input .form-select {
    background-color: transparent;
    color: #fff;
    font-weight: 500;
    padding-left: 0;
    cursor: pointer;
}

.inner-input .form-select option {
    color: #333;
}

.custom-dropdown {
    position: relative;
}

.custom-dropdown.show .dropdown-list {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-trigger {
    background: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-top: 5px;
    color: #333;
}

.dropdown-trigger:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    margin-top: 8px;
    padding: 5px 0;
    list-style: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 999999 !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 10px;
}

.dropdown-list li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.dropdown-list li:last-child {
    border-bottom: none;
}

.dropdown-list li:hover {
    background: var(--main-color);
    color: white;
    padding-left: 20px;
}

.form-select, .form-control {
    padding: 10px 15px;
}

.form-control {
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    background: #fff;
}

.form-control:focus {
    outline: 0 !important;
    border-color: #515154 !important;
    box-shadow: 0 0 0 1px rgba(81, 81, 84, 0.89) !important;
    background-color: #fff !important;
}

.property-card {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- District-Properties --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
.page-section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
}

.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

.property-card img.transition {
    transition: transform 0.5s ease;
}

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

@media (min-width: 992px) {
    .border-lg-end {
        border-right: 1px solid #dee2e6 !important;
    }
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- Property Show --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
.cursor-pointer {
    cursor: pointer;
}

.hover-opacity:hover {
    opacity: 0.8;
    transition: 0.3s;
}

[data-bs-slide-to] {
    transition: transform 0.2s;
}

[data-bs-slide-to]:active {
    transform: scale(0.95);
}

.thumb-link {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    border: 2px solid transparent !important;
}

.thumb-link.active-thumb {
    opacity: 1 !important;
    border-color: var(--main-color) !important;
    transform: scale(1.05);
}

.breadcrumb-item {
    font-size: clamp(12px, 1vw, 1rem);
}

@media (min-width: 992px) {
    .contact-floating {
        top: 200px;
        z-index: 10;
    }
}

@media (min-width: 1920px) {
    .page-section-padding {
        padding-top: 150px;
        padding-bottom: 50px;
    }
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- FOOTER --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
footer {
    background: #111;
    color: #fff;
    border-radius: 50px;
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 40px;
}

.footer-bg {
    height: 450px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(93, 93, 93, 0.5);
    z-index: 9999;
    border-radius: 50px;
    opacity: 0.50;
}

.footer-content {
    z-index: 99999;
}

.fixed-actions-container {
    z-index: 9999;
}

.footer-bg-img {
    background-image: url('../images/footer-bg.jpg');
}

.footer-link {
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #fff !important;
    padding-left: 5px;
}

.footer-scroll-cue {
    position: absolute;
    left: 50px;
    bottom: 20px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.footer-scroll-cue:hover {
    background: #adadad;
    transition: all 0.7s ease;
}

.footer-scroll-chevron {
    color: var(--main-color);
}

.fixed-actions-container {
    pointer-events: none;
    top: 90%;
}

.footer-scroll-cue:hover, .whatsapp-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Hide Back to Top initially */
#backToTop {
    opacity: 1;
    visibility: visible;
    transform: translateY(20px);
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--main-color);
    transition: 0.3s;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    position: relative;
    left: 40px;
    bottom: 35px;
}

#backToTop i {
    color: #eaeaea;
}

#backToTop:hover i {
    color: #ffffff;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-btn {
    position: relative;
    right: 40px;
    bottom: 20px;
}

.footer-subscribe {
    border-radius: 20px 0 0 20px !important;
}

@media (min-width: 320px) and (max-width: 991px) {
    .whatsapp-btn,
    #backToTop {
        position: fixed !important;
    }
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- MEDIA --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
@media (max-width: 1600px) {
    footer {
        margin: 0;
        border-radius: 0;
    }

    .footer-bg {
        height: auto;
        padding: 0 !important;
    }
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* ----------- SELECT2 ------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
.select2-container {
    width: 100% !important;
}

/* Main field styling */
.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid #eee !important; /* Match your default line */
    border-radius: 0 !important;
    height: 42px !important; /* Adjusted to match your text inputs */
    padding: 0 !important;
    transition: 0.3s;
}

/* Text alignment fix */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    line-height: 42px !important;
    color: #333 !important;
    font-size: 16px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    outline: none !important;
    border-bottom-color: #000 !important; /* Or your --main-color */
}

/* Arrow alignment */
.select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
    top: 0 !important;
}

/* Hover & Focus */
.select2-container--default .select2-selection--single:hover {
    border-color: #9ca3af !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: rgba(59, 130, 246, 0.49) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* THE BLUE HOVER FIX: Change this to your preferred brand color */
.select2-results__option--highlighted[aria-selected] {
    background-color: var(--main-color) !important;
    color: #ffffff !important;
}

/* Dropdown Card */
.select2-dropdown {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
}

/* Selected state in list */
.select2-results__option--selected {
    background-color: #eff6ff !important;
    color: #3b82f6 !important;
}

/* Disabled State */
.select2-container--disabled .select2-selection--single {
    background-color: #f3f4f6 !important;
    cursor: not-allowed !important;
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- LIVE TOAST --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
.premium-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 360px;
    padding: 18px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15),
    0 3px 10px rgba(0, 0, 0, 0.08);
    animation: toastSlide 0.5s cubic-bezier(.22, 1, .36, 1);
    z-index: 9999;
}

.toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-content h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.toast-content p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #555;
}

.toast-close {
    border: none;
    background: none;
    font-size: 16px;
    opacity: .5;
    cursor: pointer;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: toastProgress 5s linear forwards;
}

/* animation */

@keyframes toastSlide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}

.toast-hide {
    opacity: 0;
    transform: translateY(20px);
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* -------------- PAGINATION --------------
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
.pagination {
    margin-left: 20px !important;
}

.page-link {
    color: rgb(155, 155, 155) !important;
    transition: 0.9s;
}

.page-link:hover {
    background: var(--main-color) !important;
    border: 1px solid rgba(122, 122, 122, 0.5) !important;
    color: #ffffff !important;
    transition: 0.9s;
}

.active>.page-link,
.page-link.active {
    background: var(--main-color) !important;
    color: #ffffff !important;
    border: 1px solid rgba(122, 122, 122, 0.5) !important;
}

.page-item:first-child .page-link {
    border-radius: 10px 0 0 10px !important;
}

.page-item:last-child .page-link {
    border-radius: 0 10px 10px 0 !important;
}

.ref-num-text {
    font-size: 14px;
}
