/*
Theme Name: TJWS Timber Products
Theme URI: https://www.onlinemarketingsurgery.co.uk/
Author: Andy Timmins, Online Marketing Surgery Ltd
Author URI: https://www.onlinemarketingsurgery.co.uk/
Description: Custom theme for TJWS Timber Products
Version: 1.0.21
Text Domain: tjwstimberproducts
*/ 

/* Color Palette Variables */
:root {
    --olive-darkest: #2d3a1f;    /* Very dark olive green */
    --olive-dark: #4a5d2f;       /* Dark olive green */
    --olive-medium: #6b7c4a;     /* Medium classic olive green */
    --olive-light: #9baa7a;      /* Lighter muted olive green */
    --olive-lightest: #d4d9c0;   /* Very pale olive green */
    --white: #ffffff;
    --text-dark: #2d3a1f;
    --text-light: #6b7c4a;
    --background-light: #f8f9f5;
    --border-color: #d4d9c0;
}

/* Reset and Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--white);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.currency-selector span {
    color: var(--text-dark);
    font-size: 14px;
}

.currency-buttons {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.currency-btn:not(:last-child) {
    border-right: 1px solid #ddd;
}

.currency-btn.active {
    background-color: var(--olive-lightest);
}

.currency-btn img {
    width: 20px;
    height: auto;
}

/* Head Office Styles */
.head-office {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.head-office a {
    color: var(--olive-dark);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s;
}

.social-icon:hover svg {
    opacity: 0.8;
}

/* Main Header Styles */
.site-header {
    /* padding: 20px 0; */
    background: var(--white);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Reduced gap */
}

.site-branding {
    flex: 0 0 auto; /* Don't let the logo grow */
}

.site-branding img {
    height: 128px;
    padding-top: 7px;
    width: auto;
    background: var(--olive-medium);
    padding: 10px;
}

@media (max-width: 768px) {
    .site-branding {
        margin-top: 42px;
    }
}

/* Navigation Styles */
.main-navigation {
    flex: 1;
    margin-top: 50px;
    width: 100%; /* Ensure full width */
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: space-between; /* Changed from center to space-between for better distribution */
    gap: 5px; /* Reduced gap between items */
    margin: 0;
    padding: 0;
    flex-direction: row;
    width: 100%; /* Ensure full width */
}

.main-navigation li {
    position: relative;
    white-space: nowrap; /* Prevent wrapping of menu items */
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 18px; /* Increased from 15px to 18px */
    padding: 5px 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    /* border-radius: 50px; */
}

.main-navigation a:hover {
    color: var(--olive-dark);
    background-color: var(--olive-lightest);
}

/* Stock Menu Item Styles */
.stock-menu-item {
    position: static;
}

/* Overlay for site-main when dropdown is open */
.site-main-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 990; /* Below the dropdown but above everything else */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows mouse events to pass through to elements below */
}

.stock-dropdown-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    margin-top: 15px;
}

/* Create a bridge between menu item and dropdown */
.stock-dropdown-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Show dropdown on hover */
.stock-menu-item:hover .stock-dropdown-wrapper {
    display: block;
}

/* Stock Dropdown Styles */
.stock-dropdown {
    background: white;
    min-width: 1100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 22px;
    position: relative;
    padding: 40px;
    overflow: hidden;
    margin: 0 auto;
}

.stock-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s;
    display: inline-block;
}

/* Target the arrow when hovering over the menu item */
.menu-item:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-container {
    display: flex;
    padding: 0;
}

/* Vehicle Types List in Menu */
.menu-vehicle-types-list {
    flex: 1.2;
    padding: 0;
    border-right: 0px;
    display: flex;
    flex-direction: column;
    margin-right: 75px;
}

/* Vehicles Header */
.menu-vehicle-types-list::before {
    content: 'Vehicles';
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    padding: 9px;
    border-bottom: 1px solid #000000;
    width: 100%;
    margin-bottom: 0;
}

/* Two column layout container */
.vehicle-columns-container {
    display: flex;
    flex: 1;
    width: 100%;
    justify-content: space-between;
}

/* Left column - vehicle types */
.vehicle-types-column {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    border-right: 0px;
    padding: 15px 0px;
    box-sizing: border-box;
}

/* Right column - brands (empty for now) */
.vehicle-brands-column {
    flex: 0 0 50%;
    padding: 15px 20px;
    box-sizing: border-box;
}

/* Prepare the brands column (empty for now) */
.vehicle-brands-column::before {
    content: '';
    display: block;
    height: 1px;
}

.menu-vehicle-type-link {
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-vehicle-type-link:last-child {
    border-bottom: none;
}

.menu-vehicle-type-link::after {
    content: '›';
    color: #999;
    font-size: 18px;
    font-weight: 300;
}

.menu-vehicle-type-link:hover {
    color: #C4122F;
    background-color: rgba(196, 18, 47, 0.05);
}

.menu-vehicle-type-link:hover::after {
    color: #C4122F;
}

/* Deal Section in Menu */
.menu-deal-section {
    flex: 1.2;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.menu-deal-header {
    background: var(--olive-light);
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 20px;
    border-radius: 22px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.menu-deal-content {
    padding: 0;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-deal-content h3 {
    position: absolute;
    top: 30px;
    left: 20px;
    right: 20px;
    margin: 0;
    font-size: 28px;
    color: white;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.menu-deal-image {
    position: relative;
    margin-bottom: 0;
    height: 260px;
    overflow: hidden;
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom-right-radius: 22px;
    border-bottom-left-radius: 22px;
    min-height: 400px;
}

.menu-deal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.menu-deal-pricing {
    background: white;
    margin: 0 20px 20px;
    padding: 10px 20px;
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.menu-price-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.flag-column {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -10px !important;
}

.flag-column img {
    width: 24px;
    height: auto;
}

.menu-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 14px;
}

.menu-original-price {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
}

.menu-price-column.gbp .menu-price {
    color: #C4122F;
}

.menu-price-column.usd .menu-price {
    color: #0052cc;
}

.menu-enquire-btn {
    background: #C4122F;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
}

.menu-enquire-btn:hover {
    background: #a30f27;
    color: white !important;
}

/* Submenu Styles */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--olive-light); /* Change to solid blue background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 280px; /* Increased from 220px */
    z-index: 100;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    border-radius: 4px;
}

.main-navigation ul ul::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--olive-light); /* Match dropdown background color */
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    display: block;
    width: 100%;
}

.main-navigation ul ul a {
    padding: 10px 20px; /* Increased padding */
    display: flex; /* Keep as flex for arrow alignment */
    white-space: normal; /* Allow text to wrap if needed */
    font-size: 16px; /* Increased from 14px to 16px */
    color: var(--white);
    line-height: 1.4; /* Improve line height for readability */
}

.main-navigation ul ul a:hover {
    background-color: var(--olive-dark);
    color: var(--white);
}

/* Third Level Dropdown Styles - Complete Rewrite */
/* Hide third level menus by default */
.main-navigation ul ul ul,
.menu-item-has-children:not(.stock-menu-item) .sub-menu .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    transform: none;
    margin-left: 1px;
    margin-top: 0;
    z-index: 110;
    background-color: var(--olive-dark);
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px 0;
}

/* Show third level ONLY when hovering directly on the second level parent */
.main-navigation ul ul li.menu-item-has-children:hover > ul,
.menu-item-has-children:not(.stock-menu-item) .sub-menu li.menu-item-has-children:hover > ul {
    display: block;
}

/* Hide third level when hovering on first level - this is the key fix */
.main-navigation > ul > li.menu-item-has-children:hover > ul > li > ul,
.menu-item-has-children:not(.stock-menu-item):hover > .sub-menu > li > .sub-menu {
    display: none;
}

/* Ensure submenu items with children are positioned correctly */
.main-navigation ul ul li.menu-item-has-children,
.menu-item-has-children:not(.stock-menu-item) .sub-menu li.menu-item-has-children {
    position: relative;
}

/* Add arrow indicator to second-level items with children */
.main-navigation ul ul li.menu-item-has-children > a::after,
.menu-item-has-children:not(.stock-menu-item) .sub-menu li.menu-item-has-children > a::after {
    content: '\f105'; /* Right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
    padding-left: 10px;
}

/* Override to remove dropdown arrow from any menu item that will display the ::after arrow */
.main-navigation ul ul li.menu-item-has-children > a .dropdown-arrow,
.menu-item-has-children:not(.stock-menu-item) .sub-menu li.menu-item-has-children > a .dropdown-arrow {
    display: none;
}

/* Remove triangle indicator from third level */
.main-navigation ul ul ul::before,
.menu-item-has-children:not(.stock-menu-item) .sub-menu .sub-menu::before {
    display: none;
}

/* Search Form Styles */
.search-form-container {
    position: relative;
    margin-top: 50px;
    flex: 0 0 auto; /* Don't let the search grow */
}

.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    padding: 10px 40px 10px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    width: 200px; /* Reduced width */
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-field:focus {
    border-color: #C4122F;
}

.search-submit {
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.search-submit img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.search-submit:hover img {
    opacity: 1;
}

/* Header CTA Button */
.header-cta {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.main-navigation .header-cta {
    margin-left: 15px;
    margin-right: 15px;
}

/* CTA Menu Item Styling */
.menu-item-cta {
    display: flex;
    align-items: center;
}

.menu-item-cta .header-cta {
    margin: 0;
    margin-left: 15px;
}

.cta-button {
    display: inline-block;
    background-color: var(--olive-light);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--olive-light);
}

.cta-button:hover {
    background-color: var(--white);
    border-color: var(--olive-light);
    color: var(--olive-dark);
    text-decoration: none;
}

/* Hero background CTA button styling */
.has-transparent-header .cta-button {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.has-transparent-header .cta-button:hover {
    color: var(--white);
    background-color: var(--olive-light);
    border-color: var(--white);
}

/* Features Bar Styles */
.features-bar {
    background: transparent;
    padding: 0;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
}

.features-bar .container {
    max-width: 1100px;
}

.feature-items {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 45px 40px;
    width: 100%;
    margin: 0 0 27px 0;
    flex-shrink: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 54px;
    height: 44px;
    filter: brightness(0) invert(1);
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text span {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.feature-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    align-items: center;
}

/* Footer Styles */
.site-footer {
    background-color: var(--olive-dark);
    color: var(--white);
    /* padding: 40px 0 20px; */
    padding-bottom: 5px;
}

.footer-content {
    margin-bottom: 20px;
}

/* Footer Logo and Search Row */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 180px;
    width: auto;
    padding-top: 40px;
}

.footer-search .search-form {
    position: relative;
}

.footer-search .search-field {
    background: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 40px 12px 20px;
    width: 100%;
    min-width: 300px;
    font-size: 14px;
    color: #333;
}

.footer-search .search-submit {
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.footer-search .search-submit img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-search .search-submit:hover img {
    opacity: 1;
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--white);
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Contact Us Column */
.footer-info {
    margin-bottom: 20px;
}

.footer-address {
    margin-bottom: 15px;
}

.footer-contact {
    margin-bottom: 15px;
}

.footer-emails p:nth-child(odd) {
    margin-top: 10px;
    color: var(--white);
    opacity: 0.9;
}

.footer-emails p:nth-child(even) {
    margin-bottom: 5px;
}

/* Certifications */
.certifications {
    display: flex;
    flex-direction: column;
    width: 85%;
}

.certification-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.certification-logo img {
    height: 145px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.certification-logo img:hover {
    opacity: 1;
}

.certification-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--white);
}

/* Quick Links Menu */
.quick-links-menu,
.products-menu,
.services-menu {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
}

.quick-links-menu li,
.products-menu li,
.services-menu li {
    list-style: none !important;
    list-style-type: none !important;
    margin-bottom: 10px;
}

.quick-links-menu a,
.products-menu a,
.services-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.quick-links-menu a:hover,
.products-menu a:hover,
.services-menu a:hover {
    color: var(--olive-light);
    text-decoration: underline;
}

/* Products and Services now in separate columns - spacing rule no longer needed */

/* Opening Times */
.footer-column:last-child {
    display: flex;
    flex-direction: column;
}

.time-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--white);
}

.time-row span:first-child {
    color: var(--white);
    opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--olive-darkest);
    padding: 20px 0;
    border-top: 1px solid var(--white);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.footer-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-size: 14px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links span {
    color: var(--white);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    justify-content: flex-end;
}

.footer-social .social-icons {
    display: flex;
    gap: 12px;
}

.footer-social .social-icon {
    width: 25px;
    height: 25px;
}

.footer-social .social-icon svg {
    width: 25px;
    height: 25px;
    fill: #ffffff;
}

.footer-social .social-icon img {
    width: 25px;
    height: 25px;
}

.footer-social .social-icon:hover svg {
    fill: #ffffff;
    filter: drop-shadow(0 0 1px #ffffff);
}

/* Regular dropdown styles for other menu items */
.menu-item-has-children:not(.stock-menu-item) .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--olive-dark);
    border: none;
    min-width: 280px; /* Increased from 200px */
    max-width: 400px; /* Set max width */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px 0;
}

.menu-item-has-children:not(.stock-menu-item):hover .sub-menu {
    display: block;
}

.menu-item-has-children:not(.stock-menu-item) .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--olive-dark); /* Match dropdown background color */
}

.menu-item-has-children:not(.stock-menu-item) .sub-menu a {
    padding: 10px 20px; /* Increased padding */
    display: flex; /* Keep as flex for arrow alignment */
    white-space: normal; /* Allow text to wrap if needed */
    font-size: 16px; /* Increased from 14px to 16px */
    color: var(--white);
    line-height: 1.4; /* Improve line height for readability */
}

.menu-item-has-children:not(.stock-menu-item) .sub-menu a:hover {
    background-color: var(--olive-medium);
    color: var(--white);
}

/* Banner Heading Styles */
.banner-heading .blue-text {
    color: var(--olive-dark);
    margin-bottom: 5px;
    font-weight: 900;
}

.banner-heading .blue-text, .banner-heading .red-text {
    display: block;
    font-size: 72px;
    font-weight: 700;
}

/* Vehicle Archive Page Styles */
.vehicle-archive-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.vehicle-filters-sidebar {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    align-self: flex-start;
}

.vehicle-results {
    flex: 1;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.clear-link {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.clear-link span {
    margin-left: 3px;
    font-size: 14px;
    line-height: 1;
}

.clear-link:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    color: #555;
    margin-left: 30px;
}

/* Custom radio button */
.filter-option input[type="radio"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.filter-option input[type="radio"]:checked + label:before {
    border-color: #C4122F;
    background: #fff;
}

.filter-option input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C4122F;
    transition: all 0.2s ease;
}

.filter-option input[type="radio"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(196, 18, 47, 0.1);
}

/* Stock status section styling */
.stock-status {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Search fields for vehicle filters */
.vehicle-filters-form .vehicle-filter-field {
    margin-bottom: 15px;
    position: relative;
}

.vehicle-filters-form select {
    width: 100%;
    padding: 15px 30px 15px 15px;
    border: 1px solid #ddd;
    border-radius: 22px;
    background-color: #FFFFFF;
    font-size: 16px;
    color: #666;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path d="M0 0l6 6 6-6z" fill="%23666"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    box-shadow: none;
    outline: none;
}

.vehicle-filters-form select:focus {
    outline: none;
}

/* Vehicle filter button style */
.vehicle-filter-button {
    width: 100%;
    background-color: var(--olive-dark);
    color: var(--white);
    border: none;
    border-radius: 22px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
}

.vehicle-filter-button:hover {
    background-color: var(--olive-darkest);
}

/* Results Header Styles */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.view-toggle {
    display: flex;
}

.view-toggle button {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    color: #777;
    transition: all 0.2s ease;
}

.view-toggle button:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.view-toggle button:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-left: none;
}

.view-toggle button.active {
    background-color: #8cc641;
    border-color: #8cc641;
    color: white;
}

.sort-by select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

/* Vehicle Grid Styles */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.vehicles-grid.list-view {
    grid-template-columns: 1fr;
}

.vehicles-grid.list-view .vehicle-card {
    display: flex;
    flex-direction: row;
}

.vehicles-grid.list-view .vehicle-image {
    flex: 0 0 40%;
    height: 100%;
}

.vehicles-grid.list-view .vehicle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vehicle-image {
    position: relative;
    height: 220px;
    background-color: var(--background-light);
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.vehicle-info {
    padding: 20px;
}

.vehicle-title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.vehicle-price {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.price-gbp {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.price-gbp .flag-icon {
    margin-right: 8px;
}

.price-gbp .price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.price-gbp .ex-vat {
    margin-left: 5px;
    font-size: 13px;
    color: #777;
}

.price-vat {
    display: flex;
    align-items: center;
}

.price-vat .price {
    font-size: 15px;
    color: #777;
}

.price-vat .inc-vat {
    margin-left: 5px;
    font-size: 13px;
    color: #999;
}

.vehicle-specs {
    margin-bottom: 20px;
}

.spec-group {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.spec-icon {
    width: 20px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 10px;
    opacity: 0.7;
}

.registration-icon {
    background-image: url('images/icon-registration.svg');
}

.mileage-icon {
    background-image: url('images/icon-mileage.svg');
}

.axle-icon {
    background-image: url('images/icon-axle.svg');
}

.spec-text {
    font-size: 14px;
    color: #666;
}

.vehicle-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-view, .btn-enquire {
    flex: 1;
    display: inline-block;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-view {
    background-color: var(--background-light);
    color: #333;
    border: 1px solid #ddd;
}

.btn-enquire {
    background-color: var(--olive-medium);
    color: var(--white);
    border: 1px solid var(--olive-medium);
}

.btn-view:hover {
    background-color: #eee;
    border-color: #ccc;
}

.btn-enquire:hover {
    background-color: var(--olive-dark);
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination li span.current {
    background-color: var(--olive-medium);
    border-color: var(--olive-medium);
    color: var(--white);
    font-weight: 600;
}

.pagination li a:hover {
    background-color: var(--background-light);
    border-color: #ccc;
}

/* No Results */
.no-results {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.no-results h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.no-results p {
    color: #666;
    font-size: 16px;
}

.no-results a {
    color: var(--olive-medium);
    text-decoration: none;
    font-weight: 500;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 992px) {
    .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .vehicle-archive-wrapper {
        flex-direction: column;
    }
    
    .vehicle-filters-sidebar {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .vehicles-grid.list-view .vehicle-card {
        flex-direction: column;
    }
    
    .vehicles-grid.list-view .vehicle-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 480px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Search styles moved to css/search.css */

/* Links inside paragraphs */
a {
    margin-right: 5px !important;
}

/* Hero Background */
.hero-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: white;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}



/* Fix potential icon issues */
.fa, .fas, .far, .fal, .fab {
    display: inline-block;
}

.view-toggle .fa {
    font-size: 14px;
}

/* Ensure list view works properly */
.vehicles-grid.list-view .vehicle-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.vehicles-grid.list-view .vehicle-image {
    flex: 0 0 300px;
    max-width: 300px;
    height: auto;
}

.vehicles-grid.list-view .vehicle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicles-grid.list-view .vehicle-title {
    font-size: 20px;
}

.vehicles-grid.list-view .vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .vehicles-grid.list-view .vehicle-card {
        flex-direction: column;
    }
    
    .vehicles-grid.list-view .vehicle-image {
        flex: 0 0 100%;
        max-width: 100%;
        height: 200px;
    }
    
    .vehicles-grid.list-view .vehicle-specs {
        grid-template-columns: 1fr;
    }
}

/* Hero Background Styles */
.hero-background {
    position: relative;
    width: 100%;
    height: 765px;
    min-height: unset;
    overflow: hidden;
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 50%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    margin-top: -648px;
    height: 647px;
    min-height: unset;
    display: flex;
    flex-direction: column;
    z-index: 3;
    width: 100%;
}

.hero-content-wrapper .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    height: 100%;
}

.hero-content {
    color: var(--white);
    max-width: 1400px;
    width: 85%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 170px;
    margin-bottom: 0;
    flex-grow: 0;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}

.hero-content .hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: center;
}

.hero-content .btn {
    display: inline-block;
    background-color: var(--olive-dark);
    color: var(--white);
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 0 auto;
    margin-bottom: 97px;
}

.hero-content .btn:hover {
    background-color: var(--olive-darkest);
}

/* Transparent Header Styles */
.has-transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent !important;
    border-bottom: none;
    padding-bottom: 10px;
}

.has-transparent-header .site-branding img {
    /* filter: brightness(0) invert(1); */ /* Make logo white for transparent header */
}

/* Navigation Light Text Styles */
.nav-light a {
    color: var(--white) !important;
}

.nav-light .dropdown-arrow {
    color: var(--white) !important;
}

/* Search Light Text Styles */
.search-light input[type="search"] {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.search-light input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-background {
        height: 550px;
    }
    
    .hero-content-wrapper {
        margin-top: -550px;
        height: 550px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-background {
        height: 540px;
        min-height: unset;
    }
    
    .hero-content-wrapper {
        margin-top: -540px;
        height: auto;
        min-height: unset;
        padding-bottom: 0;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-content .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-content .btn {
        padding: 12px 24px;
        font-size: 16px;
        margin-bottom: 50px;
    }
    
    .features-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-bottom: 0;
    }
    
    .feature-items {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content-wrapper {
        height: auto;
        min-height: unset;
        padding-bottom: 0;
    }
    
    .hero-content {
        margin-top: 120px;
    }
    
    .hero-content .btn {
        margin-bottom: 40px;
    }
    
    /* ... existing code ... */
}

/* Hide Skip to Content Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
}

/* Hero section fixes */
.has-hero-background {
    position: relative;
}

/* Ensure proper navigation display */
.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-direction: row;
}

/* Fix video background */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Ensure transparent header works */
.has-transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent !important;
    border-bottom: none;
    padding-bottom: 10px;
}

.has-transparent-header .site-branding img {
    /* filter: brightness(0) invert(1); */ /* Make logo white for transparent header */
}

/* Hero section fixes */
.has-hero-background {
    position: relative;
}

.hero-background {
    position: relative;
    width: 100%;
    height: 765px;
    min-height: unset;
    overflow: hidden;
    z-index: 1;
}

/* Navigation Light Text Styles */
.nav-light a {
    color: var(--white) !important;
}

.nav-light .dropdown-arrow {
    color: var(--white) !important;
}

/* Search Light Text Styles */
.search-light input[type="search"] {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.search-light input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-background {
        height: 550px;
    }
    
    .hero-content-wrapper {
        margin-top: -550px;
        height: 550px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-background {
        height: 540px;
        min-height: unset;
    }
    
    .hero-content-wrapper {
        margin-top: -540px;
        height: auto;
        min-height: unset;
        padding-bottom: 0;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-content .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-content .btn {
        padding: 12px 24px;
        font-size: 16px;
        margin-bottom: 50px;
    }
    
    .features-bar {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-bottom: 0;
    }
    
    .feature-items {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content-wrapper {
        height: auto;
        min-height: unset;
        padding-bottom: 0;
    }
    
    .hero-content {
        margin-top: 120px;
    }
    
    .hero-content .btn {
        margin-bottom: 40px;
    }
    
    /* ... existing code ... */
}

.nav-light a:hover {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-content-wrapper .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
}

/* UK Flag styling */
.uk-flag-container {
    position: absolute;
    top: 0px;
    left: 95%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
}

.uk-flag {
    height: 55px;
    width: auto;
    margin-top: -5px;
    position: relative;
    z-index: 5;
}

/* Contact Top Bar Styles */
.contact-top-bar {
    background-color: var(--olive-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-column {
    display: flex;
    align-items: center;
    z-index: 99999 !important;
    position: relative;
}

.column-left {
    flex: 2;
}

.column-right {
    flex: 2;
    justify-content: flex-end;
}

.contact-items {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    max-width: 550px; /* Match search box width */
    width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px;
    flex-shrink: 0;
}

/* Social Media Links in Header */
.contact-social {
    padding: 0;
}

.social-link {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    text-decoration: none;
}

.social-link:hover {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
}

.contact-social .contact-icon {
    font-size: 16px;
    height: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.contact-text {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 18px;
}

.contact-text:hover {
    opacity: 0.8;
    color: var(--white);
}

@media (max-width: 991px) {
    .contact-items {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: row; /* Keep as row */
        gap: 10px;
    }
    
    .top-bar-column {
        width: auto;
    }
    
    .column-left {
        display: none; /* Hide left column on mobile to save space */
    }
    
    .column-right {
        flex: 1;
        justify-content: center;
    }

    .contact-social {
        display: none;
        visibility: hidden;
    }
    
    .contact-items {
        flex-direction: row; /* Keep as row */
        align-items: center;
        gap: 15px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-text {
        font-size: 14px;
    }
    
    .contact-items {
        gap: 10px;
    }
}

/* WooCommerce Cart and Account Links in Top Bar */
.contact-cart .cart-link,
.contact-account .account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-cart .cart-link:hover,
.contact-account .account-link:hover {
    opacity: 0.8;
    color: var(--white);
}

.contact-cart .cart-count {
    background-color: var(--olive-medium);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    min-width: 18px;
}

/* Responsive adjustments for cart and account links */
@media (max-width: 768px) {
    .contact-cart .contact-text,
    .contact-account .contact-text {
        display: none;
    }
    
    .contact-cart .cart-link,
    .contact-account .account-link {
        gap: 4px;
    }
    
    .contact-cart .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
        min-width: 16px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--olive-light);
    color: var(--white);
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background-color: var(--olive-dark);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }

}

/* Ensure all dropdown links are flex containers for proper arrow alignment */
.main-navigation ul ul a,
.menu-item-has-children:not(.stock-menu-item) .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Global Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

table thead {
    background-color: var(--olive-light);
    color: var(--white);
}

table thead th {
    padding: 15px 20px;
    font-weight: 600;
    text-align: left;
    border: none;
    vertical-align: middle;
}

table tbody tr {
    border-bottom: 1px solid #f2f2f2;
    transition: background-color 0.3s ease;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #edf5ff;
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody td {
    padding: 12px 20px;
    vertical-align: middle;
    border: none;
    color: #333;
}

/* Highlighted cells */
table .highlight-cell {
    font-weight: 600;
    color: #C4122F;
}

/* Table captions */
table caption {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--olive-dark);
    text-align: left;
}

/* Responsive tables - enable horizontal scrolling on small screens */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        margin: 15px 0;
        font-size: 14px;
    }
    
    table thead th,
    table tbody td {
        padding: 10px 15px;
    }
}

/* Compact tables variation */
.table-compact thead th {
    padding: 10px 15px;
}

.table-compact tbody td {
    padding: 8px 15px;
}

/* Bordered table variation */
.table-bordered tbody td,
.table-bordered thead th {
    border: 1px solid #e0e0e0;
}

/* Striped table variation */
.table-striped tbody tr:nth-child(odd) {
    background-color: #f5f9ff;
}

.table-striped tbody tr:nth-child(even) {
    background-color: var(--white);
}

/* Gravity Form 1 Styling - Properly target form #1 */
.gform_wrapper #gform_1,
.gform_wrapper.gform_wrapper_1 {
    margin: 0;
}

.gform_wrapper #gform_1 ul.gform_fields,
.gform_wrapper.gform_wrapper_1 ul.gform_fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gform_wrapper #gform_1 li.gfield,
.gform_wrapper.gform_wrapper_1 li.gfield {
    margin: 0 0 20px 0;
    padding: 0;
}

/* Field styling for form 1 */
.gform_wrapper #gform_1 input[type="text"],
.gform_wrapper #gform_1 input[type="email"],
.gform_wrapper #gform_1 input[type="tel"],
.gform_wrapper #gform_1 input[type="url"],
.gform_wrapper #gform_1 input[type="number"],
.gform_wrapper #gform_1 select,
.gform_wrapper #gform_1 textarea,
.gform_wrapper.gform_wrapper_1 input[type="text"],
.gform_wrapper.gform_wrapper_1 input[type="email"],
.gform_wrapper.gform_wrapper_1 input[type="tel"],
.gform_wrapper.gform_wrapper_1 input[type="url"],
.gform_wrapper.gform_wrapper_1 input[type="number"],
.gform_wrapper.gform_wrapper_1 select,
.gform_wrapper.gform_wrapper_1 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background-color: white;
    font-size: 16px;
    color: #333;
    line-height: normal;
    box-shadow: none;
    margin-bottom: 0;
}

/* Form textarea styling */
.gform_wrapper #gform_1 textarea,
.gform_wrapper.gform_wrapper_1 textarea {
    height: 150px;
    resize: vertical;
    border-radius: 25px;
}

/* Dropdown styling */
.gform_wrapper #gform_1 select,
.gform_wrapper.gform_wrapper_1 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}

/* Form submit button */
.gform_wrapper #gform_1 .gform_footer,
.gform_wrapper.gform_wrapper_1 .gform_footer {
    padding: 0;
    margin: 20px 0 0 0;
    text-align: right;
}

.gform_wrapper #gform_1 .gform_button,
.gform_wrapper.gform_wrapper_1 .gform_button {
    background-color: var(--olive-light);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 150px;
}

.gform_wrapper #gform_1 .gform_button:hover,
.gform_wrapper.gform_wrapper_1 .gform_button:hover {
    background-color: var(--olive-dark);
}

/* Label styling */
.gform_wrapper #gform_1 .gfield_label,
.gform_wrapper.gform_wrapper_1 .gfield_label {
    font-weight: 500;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Required field indicator */
.gform_wrapper #gform_1 .gfield_required,
.gform_wrapper.gform_wrapper_1 .gfield_required {
    color: #C4122F;
    margin-left: 4px;
}

/* Validation styling */
.gform_wrapper #gform_1 .validation_message,
.gform_wrapper.gform_wrapper_1 .validation_message {
    color: #C4122F;
    font-weight: normal;
    font-size: 14px;
    padding: 5px 0 0 0;
}

.gform_wrapper #gform_1 .validation_error,
.gform_wrapper.gform_wrapper_1 .validation_error {
    color: #C4122F;
    border-color: #C4122F;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid;
    border-radius: 5px;
    font-size: 14px;
}

.gform_wrapper #gform_1 .gfield_error input,
.gform_wrapper #gform_1 .gfield_error textarea,
.gform_wrapper #gform_1 .gfield_error select,
.gform_wrapper.gform_wrapper_1 .gfield_error input,
.gform_wrapper.gform_wrapper_1 .gfield_error textarea,
.gform_wrapper.gform_wrapper_1 .gfield_error select {
    border: 1px solid #C4122F;
}

/* Placeholder styling */
.gform_wrapper #gform_1 ::placeholder,
.gform_wrapper.gform_wrapper_1 ::placeholder {
    color: #999;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gform_wrapper #gform_1 input[type="text"],
    .gform_wrapper #gform_1 input[type="email"],
    .gform_wrapper #gform_1 input[type="tel"],
    .gform_wrapper #gform_1 input[type="url"],
    .gform_wrapper #gform_1 input[type="number"],
    .gform_wrapper #gform_1 select,
    .gform_wrapper #gform_1 textarea,
    .gform_wrapper.gform_wrapper_1 input[type="text"],
    .gform_wrapper.gform_wrapper_1 input[type="email"],
    .gform_wrapper.gform_wrapper_1 input[type="tel"],
    .gform_wrapper.gform_wrapper_1 input[type="url"],
    .gform_wrapper.gform_wrapper_1 input[type="number"],
    .gform_wrapper.gform_wrapper_1 select,
    .gform_wrapper.gform_wrapper_1 textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .gform_wrapper #gform_1 .gform_button,
    .gform_wrapper.gform_wrapper_1 .gform_button {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* Additional direct ID targeting for form #2 */
#gform_wrapper_1 {
    margin: 0;
}

#gform_wrapper_1 ul.gform_fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

#gform_wrapper_1 li.gfield {
    margin: 0 0 20px 0;
    padding: 0;
}

#gform_wrapper_1 input[type="text"],
#gform_wrapper_1 input[type="email"],
#gform_wrapper_1 input[type="tel"],
#gform_wrapper_1 input[type="url"],
#gform_wrapper_1 input[type="number"],
#gform_wrapper_1 select,
#gform_wrapper_1 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background-color: white;
    font-size: 16px;
    color: #333;
    line-height: normal;
    box-shadow: none;
    margin-bottom: 0;
}

#gform_wrapper_1 textarea {
    height: 150px;
    resize: vertical;
    border-radius: 25px;
}

#gform_wrapper_1 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 35px;
}

#gform_wrapper_1 .gform_footer {
    padding: 0;
    margin: 20px 0 0 0;
    text-align: right;
}

#gform_wrapper_1 .gform_button {
    background-color: var(--olive-light);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 150px;
}

#gform_wrapper_1 .gform_button:hover {
    background-color: var(--olive-dark);
}

/* Remove existing gf_2 styling which isn't working */
.gform_wrapper.gf_2_wrapper,
.gform_wrapper.gf_2_wrapper ul.gform_fields,
.gform_wrapper.gf_2_wrapper li.gfield,
.gform_wrapper.gf_2_wrapper input[type="text"],
.gform_wrapper.gf_2_wrapper input[type="email"],
.gform_wrapper.gf_2_wrapper input[type="tel"],
.gform_wrapper.gf_2_wrapper input[type="url"],
.gform_wrapper.gf_2_wrapper input[type="number"],
.gform_wrapper.gf_2_wrapper select,
.gform_wrapper.gf_2_wrapper textarea,
.gform_wrapper.gf_2_wrapper .gform_footer,
.gform_wrapper.gf_2_wrapper .gform_button,
.gform_wrapper.gf_2_wrapper .gfield_label,
.gform_wrapper.gf_2_wrapper .gfield_required,
.gform_wrapper.gf_2_wrapper .validation_message,
.gform_wrapper.gf_2_wrapper .validation_error,
.gform_wrapper.gf_2_wrapper .gfield_error input,
.gform_wrapper.gf_2_wrapper .gfield_error textarea,
.gform_wrapper.gf_2_wrapper .gfield_error select,
.gform_wrapper.gf_2_wrapper ::placeholder {
    /* These styles now moved to more specific selectors above */
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hide on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000; /* Ensure it appears above other elements */
    position: relative;
}

.mobile-menu-toggle .toggle-bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.has-transparent-header .mobile-menu-toggle .toggle-bar {
    background-color: #fff;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation - fix overflow issues */
.mobile-navigation-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background-color: var(--olive-light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    overflow-y: auto;
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
    display: block;
}

.mobile-navigation-wrapper.active {
    right: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.mobile-nav-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    background-color: var(--olive-light);
}

/* Mobile Menu - ensure content flows properly */
.mobile-menu {
    flex: 1 0 auto;
    margin-bottom: 30px;
    padding-top: 15px;
    overflow: visible;
}

/* Fixed position for body to prevent scrolling under the menu */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure flex column layout for proper accordion expansion */
.mobile-menu-items,
.mobile-menu-items ul {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Menu item specific fixes */
.mobile-menu-items .menu-item {
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Force About menu to use proper accordion behavior */
.mobile-menu-items .about-menu > a {
    font-weight: 500;
}

.mobile-menu-items .about-menu.submenu-open > a {
    color: var(--olive-dark);
    font-weight: 600;
}

/* Restore mobile menu core styles */
.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-menu-items li {
    position: relative;
    border-bottom: 1px solid #eee;
    width: 100%;
    display: block;
}

.mobile-menu-items li:last-child {
    border-bottom: none;
}

.mobile-menu-items a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Properly implemented accordion submenu styles */
.mobile-menu-items .sub-menu {
    list-style: none;
    padding: 0 0 0 15px !important;
    margin: 0 0 0 0 !important;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-items .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 2000px;
    margin-bottom: 10px !important;
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.mobile-menu-items .sub-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
    padding: 0;
}

.mobile-menu-items .sub-menu a {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.mobile-menu-items .sub-menu li:last-child {
    border-bottom: none;
}

/* Toggle button styles */
.submenu-toggle {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 0;
    margin-left: 5px;
    transition: all 0.2s ease;
}

.dropdown-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    transition: transform 0.3s ease;
    position: relative;
}

.dropdown-icon:before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: var(--white);
}

.submenu-toggle[aria-expanded="true"] .dropdown-icon:before {
    content: '-';
}

/* Add consistent styles for mobile stock menu dropdown icon */
.mobile-menu-items .stock-menu-item .dropdown-arrow {
    display: none; /* Hide the desktop arrow in mobile view */
}

/* Ensure stock menu items have consistent padding with other menu items */
.mobile-menu-items .stock-menu-item > a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Style for the stock menu toggle specifically */
.mobile-menu-items .stock-menu-item .submenu-toggle {
    position: absolute;
    right: 0;
    top: 7px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Mobile Contact Info */
.mobile-contact-info {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-contact-item {
    margin-bottom: 15px;
}

.mobile-contact-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-size: 15px;
}

.mobile-contact-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--white);
}

.mobile-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-social-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* Overlay for mobile menu */
body.mobile-menu-open:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    opacity: 1;
    visibility: visible;
    display: block !important;
    pointer-events: auto !important;
}

/* Stock menu styles for mobile accordion */
.mobile-menu-items .stock-menu-item .stock-dropdown-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0 0 0 15px !important;
    margin: 0 !important;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    background-color: transparent;
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-items .stock-menu-item.submenu-open .stock-dropdown-wrapper {
    max-height: 2000px;
    margin-bottom: 10px !important;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-items .stock-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: auto;
    background: transparent;
    overflow: visible;
}

.mobile-menu-items .dropdown-container {
    display: block;
    padding: 0;
    flex-direction: column;
}

.mobile-menu-items .menu-vehicle-types-list {
    padding: 0;
    margin-bottom: 20px;
    flex: none;
    width: 100%;
    margin-right: 0;
}

.mobile-menu-items .menu-vehicle-types-list::before {
    content: 'Vehicles';
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.mobile-menu-items .vehicle-columns-container {
    flex-direction: column;
}

.mobile-menu-items .vehicle-types-column,
.mobile-menu-items .vehicle-brands-column {
    flex: none;
    width: 100%;
    padding: 0;
    border-right: 0;
}

.mobile-menu-items .menu-vehicle-type-link {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 15px;
    color: #444;
    display: block;
    width: 100%;
}

.mobile-menu-items .menu-vehicle-type-link::after {
    display: none;
}

.mobile-menu-items .menu-deal-section {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    padding-top: 15px;
}

.mobile-menu-items .menu-deal-header {
    background: #ffffff;
    color: var(--olive-dark);
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mobile-menu-items .menu-deal-content h3 {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    text-shadow: none;
    z-index: 1;
    padding: 0;
}

.mobile-menu-items .menu-deal-image {
    position: relative;
    height: 160px;
    border-radius: 4px;
    margin-bottom: 10px;
    min-height: 0;
}

.mobile-menu-items .menu-deal-pricing {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.mobile-menu-items .menu-price-column,
.mobile-menu-items .flag-column {
    flex: 0 0 auto;
    margin-right: 5px;
}

.mobile-menu-items .flag-column {
    top: 0 !important;
}

.mobile-menu-items .menu-enquire-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
    padding: 8px 15px !important;
}

/* Fix mobile menu display issues */
@media (max-width: 991px) {
    /* Hide desktop navigation and show mobile toggle */
    .main-navigation {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 10000;
        margin-left: auto;
    }
    
    /* Ensure proper header layout */
    .header-content {
        justify-content: space-between;
        align-items: center;
    }
    
    /* Hide desktop search on mobile */
    .search-form-container {
        display: none !important;
    }
    
    /* Fix logo sizing */
    .site-branding img {
        height: 60px;
    }
    
    /* Hide desktop stock menu on mobile */
    .stock-dropdown-wrapper {
        display: none !important;
    }
    
    /* Ensure fixed mobile menu wrapper */
    .mobile-navigation-wrapper {
        width: 280px;
        right: -280px;
    }
    
    /* Fix for active mobile menu */
    .mobile-navigation-wrapper.active {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Fix stock menu hover only on desktop */
@media (min-width: 992px) {
    .stock-menu-item:hover .stock-dropdown-wrapper {
        display: block;
    }
    
    .stock-dropdown-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        margin-top: 15px;
    }
}

/* Fix mobile menu to be a true accordion */
.mobile-menu-items, 
.mobile-menu-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-menu-items .sub-menu {
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 0 0 15px !important;
    margin: 0 !important;
    border-left: 2px solid rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-items .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 2000px;
    margin-bottom: 10px !important;
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

/* Fix mobile menu accordion appearance */
@media (max-width: 991px) {
    /* Override any top-level menu styles to ensure accordion behavior */
    .mobile-menu-items .sub-menu {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0 0 0 15px !important;
        margin: 0 !important;
        border-left: 2px solid rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
    }
    
    /* Force submenu items to display in block to create accordion */
    .mobile-menu-items li {
        display: block !important;
        width: 100% !important;
    }
    
    /* Fix positioning of toggle buttons */
    .mobile-menu-items .submenu-toggle {
        position: absolute !important;
        right: 0 !important;
        top: 7px !important;
        z-index: 3 !important;
    }
    
    /* Ensure submenu appears below parent, not on top */
    .main-navigation ul ul,
    .menu-item-has-children:not(.stock-menu-item) .sub-menu,
    .mobile-menu-items .sub-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    /* Fix third-level menu appearances */
    .mobile-menu-items .sub-menu .sub-menu {
        margin-left: 0 !important;
        border-top: none !important;
    }
    
    /* Remove dropdown arrows from main navigation in mobile */
    .main-navigation ul ul::before,
    .menu-item-has-children:not(.stock-menu-item) .sub-menu::before,
    .mobile-menu-items .sub-menu::before {
        display: none !important;
    }
}

/* Make toggle buttons more visible on mobile */
@media (max-width: 991px) {
    .mobile-menu-items .submenu-toggle {
        position: absolute;
        right: 0;
        top: 8px;
        width: 35px;
        height: 35px;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    
    .mobile-menu-items .submenu-toggle:hover,
    .mobile-menu-items .submenu-toggle:focus {
        background-color: rgba(255, 255, 255, 0.25);
    }
    
    .mobile-menu-items .dropdown-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 20px;
        color: var(--white);
    }
    
    /* Fix stock menu styling for blue background */
    .mobile-menu-items .stock-dropdown {
        background-color: transparent !important; 
    }
    
    .mobile-menu-items .menu-vehicle-types-list::before {
        color: var(--white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-items .menu-vehicle-type-link {
        color: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-items .menu-deal-content h3 {
        color: var(--white);
    }
    
    .mobile-menu-items .menu-deal-pricing {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 991px) {
    .mobile-menu-items .menu-item-has-children > a {
        padding-right: 40px !important;
    }
    
    /* Fix positioning for all submenus to ensure accordion style */
    .mobile-menu-items,
    .mobile-menu-items .sub-menu,
    .mobile-menu-items .stock-dropdown-wrapper {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    /* Additional tweaks for blue theme */
    .mobile-menu-items .menu-enquire-btn {
        background-color: var(--white);
        color: var(--olive-dark) !important;
        font-weight: 600;
    }
    
    .mobile-menu-items .menu-enquire-btn:hover {
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-menu-items .submenu-open > a {
        color: var(--white) !important;
        font-weight: 600;
    }
}

/* Mobile Menu Logo */
.mobile-menu-logo {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    /* padding-bottom: 20px; */
}

.mobile-menu-logo img {
    max-width: 121px;
    height: auto;
    margin-top: -30px;
    margin-bottom: -35px;
    filter: unset;
}

.mobile-nav-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    background-color: var(--olive-light);
}

@media (max-width: 768px) {
    .uk-flag-container {
        position: absolute;
        top: 0px;
        left: 55%;
        transform: translateX(-50%);
        z-index: 10;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        position: relative;
        top: 20px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .feature-item {
        display: flex;
        align-items: center;
        gap: 22px;
        margin-bottom: 20px;
    }
    
    .feature-items {
        flex-direction: column;
        align-items: flex-start;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        padding: 30px;
        width: 100%;
        margin: 30px 0 20px 0;
    }
    
    .feature-icon img {
        width: 45px;
        height: 36px;
    }
    
    .feature-text span {
        font-size: 18px;
    }
    
    .feature-subtitle {
        font-size: 13px;
    }
    
    /* ... existing mobile styles ... */
}

@media (max-width: 480px) {
    .feature-items {
        padding: 25px 20px;
        margin: 25px 0 15px 0;
    }
    
    .feature-item {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .feature-item:last-child {
        margin-bottom: 0;
    }
    
    .feature-icon img {
        width: 40px;
        height: 32px;
    }
    
    .feature-text span {
        font-size: 16px;
    }
    
    /* ... existing mobile styles ... */
}

@media (max-width: 480px) {
    .text-image-split-section .content-cta {
        margin-top: 20px;
        padding-bottom: 20px;
    }
    
    /* ... existing code for 480px ... */
}

@media (max-width: 991px) {
    /* Footer tablet styling - stack to 2 columns for better readability */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Footer mobile styling */
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .footer-logo img {
        height: 75px;
        width: auto;
    }
    
    .footer-search .search-field {
        min-width: 100%;
        width: 100%;
    }
    
    .certification-logos {
        justify-content: center;
    }
    
    .certification-text {
        text-align: center;
    }
    
    .certifications {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .footer-column h3 {
        text-align: center;
        font-size: 18px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 15px;
    }
    
    .footer-info, .footer-address, .footer-contact, .footer-emails {
        text-align: center;
    }
    
    .quick-links-menu {
        text-align: center;
    }
    
    .quick-links-menu li {
        margin-bottom: 12px;
    }
    
    .time-row {
        padding: 0 20px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links span {
        display: none;
    }
    
    /* Show the separator before copyright only */
    .footer-links span:nth-last-child(2) {
        display: none;
        margin: 5px 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* ... other existing mobile styles ... */
}

/* Fix for hero section and main content overlap on mobile */
@media (max-width: 768px) {
    /* Ensure the hero content wrapper doesn't overlap with main content */
    .hero-content-wrapper {
        margin-top: -540px;
        min-height: 540px; /* Match height to hero background */
        height: auto;
        padding-bottom: 0;
        position: relative;
        z-index: 5;
    }
    
    /* Ensure main content appears below hero */
    .has-hero-background #primary {
        position: relative;
        z-index: 1;
        margin-top: 0;
        clear: both;
    }
    
    /* Fix content overflow */
    .has-hero-background #content {
        overflow: hidden;
        position: relative;
        z-index: 1;
        margin-top: 0px;
    }
    
    /* Increase heading size on mobile */
    .hero-content h1 {
        font-size: 50px;
    }
}

/* FORCE SEARCH RESULTS STYLING - HIGH PRIORITY */
body .search-results-section {
    position: relative !important;
    padding: 80px 0 !important;
    background: linear-gradient(to right, rgba(245, 249, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
    margin: 0 !important;
    width: 100% !important;
}

body .search-results-section .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

body .search-results-header {
    text-align: center !important;
    margin-bottom: 50px !important;
    padding: 0 !important;
}

body .search-results-title {
    color: var(--olive-dark) !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
}

body .search-results-title .search-query {
    color: #C4122F !important;
    font-weight: 600 !important;
}

body .search-results-count {
    color: #8cc641 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

body .search-results-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
    list-style: none !important;
    padding: 0 !important;
}

body .search-result-item {
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: var(--white) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body .search-result-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

body .search-result-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .search-result-image {
    position: relative !important;
    height: 250px !important;
    background-color: var(--background-light) !important;
    overflow: hidden !important;
}

body .search-result-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

body .search-result-item:hover .search-result-thumbnail {
    transform: scale(1.05) !important;
}

body .search-result-content {
    padding: 25px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
}

body .search-result-title {
    margin: 0 0 15px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body .search-result-title a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body .search-result-title a:hover {
    color: var(--olive-dark) !important;
}

body .search-result-excerpt {
    margin-bottom: 20px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    flex: 1 !important;
}

body .search-result-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: auto !important;
}

body .search-result-button {
    flex: 1 !important;
    display: inline-block !important;
    padding: 12px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body .search-result-button:not(.enquire-button) {
    background-color: var(--background-light) !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

body .search-result-button.enquire-button {
    background-color: #8cc641 !important;
    color: white !important;
    border: 1px solid #8cc641 !important;
}

/* Override any default WordPress article styles */
body .search-results-section article {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

body .search-results-section .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

body .search-results-section .entry-title {
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive overrides */
@media (max-width: 1200px) {
    body .search-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body .search-results-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    body .search-result-image {
        height: 200px !important;
    }
    
    body .search-result-content {
        padding: 20px !important;
    }
    
    body .search-result-title {
        font-size: 18px !important;
    }
    
    body .search-result-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

/* Shop Hero Background (Smaller Height) */
.shop-hero-background {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--olive-darkest);
    width: 100%;
    max-width: 100%;
}

/* Ensure shop hero content is positioned correctly */
.shop-hero-content-wrapper {
    position: relative;
    z-index: 3;
    height: 150px !important;
    display: flex;
    align-items: center;
}

.shop-hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.shop-hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shop-hero-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--olive-medium);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.shop-hero-content .btn:hover {
    background-color: var(--olive-dark);
    color: var(--white);
}

/* Ensure WooCommerce content doesn't interfere with hero */
.woocommerce .shop-hero-content-wrapper + .woocommerce {
    margin-top: 0;
}

/* Hide WooCommerce page title when hero is present */
.woocommerce .shop-hero-content-wrapper ~ .woocommerce-products-header {
    display: none;
}

.shop-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shop-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.shop-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 58, 31, 0.6); /* Darker overlay */
    z-index: 2;
}

.shop-hero-content-wrapper {
    position: relative;
    z-index: 3;
    height: 300px; /* Match hero background height */
    display: flex;
    align-items: center;
}

.shop-hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.shop-hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.shop-hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.shop-hero-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--olive-medium);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.shop-hero-content .btn:hover {
    background-color: var(--olive-dark);
    color: var(--white);
}

/* Responsive adjustments for shop hero */
@media (max-width: 768px) {
    .shop-hero-background {
        height: 200px;
    }
    
    .shop-hero-content-wrapper {
        height: 200px;
    }
    
    .shop-hero-content h1 {
        font-size: 28px;
    }
    
    .shop-hero-subtitle {
        font-size: 16px;
    }
}

/* Ensure proper spacing for WooCommerce content when hero is present */
.woocommerce .shop-hero-background + .woocommerce {
    margin-top: 0;
    padding-top: 0;
}

/* Hide duplicate page titles when hero is present */
.woocommerce .shop-hero-content-wrapper ~ .woocommerce-products-header,
.woocommerce .shop-hero-content-wrapper ~ header.woocommerce-products-header {
    display: none !important;
}

/* Ensure WooCommerce main content starts properly after hero */
.woocommerce .shop-hero-background ~ .woocommerce {
    margin-top: 0;
}

/* Fix any potential spacing issues */
.woocommerce .shop-hero-background + * {
    margin-top: -165px !important;
    margin-bottom: 45px !important;
}

/* Additional rule to ensure content overlap works */
.woocommerce .shop-hero-background ~ .woocommerce {
    margin-top: -165px !important;
    margin-bottom: 45px !important;
}

/* General rule for any page with small hero background */
.shop-hero-background + * {
    margin-top: -165px !important;
    margin-bottom: 45px !important;
}

@media (max-width: 480px) {
    .shop-hero-background {
        height: 150px;
    }
    
    .shop-hero-content-wrapper {
        height: 150px;
    }
    
    .shop-hero-content h1 {
        font-size: 24px;
    }
    
    .shop-hero-subtitle {
        font-size: 14px;
    }
}

/* Additional mobile-specific styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .site-branding img {
        height: 100px;
    }
}