/*#adminmenuwrap{
	background-color:crimson!important;
}
#adminmenu{
background-color:crimson!important;
	padding-left:15px!important;
	width:200px!important;
}

#adminmenu, #adminmenu .wp-submenu, #adminmenuback, #adminmenuwrap {
    width: 200px!important;
}*/
#wpbody {
    background-color:#FFFFFF!important;
}

#wpwrap{
    background-color:#FFFFFF!important;
}

.e-notice.notice {
    display: none!important;
}

.mce-ico {
    font-family: 'dashicons' !important; /* Default WP icons */
    font-style: normal !important
}

/* ADMING PAGE SECTION */


.lookup-dvla-button {
    background: var(--background-button-1-color);
    color: var(--button-1-color);
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
	margin-left:25px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lookup-dvla-button:hover {
    background: var(--background-button-2-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.lookup-dvla-button:active {
   background: var(--background-button-2-color);
    transform: scale(0.98);
}


    .admin-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background: #f4f4f4;
        border-bottom: 2px solid #ddd;
    }
    
    .admin-header-title {
        font-size: 20px;
        font-weight: bold;
    }

    .logo img {
        height: 50px; /* Adjust size as needed */
    }
.admin-button-container{
	width:100%;
}


    .button-row {
        display: flex;
        justify-content: center;
        column-gap: 20px;
        margin-top: 20px;
		
    }

    .admin_btn a {
        display: inline-block;
        padding: 10px 20px;
        background: #0073aa;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-size: 16px;
        transition: 0.3s;
    }

    .admin_btn a:hover {
        background: #005177;
    }


/* CAR CARD SECTION */


.cars-card-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Ensures cards don't collapse */
    justify-content: flex-start; 
	z-index:1;
}

.cars-card-row {
    display: flex;
    justify-content: space-between; /* Evenly distribute cards in each row */
    width: 1200px; /* Ensure full-width rows */
}

.cars-card {
	position:relative;
    flex: 1 1 calc(33.333% - 20px); /* Ensure 3 cards per row */
    max-width: calc(33.333% - 20px);
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Equal height */
	margin:5px;
	z-index:2;
}


/* Hover effect for car cards */
.car-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Image container with fixed height */
.cars-card img {
    display: block;
    width: 100%;
    max-height: 250px; /* Set a fixed height for the image box */
    height: auto;
    margin: 0 auto;
    object-fit: cover; /* Keep the aspect ratio of images */
	border-radius: 8px 8px 0px 0px;
}


.price_box{
    background: var(--background-button-1-color);
    color: var(--button-1-color);
	width:100%;
	display:flex;
	padding:15px 15px 0px 15px;
}

.price-box-left{

}

.price-box-right{
	margin-left:auto;
	color:#FFFFFF;
}

.price_box h3{
	font-size:16px;
	 color: var(--price-text-color);
	line-height:1;
	
}


.cars-card h2 {
    font-size: 18px;
    margin: 10px 0;
	padding-left:10px;
	color:black!important;
}

.cars-card p {
    margin: 5px 0;
    color: #555;
}
.cars-card a{
	padding:10px 15px 10px 15px;
	text-decoration:none!important;
	text-align:center;
}

.car-card-buttons {
    display: flex;
    gap: 0px;
}

.car-card-button {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    text-decoration: none;
    border: none;
    font-weight: bold;
}

/* Style for View Details button */
.car-card-button.details-button {
    background: var(--background-button-1-color);
    color: var(--button-1-color);
	border-radius: 0 0 0 10px;
}

/* Style for Finance button */
.car-card-button.finance-button {
    background: var(--background-button-2-color);
    color: var(--button-2-color);
	border-radius: 0 0 10px 0;
}


/* Car model and year */
.car-card .car-details p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #555;
}

/* Call-to-action button */
.car-card .car-details a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 0.9em;
    color: #ffffff;
    background-color: #0073aa; /* WordPress admin blue */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.car-card .car-details a:hover {
    background-color: #005177;
}


	.more-info-tab-container{
		display:none;
	}
	


@media screen and (max-width: 820px) {
    /* Make the car gallery scrollable */
 
	
	.car-details-img-stretch {
    width: 100%;
    height: 250px!important; /* Adjust as necessary */
    display: flex;
	background-color:#000000;
    overflow: hidden; /* Prevents the image from overflowing */
}
	
	.car-details-img-stretch img{
	width:100%;
	height:250px;
	overflow:hidden;
	padding:0px;
	margin:0px;
	
}
	
	.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7)!important;
    z-index: 1;
}
	
	.car-image {
	width: 70%; /* Image takes up 60% of the space */
    height: 250px;
    object-fit: cover; /* Ensure the image fills the space */
    float: right; /* Float the image to the right */
		overflow:hidden;
    z-index: 0;
}
    .car-details-left {
        display: none;
 
	} 

	
    .car-gallery-container {
        display: flex;
        flex-direction: column;
        position: relative;
        scroll-snap-type: y mandatory;
    }
	
	
	.mobile-button-container{
		padding-bottom:50px;
	}

    .car_gallery_img {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.5s ease-in-out;
    }

    .car_gallery_img img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures images fill the screen */
    }

	/*INFO TAB*/
	
	body.active{
		scroll:none;
		overflow:hidden;
	}
	
	body.no-scroll {
    overflow: hidden; /* Disables scrolling */
    height: 100vh; /* Prevents scrolling on mobile */
    touch-action: none; /* Stops touch gestures on mobile */
	}
	
	.more-info-tab-container{
		display:contents;

		
	}

 .more-info-panel {
    position: fixed;
    bottom: -100%; /* Start hidden */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding:20px 20px 40px 20px;
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
	  overflow-y: auto;  /* Enables vertical scrolling */
	 scroll:auto!important;
	 max-height: 80vh;
}

.more-info-panel.active {
    bottom: 0; /* Slide up into view */
}
	
	.car-gallery-container.static{
		overflow: hidden;
	}

.more-info-tab {
    position: fixed;
    bottom: 0;
    left: 50%;
	width:100%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 10px 20px;
	font-size:18px;
	text-align: center;
    cursor: pointer;
    z-index: 1001;
    border-radius: 10px 10px 0 0;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}
	.more-info-content h2{
		margin:10px 0px!important;
		color:white;
	}
	
	
	/* Modal Background */
.car-mobile {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark overlay */
    z-index: 1000; /* High priority */
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.mobile-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

/* Close Button */
.close-mobile {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

	
	.info-item {
   color:black;
    background: #f8f8f8;
  
}

.info-item i {
    font-size: 18px;
    color: black;
}
	
}

	.car-details-info-item {
   color:black;
    background: #f8f8f8;

}
	.car-details-info-item span{
font-size:12px;
}

.car-details-info-container{
			    display: flex;
    flex-wrap: wrap; /* Allows items to wrap if the screen is too small */
    gap: 15px; /* Adds spacing between items */
    align-items: center;
	padding:15px 20px;
	
}

.car-details-info-item {
    display: flex;
    align-items: center;
	gap: 8px; /* Space between icon and text */}
		



/* Tablet: 2 cards per row */
@media (max-width: 820px) {
    .cars-card-container{
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Ensures proper spacing */
    gap: 10px; /* Adjust spacing between cards */
	}
	
    .cars-card {
        flex: 1 1 calc(50% - 15px); /* 2 per row */
        max-width: calc(50% - 15px);
    }
}

/* Mobile: 1 card per row */
@media (max-width: 640px) {
    .cars-card {
        flex: 1 1 100%; /* 1 card per row */
        max-width: 100%;
    }
}




/* CODE FOR THE CAR VIEW PAGE*/
/* General Reset */


.display-wide {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body Styles */
body {
   /*  background-color: #f7f7f7; */
    color: #333;
    line-height: 1.6;
}

/* Container for the image and overlay */
.car-details-img-stretch {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust as necessary */
    display: flex;
	background-color:#000000;
    justify-content: flex-end; /* Aligns image to the right */
    overflow: hidden; /* Prevents the image from overflowing */
}

/* Overlay that covers the entire container */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark grey background with transparency */
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.7) 40%, /* Start dark grey from 40% */
        rgba(0, 0, 0, 0) 60% /* Fade to transparent by 60% */
    );
    z-index: 1;
}

.image-overlay-content{
	padding-left:200px;
	padding-top:150px;
	color:white;
}
.image-overlay-content h1{
	color:white;
	font-size:48px!important;
}

.image-overlay-content h3{
	color:white;
	width:60%;
	font-size:24px!important;
}

/* Image on the right side */
.car-image {
	width: 70%; /* Image takes up 60% of the space */
    height: 100%;
    object-fit: cover; /* Ensure the image fills the space */
    float: right; /* Float the image to the right */
    z-index: 0;
}

.car-details-img-stretch img{
	width:100%;
	height:100%;
	overflow:hidden;
	padding:0px;
	margin:0px;
	
}

/* Container to hold both elements */
.car-details-container {
    display: flex;
    gap: 0px; /* Space between left and right boxes */
    width:100%; /* Adjust as needed */
    margin: 0 auto; /* Center the container */
}


/* Left Section (Gallery) */
/* Car details box, now taking 50% width */
.car-details-left {
    width: 48%;
    padding: 0px 20px;
    position: sticky; /* Makes it overlap */
    left: 0;
    top: 0;
    height: 100%;
    z-index: 2; /* Ensures it's on top */
    margin-right: -5%; /* Overlap effect */

}

.car-details-left.sticky {
    position: fixed;
    top: 0;
    width: 48%; /* Adjust to match the width of the left box */
    z-index: 1000; /* Ensure it stays above other content */
}

.car-details-left-box{
	margin-left:35px;
	    background-color:#F5F5F5;
    border: 1px solid #ddd;
    border-radius: 8px;
	padding:25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	
}

.car-details-left-box h2{
	font-size:30px!important;
	color:black!important;
	
}

.car-details-left-box h5{
	font-size:18px!important;
	color:black!important;
	
}

.car_description{
	padding-top:25px;
}

.car-gallery h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
}

.car-gallery-container{
	width:100%;
}

.car-gallery img {
    max-width: 100%;
    height: auto;
}

.car_gallery_img{
	padding:0px;
	margin:0px;
}

.car-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Right Section (Car Details) */
.car-details-right {
   width: 55%;
    position: relative;
	margin-left:auto;
    z-index: 1; /* Stays behind */
	 pointer-events: auto; /* Default - allow interactions */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}


.car-details-right.disabled {
    pointer-events: none!important;
    opacity: 0.5;
}

.car-details-right h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.car-details-right p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
}

.car-details-right strong {
    font-weight: bold;
    color: #222;
}

.car-details-right img {
    width: 100%;
}



.car-gallery-right img {
    max-width: 100%;
    border: 1px solid #ccc;
    margin: 10px 0;
}

/*CAR DETAILS: Icons List*/
.car-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: center;
    max-width: 600px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
}

.info-item i {
    font-size: 18px;
    color: #333;
}

 /* Container for buttons */
        .button-container {
            display: flex;
            gap: 15px;
            margin: 20px;
        }

        /* Button Styling */
        .btn {
            padding: 10px auto;
            border: none;
            cursor: pointer;
            font-size: 18px;
            border-radius: 5px;
            transition: 0.3s;
        }

        .car_info_btn-primary {
               background: var(--background-button-1-color);
    color: var(--button-1-color);
        }

        .car_info_btn-primary:hover {
               background: var(--background-button-2-color);
    color: var(--button-2-color);
        }

        .car_info_btn-secondary {
               background: var(--background-button-2-color);
    color: var(--button-2-color);
        }

        .car_info_btn-secondary:hover {
               background: var(--background-button-1-color);
    color: var(--button-1-color);
        }

        .btn:hover {
            opacity: 0.8;
        }

        /* Contact Form Sliding Panel */
        .contact-panel {
            position: fixed;
            top: 0;
            left: -100%; /* Initially off-screen */
            width: 600px;
            height: 100%;
            background: #ffffff;
            color: black;
            padding: 50px 20px;
            box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
            transition: left 0.4s ease-in-out;
        }

        /* Show contact panel when active */
        .contact-panel.active {
            left: 0;
        }

.contact-panel-mb {
	display:none;
 }

.finance-panel-mb {
	display:none;
 }

@media (max-width: 820px) {
        /* Contact Form Sliding Panel */
	.contact-panel{
		display:none;
	}
	
	.contact-panel-mb {
    position: fixed;
		display:block!important;
    top: 0;
left: -100%; /* Initially off-screen */
    width: 100%; /* Full width */
    max-width: 400px; /* Keep max width if needed */
    height: 100%;
    background: #ffffff;
    color: black;
    padding: 50px 20px;
    box-shadow: 0px -3px 10px rgba(0, 0, 0, 0.3);
    transition: left 0.4s ease-in-out;
    z-index: 1100; /* Higher than the car details section */
}

/* Show contact panel when active */
.contact-panel-mb.active {
   left: 0; /* Slides up */
	}
	
	.finance-panel{
		display:none;
	}
	
 .finance-panel-mb {
            position: fixed;
	 display:block!important;
            top: 0;
            left: -100%; /* Initially off-screen */
    width: 100%; /* Full width */
    max-width: 400px; /* Keep max width if needed */
            height: 100%;
            background: #ffffff;
            color: black;
            padding: 50px 20px;
            box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
            transition: left 0.4s ease-in-out;
			z-index:2100!important;
        }

        .finance-panel-mb.active {
            left: 0;
        }
	
	.image-overlay-content{
		padding-left:25px;
	padding-top:75px;
	padding-right:25px;
}
	

.image-overlay-content h1{
	color:white;
	font-size:22px!important;
}

.image-overlay-content h3{
	color:white;
	width:60%;
	font-size:18px!important;
}


}
        /* Close Button */

        .close-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 80px;
			margin-left:auto;
    background: 0 0;
    border-radius: 0;
    cursor: pointer;
        }

        .close-btn svg {
            width: 24px;
            height: 24px;
            fill: black!important;
            transition: 0.3s;
        }

        .close-btn:hover svg {
            fill: red;
        }



        /* Basic Contact Form */
        .contact-panel h2 {
            margin-bottom: 15px;
        }

        .contact-panel input, .contact-panel textarea {
            width: 100%;
            margin-bottom: 10px;
            padding: 8px;
            border-radius: 3px;
            border: none;
        }

        .contact-panel button {
            width: 100%;
            padding: 8px;
            background: #ffffff;
            color:black;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }
        /* Show Finance panel when active */
 /* Contact Form Sliding Panel */
        .finance-panel {
            position: fixed;
            top: 0;
            left: -100%; /* Initially off-screen */
            width: 600px;
            height: 100%;
            background: #ffffff;
            color: black;
            padding: 50px 20px;
            box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
            transition: left 0.4s ease-in-out;
        }

        .finance-panel.active {
            left: 0;
        }

        /* Basic finance */
             .finance-panel button {
            width: 100%;
            padding: 8px;
            background: #ffffff;
            color:black;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }


	
	
/* Media Queries for Responsiveness */
@media (max-width: 920px) {
    #car-details-container {
        flex-direction: column;
        gap: 20px;
    }

    .car-details-left, .car-details-right {
        flex: 1 1 100%;
    }

    .car-gallery img {
        max-width: 150px; /* Slightly smaller images on mobile */
    }
}


i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}




/* Car Search Box Styling */
.car-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    justify-content: center;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.search-field select {
    padding: 8px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    width: 100%;
}

.car-search-button {
    padding: 12px 20px;
    background: var(--background-button-1-color);
    color: var(--button-1-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease-in-out;
}

.car-search-button:hover {
    background: var(--background-button-2-color);
	color: var(--button-2-color);
}

/* Responsive for small screens */
@media (max-width: 600px) {
    .car-search-form {
        flex-direction: column; /* Stack fields vertically */
    }
}


/* Style for status badges */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 10; /* Ensures it's above the image */
}

.sold-badge {
    background-color: red;
}

.featured-badge {
    background-color: gold;
    color: black;
}

.reserved-badge {
    background-color: black;
    color: red;
}

.new-badge {
    background-color: white;
    color: orange;
}
