/* Vehicle List Styling */
section.available-vehicles {
    position: relative;
    width: 100%;
    /* Uncomment display flex if needed */
    /* display: flex; */
    margin-top: 0px;
    background: transparent;
    clear: both;
    height: fit-content;
}

/* Row Styling */
section.available-vehicles .row {
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    width: calc(80% - 20px);
    margin: 0 auto;
    justify-content: flex-start;
    align-self: center;
    gap: 20px;
    padding: 20px;
    /* Uncomment the box-shadow if needed */
    /* box-shadow: 0 0 10px 3px #808080; */
}

/* Mobile and Multi-Browser Support */

/* Mobile Styles */
@media (max-width: 767px) {
    section.available-vehicles .row {
        width: calc(100% - 20px);
        padding: 10px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    section.available-vehicles .row {
        width: calc(80% - 20px);
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    section.available-vehicles .row {
        width: calc(80% - 20px);
    }
}

/* Ultra-Wide Screen Styles */
@media (min-width: 1900px) {
    .section.available-vehicles .row {
        width: calc(80% - 20px);
    }
}


/* Vehicle Styles */
.vehicle {
    background-color: #FFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    /* Uncomment display flex if needed */
    /* display: flex; */
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    align-self: flex-start;
    flex: 0 1 100%; /* Default to 1 column */
}

/* Vehicle List Styles */
.vehicle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

/* Vehicle Image Styles */
.vehicle-image {
    width: 100%;
    height: fit-content;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-image: url('mask1.png') !important;
    mask-image: url('mask1.png') !important;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* Specific Vehicle Image Styles */
.vehicle-1 .vehicle-image {
    -webkit-mask-size: 110% 110%;
    mask-size: 110% 110%;
    -webkit-mask-image: url('mask3.png') !important;
    mask-image: url('mask3.png') !important;
    mask-repeat: no-repeat;
    mask-position: center;
    /* Uncomment the transform if needed */
    /* transform: rotate(-90deg); */
}

.vehicle-2 .vehicle-image {
    -webkit-mask-size: 120% 120%;
    mask-size: 120% 120%;
    -webkit-mask-image: url('mask7.png') !important;
    mask-image: url('mask7.png') !important;
    mask-repeat: no-repeat;
    mask-position: center;
    /* Uncomment the transform if needed */
    /* transform: rotate(-90deg); */
}

/* Mobile Styles */
@media (max-width: 767px) {
    .container {
        width: calc(100% - 20px);
        padding: 10px;
    }

    .vehicle {
        flex: 0 1 100%; /* Ensure vehicles are stacked in a single column */
        padding: 10px;
    }

    .vehicle-list {
        gap: 10px;
        margin: 10px;
    }
}

/* Specific Vehicle Image Styles */
.vehicle-3 .vehicle-image {
    -webkit-mask-size: 120% 120%;
    mask-size: 120% 120%;
    -webkit-mask-image: url('mask6.png') !important;
    mask-image: url('mask6.png') !important;
    mask-repeat: no-repeat;
    mask-position: center;
    /* Uncomment the transform if needed */
    /* transform: rotate(-90deg); */
}

.vehicle-4 .vehicle-image {
    -webkit-mask-size: 110% 110%;
    mask-size: 110% 110%;
    -webkit-mask-image: url('mask9.png') !important;
    mask-image: url('mask9.png') !important;
    mask-repeat: no-repeat;
    mask-position: center;
    /* Uncomment the transform if needed */
    /* transform: rotate(-90deg); */
}

.vehicle-6 .vehicle-image {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-image: url('mask2.png') !important;
    mask-image: url('mask2.png') !important;
    mask-repeat: no-repeat;
    mask-position: center;
    /* Uncomment the transform if needed */
    /* transform: rotate(-90deg); */
}

.vehicle-7 .vehicle-image {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-image: url('mask4.png') !important;
    mask-image: url('mask4.png') !important;
    mask-repeat: no-repeat;
    mask-position: center;
    /* Uncomment the transform if needed */
    /* transform: rotate(-90deg); */
}

/* Vehicle Image General Styles */
.vehicle-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Uncomment the transform if needed */
    /* transform: rotate(90deg); */
}

/* Vehicle Title and Description */
.vehicle-title {
    font-size: 1.5em;
    color: #1a4898;
    line-height: 1.4em;
    margin-bottom: 0;
}

.vehicle-description {
    font-size: 1em;
    color: #000000;
    margin-bottom: 0;
    height: 1.4em;
}

.vehicle-description p {
    line-height: 1.4em;
}

/* Vehicle Details and Price Details */
.vehicle-price-details {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for details on larger screens */
    margin-top: 15px;
}

.vehicle-details {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for details on larger screens */
    margin-top: 15px;
}

/* Title Item Styles */
.title-item {
    text-align: left;
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 22px;
}
/* Mobile Styles */
@media (max-width: 767px) {
    .vehicle-title {
        font-size: 1.2em;
        line-height: 1.3em;
    }

    .vehicle-description {
        font-size: 0.9em;
        line-height: 1.3em;
    }

    .vehicle-price-details, .vehicle-details {
        grid-template-columns: repeat(2,1fr);
    }
}
/* SVG Styles */
svg {
    height: 22px;
}

.title-item svg {
    max-height: 22px;
    vertical-align: middle;
    margin-left: 0.3rem;
    max-width: 20px;
}

/* Vehicle Price and Details */
.vehicle-price-details .title-item {
    font-weight: 600;
}

.value-item {
    font-weight: 600;
    text-align: left;
    color: #1a4898;
    line-height: 22px;
}

.value-item.price-day,
.value-item.price-hour {
    text-align: left;
    padding-left: 2rem;
}

/* Button Link Styles */
.button-link {
    display: table;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #1a4898;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s, transform 0.3s;
    align-self: center;
    margin: 0 auto;
    margin-top: 20px;
}

.button-link:hover {
    background-color: #ec2024; /* Change background color on hover (red) */
    transform: scale(1.05); /* Slightly increase size on hover */
}

.button-link:active {
    background-color: #1a2c53; /* Darker blue color when clicked */
    transform: scale(0.95); /* Slightly decrease size when active */
}

/* Vehicle Header */
.vehicle-header {
    width: calc(100% - 20px);
    height: 100%;
    overflow: hidden;
}

/* Available Vehicles */
.available-vehicles-title {
    display: block;
    clear: both;
    width: 100%;
}

.available-vehicles-text {
    margin-top: 20px;
    font-size: 1.2em;
    z-index: 1;
}

/* Row Styles */
.section.available-vehicles .row {
    width: calc(100% - 20px);
}

/* Media Queries */
@media (min-width: 768px) and (max-width: 1024px) {
    .vehicle {
        flex: 0 1 calc(50% - 20px); /* 2 columns for tablets, accounting for gap */
    }
    .vehicle-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .vehicle-price-details {
        gap: 0;
    }
    .title-item {
        white-space: normal;
    }
}

@media (min-width: 1025px) and (max-width: 1437px) {
    .vehicle {
        flex: 0 1 calc(50% - 20px); /* 2 columns for larger tablets, accounting for gap */
    }
    .vehicle-details {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .vehicle-price-details {
        gap: 20px;
    }
}

@media (min-width: 1438px) {
    .vehicle {
        flex: 0 1 calc(33% - 20px); /* 3 columns for larger screens */
    }
}

@media (min-width: 1900px) {
    .vehicle {
        flex: 0 1 calc(25% - 20px); /* 4 columns for ultra-wide screens */
    }
}

@media (min-width: 768px) {
    section.available-vehicles .row {
        width: calc(80% - 20px);
    }
}

@media (min-width: 1400px) {
    section.available-vehicles .row {
        width: calc(80% - 20px);
    }
}

@media (min-width: 1900px) {
    section.available-vehicles .row {
        width: calc(80% - 20px);
    }
}


