/*
 Theme Name:   Hamza Afridi Trading
 Theme URI:    https://example.com/
 Description:  Hello Elementor Child Theme
 Author:       Sagar Mangi
 Author URI:   https://digitaldynastyventures.com/
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* Import parent theme styles */
@import url("../hello-elementor/style.css");

/* Add your custom styles below this line */


.cars-listing-wrapper {
    display: flex;
}

.filters-column {
    width: 20%;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.filters-column .filter-section {
    margin-bottom: 15px;
}

.listings-column {
    width: 80%;
    padding: 20px;
}

.sort-dropdown {
	width:30%;
    text-align: right;
    margin-bottom: 20px;
	margin-left: auto; 
margin-right: 0;
}

.car-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	justify-content: center;
}

.car-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
 
.car-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
/*     max-width: 300px; */
	max-width: 20%;
	width:20%;
    margin: 10px;
}
	
.car-card:hover {
    transform: translateY(-5px);
}

.car-image img {
    width: 100vw;
    height: 220px;
    object-fit: cover;
    object-position: center center;
}

.car-info {
  width: 95%;
    padding: 5px 0 16px;
    text-align: left;
}

.car-info {
	font-size: 18px;
}

.car-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.car-info p {
    margin: 2px 0;
	font-size:16px;
}

.car-info .details-button {
	display:block;
	background-color: #ED1A26;
	color: white;
	padding:10px 20px;
	margin: 10px 0;
	border-radius: 8px;
	align-items: center; 
	width:50%
}
	
.car-country::before {
content: '\e833';
	margin-right: 10px;
    font-family: "elementskit";
}
	
	.car-type::before {
    content: '\eb08';
	margin-right: 10px;
    font-family: "elementskit";
}
.car-year::before {
    content: '\eaac';
	margin-right: 10px;
    font-family: "elementskit";
}

.car-mileage::before {
    content: '\ebde';
	margin-right: 10px;
    font-family: "elementskit";
}

	@media only screen and (max-width: 768px) {
    .car-card {
        max-width: 40%;
		width: 40%;
    }
}

@media only screen and (max-width: 480px) {
    .car-card {
        max-width: 90%;
		width: 90%;
    }
	.details-button {
		display: block;
	}
	.cars-listing-wrapper {
    display: block;
}
	.listings-column{
		width:100%;
	}
	
	.filters-column {
		width:100%;
	}
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    margin: 0 5px;
    padding: 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
}

.pagination .current {
    background-color: #0073aa;
    color: white;
}

.filters-column h3 {
    margin-bottom: 20px;
}

.filters-column form {
    display: flex;
    flex-direction: column;
}

.filters-column label {
    margin-bottom: 5px;
}

.filters-column select {
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filters-column button {
    padding: 10px;
    border: none;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.filters-column button:hover {
    background-color: #005f8a;
}

#japan-time-container {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

/*SINGLE CAR CONTAINER*/


.car-gallery {
    margin: 20px 0;
}
.car-gallery img {
    width: 100%;
    height: auto;
}



.single-car-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 80px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.car-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.car-details h1 {
	font-size:2rem;
}

.car-carousel {
    width: 100%;
/*     height: 100vh; Adjust as needed */
}

.car-image {
    height: 100%;
    text-align: center;
}

.single-car-container img {
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.car-excerpt {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: center;
}

.car-details {
    margin-top: 20px;
}

.car-details-table {
    width: 100%;
    border-collapse: collapse;
	
}

.car-details-table th,
.car-details-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.car-details-table th {
    background-color: #f4f4f4;
}

.car-details-table tr:nth-child(even) {
    background-color: #f9f9f9;
}



.car-details-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.car-gallery-container {
    width: 50%;
	  max-width:700px;
    padding-right: 20px;
}

.car-gallery {
    margin-bottom: 20px;
}

.car-gallery img {
    width: 100%;
    height: auto;
}

.car-info {
    padding: 20px 20px;
}

.car-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.spec-location {
	display:flex;
}

.car-details-table {
    width: 50%;
}


.car-single-wrapper {
	padding: 3rem;
}


/* Wrapper for the single car page */
.car-single-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Container for the image gallery */
.car-gallery-container {
    flex: 0 0 50%; /* Take 50% of the screen width */
}

/* Container for the car details */
.car-details-container {
    flex: 0 0 calc(50% - 20px); /* Take 50% of the screen width minus gap */
    overflow: hidden; /* Ensure no overflow */
}

/* Style for the image gallery */
.car-gallery {
    width: 100%;
}

.car-gallery img {
    width: 100%;
    height: auto;
}

/* Style for the car details */
.car-details {
    padding: 20px 0 0;
/*     background-color: #f9f9f9;
    border: 1px solid #ddd; */
}

.car-description {
    margin-bottom: 20px;
}

/* Style for the car details table */
.car-table {
    width: 100%;
/*     border-collapse: collapse; */
	border-radius: 6px;
	margin-bottom:80px;
}

.car-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

@media only screen and (max-width: 768px) {
    .car-gallery-container {
    flex: 0 0 100%; 
}
	.car-details-container {
    flex: 0 0 calc(90%); /* Take 50% of the screen width minus gap */
    overflow: hidden; /* Ensure no overflow */
}
}

@media only screen and (max-width: 480px) {
    .car-gallery-container {
    flex: 0 0 100%; 
}
	.car-details-container {
    flex: 0 0 calc(100%); /* Take 50% of the screen width minus gap */
    overflow: hidden; /* Ensure no overflow */
}
}


.sold-cars-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sold-cars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sold-cars-header h2 {
    font-size: 24px;
    margin: 0;
}
.Quote-button {
		display:inline-block;
	background-color: #ED1A26;
	color: white;
	padding:15px 30px;
	margin: 10px 0;
	border-radius: 8px;
	align-items: center; 
/* 	width:50% */
}

/***************/
.car-pricing,
.car-info-sections {
    display: flex;
    gap: 15px;
    margin: 40px 0 0;
    flex-wrap: wrap;
}

.car-pricing {
	margin-bottom: 30px;
}

.price-card {
	flex: 1 1 calc(20% - 20px);
	padding: 10px;
	max-width:150px;
	max-height:140px;
    border: 1px solid #ddd;
	border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.price-card h4 {
	font-size: 16px;
}

.price-card p {
	font-size:14px;
}

.car-info-box {
    flex: 1 1 calc(20% - 20px); /* Adjust width as necessary */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}




.car-info-box h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.car-info-box p {
    margin: 0;
    font-size: 0.9rem;
}

#slider {
	margin: 1px;
}

#carousel img,
#slider img {
		border-radius: 6px;
}

.flexslider .flex-direction-nav .flex-prev::before {
    content: "\f053";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.flexslider .flex-direction-nav .flex-next::before {
    content: "\f054";
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
}

.car-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.car-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.car-table .label-column {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333;
}

.car-table .value-column {
    background-color: #fff;
}

.flexslider {
    max-width: 700px; 
    margin: 0 auto; 
	align-items:flex-start;
}

.spec-location {
	display: flex;
	flex-wrap:wrap;
	justify-content: space-between;
	border-top: 1px solid #f0f0f0;
	margin:50px 0 -20px;
	padding-top:5px;
}

.spec-location p {
	display: inline-block;
}