:root {
    --swiper-bullet: #fefefe;
    --swiper-bullet-active: #f3a109;
    --swiper-bullet-shadow: rgba(4, 120, 187, 0.35);
    --swiper-btn-bg: #ffffff;
    --swiper-btn-color: #111827;
    --swiper-btn-border: rgba(0, 0, 0, 0.08);
    --swiper-btn-hover-bg: #f3f4f6;
}

@font-face {
    font-family: "PingARLT";
    src:
        url(../fonts/PingARLT/PingARLT-Regular.woff2) format("woff2"),
        url(../fonts/PingARLT/PingARLT-Regular.woff) format("woff");
}
a {
    text-decoration: none;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    border: 3px solid rgba(241, 245, 249, 0.9); /* يعطي “padding” جميل */
}

::-webkit-scrollbar-thumb {
    border: 0;
    box-shadow: none;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.65);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(148, 163, 184, 0.8);
}

/* Corner (when both scrollbars appear) */
::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    font-family: "PingARLT", serif !important;
    scroll-behavior: smooth;
    background-image:
        radial-gradient(#10b981 0.5px, transparent 0.5px),
        radial-gradient(#10b981 0.5px, #fafaf9 0.5px);
    background-size: 20px 20px;
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.1);
    background-position:
        0 0,
        10px 10px;
}

html,
body,
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 122, 255, 0.85) transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(31, 122, 255, 0.7),
        rgba(24, 194, 156, 0.7)
    );
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(31, 122, 255, 0.95),
        rgba(24, 194, 156, 0.95)
    );
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #09111f;
    overflow-x: hidden;
}

.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);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-blur {
    background: rgba(8, 17, 31, 0.58);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeHero 30s infinite;
    transform: scale(1.05);
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}
.hero-slide:nth-child(2) {
    animation-delay: 6s;
}
.hero-slide:nth-child(3) {
    animation-delay: 12s;
}
.hero-slide:nth-child(4) {
    animation-delay: 18s;
}
.hero-slide:nth-child(5) {
    animation-delay: 24s;
}

@keyframes fadeHero {
    0% {
        opacity: 0;
        transform: scale(1.07);
    }
    6% {
        opacity: 1;
    }
    20% {
        opacity: 1;
        transform: scale(1.02);
    }
    26% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.noise::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: soft-light;
    background-image:
        radial-gradient(circle at 25% 25%, #fff 0.7px, transparent 0.8px),
        radial-gradient(circle at 75% 75%, #fff 0.7px, transparent 0.8px);
    background-size: 18px 18px;
}

.search-shell {
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    max-height: min(78dvh, 920px);
    display: flex;
    flex-direction: column;
}

.search-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.search-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.3rem;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.pill-active {
    background: linear-gradient(
        135deg,
        rgba(31, 122, 255, 0.92),
        rgba(16, 163, 127, 0.88)
    );
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(31, 122, 255, 0.32);
}

.field {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.field:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(31, 122, 255, 0.12),
        0 12px 30px rgba(2, 6, 23, 0.08);
    border-color: rgba(31, 122, 255, 0.3);
}

.chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

.panel-light {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(245, 248, 252, 0.96)
    );
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.result-chip {
    background: rgba(15, 95, 224, 0.08);
    color: #0f5fe0;
    border: 1px solid rgba(15, 95, 224, 0.14);
}

.autocomplete-item.active,
.autocomplete-item:hover {
    background: rgba(15, 95, 224, 0.08);
}

.property-card-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 108px;
    border-radius: 1.25rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
    text-align: center;
}

.property-card-ui:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-2px);
}

.feature-select-ui {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 58px;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
    text-align: center;
}

.feature-select-ui:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.top-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link-rich {
    position: relative;
}

.nav-link-rich::after {
    content: "";
    position: absolute;
    right: 1rem;
    left: 1rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(31, 122, 255, 0),
        rgba(31, 122, 255, 0.9),
        rgba(24, 194, 156, 0.9),
        rgba(31, 122, 255, 0)
    );
    transform: scaleX(0);
    transition: 0.25s ease;
    transform-origin: center;
}

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

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-premium {
    position: relative;
    overflow: visible;
    border-radius: inherit;
    isolation: isolate;
}

.header-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(31, 122, 255, 0.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 15%,
            rgba(24, 194, 156, 0.12),
            transparent 24%
        );
}

.alert-strip-premium {
    position: relative;
}

.alert-strip-premium::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
}

/* Side Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.35s;
}

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

.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    max-width: 360px;
    height: 100dvh;
    z-index: 9999;
    background: linear-gradient(
        165deg,
        rgba(15, 28, 52, 0.98) 0%,
        rgba(8, 17, 31, 0.99) 50%,
        rgba(5, 12, 22, 0.995) 100%
    );
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        -24px 0 80px rgba(0, 0, 0, 0.5),
        inset 1px 0 0 rgba(255, 255, 255, 0.04);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-right: env(safe-area-inset-right, 0);
}

.drawer-overlay.drawer-open .drawer-panel {
    transform: translateX(0);
}

.drawer-header {
    flex: 0 0 auto;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 100%
    );
}

.drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.drawer-footer {
    flex: 0 0 auto;
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
}

.drawer-section-title {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding: 1rem 1.25rem 0.5rem;
    margin-top: 0.25rem;
}

.drawer-list {
    padding: 0.5rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.22s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    min-height: 52px;
}

.drawer-link::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(180deg, #1f7aff, #18c29c);
    transition: height 0.22s ease;
}

.drawer-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.drawer-link:hover::before {
    height: 60%;
}

.drawer-link:active {
    background: rgba(255, 255, 255, 0.1);
}

.drawer-link-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.22s ease;
}

.drawer-link:hover .drawer-link-icon {
    transform: scale(1.05);
}

.drawer-link-text {
    flex: 1;
    min-width: 0;
}

.drawer-link-desc {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.125rem;
}

.drawer-link-arrow {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.25);
    transition: transform 0.22s ease;
}

.drawer-link:hover .drawer-link-arrow {
    color: rgba(255, 255, 255, 0.5);
    transform: translateX(-3px);
}

.drawer-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    margin: 0.5rem 1.25rem;
}

.drawer-cta {
    margin: 0.75rem 1rem 0;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(
        135deg,
        rgba(31, 122, 255, 0.2),
        rgba(24, 194, 156, 0.12)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.22s ease;
}

.drawer-cta:hover {
    background: linear-gradient(
        135deg,
        rgba(31, 122, 255, 0.3),
        rgba(24, 194, 156, 0.18)
    );
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.drawer-body::-webkit-scrollbar,
.search-scroll::-webkit-scrollbar {
    width: 10px;
}

.drawer-body::-webkit-scrollbar-track,
.search-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-body::-webkit-scrollbar-thumb,
.search-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(31, 122, 255, 0.7),
        rgba(24, 194, 156, 0.7)
    );
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.drawer-body::-webkit-scrollbar-thumb:hover,
.search-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(31, 122, 255, 0.95),
        rgba(24, 194, 156, 0.95)
    );
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.drawer-body,
.search-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 122, 255, 0.85) transparent;
}

@media (max-width: 1023px) {
    .search-shell {
        max-height: none;
    }

    .search-scroll {
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 639px) {
    .drawer-link {
        min-height: 52px;
        padding: 1rem;
    }
}

@media (min-width: 1280px) {
    .drawer-overlay {
        display: none !important;
    }
}

/* Visual enrichment layer */
.site-shell {
    position: relative;
    isolation: isolate;
}

.site-ambient {
    position: relative;
    opacity: 0.78;
    background:
        radial-gradient(
            44% 58% at 78% 0%,
            rgba(31, 122, 255, 0.2) 0%,
            rgba(31, 122, 255, 0) 100%
        ),
        radial-gradient(
            36% 48% at 16% 24%,
            rgba(24, 194, 156, 0.12) 0%,
            rgba(24, 194, 156, 0) 100%
        );
    animation: ambientDrift 18s ease-in-out infinite alternate;
}

.site-ambient::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0) 38%
    );
}

@keyframes ambientDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(0, 10px, 0) scale(1.02);
    }
}

.ui-surface-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.ui-surface-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-color: rgba(31, 122, 255, 0.2);
}

.dark .ui-surface-card:hover {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
    border-color: rgba(125, 211, 252, 0.22);
}

.ui-gradient-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ui-gradient-button::after {
    content: "";
    position: absolute;
    top: -140%;
    right: -25%;
    width: 36%;
    height: 300%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(28deg);
    transition: right 0.5s ease;
    pointer-events: none;
}

.ui-gradient-button:hover::after {
    right: 120%;
}

.drawer-link-rich {
    overflow: hidden;
}

.drawer-link-rich::after {
    content: "";
    position: absolute;
    left: -34%;
    top: 0;
    width: 32%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0)
    );
    transform: skewX(-20deg);
    transition: left 0.45s ease;
}

.drawer-link-rich:hover::after {
    left: 120%;
}

.reveal-item {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(31, 122, 255, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .site-ambient,
    .ui-surface-card,
    .ui-gradient-button::after,
    .drawer-link-rich::after,
    .reveal-item {
        animation: none !important;
        transition: none !important;
    }

    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }
}
