/* ==============================
   GENERAL TYPOGRAPHY
============================== */
.car-gallery h3,
#cg-gallery h3,
.car-tile h3 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #003e51;
    margin-bottom: 8px;
}

.detail-title {
    color: #003e50;
    font-weight: bold;
}

/* ==============================
   CAR GALLERY LAYOUT
============================== */
.car-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    align-items: stretch;
}

/* ==============================
   CAR TILE
============================== */
.car-tile {
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px #41b6e6 solid;
    border-radius: 15px;
}

.car-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
	background: #41b6e6;
	
}

/* Car Image */
.car-image {
    width: 100%;
    max-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.car-image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.car-image-placeholder {
    width: 100%;
    height: 160px;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
}

.car-title {
    font-size: 17px;
    font-weight: 600;
    color: #003e50;
    margin: 8px 0;
}

/* Pills */
.car-pill-row.align-split {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 180px;
    margin: 8px auto;
}

.car-pill {
    background-color: #fff;
    color: #000;
    padding: 5px 12px;
    border-radius: 5px;
    border: #41b6e6 solid 1px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    flex: 1;
    margin: 0 4px;
}


.align-left { justify-self: flex-start; }
.align-right { justify-self: flex-end; }

.car-price-week,
.car-tax-savings {
    font-size: 14px;
    margin: 3px 0;
}

.car-price-week strong,
.car-tax-savings strong {
    color: #003e50;
}

/* ==============================
   BUTTON (Request a Quote only)
============================== */
.car-quote-btn {
    background-color: #003e51;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.car-quote-btn:hover {
    background-color: #f0ef4f;
    color: #003e51;
    transform: scale(1.05);
	text-decoration: none;

}

/* ==============================
   FILTER BAR
============================== */
.cg-filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px auto;
    max-width: 1000px;
    padding: 40px 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.cg-filter-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cg-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cg-type-option span {
    font-size: 13px;
    color: #333;
}

.cg-type-option span.active {
    font-size: 13px;
    color: #fff;
}

.cg-type-option.active {
    background-color: #41b6e6;
    transform: translateY(-2px);
    color: #fff;
}

.cg-filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cg-filter-controls select {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 140px;
}

/* ==============================
   PRICE SLIDER (noUiSlider)
============================== */
.cg-price-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cg-price-title {
    font-size: 18px;
    font-weight: 600;
    color: #003e51;
    text-align: center;
    margin-top: 30px;
}

#cg-price-slider {
    width: 600px;
    max-width: 90%;
    margin: 20px auto;
}

/* noUiSlider theming */
.noUi-target {
    background: #e6f4fb; /* light background */
    border-radius: 10px;
    border: 1px solid #41b6e6; /* mist border */
    height: 10px;
}

.noUi-connect {
    background: #41b6e6 !important; /* mist fill */
}

.noUi-handle {
    background: #003e51 !important; /* teal */
   box-shadow: none !important;
    border-radius: 100% !important;
    width: 20px;
    height: 20px;
    top: -6px;
    cursor: grab;
    
}

/* Remove default white bars inside handle */
.noUi-handle::before,
.noUi-handle::after {
    display: none;
}

.noUi-handle:hover,
.noUi-handle:focus {
    background-color: #005066; /* lighter teal */
    transform: scale(1.1);
}

.noUi-handle:active {
    cursor: grabbing;
    transform: scale(1.15);
}

/* Min/Max Labels */
#price-min-label,
#price-max-label {
    font-size: 13px;
    color: #333;
    min-width: 50px;
    text-align: center;
}

/* Reset Button */
#cg-reset-btn {
    background-color: #003e51;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 30px;
}

#cg-reset-btn:hover {
    color: #fff;
    background-color: #41b6e6;
    transform: translateY(-1px);
}

/* Vehicle Type Filter Title */
.cg-filter-types-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cg-filter-types-title {
    font-size: 20px;
    font-weight: bold;
    color: #003e50;
    margin-bottom: 8px;
}

/* ==============================
   RESPONSIVENESS
============================== */
@media (max-width: 1023px) {
    .car-tile {
        width: calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    .car-tile {
        width: 100%;
    }

    .cg-filter-controls {
        flex-direction: column;
    }

    #cg-price-slider {
        width: 280px;
    }
}

/* ==============================
   PAGINATION
============================== */
.cg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.cg-pagination button {
    background: #fff;
    border: 1px solid #41b6e6; /* mist */
    color: #003e51; /* teal */
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.cg-pagination button.active,
.cg-pagination button:hover {
    background: #41b6e6; /* mist */
    color: #fff;
}

/* ==============================
   EV FOOTNOTE
============================== */
.car-ev-footnote {
    font-size: 0.85rem;
    color: #2d7a2d;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
	 margin-top: 5px;
}

.ev-footnote-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.car-tile:hover .car-ev-footnote img {
  content: url('https://www.paywise.com.au/wp-content/uploads/2025/09/EV-FBT-Icon-only-hover.png');
}

.car-inclusions {
    font-size: 14px;
    color: #000; /* Black text */
    margin-top: 5px;
    line-height: 1.4;
}

.car-quote-container {
    margin-top: auto;
    padding-top: 12px;
}

