/* Design Sample Matching CSS - Exact styling from sample-car-page */

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    direction: rtl;
}


/* ============================================
   TOOLS STYLES
   ============================================ */
.title-line {
	display: flex;
	align-items: center;
	width: 100%;
}

.title-line h2 {
	margin: 0;
	padding-left: 1rem;
	white-space: nowrap;
	font-weight: 600;
	color: #666666;
	font-size: 1.6rem;
}

.title-line .line {
	flex: 1;
	height: 1px;
	background-color: #ccc; /* צבע הקו */
}

.form-select {
	background-position: left .75rem center;
}

[type=email], [type=number], [type=tel] {
    text-align: right;
}

.no-margin,
.no-margin p,
.no-margin h1,
.no-margin h2,
.no-margin h3
{
    margin-bottom: 0;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.header-nav .navbar {
	padding: 0;
}

.header-nav .navbar-brand {
    color: #0066b3;
    font-weight: bold;
    font-size: 1.5rem;
	margin-right: 0;
	margin-left: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.header-nav .navbar-brand .site-logo {
	height: 30px;
	width: auto;
}

.header-nav .nav-links {
    display: flex;
    gap: 20px;
}

.header-nav .nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.header-nav .nav-link.active {
    background-color: #0066b3;
    color: #fff;
}

.header-favorites-icon {
    position: relative;
    color: #e74c3c;
    font-size: 1.3rem;
}

.header-favorites-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.search-buttons {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 15px;
	margin-top: 30px;
}

.search-buttons .search-btn {
    background-color: #0096cc00;
    border: 2px solid #f0f0f0;
    color: #f0f0f0;
}

.search-buttons .search-btn:hover {
    background-color: #0095cc;
	color: #fff;
}

.search-buttons .btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-buttons .btn.active {
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.4);
    transform: translateY(-2px);
	background-color: #00a8e8;
	border-color: transparent;
}

.search-buttons .btn.active:hover {
    color: #f7f7f7;
    background-color: #0196ce;
}



.main-search-module {
	position: relative;
	width: 100%;
	height: 100%;
	background-color: #164E75;
	background-image: linear-gradient(270deg, #3A8FB3 0%, #164E75 100%);
	text-align: center;
	padding: 25px 0;
}

.main-search-module .subtitle {
	font-size: 14px;
	color: #ffdddd;
	margin-bottom: 32px;
	text-align: center;
}

.main-search-module .main-search-title {
	font-size: 2rem;
	font-weight: 600;
	color: #fafafa;
	
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    transition: all 0.3s ease;
}

/* Hide manufacturer filter by default */
.manufacturer-filter-bar {
    display: none;
    opacity: 0;
}

/* Show manufacturer filter when active */
.manufacturer-filter-bar.active {
    display: block;
    opacity: 1;
}

/* Hide regular filter when manufacturer is active */
.filter-bar.regular-filter {
    display: block;
    opacity: 1;
}

.filter-bar.regular-filter.hidden {
    display: none;
    opacity: 0;
}

.filter-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
}

.filter-item {
    flex: 1;
	width: 100%;
}

.filter-item label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2px;
    font-weight: 600;
}



.filter-item .form-select,
.filter-item .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
}

.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.dual-range-slider {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.range-progress {
    position: absolute;
    height: 6px;
    background: linear-gradient(to right, #00a8e8 0%, #0088bb 100%);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 40px;
    top: 0;
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    z-index: 5;
    pointer-events: none;
}

.range-slider::-webkit-slider-runnable-track {
    background: none;
    border: none;
}

.range-slider::-moz-range-track {
    background: none;
    border: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a8e8 0%, #0088bb 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 168, 232, 0.4);
    transition: all 0.3s ease;
    border: 3px solid #fff;
    pointer-events: auto;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.6);
}

.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a8e8 0%, #0088bb 100%);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 168, 232, 0.4);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.6);
}

.range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    font-weight: 500;
    color: #333;
}

.range-min-value,
.range-max-value {
    font-size: 1rem;
    color: #00a8e8;
}

/* ============================================
   MANUFACTURER FILTER BAR (Second Filter)
   ============================================ */


.manufacturer-filter-bar .filter-item {
    flex: 1;
    min-width: 200px;
}

.manufacturer-filter-bar .btn {
    align-self: flex-end;
    margin-bottom: 0;
    white-space: nowrap;
}

.manufacturer-filter-bar .form-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* ============================================
   FILTER RESULTS SECTION
   ============================================ */
.filter-results-section {
    padding: 50px 0;
    background-color: #f8f9fa;
	display: none;
}


.car-card-result {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.car-card-result:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.car-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #999;
    font-size: 0.9rem;
}

.car-card-info {
    padding: 20px;
}

.car-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.car-manufacturer {
    font-size: 0.9rem;
    color: #00a8e8;
    margin: 0 0 5px 0;
}

.car-category {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 15px 0;
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.spec-item {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-item i {
    color: #00a8e8;
    font-size: 1rem;
}

.loading,
.error,
.no-cars-found {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 15px;
    grid-column: 1 / -1;
}

.loading p {
    font-size: 1.1rem;
    color: #00a8e8;
}

.error {
    background-color: #fee;
}

.error p {
    color: #c33;
    font-size: 1rem;
}

.no-cars-found p {
    color: #888;
    font-size: 1rem;
}

.price {
    direction: rtl;
    display: inline-block;
}

/* ============================================
   CARS SECTION
   ============================================ */
.cars-section {
    padding: 50px 0;
}

.car-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
	min-height: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.car-image-simple a,
.article-card a,
.test-card a
{
	color: inherit;
	text-decoration: inherit;
	width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.car-card .car-image {
    position: relative;
    height: 110px;
    overflow: hidden;
}

.car-card .car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-card .car-image .badge-4x4 {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.car-card .car-image .badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff6b35;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.car-card .car-image .badge-price-drop {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #00a8e8;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.car-card .car-image .badge-new-model {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.car-card .heart-btn,
.right-main-image .heart-btn
{
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffffffc4;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: all 0.3s ease-in;
	color: #9e9e9e;
}

.car-card .heart-btn:hover,
.right-main-image .heart-btn:hover
{
    background-color: #ffffffee;
	box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.car-card .heart-btn:hover i,
.right-main-image .heart-btn:hover i
{
	color: #871212;
}

.car-card .heart-btn.active,
.right-main-image .heart-btn.active
.btn-remove-favorite {
	background-color: rgb(193 24 91 / 85%);
    color: rgb(255 255 255 / 80%);
}

.car-card .car-info {
    position: relative;
    padding: 8px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-flow: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    
}

.car-card .car-info h3 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.car-card .car-info .car-category-and-importer {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.car-card .car-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    justify-self: flex-end;
    flex-grow: 1;
}

.car-card .car-footer .price {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.car-card .car-footer .price::after {
	/* content: " ₪"; */
}

.car-card .car-footer .btn.link-to-car {
	background-color: #025287;
	color:#ffffff;
	padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
} 


/* ============================================
   BEST SELLERS SECTION
   ============================================ */
.best-sellers-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    text-align: right;
}

.car-card-simple {
    text-align: center;
    position: relative;
}

.car-card-simple a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.car-card-simple img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.car-card-simple h4 {
    font-size: 0.95rem;
    color: #333;
}

/* Carousels */

.swiper .swiper-navigation button {
    background-color: rgb(243 243 243 / 70%);
    width: 30px;
    height: 30px;
    border-radius: 100%;
    color: #5c5c5c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.4);
    border: 0px;
}

.swiper .swiper-navigation button:hover {
    background-color: rgb(255 255 255 / 75%);
    box-shadow: 0 0px 8px rgba(0, 168, 232, 0.6);
}

.swiper .swiper-navigation button::after {
    font-size: 18px;
    font-weight: 600;
}

.swiper .swiper-navigation button.swiper-button-disabled {
    visibility: hidden;
    cursor: default;
}

.swiper .swiper-slide .car-card .car-image {
    height: 160px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: #0066b3;
}

/* ============================================
   MAGAZINE SECTION
   ============================================ */
.magazine-section {
    padding: 50px 0;
}

.article-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card.featured img {
    height: 250px;
}

.article-content {
    padding: 20px;
}

.article-content p {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.article-content small {
    color: #666;
    line-height: 1.5;
}

/* ============================================
   ROAD TESTS SECTION
   ============================================ */
.road-tests-section {
    padding: 50px 0;
    background-color:#f8f9fa;
}

.test-card {
    text-align: center;
}

.test-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.test-card.featured img {
    height: 250px;
}

.test-card h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.test-card p {
    font-size: 0.85rem;
    color: #666;
}


/* ============================================
   FORMS
   ============================================ */
.form-check {
    padding-left: 0;
}
.form-check .form-check-input {
    float: right;
    margin-left: auto;
    margin-right: 0;
    margin-left: 0.5em;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    padding: 50px 0;
}

.newsletter-box {
    background: linear-gradient(135deg, #0066b3 0%, #004a82 100%);
    color: #fff;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.newsletter-box h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-box p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.newsletter-form .form-control {
    width: 200px;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
}

.newsletter-form .btn-danger {
    padding: 12px 30px;
    border-radius: 25px;
    background-color: #e74c3c;
    border: none;
    font-weight: 600;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.footer {
    background-color: #fff;
    padding: 50px 0 30px;
    border-top: 1px solid #eee;
}

.footer h5 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer ul li a:hover {
    color: #0066b3;
}

.copyright {
    color: #888;
    font-size: 0.85rem;
    margin-top: 30px;
}




/* ============================================
   Car Page
   ============================================ */
.right-main-image {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	flex: 50%;
    position: relative;
}

.right-main-image .btn-add-to-favorites {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.left-four-images {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
	flex: 50%;
}
.left-four-images .car-gallery-img {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
	min-height: 140px;;
	height: auto;
    background-size: cover;
    background-position: center;
	background-repeat: no-repeat;
    display: block;
}



.main-sidebar .elementor-posts .elementor-post{
    align-items: center;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .filter-container {
        flex-direction: column;
    }


    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form .form-control {
        width: 100%;
        max-width: 300px;
    }

    .newsletter-box {
        padding: 30px 20px;
    }

    .range-inputs {
        width: 100%;
    }

    .range-slider {
        width: 100%;
    }
}

@media all and (min-width:768px){

	.filter-item {
		width: auto;
	}

    .car-card .car-image {
        height: 160px;
    }

	.car-card .car-info {
    	padding: 20px;
        text-align: right;
	}

    .car-card .car-info h3 {
        font-size: 1rem;
	}

	.car-card .car-footer {
        justify-content: space-between;
        align-items: flex-end;
        flex-direction: row;
    }

    .car-card .heart-btn {
        width: 32px;
        height: 32px;
    }
	
}


@media all and (min-width:1024px) {

    .filter-container {
        padding: 25px 30px;
        gap: 30px;
    }

    .car-card .car-image {
        height: 180px;
    }


	.main-search-module .main-search-title {
		font-size: 3.5rem;
	}

	.test-drives-slider .swiper-pagination,
	.newsletter-section .swiper-pagination {
		display: none;
	}

    .filter-item label {
        margin-bottom: 15px;
    }

    .car-card-simple img {
        height: 180px;
    }

    .article-card .article-content {
        min-height: 165px;
        max-height: 165px;
        overflow: hidden;
        mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    }

}

