:root {
    --ccr-primary: #1a3c5e;
    --ccr-accent: #e63946;
    --ccr-text: #333333;
    --ccr-card-bg: #ffffff;
    --ccr-font: 'Poppins', sans-serif;
    --ccr-heading-font: 'Poppins', sans-serif;
    --ccr-radius: 10px;
}

/* ========== GRID ========== */
.ccr-car-grid { display: grid; gap: 24px; padding: 20px 0; }
.ccr-car-grid.ccr-cols-1 { grid-template-columns: 1fr; }
.ccr-car-grid.ccr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ccr-car-grid.ccr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ccr-car-grid.ccr-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
    .ccr-car-grid.ccr-cols-3, .ccr-car-grid.ccr-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .ccr-car-grid { grid-template-columns: 1fr !important; }
}

/* ========== CAR CARD ========== */
.ccr-car-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .07);
    border: 1px solid #eef1f5;
    transition: transform .3s ease, box-shadow .3s ease;
    font-family: var(--ccr-font);
    display: flex; flex-direction: column; height: 100%;
}
.ccr-car-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15, 23, 42, .12); }
.ccr-car-image { height: 230px; background-size: cover; background-position: center; position: relative; background-color: #f1f5f9; }
.ccr-car-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; color: #adb5bd; }
.ccr-car-content { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.ccr-car-title { font-family: var(--ccr-heading-font); font-size: 22px; font-weight: 600; margin: 0 0 14px; color: #0f172a; line-height: 1.25; letter-spacing: -.2px; }
.ccr-car-specs-icons { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; padding: 12px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.ccr-card-spec-row { display: inline-flex; align-items: center; gap: 6px; }
.ccr-card-spec-icon { width: 16px; height: 16px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #1a3c5e; }
.ccr-card-spec-icon svg { width: 100%; height: 100%; display: block; stroke: #1a3c5e; fill: none; }
.ccr-card-spec-text { font-size: 14px; font-weight: 500; color: #334155; line-height: 1.2; }
.ccr-car-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.ccr-car-price { display: flex; align-items: baseline; gap: 4px; }
.ccr-price-amount { font-size: 26px; font-weight: 700; color: #1a3c5e; line-height: 1.1; letter-spacing: -.5px; }
.ccr-price-period { font-size: 14px; font-weight: 500; color: #94a3b8; }

.ccr-book-btn, .ccr-car-card .ccr-book-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    padding: 12px 26px !important;
    background: var(--ccr-accent, #e63946) !important; color: #ffffff !important;
    border: 0 !important; border-radius: 8px !important;
    font-family: var(--ccr-font, 'Poppins', sans-serif) !important;
    font-size: 15px !important; font-weight: 700 !important; line-height: 1.2 !important;
    letter-spacing: .3px !important; text-decoration: none !important;
    cursor: pointer !important; white-space: nowrap !important;
    transition: background .2s ease !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}
.ccr-book-btn:hover, .ccr-car-card .ccr-book-btn:hover {
    background: #cf2e3b !important; color: #ffffff !important;
    text-decoration: none !important;
}

/* ========== FILTER ========== */
.ccr-filter-wrapper {
    background: #ffffff; border-radius: 16px;
    padding: 24px 28px; margin-bottom: 24px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
    border: 1px solid #eef0f3;
    font-family: var(--ccr-font);
}
.ccr-filter-form { display: grid; grid-template-columns: 1.1fr 1.1fr 1.1fr 1.1fr 1.3fr 1.1fr auto; gap: 16px; align-items: end; }
@media (max-width: 1280px) { .ccr-filter-form { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) { .ccr-filter-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ccr-filter-form { grid-template-columns: 1fr; } }
.ccr-filter-group { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; }
.ccr-filter-label { display: block; font-size: 14px; font-weight: 500; color: #0f172a; margin: 0 0 8px 2px; line-height: 1.2; }
.ccr-filter-select, .ccr-filter-input {
    width: 100%; height: 46px; padding: 0 16px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-family: var(--ccr-font); font-size: 15px; font-weight: 300;
    background: #fff; color: #0F172ABF; box-sizing: border-box;
    outline: 0; transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none; appearance: none;
}
.ccr-filter-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 14px;
    padding-right: 42px; cursor: pointer;
}
.ccr-filter-select:focus, .ccr-filter-input:focus { border-color: var(--ccr-accent); box-shadow: 0 0 0 3px rgba(230, 57, 70, .1); }
.ccr-price-range { display: flex; align-items: center; gap: 10px; }
.ccr-price-range .ccr-filter-input { flex: 1; min-width: 0; }
.ccr-price-range > span { color: #94a3b8; font-size: 15px; font-weight: 500; flex-shrink: 0; }
.ccr-filter-reset {
    height: 46px; padding: 0 24px;
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 8px; cursor: pointer;
    font-family: var(--ccr-font); font-size: 15px; font-weight: 500;
    color: #0f172a; white-space: nowrap; box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
    display: inline-flex; align-items: center; justify-content: center;
    align-self: end;
}
.ccr-filter-reset:hover { border-color: var(--ccr-accent); color: var(--ccr-accent); background: #fff5f6; }

/* ========== SEARCH FORM ========== */
.ccr-search-wrapper .ccr-filter-form { display: flex !important; flex-direction: column !important; gap: 18px !important; grid-template-columns: none !important; }
.ccr-search-wrapper .ccr-filter-group { width: 100% !important; display: flex; flex-direction: column; }
.ccr-search-wrapper .ccr-search-btn {
    width: 100%; height: 48px; padding: 0 24px;
    background: #e63946; color: #fff; border: 0; border-radius: 8px;
    font-family: var(--ccr-font); font-size: 16px; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    margin-top: 4px;
}
.ccr-search-wrapper .ccr-search-btn:hover { background: #cf2e3b; }

/* ========== BOOKING FORM ========== */
.ccr-booking-form-wrapper {
    background: #ffffff; border-radius: 16px; padding: 26px;
    font-family: var(--ccr-font); border: 1px solid #eef1f5;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .05); box-sizing: border-box; width: 100%;
}
.ccr-booking-title { font-family: var(--ccr-heading-font); font-size: 24px; font-weight: 700; margin: 0 0 22px; color: #0f172a; line-height: 1.2; }
.ccr-booking-form-wrapper .ccr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ccr-booking-form-wrapper .ccr-form-row { grid-template-columns: 1fr; } }
.ccr-booking-form-wrapper .ccr-form-group { margin-bottom: 16px; }
.ccr-booking-form-wrapper .ccr-form-group label { display: block; font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 8px; line-height: 1.2; }
.ccr-booking-form-wrapper .ccr-form-input {
    width: 100%; padding: 12px 14px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-family: inherit; font-size: 15px; font-weight: 400;
    background: #fff; color: #0F172ABF; box-sizing: border-box; outline: 0;
    -webkit-appearance: none; appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ccr-booking-form-wrapper .ccr-form-input:focus { border-color: #e63946; box-shadow: 0 0 0 3px rgba(230, 57, 70, .1); }
.ccr-booking-form-wrapper .ccr-form-input::placeholder { color: #94a3b8; opacity: 1; }

.ccr-payment-label { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.ccr-payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .ccr-payment-grid { grid-template-columns: 1fr; } }
.ccr-payment-card { position: relative; cursor: pointer; display: block; }
.ccr-payment-card input { position: absolute; opacity: 0; pointer-events: none; }
.ccr-payment-inner { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; transition: all .22s; position: relative; min-height: 110px; box-sizing: border-box; }
.ccr-payment-card:hover .ccr-payment-inner { border-color: #94a3b8; }
.ccr-payment-card input:checked ~ .ccr-payment-inner { border-color: #e63946; background: #fff5f6; box-shadow: 0 0 0 3px rgba(230, 57, 70, .08); }
.ccr-payment-icon { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.ccr-payment-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.ccr-payment-desc { font-size: 12px; color: #64748b; line-height: 1.4; margin-top: 2px; }
.ccr-payment-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: #e63946; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; opacity: 0; transform: scale(.5); transition: all .22s; }
.ccr-payment-card input:checked ~ .ccr-payment-inner .ccr-payment-check { opacity: 1; transform: scale(1); }

.ccr-booking-summary { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.ccr-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #334155; }
.ccr-summary-total { border-top: 1px solid #e2e8f0; margin-top: 6px; padding-top: 10px; font-size: 16px; }
.ccr-summary-total-amount { color: #e63946; font-size: 20px; font-weight: 700; }

.ccr-booking-form-wrapper button.ccr-submit-btn,
button.ccr-submit-btn {
    display: block !important; width: 100% !important; padding: 16px !important;
    background: #e63946 !important; color: #ffffff !important;
    border: 0 !important; border-radius: 8px !important;
    font-family: inherit !important; font-size: 16px !important; font-weight: 700 !important;
    cursor: pointer !important; box-shadow: none !important;
    -webkit-appearance: none !important; appearance: none !important;
    box-sizing: border-box !important; text-align: center !important; line-height: 1.2 !important;
}
.ccr-booking-form-wrapper button.ccr-submit-btn:hover,
button.ccr-submit-btn:hover { background: #cf2e3b !important; }

.ccr-form-message { margin-top: 14px; padding: 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; display: none; }
.ccr-form-message.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.ccr-form-message.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ========== GALLERY ========== */
.ccr-gallery-widget { font-family: var(--ccr-font); margin: 20px 0; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 2px 20px rgba(0, 0, 0, .06); }
.ccr-gallery-stage { position: relative; overflow: hidden; background: #f1f3f5; border-radius: 12px; width: 100%; height: 480px; }
@media (max-width: 900px) { .ccr-gallery-stage { height: 380px; } }
@media (max-width: 600px) { .ccr-gallery-stage { height: 240px; } }
.ccr-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .5s ease, transform .5s ease, visibility .5s; pointer-events: none; }
.ccr-slide.active { opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto; z-index: 1; }
.ccr-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccr-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #111; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 4px 20px rgba(0, 0, 0, .15); transition: all .25s; }
.ccr-arrow:hover { background: var(--ccr-accent); color: #fff; transform: translateY(-50%) scale(1.08); }
.ccr-arrow-prev { left: 14px; }
.ccr-arrow-next { right: 14px; }
.ccr-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 12px; }
.ccr-thumb { aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; border: 2px solid transparent; border-radius: 8px; transition: all .25s; background: #f1f3f5; opacity: .65; }
.ccr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ccr-thumb:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.ccr-thumb:hover img { transform: scale(1.06); }
.ccr-thumb.active { opacity: 1; border-color: var(--ccr-accent); box-shadow: 0 0 0 2px rgba(230, 57, 70, .15); }
.ccr-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.ccr-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all .3s; }
.ccr-dot:hover { transform: scale(1.3); }
.ccr-dot.active { background: var(--ccr-accent); width: 26px; border-radius: 4px; }

/* ========== SPECIFICATIONS ========== */
.ccr-specs-list { display: flex; flex-direction: column; gap: 14px; font-family: var(--ccr-font); }
.ccr-specs-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.ccr-specs-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
@media (max-width: 600px) { .ccr-specs-grid2, .ccr-specs-grid3 { grid-template-columns: 1fr; } }
.ccr-spec-row { display: flex; align-items: center; gap: 10px; }
.ccr-spec-icon { width: var(--ccr-icon-size, 22px); height: var(--ccr-icon-size, 22px); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #1a3c5e; }
.ccr-spec-icon svg { width: 100%; height: 100%; display: block; }
.ccr-spec-text { font-size: 15px; font-weight: 600; color: #0f172a; line-height: 1.3; }

/* ========== SINGLE CAR PAGE ========== */
.ccr-single-car { font-family: var(--ccr-font); background: #f8fafc; padding: 32px 0 60px; min-height: 60vh; }
.ccr-single-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.ccr-single-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: #fff; border-radius: 16px; padding: 24px 28px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.ccr-single-title { font-family: var(--ccr-heading-font); font-size: 32px; font-weight: 800; margin: 0 0 10px; color: #0f172a; line-height: 1.2; }
.ccr-single-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.ccr-single-cat { display: inline-block; background: #eff6ff; color: #1e40af; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.ccr-single-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ccr-single-price-chip { display: flex; align-items: baseline; gap: 4px; background: linear-gradient(135deg, var(--ccr-primary), #2c5282); color: #fff; padding: 12px 22px; border-radius: 12px; box-shadow: 0 4px 14px rgba(26, 60, 94, .25); }
.ccr-single-price-chip-amount { font-size: 26px; font-weight: 800; }
.ccr-single-price-chip-period { font-size: 13px; opacity: .85; }
.ccr-single-deposit-chip { font-size: 12px; color: #64748b; background: #f1f5f9; padding: 5px 12px; border-radius: 20px; }
.ccr-single-body { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 1024px) { .ccr-single-body { grid-template-columns: 1fr; } .ccr-single-right { position: static !important; } }
.ccr-single-left { display: flex; flex-direction: column; gap: 24px; }
.ccr-single-card { background: #fff; border-radius: 16px; padding: 24px 28px; box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.ccr-single-card-title { display: flex; align-items: center; gap: 10px; font-family: var(--ccr-heading-font); font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.ccr-single-card-title svg { color: #1a3c5e; flex-shrink: 0; }
.ccr-single-description { font-size: 15px; line-height: 1.75; color: #475569; }
.ccr-single-right { position: sticky; top: 24px; }

/* ========== CAR SLIDER — full width fix ========== */
.ccr-slider-widget { position: relative; width: 100%; max-width: 100%; box-sizing: border-box; overflow: visible; }
.ccr-slider-viewport { position: relative; overflow: hidden; width: 100%; box-sizing: border-box; padding: 10px 0; margin: 0; }
.ccr-slider-track { display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin: 0 calc(var(--ccr-slider-gap, 24px) / -2); padding: 4px 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; box-sizing: border-box; }
.ccr-slider-track::-webkit-scrollbar { display: none; }
.ccr-slider-track > .ccr-slide-item { flex: 0 0 calc(100% / var(--ccr-slides-desktop, 3)); max-width: calc(100% / var(--ccr-slides-desktop, 3)); padding: 0 calc(var(--ccr-slider-gap, 24px) / 2); box-sizing: border-box; scroll-snap-align: start; }
@media (max-width: 1024px) { .ccr-slider-track > .ccr-slide-item { flex-basis: calc(100% / var(--ccr-slides-tablet, 2)); max-width: calc(100% / var(--ccr-slides-tablet, 2)); } }
@media (max-width: 767px) { .ccr-slider-track > .ccr-slide-item { flex-basis: calc(100% / var(--ccr-slides-mobile, 1)); max-width: calc(100% / var(--ccr-slides-mobile, 1)); } }

.ccr-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #0f172a; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; box-shadow: 0 4px 16px rgba(15, 23, 42, .15); opacity: 1; padding: 0; margin: 0; }
.ccr-slider-arrow:hover { background: #e63946; color: #fff; }
.ccr-slider-arrow.ccr-slider-prev { left: 8px; }
.ccr-slider-arrow.ccr-slider-next { right: 8px; }
.ccr-slider-arrow[disabled] { opacity: .35 !important; cursor: not-allowed; }
@media (max-width: 767px) { .ccr-slider-arrow { width: 38px; height: 38px; } }

.ccr-slider-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.ccr-slider-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; margin: 0; background: #cbd5e1; cursor: pointer; flex-shrink: 0; transition: width .3s, background .3s; }
.ccr-slider-dot:hover { background: #94a3b8; }
.ccr-slider-dot.active { background: #e63946; width: 26px; border-radius: 4px; }

/* Ensure slider card icons match grid exactly */
.ccr-slider-widget .ccr-card-spec-icon,
.ccr-slider-widget .ccr-car-card .ccr-card-spec-icon { color: #1a3c5e !important; }
.ccr-slider-widget .ccr-card-spec-icon svg,
.ccr-slider-widget .ccr-car-card .ccr-card-spec-icon svg { stroke: #1a3c5e !important; fill: none !important; }
.ccr-slider-widget .ccr-car-card { height: 100%; margin: 0; }

/* ========== MISC ========== */
.ccr-no-results { padding: 40px; text-align: center; color: #6c757d; grid-column: 1 / -1; }

.elementor-widget-ccr_search_form,
.elementor-widget-ccr_search_form .elementor-widget-container,
.elementor-widget-ccr_booking_form,
.elementor-widget-ccr_booking_form .elementor-widget-container,
.elementor-widget-ccr_car_grid,
.elementor-widget-ccr_car_grid .elementor-widget-container,
.elementor-widget-ccr_car_slider,
.elementor-widget-ccr_car_slider .elementor-widget-container {
    width: 100%;
    max-width: 100%;
}