/* Base Styles and Variables */
:root {
    /* Light Mode Colors */
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --background-color: #ffffff;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-color: #e5e5e5;
    --input-background: #f5f5f5;
    --button-primary: #1a1a1a;
    --button-primary-text: #ffffff;
    --button-secondary: transparent;
    --button-secondary-text: #1a1a1a;
    --button-hover: #333333;
    --tag-background: #1a1a1a;
    --tag-color: #ffffff;
    --navbar-background: #ffffff;
    --footer-background: #1a1a1a;
    --footer-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --dropdown-background: #ffffff;
    --dropdown-shadow: rgba(0, 0, 0, 0.1);
    --hero-overlay: rgba(0, 0, 0, 0.5);
    --sell-button-bg: #1a1a1a;
    --sell-button-text: #ffffff;
    --sell-button-hover: #333333;
}

.dark-mode {
    /* Dark Mode Colors */
    --primary-color: #ffffff;
    --secondary-color: #e5e5e5;
    --background-color: #121212;
    --card-background: #1e1e1e;
    --text-color: #f5f5f5;
    --border-color: #333333;
    --input-background: #2a2a2a;
    --button-primary: #ffffff;
    --button-primary-text: #121212;
    --button-secondary: transparent;
    --button-secondary-text: #ffffff;
    --button-hover: #e5e5e5;
    --tag-background: #ffffff;
    --tag-color: #121212;
    --navbar-background: #121212;
    --footer-background: #1a1a1a;
    --footer-text: #ffffff;
    --shadow-color: rgba(255, 255, 255, 0.05);
    --dropdown-background: #1e1e1e;
    --dropdown-shadow: rgba(0, 0, 0, 0.3);
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --sell-button-bg: #ffffff;
    --sell-button-text: #121212;
    --sell-button-hover: #e5e5e5;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--button-primary);
}

.btn-primary {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
}

.btn-secondary {
    background-color: var(--button-secondary);
    color: var(--button-secondary-text);
    border: 1px solid var(--button-secondary-text);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-text {
    background: var(--button-primary);
    color: var(--button-primary-text);
    border: 2px solid var(--button-primary);
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-text i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-text:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Header Styles */
header {
    padding: 15px 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--navbar-background);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: rotate(5deg);
}

.main-nav {
    display: flex;
    gap: 35px;
    align-items: center;
    transition: all 0.3s ease;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.main-nav a:not(.sell-button):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover:not(.sell-button):after {
    width: 100%;
}

.main-nav a.active:not(.sell-button):after {
    width: 100%;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--card-background);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--input-background);
    padding-left: 24px;
}

.sell-button {
    background-color: var(--sell-button-bg);
    color: var(--sell-button-text) !important;
    padding: 12px 20px; /* Increased padding from 10px 16px */
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px; /* Added slightly larger font size */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sell-button i {
    font-size: 15px; /* Increased icon size to match */
}

.sell-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.sell-button.highlight-button {
    background-color: var(--sell-button-bg);
    color: var(--sell-button-text) !important;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.sell-button.highlight-button i {
    font-size: 16px;
}

.sell-button.highlight-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background-color: var(--sell-button-hover);
}

/* Pulse animation for the sell button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 26, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 26, 26, 0);
    }
}

/* Dark mode pulse adjustment */
.dark-mode .sell-button.highlight-button {
    animation: pulse-dark 2s infinite;
}

@keyframes pulse-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-controls button:hover {
    background-color: var(--input-background);
    transform: translateY(-2px);
}

#menu-toggle {
    display: none;
    z-index: 1001;
}

#menu-toggle i {
    transition: transform 0.3s ease;
}

#menu-toggle.active i {
    transform: rotate(90deg);
}

/* Mobile Navigation Styles - Complete rewrite */
@media screen and (max-width: 992px) {
    /* Menu toggle button */
    #menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    #menu-toggle i {
        transition: transform 0.3s ease;
    }
    
    #menu-toggle.active i {
        transform: rotate(90deg);
    }
    
    /* Mobile navigation panel */
    nav {
        position: fixed;
        top: 65px;
        right: 0;
        width: 50%;
        height: calc(100vh - 65px);
        background-color: var(--navbar-background);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        visibility: hidden;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--border-color);
        padding: 0;
        margin: 0;
        overflow-y: auto;
    }
    
    nav.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    /* Navigation list */
    .main-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 10px 0;
    }
    
    .main-nav li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        color: var(--text-color);
        text-align: left;
    }
    
    .main-nav a:hover {
        background-color: var(--input-background);
    }
    
    /* Dropdown styles */
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 20px;
    }
    
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: var(--input-background);
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
        margin: 0;
        border-left: 3px solid var(--primary-color);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 10px 20px 10px 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a:hover {
        padding-left: 35px;
    }
    
    /* Sell button */
    .sell-button {
        margin: 15px;
        width: calc(100% - 30px);
        justify-content: center;
    }
    
    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Mobile adjustments for smaller screens */
@media screen and (max-width: 576px) {
    nav {
        width: 75%; /* Make menu wider on very small screens */
    }
}

/* Hero and content margin adjustment for fixed header */
.hero, main > section:first-child:not(.hero) {
    margin-top: 70px;
}

@media screen and (max-width: 768px) {
    .hero, main > section:first-child:not(.hero) {
        margin-top: 60px;
    }
}

/* Logo Styles */
.logo a {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Makes the logo perfectly round */
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 3px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-color);
    border-color: var(--primary-color);
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
}

/* Make logo text visible on all devices */
@media screen and (max-width: 768px) {
    .logo-text {
        display: none; /* Hide the regular logo text on mobile */
    }
    
    /* Only show abbreviated ORM on mobile */
    .logo a::after {
        content: "ORM";
        font-weight: 700;
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    /* Keep the mobile menu styling for ORM */
    #mobile-menu .logo-text {
        display: block; /* Show the abbreviated text in mobile menu */
        font-size: 24px;
        font-weight: 700;
        color: var(--primary-color);
        margin-left: 5px;
    }
}

nav {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dropdown-background);
    box-shadow: 0 8px 16px var(--dropdown-shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--input-background);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.header-controls button:hover {
    background-color: var(--input-background);
}

.mobile-only {
    display: none;
}

/* Sell Your Car Button */
.sell-button {
    background-color: var(--sell-button-bg);
    color: var(--sell-button-text) !important;
    padding: 12px 20px; /* Increased padding from 10px 16px */
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px; /* Added slightly larger font size */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sell-button i {
    font-size: 15px; /* Increased icon size to match */
}

.sell-button:hover {
    background-color: var(--sell-button-hover);
    transform: translateY(-2px);
}

@media screen and (max-width: 992px) {
    .sell-button {
        margin-left: 15px;
    }
}

@media screen and (max-width: 768px) {
    .main-nav.active .sell-button {
        margin: 15px auto;
        width: 200px;
        justify-content: center;
    }
}

/* Search Panel Styles */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 80px 0 30px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.search-panel.active {
    transform: translateY(0);
}

#search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.search-category {
    flex: 1 1 100%;
    max-width: 200px;
}

.search-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
}

.field {
    flex: 1;
    min-width: 200px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.field select, 
.field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--input-background);
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    appearance: none;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.field select:focus, 
.field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    flex: 1;
}

.range-inputs span {
    color: var(--text-color);
}

.search-btn {
    padding: 12px 24px;
    background-color: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.search-btn:hover {
    opacity: 0.9;
}

/* Hero Section Styles */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    margin-top: 65px;
    overflow: hidden;
    color: #ffffff;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s ease;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 1;
}

.slide.active .slide-bg {
    transform: scale(1.1);
}

.hero-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-subtitle {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 0 15px;
    animation: fadeIn 0.8s ease-out;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #ffffff;
    transform: translateY(-50%);
}

.hero-subtitle::before {
    left: -30px;
}

.hero-subtitle::after {
    right: -30px;
}

.hero h1 {
    font-size: 54px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeUp 0.8s ease 0.2s both;
    margin: 0;
}

.hero p {
    font-size: 18px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.8s ease 0.4s both;
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeUp 0.8s ease 0.6s both;
    padding: 0.5rem 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn-accent {
    background-color: var(--sell-button-bg);
    color: var(--sell-button-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-accent i {
    font-size: 14px;
}

.btn-accent:hover {
    background-color: var(--sell-button-hover);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    animation: fadeIn 0.8s ease 0.8s both;
}

.slider-arrow {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.5);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 44px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .slider-controls {
        bottom: 20px;
        gap: 20px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        height: 75vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .hero-subtitle::before,
    .hero-subtitle::after {
        width: 20px;
    }
    
    .hero-subtitle::before {
        left: -20px;
    }
    
    .hero-subtitle::after {
        right: -20px;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-text-content {
        gap: 0.75rem;
    }
}

/* Featured Section Styles */
.featured-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.featured-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* Improved card layout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--tag-background);
    color: var(--tag-color);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card-details {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 13px;
    gap: 10px;
    margin-bottom: 20px;
}

.card-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 90px;
}

.card-details i {
    color: var(--secondary-color);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Card Action Buttons */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-view, .btn-buy {
    flex: 1;
    border: none;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    border-radius: 4px;
}

.btn-view {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-buy {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
}

.btn-view:hover {
    background-color: var(--input-background);
    transform: translateY(-2px);
}

.btn-buy:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.btn-view i, .btn-buy i {
    font-size: 14px;
}

/* Hidden Gallery */
.hidden-gallery {
    display: none;
}

/* Modal Gallery */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-modal.active .gallery-content {
    transform: translateY(0);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    color: #ffffff;
}

.gallery-title {
    font-size: 22px;
    font-weight: 600;
    margin-right: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.gallery-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.gallery-close:hover {
    transform: rotate(90deg);
}

.gallery-main {
    flex: 1;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-image.fade {
    opacity: 0.5;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.gallery-arrow.prev {
    left: 20px;
}

.gallery-arrow.next {
    right: 20px;
}

.gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid transparent;
    flex-shrink: 0;
}

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

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #ffffff;
}

.gallery-info {
    color: #ffffff;
    padding: 20px 0;
}

.gallery-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-description {
    margin-bottom: 20px;
}

.gallery-actions {
    display: flex;
    gap: 15px;
}

.gallery-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
}

.gallery-btn.primary {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
}

.gallery-btn.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.gallery-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Checkout Overlay and Modal Styles */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    width: 90%;
    max-width: 600px;
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.checkout-overlay.active .checkout-modal {
    transform: translateY(0);
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

checkout-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
}

.checkout-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

checkout-close:hover {
    background-color: var(--input-background);
}

.checkout-content {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.checkout-content::-webkit-scrollbar {
    width: 6px;
}

.checkout-content::-webkit-scrollbar-track {
    background: transparent;
}

.checkout-content::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.checkout-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item-detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

checkout-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.checkout-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--input-background);
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.checkout-buttons button {
    flex: 1;
    padding: 14px 0;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-cancel {
    background-color: var(--input-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

checkout-cancel:hover {
    background-color: #f0f0f0;
}

.checkout-success {
    text-align: center;
    padding: 40px 25px;
}

checkout-success i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

checkout-success i.fa-spinner {
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

checkout-success h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

checkout-success p {
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.5;
}

checkout-success button {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

checkout-success button:hover {
    transform: translateY(-2px);
}

/* Responsive Styles for Checkout */
@media screen and (max-width: 576px) {
    .checkout-modal {
        width: 95%;
    }
    
    .checkout-buttons {
        flex-direction: column;
    }
    
    .checkout-header h2 {
        font-size: 20px;
    }
    
    .checkout-price {
        font-size: 20px;
    }
    
    .checkout-success i {
        font-size: 50px;
    }
    
    .checkout-success h2 {
        font-size: 20px;
    }
}

/* Gallery thumb style fix */
.gallery-thumb {
    width: 80px;
    height: 60px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid transparent;
}

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

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #ffffff;
}

/* About Section Styles */
.about-section {
    padding: 60px 0;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.7;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-item p {
    font-size: 13px;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.3;
}

/* Footer Styles */
footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 0.8;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    margin-top: 4px;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Footer Financing Banner Styles */
.footer-financing-banner {
    background-color: #ff4d4d;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.footer-financing-banner h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-financing-banner p {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-financing-banner .financing-button {
    background-color: white;
    color: #ff4d4d;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-financing-banner .financing-button:hover {
    background-color: #ff6666;
    color: white;
}

/* Footer Sell with Us Button Styles */
.footer-sell-button {
    background: linear-gradient(135deg, #ff4d4d, #ff6b6b) !important;
    color: white !important;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
    text-decoration: none;
    border: none;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    animation: footerSellGlow 3s ease-in-out infinite;
}

.footer-sell-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.footer-sell-button:hover::before {
    left: 100%;
}

.footer-sell-button i {
    font-size: 14px;
    animation: iconWiggle 2s ease-in-out infinite;
}

.footer-sell-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.4);
    background: linear-gradient(135deg, #ff6b6b, #ff4d4d) !important;
}

.footer-sell-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Glow animation for footer sell button */
@keyframes footerSellGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 77, 77, 0.5), 0 0 0 3px rgba(255, 77, 77, 0.1);
    }
}

@keyframes iconWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* Responsive adjustments for footer sell button */
@media screen and (max-width: 768px) {
    .footer-sell-button {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 18px;
    }
    
    .footer-sell-button i {
        font-size: 13px;
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .main-nav {
        gap: 20px;
    }
    
    .about-section .container {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 30px;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
      .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .search-category {
        max-width: 100%;
    }
      /* Reduce spacing between featured section and about section on mobile */
    .featured-section {
        padding: 40px 0;
    }
    
    .about-section {
        padding: 40px 0;
    }
      /* Center the main title in About section on mobile only */
    .about-content h2 {
        text-align: center;
    }
    
    /* Center and adjust Learn More button on mobile */
    .about-content {
        text-align: center;
    }
      .about-content .btn-text {
        margin-top: 10px;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    /* Optimize stats layout on mobile */
    .stat-item {
        padding: 10px 5px;
    }
    
    .stat-item h3 {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .stat-item p {
        font-size: 12px;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--navbar-background);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px var(--shadow-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        align-items: center;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 10px 0;
        margin-top: 10px;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mobile-only {
        display: block;
    }
    
    #menu-toggle.active i {
        transform: rotate(90deg);
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 1px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    /* Further reduce spacing on smaller mobile devices */
    .featured-section {
        padding: 30px 0;
    }
    
    .about-section {
        padding: 30px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .card-details {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-details span {
        flex: 1;
        min-width: 100px;
    }
}

/* Listing Pages Styles */
.page-header {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
    color: var(--text-on-secondary);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--text-on-secondary);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumbs a:hover {
    opacity: 1;
}

.breadcrumbs span {
    font-weight: 500;
}

.listing-controls {
    margin-bottom: 30px;
}

.listing-controls .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    background-color: transparent;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    width: 50px;
    height: 44px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--button-primary-hover);
}

.filter-sort {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-btn button {
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-btn button:hover {
    background-color: var(--header-background);
}

.sort-dropdown select {
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 180px;
    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 fill="%23888888" d="M0 0l6 6 6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.3s ease;
}

.sort-dropdown select:hover {
    border-color: var(--button-primary);
}

/* Improved Filter Tags */
.active-filters {
    margin: 20px 0 30px;
}

#active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.filter-tag:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.filter-tag .remove {
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.filter-tag .remove:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff3b30;
}

.listings {
    padding-bottom: 60px;
}

/* Enhanced No Results Message */
#no-results {
    text-align: center;
    padding: 60px 0;
    background-color: var(--card-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 30px;
}

#no-results h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

#no-results p {
    color: var(--secondary-color);
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#clear-filters {
    background: none;
    border: none;
    color: var(--button-primary);
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-decoration: underline;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

#clear-filters:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.pagination {
    margin-top: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination button:hover {
    transform: translateY(-2px);
}

.pagination button.active {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
    border-color: var(--button-primary);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Filter Modal */
.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--input-background);
    color: var(--text-color);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: 70vh;
}

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

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.checkbox-group label:hover {
    color: var(--button-primary);
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--button-primary);
}

.range-slider {
    margin-top: 15px;
}

.range-slider input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
    accent-color: var(--button-primary);
}

.range-values {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.filter-actions button {
    flex: 1;
    padding: 14px 0;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
}

.btn-secondary {
    background-color: var(--input-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

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

.btn-secondary:hover {
    background-color: var(--header-background);
}

.filter-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .listing-controls .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-sort {
        justify-content: space-between;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        max-width: 100%;
    }
}

@media screen and (max-width: 991px) {
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .card-content h3 {
        font-size: 16px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .card-details {
        font-size: 12px;
    }
}

@media screen and (max-width: 767px) {
    .listing-controls .container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-sort {
        justify-content: space-between;
    }
    
    .card-details span {
        min-width: 80px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 576px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 200px;
    }
    
    .pagination button {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

/* Enhanced Floating Action Button (FAB) Styles with Animations */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
    animation: breathe 3s ease-in-out infinite;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    animation: bounceIn 1s ease-out, pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.fab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.fab-button:hover::before {
    left: 100%;
}

.fab-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E, #25D366);
    animation: pulse 2s infinite, wiggle 1s ease-in-out;
}

.fab-button:active {
    transform: scale(0.95);
}

.fab-button i {
    font-size: 24px;
    animation: iconBounce 0.3s ease-out;
    transition: transform 0.3s ease;
}

.fab-button:hover i {
    transform: scale(1.1) rotate(10deg);
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.fab-container:hover .fab-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 50px;
    justify-content: center;
    animation: slideInRight 0.5s ease-out;
}

.fab-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s;
}

.fab-option:hover::before {
    left: 100%;
}

.fab-option:hover {
    transform: translateX(-10px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.fab-option.call-fab {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    animation-delay: 0.1s;
}

.fab-option.call-fab:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.3);
}

.fab-option.whatsapp-fab {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    animation-delay: 0.2s;
}

.fab-option.whatsapp-fab:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.fab-option i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.fab-option:hover i {
    transform: scale(1.2) rotate(10deg);
}

.fab-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fab-option:hover .fab-label {
    opacity: 1;
    max-width: 100px;
    margin-left: 8px;
}

/* Keyframe Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(-10deg);
    }
    70% {
        transform: scale(0.9) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3), 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
        25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes notificationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Add notification badge style (optional) */
.fab-button::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.fab-button.has-notification::after {
    opacity: 1;
    transform: scale(1);
    animation: notificationPulse 2s infinite;
}

/* Enhanced Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 55px;
        height: 55px;
    }
    
    .fab-button i {
        font-size: 22px;
    }
    
    .fab-option {
        padding: 10px 14px;
        min-width: 45px;
    }
    
    .fab-option i {
        font-size: 18px;
    }
    
    .fab-label {
        font-size: 13px;
    }
    
    /* Enhance mobile interactions */
    .fab-option:hover {
        transform: translateX(-8px) scale(1.03);
    }
}

/* Small Phone Screens */
@media screen and (max-width: 480px) {
    .fab-container {
        bottom: 15px;
        right: 15px;
    }
    
    .fab-button {
        width: 50px;
        height: 50px;
    }
    
    .fab-button i {
        font-size: 20px;
    }
    
    .fab-option {
        padding: 8px 12px;
        min-width: 40px;
    }
    
    .fab-option i {
        font-size: 16px;
    }
    
    .fab-label {
        font-size: 12px;
    }
    
    /* Reduce animation intensity on small screens */
    .fab-button:hover {
        transform: scale(1.05);
    }
    
    .fab-option:hover {
        transform: translateX(-5px) scale(1.02);
    }
}

/* Responsive Styles for Modals */
@media screen and (max-width: 768px) {
    .gallery-content {
        height: 85vh;
    }
    
    .gallery-thumbnails {
        display: flex;
        padding: 10px 0;
        justify-content: center;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
    
    .gallery-arrow {
        width: 40px;
        height: 40px;
    }
    
    .gallery-arrow.prev {
        left: 10px;
    }
    
    .gallery-arrow.next {
        right: 10px;
    }
    
    .gallery-title {
        font-size: 18px;
    }
    
    .gallery-price {
        font-size: 20px;
    }
    
    .gallery-actions {
        flex-direction: column;
    }
    
    .gallery-btn {
        width: 100%;
        justify-content: center;
    }
    
    .checkout-item-detail {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkout-item-image {
        width: 100%;
        height: 140px;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 576px) {
    .checkout-modal {
        width: 95%;
    }
    
    .checkout-buttons {
        flex-direction: column;
    }
    
    .checkout-header h2 {
        font-size: 20px;
    }
    
    .checkout-price {
        font-size: 20px;
    }
    
    .checkout-success i {
        font-size: 50px;
    }
    
    .checkout-success h2 {
        font-size: 20px;
    }
    
    .gallery-content {
        width: 100%;
        height: 100vh;
    }
    
    .gallery-header {
        padding: 15px;
    }
    
    .gallery-info {
        padding: 15px;
    }
    
    .gallery-main {
        height: 60vh;
    }
}

/* Vehicle Specifications Styles */
.spec-details {
    background-color: var(--input-background);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.spec-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-color);
}

.spec-value {
    color: var(--primary-color);
}

.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.purchase-modal.active {
    opacity: 1;
    visibility: visible;
}

.purchase-modal-content {
    background-color: var(--card-background);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.purchase-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--card-background);
    z-index: 10;
}

.purchase-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.purchase-modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.purchase-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .purchase-modal-body {
        flex-direction: row;
    }
}

.purchase-modal-left {
    flex: 1;
}

.purchase-modal-right {
    flex: 1;
}

.purchase-modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.purchase-specs {
    background-color: var(--input-background);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.purchase-specs-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.purchase-specs-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: var(--text-color);
}

.spec-value {
    color: var(--primary-color);
}

.enquiry-form {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.enquiry-form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.enquiry-form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-background);
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-submit-btn {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.form-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Location Map Section Styles */
.location-map-section {
    padding: 60px 0;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
}

.location-heading {
    text-align: center;
    margin-bottom: 30px;
}

.location-heading h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.location-heading p {
    color: var(--secondary-color);
    font-size: 16px;
}

.map-container {
    width: 100%;
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

#location-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    max-width: 300px;
    width: 100%;
    animation: fadeInRight 0.8s ease-out;
}

.map-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.map-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.map-card p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-directions {
    background-color: var(--button-primary);
    color: var(--button-primary-text);
}

.btn-call {
    background-color: #4CAF50;
    color: white;
}

.map-actions a i {
    margin-right: 8px;
}

.map-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Pulse animation for map marker */
.fa-map-marker-alt.pulse {
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive styles for map section */
@media screen and (max-width: 768px) {
    .location-map-section {
        padding: 40px 0;
    }
    
    .map-container {
        height: 350px;
    }
    
    .map-overlay {
        top: auto;
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
        animation: fadeInUp 0.8s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translate(-50%, 30px);
        }
        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }
}

@media screen and (max-width: 576px) {
    .location-heading h2 {
        font-size: 28px;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Additional styles for mobile menu */
.menu-open {
    overflow: hidden; /* Prevent scrolling when menu is open */
}

/* Mobile Menu Styles */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-background);
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    display: none;
}

#mobile-menu.active {
    transform: translateX(0);
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--card-background);
    z-index: 10;
}

.mobile-menu-header .logo a {
    font-size: 18px;
}

.mobile-menu-header .logo-image {
    width: 35px;
    height: 35px;
}

#mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#mobile-menu-close:hover {
    background-color: var(--input-background);
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 2px;
}

.mobile-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.mobile-nav a:hover, 
.mobile-nav a:active {
    background-color: var(--input-background);
}

.mobile-nav .divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}

.mobile-sell-button {
    background-color: var(--sell-button-bg) !important;
    color: var(--sell-button-text) !important;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-weight: 600;
}

.mobile-sell-button i {
    font-size: 16px;
}

@media screen and (min-width: 993px) {
    #mobile-menu {
        display: none !important;
    }
}