/* ------------------------------------------
   المزاد - Qemah Auctions Main Styles
--------------------------------------------- */

/* Color Variables */
:root {
    --primary-color: #29592b;
    --secondary-color: #82bb4c;
    --white: #ffffff;
}


.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #157347;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;

    --bs-btn-focus-shadow-rgb: 60, 153, 110;

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #146c43;
    --bs-btn-active-border-color: #13653f;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #198754;
    --bs-btn-disabled-border-color: #198754;
}


/* Reset & Font */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--white);
    color: #222;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

/* ----------------------
   Navbar Styles
------------------------ */
.navbar {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    padding: 0.4rem 1rem;
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin-right: 0;
    transition: 0.3s;
    font-size: 14px;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* ----------------------
   Mobile Menu (Responsive)
------------------------ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1.5rem 1rem !important;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        text-align: right;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 10px 15px;
        color: var(--primary-color) !important;
        font-weight: 500;
        border-bottom: 1px solid #eee;
        border-radius: 6px;
        transition: background-color 0.3s;
        text-align: right;
    }

    .navbar-nav .nav-link:hover {
        background-color: #f5f5f5;
    }

    /* login button in mobile */
    .login-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 10px;
        font-weight: 600;
        padding: 10px 14px;
        border-radius: 8px;
        color: #fff !important;
        background-color: var(--secondary-color) !important;
    }

    .login-btn .login-icon {
        margin-left: 6px;
        font-size: 20px;
        color: var(--primary-color);
    }
}

/* Login BTN */

a.login-btn {
    font-weight: 500;
    color: #fff !important;
    background-color: #198754 !important;
    border: none !important;
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    width: 160px;
    font-size: 14px;
}

@media (max-width: 991px) {
    a.login-btn {
        width: 180px
    }
}

a.login-btn .login-icon {
    font-size: 20px;
    color: #fff !important;
    transition: color 0.3s ease;
}

a.login-btn:hover {
    background-color: #f2f2f2 !important;
    color: #000000 !important;
    text-decoration: none !important;
}

a.login-btn:hover .login-icon {
    color: #198754 !important;
}

a.login-btn:active {
    background-color: #e0e0e0 !important;
    transform: scale(0.97);
}

/* --- Banner Placeholder Style --- */
.banner-placeholder {
    height: 400px;
    background-color: #e9f5e4;
    padding: 20px;
}

/* --- Mid Banner --- */
.mid-banner {
    background-color: #29592b;
    background-size: cover;
    background-position: center;
}

/* --- Tabs --- */
.nav-tabs .nav-link {
    font-weight: 500;
    color: #198754;
}

.nav-tabs .nav-link.active {
    background-color: #198754;
    color: #fff;
}

/* --- Feature Icons --- */
.feature-icon img {
    max-width: 80px;
    height: auto;
}

/* Responsive Fixes */
@media (max-width: 767.98px) {
    .banner-placeholder {
        height: 300px;
        padding: 10px;
    }

    .feature-icon img {
        max-width: 60px;
    }
}

/* ----------------------
   Hero Section
------------------------ */
.hero-slide {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e9f5e4; /* fallback if image missing */
    padding: 20px;
    position: relative;
}

.hero-slide .text-white {
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 250px;
        padding: 10px;
    }

    .hero-slide h2 {
        font-size: 1.25rem;
    }

    .hero-slide p {
        font-size: 0.95rem;
    }
}

#heroSlider .overlay{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000000b3;
    border-radius: 20px;
}
#heroSlider .carousel-control-prev, #heroSlider .carousel-control-next{display: none;opacity: 1;}
#heroSlider:hover .carousel-control-prev, #heroSlider:hover .carousel-control-next{display: block;}
#heroSlider .carousel-control-prev i,
#heroSlider .carousel-control-next i{
    width: initial;
    background-color: #ffffffc7;
    color: #29592b;
    box-shadow: 0px 1px 2px #979797;
    border-radius: 50%;
    padding: 12px 15px;
}
#heroSlider .carousel-control-prev i:hover,
#heroSlider .carousel-control-next i:hover{background: #fff;border: 1px solid #29592b;}

.card-img-top.car-image {
    object-fit: cover;
    height: 220px;
    width: 100%;
}
.countdown-timer {
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 10px;
    font-size: 16px;
}

.auction-card {position: relative;}
.auction-card:hover {border-color: #88c34e;}

.auction-card .heart_link i {transition: 0.3s ease;}

.auction-card .heart_link i:hover {transform: scale(1.1);}

.fav-animate {
    animation: heartBeat 0.3s ease-in-out;
    transform: scale(1);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.heart_link{
    background: rgb(17, 19, 17);
    display: block;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-align-last: center;
    align-content: center;
    color: #e1e1e1;
    text-decoration: none;
}

.auction-card .details .card-title i{
    background: #0000001f;
    width: 30px;
    border-radius: 50%;
    height: 28px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 400px) {
    .auction-card .details .card-title{
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .auction-card .details .card-title .col-6{padding-right: 0;}
}

/* ----------------------
   Auction Cards (optional)
------------------------ */
.auction-card {
    border: 1px solid #eee;
    border-radius: 12px;
    /* padding: 10px; */
    background-color: var(--white);
    transition: box-shadow 0.3s ease;
}

.auction-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}


@media(max-width: 576px){
    .new_cars .filter-sec label{
        font-size: 14px;
    }
}

/* ----------------------
   Footer
------------------------ */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    font-size: 0.95rem;
}

/* ----------------------
   Auction Page Styles
------------------------ */
.auction-banner {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    position: relative;
}
.auction-banner h1 {
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    color: var(--white);
}

/* Date Filter */
.filter-bar {
    padding: 20px 0;
    text-align: center;
}
.filter-bar select {
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 6px 14px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--white);
    min-width: 160px;
}

/* Auction Info Table */
.auction-info th,
.auction-info td {
    vertical-align: middle;
    font-weight: 500;
}
.auction-info .btn-qemah {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
}
.auction-info .btn-qemah:hover {
    background-color: #6ca438;
}

/* Auction Cards */
.auction-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    background-color: var(--white);
}
.auction-card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}
.auction-card .car-image {
    object-fit: cover;
    height: 220px;
    width: 100%;
}
.auction-card .btn {
    font-size: 0.9rem;
}

/* Countdown Timer */
.countdown-timer {
    font-weight: bold;
    color: var(--primary-color);
}

/* Modal */
.modal-content {
    border-radius: 12px;
}
.modal-body p {
    margin-bottom: 8px;
}

/* Custom Button */
.btn-qemah {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    font-weight: 500;
    transition: 0.3s;
    border-radius: 8px;
}
.btn-qemah:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 576px) {
    .auction-info th, .auction-info td {
        font-size: 0.85rem;
        padding: 8px;
    }
    .filter-bar select {
        font-size: 0.9rem;
    }
    .auction-card h5 {
        font-size: 1rem;
    }
}

/* WhatsApp Sticky Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* background-color: #25D366; لون واتساب الرسمي */
    color: white;
    font-size: 28px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); */
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-sticky img{width: 66px;}
.whatsapp-sticky:hover {
    /* background-color: #1ebe5d; */
    transform: scale(1.1);
    text-decoration: none;
}





/*================== swipper =============*/
.card__container {padding-bottom: 2rem;}
.card__content {margin-inline: 2rem;border-radius: 1.25rem;overflow: hidden; padding: 30px 10px 50px; margin: 0;}
/* .card__article {width: 300px;border-radius: 1.25rem;overflow: hidden;} */
.card__image {position: relative;background-color: var(--first-color-light);padding-top: 1.5rem;margin-bottom: -.75rem;overflow: hidden;}
.card__data {background-color: var(--container-color);padding: 1.5rem 2rem;border-radius: 1rem;position: relative;z-index: 10;}
.card__img {width: 180px;margin: 0 auto;position: relative;z-index: 5; }
.card__shadow {
  width: 200px;
  height: 200px;
  background-color: var(--first-color-alt);
  border-radius: 50%;
  position: absolute;
  top: 3.75rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  filter: blur(45px);
}
.card__description {font-weight: 500;margin-bottom: 1.75rem;}
/* Swiper class */
.swiper-button-prev:after,.swiper-button-next:after {content: "";}
.swiper-button-prev,.swiper-button-next {width: initial;height: initial;font-size: 2rem;color: var(--second-color);/* display: none; */}
.swiper-button-prev {left: 50px;}
.swiper-button-next {right: 50px;}
.swiper-pagination-bullet {background-color: #CFD3D6;opacity: 1;}
.swiper-pagination-bullet-active {background-color: var(--secondary);}
.swiper-button-next svg, .swiper-button-prev svg{
    font-size: 18px;
    background-color: #0741AD;
    color: #fff;
    box-shadow: 0px 1px 2px #979797;
    border-radius: 50%;
    padding: 9px 12px;
}
.swiper-button-next svg:hover, .swiper-button-prev svg:hover {background-color: var(--secondary);color: #0741AD;}
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/* .swiper-pagination-bullet.swiper-pagination-bullet-active-next{width: 13px;height: 13px;background: #198754;} */
/* Change default bullet color */
.swiper-pagination-bullet {background-color: #999;}
.swiper-pagination-bullet-active {background-color: #198754;height: 8px;width: 8px;}
/* .swiper-pagination-bullet:hover {background-color: #555;} */








































/* ========================================
QEMAH MODERN MODALS STYLES
======================================== */

/* Images Modal */
.images-modal .modal-content {
    background: transparent;
    border: none;
}

.images-modal .modal-body {
    padding: 0;
    position: relative;
}

.images-modal .carousel-inner {
    border-radius: 16px;
    overflow: hidden;
}

.images-modal .carousel-item img {
    height: 450px;
    object-fit: contain;
    background: #1a1a1a;
}

.images-modal .carousel-control-prev,
.images-modal .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 1;
    margin: 0 15px;
}

.images-modal .carousel-control-prev:hover,
.images-modal .carousel-control-next:hover {
    background: #82bb4c;
}

.images-modal .carousel-control-prev-icon,
.images-modal .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(25%) sepia(50%) saturate(500%) hue-rotate(70deg);
}

.images-modal .carousel-control-prev:hover .carousel-control-prev-icon,
.images-modal .carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

.images-modal .carousel-indicators {
    bottom: 15px;
}

.images-modal .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.images-modal .carousel-indicators .active {
    background: #82bb4c;
}

.images-modal .btn-close-modal {
    position: absolute;
    top: -40px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.images-modal .btn-close-modal:hover {
    background: #e74c3c;
    color: #fff;
}

/* Video Modal */
.video-modal .modal-content {
    background: #000;
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.video-modal .modal-body {
    padding: 0;
}

.video-modal video {
    border-radius: 16px;
}

/* Details Modal */
.details-modal .modal-content {
    background: transparent;
    border: none;
}

.details-modal .modal-body {
    padding: 0;
}

.details-modal .details-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.details-modal .details-header {
    background: linear-gradient(135deg, #29592b 0%, #82bb4c 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.details-modal .details-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-modal .details-header h5 i {
    font-size: 1.2rem;
}

.details-modal .btn-close-details {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.details-modal .btn-close-details:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.details-modal .details-body {
    padding: 1.5rem;
}

.details-modal .detail-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.details-modal .detail-row:last-child {
    border-bottom: none;
}

.details-modal .detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(130, 187, 76, 0.15) 0%, rgba(41, 89, 43, 0.15) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #29592b;
    font-size: 1rem;
    margin-left: 12px;
}

.details-modal .detail-content {
    flex: 1;
}

.details-modal .detail-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}

.details-modal .detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.details-modal .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.details-modal .details-grid .detail-row {
    padding: 0.6rem 0.5rem;
}

.details-modal .report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #29592b 0%, #82bb4c 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.details-modal .report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 89, 43, 0.3);
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .images-modal .carousel-item img {
        height: 300px;
    }

    .images-modal .carousel-control-prev,
    .images-modal .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .details-modal .details-grid {
        grid-template-columns: 1fr;
    }

    .details-modal .detail-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .details-modal .details-header {
        padding: 1rem 1.25rem;
    }

    .details-modal .details-body {
        padding: 1rem;
    }
}














/* Modern Timer Styles */
.timer-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.timer-wrapper.timer-upcoming {
    border: 1px solid #c1dccf;
}

.timer-wrapper.timer-live {
    border: 1px solid #82bb4c;
}

.timer-wrapper.timer-finished {
    border: 1px solid #dcc1c1;
}

.timer-header {
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.timer-header.upcoming {
    background: linear-gradient(135deg, #c1dccf 0%, #a8d4b8 100%);
    color: #1e5631;
}

.timer-header.live {
    background: linear-gradient(135deg, #82bb4c 0%, #29592b 100%);
    color: #fff;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.timer-header.finished {
    background: linear-gradient(135deg, #dcc1c1 0%, #e8d4d4 100%);
    color: #5f2626;
}

.timer-header i {
    margin-left: 5px;
}

.timer-body {
    display: flex;
    justify-content: space-around;
    padding: 10px 5px;
    background: #fff;
}

.timer-unit {
    text-align: center;
    padding: 0 8px;
    position: relative;
}

.timer-unit:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: #e8f5e9;
}

.timer-unit .number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #29592b;
    line-height: 1;
    margin-bottom: 4px;
}

.timer-unit .label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
}

/* Price Display */
.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #dcc1c1 0%, #e8d4d4 100%);
    color: #5f2626;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.price-display img {
    width: 14px;
    filter: brightness(0) saturate(100%) invert(16%) sepia(87%) saturate(752%) hue-rotate(341deg) brightness(90%) contrast(95%);
}

/* Live Status */
.live-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #82bb4c 0%, #29592b 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.live-status .live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 400px) {
    .timer-unit .number {
        font-size: 1rem;
    }

    .timer-unit .label {
        font-size: 0.6rem;
    }

    .price-display {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}
