/* تعريف المتغيرات */
@font-face {
    font-family: 'opensans-regular';
    src: url('../../adminstyle/fonts/open-sans/opensans-regular.ttf') format('truetype');
}
* {
    font-family: "opensans-regular";
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    font-family: "opensans-regular";
}

input, button, select, optgroup, textarea, label, .alert, .badge, .blockquote-footer, .btn, [data-list] .page, .tox .tox-menu__footer .tox-button:last-child, .tox .tox-dialog__footer .tox-button:last-child, .tox .tox-menu__footer .tox-button--secondary, .tox .tox-dialog__footer .tox-button--secondary, .navbar, .pagination, .valid-feedback, .invalid-feedback {
    font-family: "opensans-regular";
}

:root {
    --primary-color: #5374E4;
    --secondary-color: #5374E4;
    --accent-color: #5374E4;
    --light-color: #FFFFFF;
    --dark-color: #121212;
    --transition-speed: 0.3s;
    --ticker-height: 60px;
    --ticker-mobile-height: 50px;
    font-family: "opensans-regular";
}

/* تنسيق عام للـ body أثناء التحميل */
body.oc-loading,
body.oc-loading * {
    cursor: wait !important;
}

/* تنسيق الـ Flash Messages */
body > p.flash-message {
    position: fixed;
    width: 500px;
    left: 50%;
    top: 13px;
    margin-left: -250px;
    color: #fff;
    font-size: 14px;
    padding: 10px 30px 10px 15px;
    z-index: 10300;
    word-wrap: break-word;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.15);
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.24);
    border-radius: 3px;
}

    body > p.flash-message.fade {
        opacity: 0;
        transition: all 0.5s, width 0s;
        transform: scale(0.9);
    }

        body > p.flash-message.fade.in {
            opacity: 1;
            transform: scale(1);
        }

    body > p.flash-message.success {
        background: #8da85e;
    }

    body > p.flash-message.error {
        background: #c30;
    }

    body > p.flash-message.warning {
        background: #f0ad4e;
    }

    body > p.flash-message.info {
        background: #5fb6f5;
    }

    body > p.flash-message button.close {
        position: absolute;
        right: 10px;
        top: 8px;
        color: white;
        font-size: 21px;
        line-height: 1;
        font-weight: bold;
        opacity: 0.2;
        padding: 0;
        background: transparent;
        border: 0;
        -webkit-appearance: none;
        outline: none;
    }

        body > p.flash-message button.close:hover,
        body > p.flash-message button.close:focus {
            opacity: 0.5;
        }

/* تنسيق الـ Loading Indicator */
.stripe-loading-indicator {
    height: 5px;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 2000;
}

    .stripe-loading-indicator .stripe,
    .stripe-loading-indicator .stripe-loaded {
        height: 5px;
        display: block;
        background: #0090c0;
        position: absolute;
        box-shadow: inset 0 1px 1px -1px #FFF, inset 0 -1px 1px -1px #FFF;
    }

    .stripe-loading-indicator .stripe {
        width: 100%;
        animation: oc-infinite-loader 60s linear;
    }

    .stripe-loading-indicator .stripe-loaded {
        width: 100%;
        transform: translate3d(-100%, 0, 0);
        opacity: 0;
    }

    .stripe-loading-indicator.loaded {
        opacity: 0;
        transition: opacity 0.4s linear;
        transition-delay: 0.3s;
    }

        .stripe-loading-indicator.loaded .stripe {
            animation-play-state: paused;
        }

        .stripe-loading-indicator.loaded .stripe-loaded {
            opacity: 1;
            transform: translate3d(0, 0, 0);
            transition: transform 0.3s linear;
        }

    .stripe-loading-indicator.hide {
        display: none;
    }

/* تنسيق الـ Loading Animation */
a.oc-loading:after,
button.oc-loading:after,
span.oc-loading:after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.4em;
    height: 1em;
    width: 1em;
    animation: oc-rotate-loader 0.8s infinite linear;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0.5;
}

/* تنسيق الـ Form العام */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control,
.form-select,
.select2-container--bootstrap5 .select2-selection {
    height: 50px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

    .form-control:focus,
    .form-select:focus,
    .select2-container--bootstrap5.select2-container--focus .select2-selection {
        border-color: #4064D7;
        box-shadow: 0 0 0 0.2rem rgba(64, 100, 215, 0.1);
        background-color: #ffffff;
    }

.form-group label {
    position: absolute;
    top: -10px;
    left: 10px;
    padding: 0 5px;
    font-size: 0.85rem;
    color: #6b7280;
    background-color: #ffffff;
    transition: all 0.3s ease;
    z-index: 1;
}

.form-control:focus + label,
.form-select:focus + label,
.form-control:not(:placeholder-shown) + label {
    color: #4064D7;
    transform: translateY(-5px);
}

.form-control::placeholder {
    color: #a0aec0;
    opacity: 0.7;
}

input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e0e6ed;
    border-radius: 10px;
    background-color: #f8fafc;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

    input[type="file"]:hover {
        border-color: #4064D7;
        background-color: rgba(64, 100, 215, 0.05);
    }

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    border: 2px solid #e0e6ed;
    transition: all 0.3s ease;
}

    .form-check-input:checked {
        background-color: #4064D7;
        border-color: #4064D7;
    }

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-section {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

/* تنسيق الـ Select2 */
.select2-container--bootstrap5 {
    width: 100% !important;
}

    .select2-container--bootstrap5 .select2-selection--single {
        display: flex;
        align-items: center;
    }

    .select2-container--bootstrap5 .select2-selection__rendered {
        line-height: normal !important;
        padding-left: 0.75rem !important;
    }

    .select2-container--bootstrap5 .select2-selection__arrow {
        height: 100% !important;
        top: 0 !important;
        right: 0.75rem !important;
    }

/* تنسيق الـ Buttons */
.btn-primary {
    height: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background-color: #4064D7;
    border: none;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #324c81;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(64, 100, 215, 0.2);
    }

.ad-column-right {
    flex: 0 0 25%;
    max-width: 25%;
    order: 3;
    height: 500px;
}

/* تنسيق الكارد الأفقي */
.ad-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    padding: 3px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 300px;
    width: 100%;
    background: transparent !important;
}

    .ad-card h2 {
        position: absolute;
        top: 83px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(255, 255, 255, 0.9);
        padding: 5px 15px;
        border-radius: 5px;
        font-size: 1.3rem;
        margin: 0;
        color: #343a40;
        isolation: isolate;
        width: max-content;
        display: contents;
        font-weight: bolder;
        text-align: center;
        align-items: center;
        z-index: 2;
    }

    .ad-card p {
        color: #718096;
        line-height: 1.6;
        margin: 0;
        text-align: center;
        text-align: center;
        margin-top: -243px;
        z-index: 2;
        position: relative;
    }

    .ad-card .btn-details {
        background: linear-gradient(to right, #4064D7, #5a7ae9);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 600;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        z-index: 2;
        transition: all 0.4s ease;
        box-shadow: 0 5px 15px rgba(64, 100, 215, 0.2);
        text-transform: uppercase;
        margin-bottom: -7px;
        position: relative;
    }

    .ad-card:hover .btn-details {
        box-shadow: 0 8px 25px rgba(64, 100, 215, 0.3);
        transform: translateY(-3px);
    }

/* تنسيق الكارد الطولي */
.side-ad-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 500px;
    width: 100%;
    background: transparent !important;
}

    .side-ad-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(64, 100, 215, 0.05) 0%, rgba(100, 64, 215, 0.01) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .side-ad-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px -10px rgba(64, 100, 215, 0.15);
    }

        .side-ad-card:hover::before {
            opacity: 1;
        }

    .side-ad-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        background: linear-gradient(to bottom, #4064D7, #7095ff);
        transition: height 0.5s ease;
    }

    .side-ad-card:hover::after {
        height: 100%;
    }

    .side-ad-card h2 {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(255, 255, 255, 0.9);
        padding: 5px 15px;
        border-radius: 5px;
        z-index: 1001;
        font-size: 1.3rem;
        margin: 0;
        color: #343a40;
        isolation: isolate;
    }

    .side-ad-card p {
        color: #718096;
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        text-align: center;
        z-index: 1;
    }

    .side-ad-card .btn {
        background: linear-gradient(to right, #4064D7, #5a7ae9);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 600;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        transition: all 0.4s ease;
        box-shadow: 0 5px 15px rgba(64, 100, 215, 0.2);
        text-transform: uppercase;
    }

    .side-ad-card:hover .btn {
        box-shadow: 0 8px 25px rgba(64, 100, 215, 0.3);
        transform: translateY(-3px);
    }


.property-type-controls {
    margin-bottom: 20px;
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #e9ecef;
}

.property-type-control input[type="radio"] {
    display: none;
}

.property-type-control label {
    padding: 10px 22px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    display: inline-block;
    min-width: 90px;
}

.property-type-control input[type="radio"]:checked + label {
    background-color: #4064D7;
    color: #ffffff;
    border-color: #4064D7;
    box-shadow: 0 2px 5px rgba(59, 89, 152, 0.3);
}

.property-type-control label:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.property-type-control input[type="radio"]:checked + label:hover {
    border-color: #2c4370;
}


/* News Ticker Styling */
.news-ticker-container {
    margin: 20px 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    height: var(--ticker-height);
    box-shadow: 0 6px 12px rgba(83, 116, 228, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(83, 116, 228, 0.1);
    transition: all 0.3s ease;
}

    .news-ticker-container:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        transform: translateY(-2px);
    }

.ticker-header {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0 22px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #5374E4 100%);
    color: var(--light-color);
    font-weight: bold;
    z-index: 2;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 130px;
    justify-content: center;
    box-shadow: 4px 0 12px rgba(83, 116, 228, 0.25);
    transition: all 0.3s ease;
}

    .ticker-header i {
        margin-right: 8px;
        font-size: 1.2rem;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
        animation: pulse 2s infinite;
    }

[dir="rtl"] .ticker-header {
    left: auto;
    right: 0;
    border-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
}

    [dir="rtl"] .ticker-header i {
        margin-right: 0;
        margin-left: 8px;
    }

.news-ticker {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    padding-left: 150px;
    height: 100%;
}

[dir="rtl"] .news-ticker {
    padding-left: 0;
    padding-right: 150px;
}

.ticker-content {
    display: inline-flex;
    height: 100%;
    align-items: center;
    position: relative;
    z-index: 1;
}

[dir="ltr"] .ticker-content {
    padding-left: 100%;
    animation: ticker-slide-ltr 17s linear infinite;
}

[dir="rtl"] .ticker-content {
    padding-right: 100%;
    animation: ticker-slide-rtl 17s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 35px;
    font-size: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

    .ticker-item:hover {
        color: var(--secondary-color);
        transform: translateY(-3px);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .ticker-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background-color: var(--secondary-color);
        border-radius: 50%;
        box-shadow: 0 0 4px var(--secondary-color);
        animation: glow 1.5s ease-in-out infinite alternate;
    }

[dir="rtl"] .ticker-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

.ticker-icon {
    margin-right: 10px;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 1px rgba(255, 215, 0, 0.5));
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.ticker-item:hover .ticker-icon {
    transform: scale(1.2) rotate(5deg);
}

[dir="rtl"] .ticker-icon {
    margin-right: 0;
    margin-left: 10px;
}


.news-ticker:hover .ticker-content {
    animation-play-state: paused;
}

.news-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 150px;
    height: 100%;
    width: 80px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
    animation: shine 3s infinite;
}

[dir="rtl"] .news-ticker::before {
    left: auto;
    right: 150px;
    background: linear-gradient(270deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* Animations */
@keyframes ticker-slide-ltr {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes ticker-slide-rtl {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 4px var(--secondary-color);
    }

    to {
        box-shadow: 0 0 8px var(--secondary-color);
    }
}

@keyframes shine {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .news-ticker {
        padding-left: 0;
        padding-right: 120px;
    }

        [dir="rtl"] .news-ticker::before {
            left: auto;
            right: 120px;
        }
}

.ad-card,
.side-ad-card {
    position: relative;
    overflow: hidden;
}

/* Video and Image Background Styles */
.video-background,
.image-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background: transparent !important;
    transition: none !important;
    animation: none !important;
    -webkit-animation: none !important;
}

.video-element {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    pointer-events: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.image-background {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Ensure video is always visible and not affected by hover */
.ad-card:hover .video-background,
.side-ad-card:hover .video-background {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Remove any hover effects that might hide the video */
.ad-card:hover::before,
.side-ad-card:hover::before {
    display: none !important;
    opacity: 0 !important;
}

.ad-card:hover::after,
.side-ad-card:hover::after {
    display: none !important;
    opacity: 0 !important;
}

/* Override any existing hover transformations */
.ad-card:hover,
.side-ad-card:hover {
    transform: none !important;
}

/* Ensure the video background is never hidden */
.video-background {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Override any pseudo-elements that might interfere */
.ad-card::before,
.side-ad-card::before,
.ad-card::after,
.side-ad-card::after {
    display: none !important;
    opacity: 0 !important;
}

/* Ensure video is visible on hover and non-hover states */
.ad-card:hover .video-background,
.side-ad-card:hover .video-background,
.ad-card .video-background,
.side-ad-card .video-background {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Additional styles to ensure video is always visible */
.video-background {
    transition: none !important;
    animation: none !important;
    -webkit-animation: none !important;
}

.ad-card h2,
.ad-card p,
.side-ad-card h2,
.side-ad-card p {
    position: relative;
    z-index: 2;
}

.ad-card .btn-details,
.side-ad-card .btn {
    position: relative;
    z-index: 2;
}

/* تنسيق الـ Custom Marker */
.custom-marker {
    width: 44.8px;
    height: 44.8px;
    position: relative;
    transform: rotate(45deg);
}

    .custom-marker:before,
    .custom-marker:after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50% 50% 0 50%;
        background: #0000;
        background-image: radial-gradient(circle 11.2px at 50% 50%, #0000 94%, #ff4747);
    }

    .custom-marker:after {
        animation: pulse-ytk0dhmd 1s infinite;
        transform: perspective(336px) translateZ(0px);
    }

/* تنسيق زر الـ Map */
.custom-popup-card .btn-map {
    padding: 3px 6px;
    font-size: 11px;
    line-height: 1;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .custom-popup-card .btn-map:hover {
        background-color: #0056b3;
        transform: translateY(-1px);
    }

    .custom-popup-card .btn-map i {
        font-size: 10px;
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .ad-column-left, .ad-column-right {
        display: block;
    }
}

@media (max-width: 768px) {
    body > p.flash-message {
        left: 10px;
        right: 10px;
        top: 10px;
        margin-left: 0;
        width: auto;
    }

    .form-control,
    .form-select,
    .select2-container--bootstrap5 .select2-selection {
        height: 45px;
        font-size: 0.95rem;
        border-width: 1.5px;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-check-input {
        width: 1.4em;
        height: 1.4em;
    }

    .form-group {
        margin-bottom: 1.2rem;
        padding: 0 5px;
    }

    input[type="file"] {
        padding: 0.8rem;
        text-align: center;
    }

    .form-section {
        padding: 1.5rem;
        border-radius: 12px;
    }


    .ad-column-left {
        order: 2;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .ad-column-right {
        order: 3;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .property-type-controls {
        gap: 6px;
        padding: 0 5px;
        margin-top: 0;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px;
    }

    .property-type-control label {
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 0.85rem;
        background-color: #f0f2f5;
        border: none;
        color: #606770;
        flex: 1;
        min-width: 80px;
    }

    .property-type-control input[type="radio"]:checked + label {
        background-color: #4064D7;
        color: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }


    .select2-container--bootstrap5.select2-container--open {
        z-index: 9999 !important;
    }

    .select2-container--bootstrap5 .select2-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    .range-selector-dropdown .dropdown-input-content.show {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        z-index: 9999 !important;
        padding: 15px !important;
    }

    .select2-results__options,
    .range-selector-dropdown .selector {
        max-height: 60vh !important;
        overflow-y: auto !important;
    }

    .select2-results__option,
    .range-selector-dropdown .value {
        padding: 10px !important;
        border-bottom: 1px solid #eee !important;
        font-size: 16px !important;
    }

    .news-ticker-container {
        height: var(--ticker-mobile-height);
        margin: 15px 0;
        border-radius: 10px;
    }

    .ticker-header {
        padding: 0 15px;
        font-size: 13px;
        min-width: 110px;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

        .ticker-header i {
            font-size: 1rem;
            margin-right: 6px;
        }

    .news-ticker {
        padding-left: 120px;
    }

    [dir="rtl"] .news-ticker {
        padding-left: 0;
        padding-right: 120px;
    }

    .ticker-item {
        font-size: 14px;
        padding: 0 25px;
    }

    .ticker-icon {
        margin-right: 8px;
        font-size: 1rem;
    }

    .news-ticker::before {
        left: 120px;
        width: 60px;
    }

    [dir="rtl"] .news-ticker::before {
        left: auto;
        right: 120px;
    }

    .ticker-content {
        animation-duration: 25s;
    }

    .ad-card,
    .side-ad-card {
        padding: 15px;
        height: 250px;
    }

        .ad-card h2,
        .side-ad-card h2 {
            font-size: 1.1rem;
        }

        .ad-card p,
        .side-ad-card p {
            font-size: 0.9rem;
        }

        .ad-card .btn-details,
        .side-ad-card .btn {
            padding: 8px 16px;
            font-size: 0.85rem;
        }
}

@media (max-width: 758px) {
    .select2-results__option,
    .range-selector-dropdown .value {
        padding: 12px !important;
        font-size: 16px !important;
    }

    .range-selector-dropdown .dropdown-input,
    .select2-container--bootstrap5 .select2-selection {
        min-height: 48px !important;
    }

    .ad-card,
    .side-ad-card {
        padding: 1px;
        height: 200px;
    }

        .ad-card h2 {
            font-size: 1rem;
            top: 59px;
            display: contents;
        }

        .side-ad-card h2 {
            font-size: 1rem !important;
        }

        .ad-card p,
        .side-ad-card p {
            font-size: 0.8rem;
        }

        .ad-card .btn-details,
        .side-ad-card .btn {
            padding: 6px 12px;
            font-size: 0.75rem;
            margin-bottom: -7px;
        }

    /* Mobile styles for video and image backgrounds */
    .video-background,
    .image-background {
        border-radius: 16px;
    }
}

@media (max-width: 577px) {
    .ad-card .btn-wrapper {
        margin-top: auto;
    }
}

/* الـ Animations */

.ad-card .btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 211px;
    display: contents;
}

.ad-card .btn-wrapper-side {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 333px;
}

/* تنسيق عام للمحرك البحث */
.search-column {
    padding: 0;
    position: relative;
    z-index: 1;
}

.search-form {
    background: linear-gradient(145deg, #2a2a72 0%, #009ffd 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 10px;
    transition: transform 0.4s ease;
}

    .search-form::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 70%);
        z-index: 0;
    }

    .search-form:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    }

.property-type-controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.property-type-control {
    flex: 1;
}

    .property-type-control input[type="radio"] {
        display: none;
    }

    .property-type-control label {
        width: 100%;
        padding: 12px 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        text-align: center;
        transition: all 0.3s ease;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .property-type-control input[type="radio"]:checked + label {
        color: #2a2a72;
        border-color: #fff;
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    }

    .property-type-control label:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }

.form-box {
    padding: 30px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 1;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-control,
.select2-container--bootstrap5 .select2-selection {
    height: 60px;
    padding: 15px 20px 15px 50px;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    background: #f4f7fa;
    transition: all 0.3s ease;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
    color: #333;
}

    .form-control:focus,
    .select2-container--bootstrap5.select2-container--focus .select2-selection {
        background: #fff;
        box-shadow: 0 0 0 3px rgba(42, 42, 114, 0.1), 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.form-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #009ffd;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.form-control:focus + i {
    color: #2a2a72;
}

.form-control::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* حقل البحث بالاسم */
#property-name {
    padding-left: 50px;
}

/* زر البحث */
.btn-primary {
    padding: 0 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(90deg, #009ffd 0%, #2a2a72 100%);
    border: none;
    color: #fff;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 159, 253, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        box-shadow: 0 8px 25px rgba(0, 159, 253, 0.5);
        transform: translateY(-3px);
    }

    .btn-primary i {
        font-size: 1.3rem;
        animation: pulse 2s infinite;
    }

/* تنسيق القوائم المنسدلة */
.select2-container--bootstrap5 .select2-selection {
    display: flex;
    align-items: center;
}

.select2-container--bootstrap5 .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 0 !important;
}

.select2-container--bootstrap5 .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 20px !important;
    color: #009ffd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-form {
        border-radius: 15px;
    }

    .property-type-controls {
        padding: 10px;
        gap: 10px;
    }

    .property-type-control label {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .form-box {
        padding: 20px;
        border-radius: 0 0 15px 15px;
    }

    .form-control,
    .select2-container--bootstrap5 .select2-selection {
        height: 50px;
        padding: 12px 15px 12px 45px;
        font-size: 1rem;
    }

    .form-group i {
        font-size: 1.1rem;
        left: 15px;
    }

    #property-name {
        background-size: 16px 16px;
        padding-left: 45px;
    }

    .btn-primary {
        height: 50px;
        font-size: 1.1rem;
        padding: 0 30px;
    }

        .btn-primary i {
            font-size: 1.2rem;
        }
}

@media (max-width: 758px) {
    .property-type-controls {
        gap: 8px;
    }

    .property-type-control label {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .form-box {
        padding: 15px;
    }

    .form-control,
    .select2-container--bootstrap5 .select2-selection {
        height: 45px;
        padding: 10px 12px 10px 40px;
        font-size: 0.95rem;
    }

    .form-group i {
        font-size: 1rem;
        left: 12px;
    }

    #property-name {
        background-size: 14px 14px;
        padding-left: 40px;
    }

    .btn-primary {
        height: 45px;
        font-size: 1rem;
        padding: 0 25px;
    }

        .btn-primary i {
            font-size: 1.1rem;
        }

    .ad-card .btn-wrapper-side {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 349px;
    }

    .ad-card .btn-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: -97px;
    }
}

@media (max-width: 577px) {
    .ad-card .btn-wrapper {
        margin-top: auto;
    }
}

/* التحريكات */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


/* تنسيق الـ Loader */
#loader {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(255, 255, 255, 0.8);*/
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    border: 3.5px solid transparent;
    border-radius: 50%;
    animation: rotate 3s infinite ease-in-out;
}

.circle-1 {
    width: 250px;
    height: 250px;
    border-top-color: rgb(99, 102, 241);
    border-right-color: rgb(99, 102, 241);
    animation-delay: -0.15s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-top-color: #404041;
    border-right-color: #404041;
    animation-delay: -0.3s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-top-color: rgb(99, 102, 241);
    border-right-color: rgb(99, 102, 241);
    animation-delay: -0.45s;
}

.circle-4 {
    width: 100px;
    height: 100px;
    border-top-color: #404041;
    border-right-color: #404041;
    animation-delay: -0.6s;
}

@keyframes rotate {
    50% {
        transform: rotate(360deg);
    }
}


.timer-text {
    position: absolute;
    font-size: 48px;
    color: black;
}

.side-ad-card h2 span {
    font-size: 1rem !important;
}

.ad-column-content {
    margin-top: -17px;
}

#maryo0o {
    margin-top: -236px;
}

bottom-ads p {
    margin-top: -236px !important;
}

.side-ad-card p {
    margin-top: -11px;
}

@media (max-width: 767px) {
    .ad-column-content {
        margin-top: -3px;
    }

    .side-ad-card h2 span {
        font-size: 1rem !important;
    }

    .ad-card p {
        margin-top: -28%;
    }

    .side-ad-card p {
        margin-top: -6%;
    }

    #maryo0o {
        margin-top: -2px;
    }
}

@media (max-width: 750px) {
    .ad-column-content {
        margin-top: -3px;
    }

    .side-ad-card h2 span {
        font-size: 1rem !important;
    }

    .ad-card p {
        margin-top: -28%;
    }

    .side-ad-card p {
        margin-top: -6%;
    }

    #maryo0o {
        margin-top: -241px;
    }
}

@media (max-width: 575px) {
    .ad-column-content {
        margin-top: -3px;
    }

    #maryo0o {
        margin-top: -1px;
    }

    .ad-card p {
        margin-top: -27%;
    }

    .side-ad-card p {
        margin-top: -3%;
    }

    .ad-card .btn-wrapper-side {
        padding-top: 353px;
    }
}

@media (max-width: 540px) {
    .ad-column-content {
        margin-top: -3px;
    }

    #maryo0o {
        margin-top: -1px;
    }

    .ad-card p {
        margin-top: -32%;
    }

    .side-ad-card p {
        margin-top: -3%;
    }

    .ad-card .btn-wrapper-side {
        padding-top: 353px;
    }
}

@media (max-width: 530px) {
    .ad-card p {
        margin-top: -30%;
    }

    .side-ad-card p {
        margin-top: -3%;
    }
}

@media (max-width: 500px) {
    .ad-card p {
        margin-top: -32%;
    }

    .side-ad-card p {
        margin-top: -3%;
    }
}

@media (max-width: 430px) {
    #maryo0o {
        margin-top: 0px;
    }

    .ad-card p {
        margin-top: -39%;
    }

    .side-ad-card p {
        margin-top: -3%;
    }
}

/* Ensure video background has a bright border for debugging */
.video-background {
    border: 2px solid #225AA6 !important;
}

/* Make sure ad cards have proper positioning */
.ad-card, .side-ad-card {
    position: relative !important;
    overflow: hidden !important;
}

    /* Ensure text is above video */
    .ad-card h2, .ad-card p, .ad-card .btn-wrapper1, .ad-card .btn-wrapper, .ad-card .btn-wrapper-side,
    .side-ad-card h2, .side-ad-card p, .side-ad-card .btn-wrapper1, .side-ad-card .btn-wrapper, .side-ad-card .btn-wrapper-side {
        position: relative !important;
        z-index: 2 !important;
    }
