/**
 * Vehicle Listings Styles
 */

/* Container */

.vl-container-search {   
    background-image: url(https://flexidrive.aotechnology.co.za/wp-content/uploads/2025/02/home-banner-placeholder.jpg);
    background-repeat: no-repeat;
    background-size: cover;
	background-position: center center;
    height: 300px;
    align-content: center;
    margin-bottom: 20px;
}

.vl-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

}

/* Search Form */
.vl-search-form {
    background-color: #f5f5f5;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: auto;
}

.vl-search-form h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.vl-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.vl-form-group {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.vl-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.vl-form-group select,
.vl-form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #D9D9D9;

}

.vl-form-group-search-btn {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
    align-self: center;
    margin-bottom: 0px;
    margin-top: 5px;
}

.vl-search-button {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.vl-search-button:hover {
    background-color: #005a87;
}

/* Vehicles Grid */
.vl-vehicles-grid,
.vl-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.vl-vehicle-card,
.vl-widget-card {
    border-radius: 8px;
    overflow: hidden;    
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
    border: 1px solid;
    box-shadow: 0 4px 4px 0 #00000040;
}

.vl-widget-card {
    max-width: 353px;
    margin:0 10px;
}

.vl-vehicle-card:hover,
.vl-widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vl-vehicle-card a,
.vl-widget-card a {
    text-decoration: none !important;
}

.vl-vehicle-link,
.vl-widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.vl-vehicle-image,
.vl-widget-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.vl-vehicle-image img,
.vl-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vl-vehicle-card:hover .vl-vehicle-image img,
.vl-widget-card:hover .vl-widget-image img {
    transform: scale(1.05);
}

.vl-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #666;
}

.vl-vehicle-info a,
.vl-widget-info a {
    text-decoration: none;
}

.vl-vehicle-info,
.vl-widget-info {
    padding: 15px 0;
}

.vl-vehicle-info-header, 
.vl-widget-info-header {
    min-height:43px;
}

.vl-vehicle-info h3,
.vl-widget-info h3 {
    margin: 0px 10px 10px;
    font-size: 14px;
    color: #040415;
    font-weight: 600;
    text-align: center;
	white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 100%; 
}

.vl-vehicle-details,
.vl-widget-details {
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

.vl-price {    
    color: #828282;    
}

.vl-location, .vl-stock {
    color: #666;
}

.vl-vehicle-includes,
.vl-widget-includes {
    margin-bottom: 10px;
    font-size: 12px;
    color: #FFFFFF;
    border-top: 1px solid #eee;
    padding: 5px 15px 5px 15px;
    background-color: #10324C;
    text-align: center;
}

.vl-vehicle-rental,
.vl-widget-rental {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
	flex-direction: row-reverse;
	gap: 45px;
}

.vl-rental-price {
    font-size: 14px;
    font-weight: 700;
    color: #4F6B75;
}

.vl-apply-button {
   /* display: inline-block;*/
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: #10324C;
    border: none;
    padding: 6px 48px;
    font-size: 14px;
    border-radius: 8px;
    transition: all .3s; 
    cursor: pointer;
    width: 50%;
	display: block !important;
    margin: 0 auto;
}

.vl-apply-button:hover {
    background-color: #005a87;
}

/* Pagination */
.vl-pagination,
.vl-widget-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.vl-pagination-info {
    font-size: 14px;
    color: #666;
}

.vl-pagination-links {
    display: flex;
    gap: 8px;
}

.vl-pagination-links a {
    font-weight: bold;
	text-decoration: none !important;
}

.vl-page-link,
.vl-widget-page-link {
    display: inline-block;
    padding: 6px 12px;
    border: none;
    border-radius: 50%;
    text-decoration: none;
    color: #0073aa;
    font-size: 14px;
    transition: background-color 0.3s;
}

.vl-page-link:hover,
.vl-widget-page-link:hover {
    background: #e0e0e0;
	border-radius: 50%;
	padding: 6px 12px;
}

.vl-current-page,
.vl-widget-page-link.vl-current-page {
    display: inline-block;
    padding: 6px 12px;
    background: #d6d6d6;
    border-radius: 50%;
    font-weight: bold;
	border: none;
}

.vl-no-results {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Vehicle Detail Page */
.vl-vehicle-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

}

.vl-vehicle-container {
    max-width: 450px;
    background: #fff;
    /*padding: 20px;*/
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	height: fit-content;
	border: 1px solid;
}

.vl-vehicle-header {    
    background-color: #10324C;
    padding: 20px;
    border-radius: 8px 8px 0px 0;
	margin-bottom: 10px;
}

.vl-vehicle-header h1 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: #333;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
}

.vl-vehicle-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.vl-vehicle-gallery {
    margin-bottom: 30px;
}

.vl-gallery-main {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.vl-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vl-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.vl-thumbnail {
    width: 80px;
    height: 43px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.vl-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vl-thumbnail.vl-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #0073aa;
}

.vl-no-images {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    color: #666;
}

.vl-vehicle-info-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
}

.vl-vehicle-pricing {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
}

.vl-price-box {
    margin-bottom: 20px;
}

.vl-price-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

.vl-price-box .vl-price,
.vl-price-box .vl-rental {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.vl-rental-includes {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.vl-apply-button.vl-large {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.vl-vehicle-specs {
    margin-bottom: 30px;
	margin-top: 30px;
}

.vl-vehicle-specs h2,
.vl-vehicle-features h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vl-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.vl-spec-item {
    display: flex;
    flex-direction: column;
}

.vl-spec-label {
    font-size: 16px;
    color: #10324C;
    font-weight: 600;
}

.vl-spec-value {
    font-size: 14px;
    font-weight: 400;
    color: #10324C;
}

.features-wrapper {
    border-top: 2px solid #3c5063;  /* Line color */
    border-bottom: 2px solid #3c5063;
    padding: 10px 0; /* Spacing around the bordered area */
	margin-top: 10px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: #0d2c46;
    padding: 20px;
    border-radius: 15px;    
    color: white;
	margin: 20px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.vl-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.vl-features-list li {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.vl-back-link {
    margin: 20px 0;
}
.vl-back-link a {
    color: #0073aa;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;

}
.vl-back-link a:hover {
    text-decoration: underline;
}

.vl-monthly-price {
    color: #FEC30D;
    font-size: 32px;
    font-weight: 700;
}

.vl-subtitle {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}


.vl-form-content{
	text-align: center;	
    border-bottom: 2px solid #3c5063; 
	margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}


.vl-vehicle-form {
    margin-top: 20px;
	padding:10px 20px 20px 20px;
}


.vl-vehicle-form input, 
.vl-vehicle-form select {
    padding: 8px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: #D9D9D9;
}

.vl-vehicle-form input ::placeholder {
    color: #000000;
	font-size: 12px; 
	font-weight: 500;   
}
 
.vl-vehicle-form select ::placeholder {
    color: #000000;
	font-size: 12px; 
	font-weight: 500;   
}

.vl-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.vl-checkbox input[type="checkbox"] {
    transform: scale(1.2); /* Makes checkbox larger */
    min-width: 24px; /* Ensures it doesn't shrink */
}

.vl-pricing-note {
    font-weight: 500;
    font-size: 12px;
    color: #10324C;
    text-align: center;
    margin-top: 10px;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
      border-radius: 10px;
    overflow: hidden; /* Ensures rounded corners are visible */
  }
  
  td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
  }
  
  tr:nth-child(even) {
    background-color: #dddddd;
  }

  .swiper-wrapper {    
    margin-bottom: 30px;
    justify-content: center;
    gap: 20px        
}

/* Responsive Adjustments */
/* Responsive Adjustments */
@media (min-width: 768px) and (max-width: 1220px) {
    .vl-container {
        max-width: 1100px; /* Adjust as needed */
        margin: 0 auto;
        padding: 20px; /* Optional: Add padding for better spacing */
    }
    
	.vl-search-form {
		background-color: #f5f5f5;
		border-radius: 15px;
		padding: 20px;
		margin-bottom: 30px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		max-width: 1200px;
		margin: 0 50px;
	}

	.vl-vehicle-detail {
		max-width: 1100px;
		margin: 0 auto;
		padding: 20px;
	}  
   
}


@media (max-width: 768px) {

.vl-vehicle-container {
    max-width: 100%;    
}
    .vl-vehicle-info-container {
        grid-template-columns: 1fr;
    }
    
    .vl-gallery-main {
        height: 300px;
    }
    
    .vl-vehicle-header h1 {
        font-size: 1.5rem;
    }

    .vl-container-search {
        height: 500px;
        padding: 20px;
    }

    .vl-search-form {
        padding: 15px;
    }

    .vl-form-row {
        flex-direction: column;
    }

    .vl-form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    .vl-form-group-search-btn {
        width: 100%;
        text-align: center;
    }

    .vl-vehicle-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .vl-vehicle-info h3 {
        font-size: 16px;
    }

    .vl-vehicle-rental {
        flex-direction: column;
        gap: 10px;
    }

    .vl-apply-button {
        width: 100%;
    }

    .vl-vehicle-info-container {
        grid-template-columns: 1fr;
    }

    .vl-vehicle-gallery, .vl-vehicle-pricing, .vl-vehicle-specs, .vl-vehicle-features {
        width: 100%;
        margin-bottom: 20px;
    }

    .vl-gallery-thumbnails {
        flex-wrap: wrap;
    }

    .vl-thumbnail {
        width: 48%;
        margin-bottom: 10px;
    }


    .vl-gallery-thumbnails {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%; /* Adjust width to take full container space */
    }

    .vl-thumbnail {
        flex: 0 1 calc(25% - 10px); /* Four thumbnails per row */
        max-width: 80px; /* Adjust size if needed */
    }

    .vl-thumbnail img {
        width: 100%;
        height: auto;
        display: block;
    }



    .features-container {
        grid-template-columns: 1fr;
    }

    .vl-vehicle-form input, .vl-vehicle-form select {
        width: 100%;
    }

    .vl-apply-button {
        display: block !important;
        justify-self: center;
    }

    .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        margin-bottom: 30px;
        justify-content: center;
        gap: 20px        
    }
}

@media (max-width: 480px) {
    .vl-form-group {
        flex: 100%;
    }
    
    .vl-gallery-main {
        height: 200px;
    }
    .vl-search-form {
        padding: 10px;
    }

    .vl-vehicle-info h3 {
        font-size: 14px;
    }

    .vl-rental-price {
        font-size: 12px;
    }

    .vl-apply-button {
        font-size: 12px;
        padding: 8px 20px;
    }

    .vl-vehicle-form input, .vl-vehicle-form select {
        font-size: 12px;
    }

    .vl-checkbox {
        font-size: 12px;
    }

    .vl-pricing-note {
        font-size: 10px;
    }
}

/* Widget Styles */
.vl-widget {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

}

/* Similar Vehicels Styels */
.vl-similar-vehicles h2 {
    justify-self: center;
    font-size: 32px;
    font-weight: 600;
    margin: 30px 0;
    color: #040415;
}


/*
.vl-widget-page-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #fff;
    border-radius: 50%;
    text-decoration: none;
    color: #000000;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.vl-widget-page-link:hover {
    background-color: #D9D9D9;
}
    

.vl-widget-page-link.vl-current-page {
    background-color: #D9D9D9;
    color: #000000;
    border-color: #D9D9D9;
}
    

@media (max-width: 768px) {
    .vl-widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vl-widget-grid {
        grid-template-columns: 1fr;
    }
    
    .vl-widget-image {
        height: 180px;
    }
}
    */