/* ============================================================
   Kars-style Listing (inventory-grid) — adapted for Daqeeqa
   Scope: listing page only (.kars-reservation / .kars-grid)
   ============================================================ */
:root {
    --kars-theme: #0f6887;
    --kars-title: #1b1a28;
    --kars-white: #ffffff;
    --kars-smoke: #f5f6fa;
    --kars-border: #e4e4e4;
    --kars-text: #6b6b6b;
}

/* ---------- Search / Reservation bar ---------- */
.kars-reservation {
    position: relative;
    z-index: 5;
    margin-top: 30px;
}
.kars-reservation .reservation-wrapper {
    box-shadow: 0px 4px 23px rgba(0, 0, 0, 0.08);
    background: var(--kars-white);
    border-radius: 20px;
}
.kars-reservation .reservation-form {
    width: 100%;
    position: relative;
}
.kars-reservation .select-group-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.4fr;
    row-gap: 15px;
    column-gap: 18px;
    padding: 25px;
    margin-bottom: 0;
}
.kars-reservation .select-group-wrapper .form-group {
    margin-bottom: 0;
}
.kars-reservation select,
.kars-reservation .nice-select,
.kars-reservation input[type="text"] {
    width: 100%;
    height: 56px;
    line-height: 54px;
    background: var(--kars-smoke);
    border: 1px solid var(--kars-border);
    border-radius: 10px;
    padding: 0 20px;
    font-size: 15px;
    color: var(--kars-title);
    float: none;
}
.kars-reservation input[type="text"]:focus {
    outline: none;
    border-color: var(--kars-theme);
}
.kars-reservation .nice-select:after {
    border-color: var(--kars-title);
}
.kars-reservation .nice-select .list {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    z-index: 10;
}
.kars-reservation .advance-btn-wrapper {
    display: flex;
    gap: 12px;
}
.kars-reservation .advance-search-btn {
    height: 56px;
    width: 56px;
    min-width: 56px;
    border: 1px solid var(--kars-border);
    border-radius: 10px;
    text-align: center;
    line-height: 56px;
    cursor: pointer;
    transition: 0.4s;
    color: var(--kars-title);
    background: var(--kars-smoke);
}
.kars-reservation .advance-search-btn:hover,
.kars-reservation .advance-search-btn.active {
    background: var(--kars-theme);
    border-color: var(--kars-theme);
    color: var(--kars-white);
}
.kars-reservation .th-btn-kars {
    flex: 1;
}

/* ---------- Advanced search panel ---------- */
.kars-reservation .advance-search-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    row-gap: 20px;
    column-gap: 18px;
    background: var(--kars-white);
    padding: 25px;
    margin-top: 14px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 5px 16px;
    border-radius: 20px;
    position: absolute;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 6;
}
.kars-reservation .advance-search-wrapper.open {
    opacity: 1;
    visibility: visible;
}
.kars-reservation .advance-search-wrapper .form-group {
    margin-bottom: 0;
}

/* ---------- th-btn (Kars button) ---------- */
.th-btn-kars {
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    text-align: center;
    background-color: var(--kars-theme);
    color: var(--kars-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 0 26px;
    height: 56px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s;
    text-decoration: none;
}
.th-btn-kars:hover {
    background-color: var(--kars-title);
    color: var(--kars-white);
}
.th-btn-kars.sm {
    height: 44px;
    padding: 0 18px;
    font-size: 13px;
    border-radius: 8px;
}

/* ---------- Top filter row (showing + sort) ---------- */
.inventory-top-filer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--kars-border);
    margin-bottom: 22px;
    padding-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.inventory-top-filer-wrap .left-content p {
    margin-bottom: 0;
    color: var(--kars-text);
}
.inventory-top-filer-wrap .filter-search {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.inventory-top-filer-wrap .filter-search .form-group {
    margin-bottom: 0;
    min-width: 200px;
}
.inventory-top-filer-wrap .filter-search select,
.inventory-top-filer-wrap .filter-search .nice-select {
    width: 100%;
    height: 50px;
    line-height: 48px;
    border: 1px solid var(--kars-border);
    border-radius: 10px;
    background: var(--kars-white);
    padding: 0 20px;
    float: none;
}
.inventory-top-filer-wrap .filter-search .nice-select .list {
    width: 100%;
    z-index: 10;
}
.inventory-top-filer-wrap .icon-item a,
.inventory-top-filer-wrap .icon-item button {
    display: inline-block;
    height: 50px;
    width: 50px;
    border: 1px solid var(--kars-border);
    border-radius: 10px;
    text-align: center;
    line-height: 48px;
    color: var(--kars-title);
    font-size: 18px;
    background: var(--kars-white);
    transition: 0.4s;
}
.inventory-top-filer-wrap .icon-item.active a,
.inventory-top-filer-wrap .icon-item a:hover {
    background: var(--kars-theme);
    color: var(--kars-white);
    border-color: var(--kars-theme);
}

/* ---------- Car card (feature-list-1) ---------- */
.feature-list-1 {
    padding: 10px;
    background: var(--kars-white);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: 0.4s;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 5px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.feature-list-1:hover {
    border: 1px solid rgba(15, 104, 135, 0.36);
}
.feature-list-1:hover .car-bottom .th-btn-kars {
    background: var(--kars-title);
    color: var(--kars-white);
}
.feature-list-1 .box-icon {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.feature-list-1 .box-icon > img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.5s;
}
.feature-list-1:hover .box-icon > img {
    transform: scale(1.05);
}
.feature-list-1 .actions {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    text-align: center;
    z-index: 2;
    display: grid;
    align-content: center;
    width: 38px;
    gap: 7px;
}
.feature-list-1 .actions .icon-btn,
.feature-list-1 .actions .compare-toggle {
    height: 36px;
    width: 36px;
    min-width: 36px;
    line-height: 34px;
    text-align: center;
    color: var(--kars-title);
    background: var(--kars-white);
    border: 1px solid var(--kars-border);
    border-radius: 8px;
    transition: 0.4s;
    display: inline-block;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
}
.feature-list-1 .actions .icon-btn:hover,
.feature-list-1 .actions .compare-toggle:hover,
.feature-list-1 .actions .compare-toggle.active {
    background-color: var(--kars-theme);
    border-color: var(--kars-theme);
    color: var(--kars-white);
}
.feature-list-1 .brand-badge {
    position: absolute;
    bottom: 10px;
    inset-inline-start: 10px;
    background: rgba(27, 26, 40, 0.85);
    color: var(--kars-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 12px;
    z-index: 2;
}
.feature-list-1 .car-content {
    padding: 20px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.feature-list-1 .media-body {
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 15px;
    margin-bottom: 11px;
}
.feature-list-1 .media-body .box-title {
    margin-bottom: 4px;
    font-size: 19px;
    line-height: 1.3;
}
.feature-list-1 .media-body .box-title a {
    color: var(--kars-title);
    text-decoration: none;
}
.feature-list-1 .media-body .box-title a:hover {
    color: var(--kars-theme);
}
.feature-list-1 .media-body .box-text {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--kars-text);
}
.feature-list-1 .media-body .box-text span {
    color: var(--kars-title);
    font-weight: 600;
}
.feature-list-1 .car-feature {
    display: flex;
    justify-content: space-between;
    padding-inline-start: 0;
    border-bottom: 1px solid var(--kars-border);
    padding-bottom: 13px;
    margin-bottom: 13px;
    flex-wrap: wrap;
}
.feature-list-1 .car-feature li {
    list-style: none;
    display: flex;
    gap: 6px;
    font-size: 13px;
    align-items: center;
    position: relative;
    color: var(--kars-text);
}
.feature-list-1 .car-feature li i,
.feature-list-1 .car-feature li [class^="icon-"] {
    color: var(--kars-theme);
    font-size: 15px;
}
.feature-list-1 .car-feature li.divider {
    width: 1px;
    height: 14px;
    background: var(--kars-border);
    margin-top: 4px;
}
.feature-list-1 .car-feature li.divider:last-child {
    display: none;
}
.feature-list-1 .car-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}
.feature-list-1 .car-bottom .box-title {
    font-size: 18px;
    color: var(--kars-theme);
    font-weight: 700;
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .kars-reservation .select-group-wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .kars-reservation .advance-search-wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media (max-width: 767px) {
    .kars-reservation .select-group-wrapper {
        grid-template-columns: 1fr 1fr;
        padding: 18px;
    }
    .kars-reservation .advance-search-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .inventory-top-filer-wrap .filter-search .form-group {
        min-width: 160px;
    }
}
@media (max-width: 470px) {
    .kars-reservation .select-group-wrapper,
    .kars-reservation .advance-search-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ---------- قوائم native بسهم مخصص — بدون أى مكتبات ---------- */
.kars-reservation select,
.inventory-top-filer-wrap .filter-search select,
.car-search-box select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231b1a28' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-inline-end: 20px;
    padding-inline-start: 40px;
    cursor: pointer;
}
[dir="ltr"] .kars-reservation select,
[dir="ltr"] .inventory-top-filer-wrap .filter-search select {
    background-position: right 16px center;
}
