﻿/*----------------------- Car details   -----------------------*/


.big-image {
    width: 100%;
    height: auto; /* auto height for smaller screens */
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out;
    border-style: solid;
    border-color: #dee2e6;
}

.thumbs img {
    width: 100%;
    height: 80px; /* default */
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: 0.3s;
}

    .thumbs img:hover {
        border-color: #007bff;
    }
        

.BillingDetailsrRow {
    margin-top: 75px;
    border-style: solid;
    border-radius: 5px;
    padding: 10px;
    border-color: #dee2e6;
    border-width: thin;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

/* ------------------------- Pages Hero -------------------------*/

.PagesHero {
    min-height: 60vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ------------------------- Loading Div Animation -------------------------*/
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #514b82;
    animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
    0% {
        clip-path: polygon(50% 50%,0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0% )
    }

    12.5% {
        clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0% )
    }

    25% {
        clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100% )
    }

    50% {
        clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100% )
    }

    62.5% {
        clip-path: polygon(50% 50%,100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100% )
    }

    75% {
        clip-path: polygon(50% 50%,100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100% )
    }

    100% {
        clip-path: polygon(50% 50%,50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100% )
    }
}

@keyframes l20-2 {
    0% {
        transform: scaleY(1) rotate(0deg)
    }

    49.99% {
        transform: scaleY(1) rotate(135deg)
    }

    50% {
        transform: scaleY(-1) rotate(0deg)
    }

    100% {
        transform: scaleY(-1) rotate(-135deg)
    }
}

#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9); /* semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* hidden by default */
}








/* ✅ Responsive adjustments */
@media (max-width: 576px) {
    .big-image {
        max-height: 250px;
    }

    .thumbs img {
        height: 60px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .big-image {
        max-height: 300px;
    }

    .thumbs img {
        height: 70px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .big-image {
        max-height: 350px;
    }

    .thumbs img {
        height: 75px;
    }
}

@media (min-width: 993px) {
    .big-image {
        max-height: 450px;
    }

    .thumbs img {
        height: 100px;
    }
}


/* ------------------------- Booking Summery -------------------------*/

:root {
    --accent: #c85716; /* اللون المطلوب */
    --bg: #ffffff; /* خلفية بيضاء */
    --text-main: #111111; /* أسود */
    --text-dim: #555555; /* رمادي داكن */
    --stroke: #e9e9e9; /* حدود فاتحة */
    --chip-bg: #ffffff; /* بطاقات بيضاء */
    --soft: #fafafa; /* خلفية خفيفة للأشرطة */
}

/* خلفية بيضاء ونص غامق */
body {
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
}

/* إلغاء تأثير الضجيج القديم */
.noise-overlay {
    display: none;
}

/* بطاقة نظيفة وحدود رشيقة */
.glass-card {
    position: relative;
    border-radius: 18px;
    background: var(--bg);
    border: 1px solid var(--stroke);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}

    .glass-card::before {
        content: none;
    }

/* الشريط العلوي */
.ribbon {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 16px 22px;
    border-bottom: 1px solid var(--stroke);
    background: var(--bg);
}

.brand-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.brand-line {
    font-weight: 800;
    font-size: 25px;
}

    .brand-line .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        display: inline-block;
        align-self: center;
    }

.muted {
    color: var(--text-dim);
    font-weight: 600;
}

/* صفوف المعلومات */
.info-row {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(8, 1fr);
    padding: 22px;
}

.chip {
    grid-column: span 4;
    border: 1px solid #c85716;
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--chip-bg);
}

    .chip .label {
        color: #c85716;
        font-size: .92rem;
        font-weight: 600;
    }

    .chip .value {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--text-main);
    }

@media (max-width: 992px) {
    .chip {
        grid-column: span 6;
    }
}

@media (max-width: 576px) {
    .chip {
        grid-column: span 12;
    }
}

/* شريط السعر و CTA */
.cta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-top: 1px solid var(--stroke);
    background: var(--soft);
}

.total-price {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text-main);
}

    .total-price i {
        color: var(--accent);
    }

.btn-pay {
    position: relative;
    padding: 14px 22px;
    border-radius: 12px;
    border: 1px solid var(--accent);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .2px;
    background: var(--accent);
    box-shadow: 0 10px 18px rgba(200,87,22,.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .btn-pay:hover {
        transform: translateY(-2px);
        filter: brightness(0.95);
        box-shadow: 0 16px 26px rgba(200,87,22,.28);
    }

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7f2; /* تفتيح من اللون الأساسي */
    border: 1px solid rgba(200,87,22,.25);
    color: var(--accent);
    font-size: .85rem;
    font-weight: 700;
}

.page-wrap {
    max-width: fit-content;
    margin: clamp(18px, 4vw, 46px) auto;
    padding: 0 16px;
}


/* ------------------------- Car List Fillter -------------------------*/



.modern-filter-box {
    border: 1px solid #c85716;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    margin-bottom: 35px;
    background: linear-gradient(to bottom right, #ffffff, #fdf4ee);
    transition: all 0.3s ease-in-out;
}

    .modern-filter-box:hover {
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    }

    .modern-filter-box .control-label {
        color: #c85716;
        font-size: 18px;
        font-weight: 600;
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }

.modern-select {
    border: 1px solid #c85716;
    border-radius: 5px;
    padding: 12px;
    color: #c85716;
    background-color: #ffffff;
    transition: all 0.3s ease;
    font-size: 15px;
}

    .modern-select:focus {
        border-color: #c85716;
        box-shadow: 0 0 10px rgba(200, 87, 22, 0.3);
        outline: none;
    }

    .modern-select option {
        color: #333;
    }

/* أزرار الفلترة */
.filter-btn {
    border-color: #a44211;
    border-style: solid;
    border-width: 1px;
    color: black;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 130px;
    cursor: pointer;
}

    .filter-btn:hover,
    .filter-btn.active-sort {
        background-color: #a44211;
        color: white;
    }

.reset-btn {
    background-color: transparent;
    border: 1px solid #c85716;
    color: #c85716;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s;
    min-width: 130px;
}

    .reset-btn:hover {
        background-color: #c85716;
        color: #fff;
    }

/* عرض الفلاتر المختارة */
.selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

    .selected-filters .filter-tag {
        color: black;
        padding: 6px 12px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        font-size: 12px;
        border-style: solid;
        border-width: 1px;
        border-color: #c85716;
    }

        .selected-filters .filter-tag i {
            margin-left: 8px;
            cursor: pointer;
        }

.pagination .page-item.active .page-link {
    background-color: #c85716;
    border-color: #c85716;
    color: #fff;
}

.pagination .page-link {
    color: #c85716;
    border: 1px solid #c85716;
}

    .pagination .page-link:hover {
        background-color: #a44211;
        color: #fff;
    }


@media (max-width: 768px) {
    .modern-filter-box {
        padding: 20px;
    }
}

