/* ═══════════════════════════════════════════════════════════════════════════
   CAR DETAIL PAGE — Chisfis / Airbnb-style Layout
   Brand: #038a52 (green primary), #f47c04 (orange accent)
   Style: Plain, no gradients, minimal shadows
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────────────────────── */
.bc_detail_car {
    background: #fff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111827;
}

/* ── Photo Gallery Mosaic ──────────────────────────────────────────────────── */
.listing-gallery-header {
    padding-top: 24px;
}
.listing-gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
}

/* 4 images: main 2x2, side tall 1x2, two small 1x1 */
.listing-gallery-grid--4 .gallery-cell--0 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.listing-gallery-grid--4 .gallery-cell--1 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}
.listing-gallery-grid--4 .gallery-cell--2 {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}
.listing-gallery-grid--4 .gallery-cell--3 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* 3 images: main 2x2, two side 1x1 stacked */
.listing-gallery-grid--3 .gallery-cell--0 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.listing-gallery-grid--3 .gallery-cell--1 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}
.listing-gallery-grid--3 .gallery-cell--2 {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

/* 2 images: side by side */
.listing-gallery-grid--2 {
    grid-template-columns: 1fr 1fr;
}
.listing-gallery-grid--2 .gallery-cell--0 {
    grid-row: 1 / 3;
}
.listing-gallery-grid--2 .gallery-cell--1 {
    grid-row: 1 / 3;
}

/* 1 image: full width */
.listing-gallery-grid--1 {
    grid-template-columns: 1fr;
    grid-template-rows: 400px;
}
.listing-gallery-grid--1 .gallery-cell--0 {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.gallery-cell {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-cell:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.04);
    transition: opacity 0.2s;
}

.gallery-show-all {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    z-index: 2;
}
.gallery-show-all:hover {
    background: #e5e7eb;
}
.gallery-show-all i {
    font-size: 15px;
}

.gallery-video-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    z-index: 2;
    text-decoration: none;
}
.gallery-video-btn:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}
.gallery-video-btn i {
    font-size: 18px;
    color: #038a52;
}

/* ── Main 2-Column Layout ──────────────────────────────────────────────────── */
.listing-layout {
    display: flex;
    flex-direction: row;
    margin-top: 44px;
}
.listing-content-col {
    flex: 0 0 60%;
    max-width: 60%;
    padding-right: 40px;
}
.listing-sidebar-col {
    flex: 0 0 40%;
    max-width: 40%;
}
.listing-sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* ── Section Wraps (Chisfis-style) ─────────────────────────────────────────── */
.listingSection__wrap {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}
.listingSection__wrap:last-child {
    border-bottom: none;
}
.listingSection__wrap h2 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}
.listing-divider-sm {
    width: 56px;
    height: 0;
    border-bottom: 1px solid #d1d5db;
    margin: 16px 0;
}
.listing-sub-text {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

/* ── Title & Meta ──────────────────────────────────────────────────────────── */
.listing-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.3;
}
.listing-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
}
.listing-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.listing-meta-item i {
    font-size: 14px;
}
.listing-star-icon {
    color: #f47c04 !important;
}
.listing-dot {
    margin: 0 4px;
    color: #d1d5db;
}

/* ── Specs Row ─────────────────────────────────────────────────────────────── */
.listing-specs-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}
.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 14px;
    color: #374151;
}
.spec-item i {
    font-size: 22px;
    color: #6b7280;
}

/* ── Attributes (Vehicle Parameters) ───────────────────────────────────────── */
.bc_detail_car .g-attributes {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}
.bc_detail_car .g-attributes h3 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    padding-bottom: 0;
    border-bottom: none;
}
.bc_detail_car .g-attributes h3::after {
    content: '';
    display: block;
    width: 56px;
    height: 1px;
    background: #d1d5db;
    margin-top: 16px;
}
.bc_detail_car .g-attributes .list-attributes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-top: 16px;
}
.bc_detail_car .g-attributes .list-attributes .item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #374151;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}
.bc_detail_car .g-attributes .list-attributes .item i {
    font-size: 20px;
    color: #038a52;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.bc_detail_car .g-attributes .list-attributes .item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Description ───────────────────────────────────────────────────────────── */
.listing-description {
    font-size: 15px;
    color: #374151;
    line-height: 1.75;
}
.listing-description p {
    margin-bottom: 12px;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.listing-faq-list {
    margin: 0;
}
.listing-faq-item {
    border-bottom: 1px solid #f3f4f6;
}
.listing-faq-item:last-child {
    border-bottom: none;
}
.listing-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
.listing-faq-header i {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s;
}
.listing-faq-item.open .listing-faq-header i {
    transform: rotate(180deg);
}
.listing-faq-body {
    display: none;
    padding: 0 0 14px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}
.listing-faq-item.open .listing-faq-body {
    display: block;
}

/* ── Map ───────────────────────────────────────────────────────────────────── */
.listing-map-box {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    border: 1px solid #e5e7eb;
}
.listing-map-box #map_content {
    width: 100%;
    height: 100%;
}

/* ── Owner + Things Grid ───────────────────────────────────────────────────── */
.listing-full-width {
    margin-top: 16px;
}
.listing-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ── Checklist (Things to know) ────────────────────────────────────────────── */
.listing-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.checklist-item {
    padding: 0;
}
.checklist-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}
.checklist-desc {
    font-size: 14px;
    color: #6b7280;
}

/* ── Owner Card (vendor include) ───────────────────────────────────────────── */
.bc_detail_car .owner-info {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}
.bc_detail_car .owner-info .media .media-left img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    object-fit: cover;
}
.bc_detail_car .owner-info .owner-name a {
    color: #111827;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

/* ── Review Section ────────────────────────────────────────────────────────── */
.bc_detail_car .review-list-all {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}
.bc_detail_car .review-list-all h3,
.bc_detail_car .bc-review-list h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* ── Booking Sidebar ───────────────────────────────────────────────────────── */
.bc_detail_car .bc_single_book_wrap {
    position: static;
}
.bc_detail_car .bc_single_book {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* Price header — white background */
.bc_detail_car .bc_single_book .form-head {
    background: #fff;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}
.bc_detail_car .bc_single_book .form-head .price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.bc_detail_car .bc_single_book .form-head .price .label {
    font-size: 14px;
    color: #6b7280;
}
.bc_detail_car .bc_single_book .form-head .price .value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.bc_detail_car .bc_single_book .form-head .price .onsale {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}
.bc_detail_car .bc_single_book .form-head .price .text-lg {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
}

/* Sale badge */
.bc_detail_car .bc_single_book .tour-sale-box {
    position: absolute;
    top: 20px;
    right: 20px;
}
.bc_detail_car .bc_single_book .tour-sale-box .sale_class {
    background: #f47c04;
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Tabs */
.bc_detail_car .bc_single_book .nav-enquiry {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}
.bc_detail_car .bc_single_book .nav-enquiry .enquiry-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}
.bc_detail_car .bc_single_book .nav-enquiry .enquiry-item.active {
    color: #038a52;
    border-bottom-color: #038a52;
}
.bc_detail_car .bc_single_book .nav-enquiry .enquiry-item:hover {
    color: #038a52;
}

/* Form body */
.bc_detail_car .bc_single_book .form-book {
    padding: 0;
}
.bc_detail_car .bc_single_book .form-content {
    padding: 0 24px;
}
.bc_detail_car .bc_single_book .form-content label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
}
.bc_detail_car .bc_single_book .form-content .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
}
.bc_detail_car .bc_single_book .form-content .form-control:focus {
    border-color: #038a52;
    box-shadow: none;
    outline: none;
}

/* Dates */
.bc_detail_car .bc_single_book .form-date-field {
    margin-bottom: 0;
}
.bc_detail_car .bc_single_book .date-wrapper {
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}
.bc_detail_car .bc_single_book .date-wrapper .check-in-render {
    font-size: 15px;
    color: #111827;
    font-weight: 500;
}

/* Number */
.bc_detail_car .bc_single_book .form-guest-search {
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 0;
}
.bc_detail_car .bc_single_book .input-number-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bc_detail_car .bc_single_book .input-number-group i {
    font-size: 22px;
    color: #038a52;
    cursor: pointer;
}
.bc_detail_car .bc_single_book .input-number-group .input input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* Sections */
.bc_detail_car .bc_single_book .form-section-group {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.bc_detail_car .bc_single_book .form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

/* Extra prices */
.bc_detail_car .bc_single_book .extra-price-wrap {
    padding: 6px 0;
    font-size: 14px;
}
.bc_detail_car .bc_single_book .extra-price-wrap label {
    text-transform: none;
    font-weight: 400;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bc_detail_car .bc_single_book .extra-price-wrap input[type="checkbox"] {
    accent-color: #038a52;
    width: 16px;
    height: 16px;
}
.bc_detail_car .bc_single_book .extra-price-wrap .flex-shrink-0 {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

/* Total */
.bc_detail_car .bc_single_book .form-section-total {
    background: #f9fafb;
    margin: 0;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}
.bc_detail_car .bc_single_book .form-section-total li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.bc_detail_car .bc_single_book .form-section-total li label {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    text-transform: none;
}
.bc_detail_car .bc_single_book .form-section-total li .price {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* Submit */
.bc_detail_car .bc_single_book .submit-group {
    padding: 16px 24px 24px;
}
.bc_detail_car .bc_single_book .submit-group .btn-large {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}
.bc_detail_car .bc_single_book .submit-group .btn-primary,
.bc_detail_car .bc_single_book .submit-group .btn-large {
    background: #038a52;
    color: #fff !important;
}
.bc_detail_car .bc_single_book .submit-group .btn-large:hover {
    background: #026b3f;
}
.bc_detail_car .bc_single_book .submit-group .btn-success {
    background: #038a52;
    color: #fff !important;
}
.bc_detail_car .bc_single_book .submit-group .btn-success:hover {
    background: #026b3f;
}
.bc_detail_car .bc_single_book .submit-group .alert-text {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
}
.bc_detail_car .bc_single_book .submit-group .alert-text.danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.bc_detail_car .bc_single_book .submit-group .alert-text.success {
    background: #f0fdf4;
    color: #038a52;
    border: 1px solid #bbf7d0;
}

/* Enquiry button */
.bc_detail_car .bc_single_book .form-send-enquiry {
    padding: 16px 24px 24px;
}
.bc_detail_car .bc_single_book .form-send-enquiry .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    background: #038a52;
    border-color: #038a52;
}
.bc_detail_car .bc_single_book .form-send-enquiry .btn-primary:hover {
    background: #026b3f;
    border-color: #026b3f;
}

/* ── Related Cars ──────────────────────────────────────────────────────────── */
.bc_detail_car .bc-list-car-related {
    padding: 40px 0 24px;
}
.bc_detail_car .bc-list-car-related h2 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

/* ── Mobile Bottom Bar ─────────────────────────────────────────────────────── */
.bc_detail_car .bc-more-book-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 0;
    display: none;
}
.bc_detail_car .bc-more-book-mobile .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    max-width: 100%;
}
.bc_detail_car .bc-more-book-mobile .left {
    flex: 1;
}
.bc_detail_car .bc-more-book-mobile .g-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.bc_detail_car .bc-more-book-mobile .g-price .prefix .fr_text {
    font-size: 12px;
    color: #6b7280;
}
.bc_detail_car .bc-more-book-mobile .g-price .price .onsale {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 4px;
}
.bc_detail_car .bc-more-book-mobile .g-price .price .text-price {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}
.bc_detail_car .bc-more-book-mobile .right .btn-primary,
.bc_detail_car .bc-more-book-mobile .right .bc-button-book-mobile {
    background: #038a52;
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.bc_detail_car .bc-more-book-mobile .right .btn-primary:hover,
.bc_detail_car .bc-more-book-mobile .right .bc-button-book-mobile:hover {
    background: #026b3f;
}

/* ── Hide old unused elements ──────────────────────────────────────────────── */
.bc_detail_car .g-header {
    display: none;
}

/* ── Breadcrumb (if still included elsewhere) ──────────────────────────────── */
.car-detail-breadcrumb {
    display: none;
}

/* ── Fotorama (gallery) ────────────────────────────────────────────────────── */
.bc_detail_car .fotorama {
    border-radius: 8px;
    overflow: hidden;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .listing-layout {
        flex-direction: column;
    }
    .listing-content-col {
        flex: none;
        max-width: 100%;
        padding-right: 0;
    }
    .listing-sidebar-col {
        flex: none;
        max-width: 100%;
        margin-top: 32px;
    }
    .listing-sidebar-sticky {
        position: static;
    }
    .listing-two-col-grid {
        grid-template-columns: 1fr;
    }
    .bc_detail_car .bc-more-book-mobile {
        display: block;
    }
    .listing-content-col {
        padding-bottom: 80px;
    }
}

@media (max-width: 767px) {
    .listing-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 280px;
        border-radius: 8px;
    }
    .listing-gallery-grid .gallery-cell {
        display: none;
    }
    .listing-gallery-grid .gallery-cell--0 {
        display: block;
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .gallery-show-all {
        bottom: 12px;
        left: 12px;
        font-size: 13px;
        padding: 6px 12px;
    }
    .gallery-video-btn {
        bottom: 12px;
        right: 12px;
        font-size: 13px;
        padding: 6px 12px;
    }
    .listing-title {
        font-size: 22px;
    }
    .listing-layout {
        margin-top: 24px;
    }
    .listing-specs-row {
        gap: 16px;
    }
    .bc_detail_car .g-attributes .list-attributes {
        grid-template-columns: 1fr;
    }
    .bc_detail_car .bc-list-car-related .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 14px;
    }
    .listing-gallery-header {
        padding-top: 12px;
    }
    .bc_detail_car .bc_single_book .form-head {
        padding: 20px 20px 14px;
    }
    .bc_detail_car .bc_single_book .form-head .price .text-lg {
        font-size: 24px;
    }
    .bc_detail_car .bc_single_book .form-content {
        padding: 0 20px;
    }
    .bc_detail_car .bc_single_book .form-section-total {
        padding: 14px 20px;
    }
    .bc_detail_car .bc_single_book .submit-group {
        padding: 14px 20px 20px;
    }
}
