/*
Theme Name: R&R Towing and Auto Service
Text Domain: https://randrauto.com/
Version: 1.0
Tested up to: 6.1
Requires at least: 4.7
Requires PHP: 5.2.4
Author: R&R Towing and Auto Service
Author URI: 
Theme URI: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.
*/

.dlab-media img {
    aspect-ratio: 3/2;
    object-fit: cover;
}
#skab-booking-form {
    max-width: 500px;
    width: 100%;
}
/* ROW LAYOUT */
.vehicle-gallery-row {
    display: flex;
    gap: 20px;
	margin-bottom: 30px;
    align-items: stretch;
}

/* LEFT MAIN IMAGE */
.vehicle-gallery-left {
    flex: 2;
}

.vehicle-gallery-left .main-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
	cursor: -webkit-zoom-in;
}

/* RIGHT THUMBNAILS (2x2 GRID) */
.vehicle-gallery-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vehicle-gallery-right .thumb {
    position: relative;
    min-height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.vehicle-gallery-right .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s ease;
    cursor: -webkit-zoom-in;
}

.vehicle-gallery-right .thumb:hover img {
    transform: scale(1.07);
}

/* OVERLAY FOR +X MORE */
.thumb-overlay .more-count {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}


.overview {
    display: grid;
    gap: 20px;
    grid-template-columns: auto auto auto;
    margin-bottom: 30px;
    max-width: 800px;
}
.overview > span {
    border-bottom: 1px solid #d1d1d1;
    display: flex;
    gap: 10px;
    padding: 10px;
	font-size: 15px;
	text-transform: capitalize;
}
.overview span i {
    background: #fe4141;
    color: #fff;
    padding: 6px;
    border-radius: 3px;
    line-height: 1;
}
.vehicle {
    display: flex;
    gap: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0 0 0 /15%);
    border-radius: 10px;
    overflow: hidden;
	margin-bottom: 30px;
}
.vehicle-img a {
    position: relative;
    height: 100%;
    width: 100%;
    display: block;
}
.vehicle-img .sold-text {
    transform: rotate(-20deg) translate(-40%,  -70%);
    position: absolute;
    font-size: 38px;
    line-height: 52px;
    border: 6px solid #C7081B;
    color: #C7081B;
    border-radius: 5px;
    background: rgb(255 255 255 / .75);
    padding: 3px 5px;
    text-transform: uppercase;
    font-weight: 700;
    top: 50%;
    left: 50%;
}
.vehicle img {
    max-width: 300px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.vehicle .overview i {
    background: none;
    color: #888;
    padding: 0;
}
.vehicle .overview > span {
    gap: 10px;
    padding-bottom: 10px;
}
.overview > span b {
    display: block;
}
.vehicle .content {
    padding: 25px 15px 25px 0;
}
.vehicle .overview {
    margin-bottom: 0px;
}
a.filter-btn {
	display: none;
    color: #000;
	margin-bottom: 20px;
}
.filter-close{
	display:none;
}

@media(max-width: 400px){
	.extra-cell {
    display: none !important;
}
}
/* MOBILE RESPONSIVE */
@media(max-width: 767px) {
    .vehicle-gallery-row {
        flex-direction: column;
    }

    .vehicle-gallery-left .main-img {
        height: auto;
    }

    .vehicle-gallery-right {
        grid-template-columns: repeat(4, 1fr);
    }

    .vehicle-gallery-right .thumb {
        height: 65px;
    }
	.overview {
		grid-template-columns: auto auto;
	}
	.vehicle {
		flex-direction: column;
	}
	.vehicle img {
		max-width: 100%;
		height: auto;
	}
	.vehicle .content {
		padding: 25px 15px;
	}
	.overview > span b {
		display: inline;
	}
	.filtersidebar {
		background: #fff;
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		z-index: 999;
		padding: 60px 30px 30px;
		transform: translateX(-100%);
		transition: 0.5s ease all;
	}
	.filtersidebar.active {		
		transform: translateX(0%);
		transition: 0.5s ease all;
	}
	#filterOverlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.45);
		z-index: 999;
	}

	#filterOverlay.active {
		display: block;
	}
	a.filter-btn {
		display: inline-block;
	}
	.filter-close {
		position: absolute;
		display: block;
		top: 10px;
		right: 10px;
		color: #000;
		border: none;
		font-size: 20px;
		padding: 4px 10px;
		cursor: pointer;
	}
}