/* Floating QR code mockup */
.hero-visual {
    position: absolute;
    right: -100px;
    bottom: -50px;
    width: 600px;
    height: 600px;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(5deg); }
    50% { transform: translateY(-30px) rotate(-5deg); }
}

.forsale-img {
    animation: float 6s ease-in-out infinite;
}

.hero {
    position: relative !important;
    overflow: hidden !important;
}


/* Seller Success Board - Corkboard Aesthetic */
.success-board {
    background: url('img/cork.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 4rem 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.success-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139,115,85,0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(139,115,85,0.3) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(139,115,85,0.2) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
}

.success-board h2 {
    text-align: center;
    color: #3A2A1A;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.polaroids-container {
    display: flex !important;
    justify-content: center !important;
    gap: 4rem !important;
    margin-bottom: 3rem !important;
    position: relative !important;
    z-index: 2 !important;
}

.polaroid {
    background: white !important;
    padding: 15px 15px 60px 15px !important;
    border-radius: 3px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
}

.polaroid:nth-child(1) {
    transform: rotate(-5deg) !important;
}

.polaroid:nth-child(2) {
    transform: rotate(3deg) !important;
}

.polaroid:hover {
    transform: rotate(0deg) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.polaroid img {
    width: 250px !important;
    height: 300px !important;
    object-fit: cover !important;
    display: block !important;
    max-width: 250px !important;
    max-height: 300px !important;
}

.polaroid-pin {
    position: absolute !important;
    top: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 1.5rem !important;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3)) !important;
    z-index: 3 !important;
}

.polaroid-caption {
    position: absolute !important;
    bottom: 10px !important;
    left: 15px !important;
    right: 15px !important;
    text-align: center !important;
    font-family: 'Comic Sans MS', cursive, sans-serif !important;
    color: #2C5F2D !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    z-index: 2 !important;
}

.seller-name {
    font-weight: bold !important;
    color: #1e3a5f !important;
}

.success-cta {
    text-align: center;
    position: relative;
    z-index: 2;
}

.success-cta .btn-primary {
    background: #ff6b35;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.success-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.6);
    background: #ff5722;
}

/* Mobile Menu Styling */
.mobile-menu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.mobile-menu-header {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.mobile-menu-header h3 {
    color: white !important;
}

.mobile-menu-close {
    color: white !important;
}

.mobile-menu-item {
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Desktop - hide mobile menu */
@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Mobile responsive - hide QR visual and show hamburger */
@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
    
    .auth-buttons {
        display: none !important;
    }
    
    .hamburger-menu {
        display: flex !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        z-index: 101 !important;
    }
    
    /* Header padding handled by main .header definition below */
    
    .header-content {
        justify-content: space-between !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 1rem !important;
        min-height: 50px !important;
    }
    
    .logo {
        flex: 1 !important;
        text-align: left !important;
    }
    
    .logo-img {
        height: 135px !important;
        width: auto !important;
    }

    .success-board h2 {
        font-size: 2rem;
    }

    .polaroids-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .polaroid img {
        width: 200px;
        height: 240px;
    }
    
    /* Disable floating animation on mobile for for sale sign */
    .forsale-img {
        animation: none !important;
    }
}

/* Search Container */
.search-container {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    max-width: 900px !important;
    margin: 2rem auto !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.search-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
}

.search-form {
    width: 100%;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 44px;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-search {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-search:hover {
    background: #5568d3;
}

.search-hint {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Path Cards */
.choose-path-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.path-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.path-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.path-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.path-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.path-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Featured Vehicles */
.featured-vehicles {
    padding: 4rem 0;
    background: white;
}

.featured-vehicles .listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-vehicles .listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.featured-vehicles .listing-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-vehicles .listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-vehicles .listing-content {
    padding: 1.5rem;
}

.featured-vehicles .listing-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.featured-vehicles .listing-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.featured-vehicles .listing-location {
    color: #666;
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .path-cards {
        grid-template-columns: 1fr;
    }

    .featured-vehicles .listings-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .search-container h3 {
        font-size: 1.5rem;
    }
}

/* ===== STYLES.CSS CONTENT ===== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #1e3a5f;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container - Consolidated */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dealer Dashboard Container Override */
.dealer-dashboard-body .container {
    max-width: 1400px;
    padding: 2rem;
}

/* Fix dealer dashboard header height */
.dealer-dashboard-body .header .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Header - Consolidated */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.15);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 40px;
}

/* Fix logo spacing on all pages */
.logo {
    margin-right: 45px !important;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 135px;
    width: auto;
    max-width: 200px;
    transition: transform 0.3s ease;
}

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

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-secondary {
    background: transparent;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background-color: #1e3a5f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

/* Grass separator removed for cleaner look */

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e3a5f;
    text-align: center;
    line-height: 1.2;
}

.text-line {
    display: block;
    position: relative;
    z-index: 2;
}

.text-line:first-child {
    margin-bottom: -37px;
}

.text-line:last-child {
    margin-top: -43px;
}

.image-line {
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
}

.forsale-img {
    height: 4.5em;
    width: auto;
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: #4a6b8a;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Word Animation Styles */
.word-animate {
    display: inline-block;
    margin-right: 0.3em;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.word-animate.slide-out {
    transform: translateX(100vw);
    opacity: 0;
}

.word-animate.animate-in {
    transform: translateX(0);
    opacity: 1;
}

/* Crash effect */
.word-animate.crash {
    animation: crash-bounce 0.4s ease-out;
}

@keyframes crash-bounce {
    0% { transform: translateX(0) scale(1); }
    50% { transform: translateX(-10px) scale(1.2); }
    100% { transform: translateX(0) scale(1); }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

/* Consolidated Button System */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-success:hover {
    background-color: #e55a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3a5f;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Consolidated listing card styles - using enhanced version below */

/* Consolidated listing image styles - using enhanced version below */

.listing-content {
    padding: 1.5rem;
}

.listing-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.listing-location {
    color: #4a6b8a;
    margin-bottom: 1rem;
}

.btn-outline {
    background: transparent;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background-color: #1e3a5f;
    color: white;
}

/* Search Bar */
.search-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid #e8eef5;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c5aa0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-input, .form-select {
    padding: 0.75rem;
    border: 2px solid #d1dde8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #ff6b35;
}

.radius-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.radius-slider {
    flex: 1;
}

/* Resource Cards */
.resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e8eef5;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35, #e55a2e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.resource-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.resource-description {
    color: #4a6b8a;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cta-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #162d47 100%);
    border-radius: 12px;
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #b8cce5;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (min-width: 320px) {
    .hero h1 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .header-content {
        justify-content: center;
        gap: 3rem;
    }
    
    .logo {
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: row;
        max-width: 600px;
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .search-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    position: relative;
    z-index: 101;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #2c5aa0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover .hamburger-line {
    background-color: #ff6b35;
}

/* Mobile-first header adjustments */
@media (max-width: 767px) {
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0 1rem;
        min-height: 50px;
    }

    .logo {
        flex: 1;
        text-align: left;
    }
    
    .logo-img {
        height: 94.5px;
        width: auto;
    }

    .auth-buttons {
        display: none;
    }
    
    .hamburger-menu {
        display: flex !important;
        order: 2;
        margin-left: 1rem;
    }
    
    /* Optimize hero section for smaller header */
    .hero {
        padding: 2rem 0 3rem 0;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

/* Consolidated Mobile Menu - Using main mobile menu styles */

.mobile-menu-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1) !important;
}

.mobile-menu-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-items {
    padding: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
    font-weight: 500;
}

.mobile-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    text-decoration: none;
}

.mobile-menu-item span:first-child {
    font-size: 1.2rem;
}

/* Desktop and Tablet adjustments */
@media (min-width: 768px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .auth-buttons {
        display: flex !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .auth-buttons {
        display: flex !important;
    }
}

/* ===== BROWSE.PHP SPECIFIC STYLES ===== */

/* Browse Page Specific Styles */
.browse-container {
    max-width: 1200px !important;
    margin: 2rem auto !important;
    padding: 0 2rem !important;
}

.page-title {
    text-align: center !important;
    color: white !important;
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Search Form Styles */
.search-form {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

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

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

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

.range-inputs input {
    flex: 1;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Consolidated Button Styles - Removed duplicates */

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: white;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Enhanced Listings Grid */
.listings-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
}

/* Loading skeleton styles */
.listings-loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-line {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: shimmer 2s infinite;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced listing cards */
.listing-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    color: inherit !important;
    position: relative !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.listing-card:nth-child(1) { animation-delay: 0.1s; }
.listing-card:nth-child(2) { animation-delay: 0.2s; }
.listing-card:nth-child(3) { animation-delay: 0.3s; }
.listing-card:nth-child(4) { animation-delay: 0.4s; }
.listing-card:nth-child(5) { animation-delay: 0.5s; }
.listing-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

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

.listing-card:hover .quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.listing-card a {
    text-decoration: none;
    color: inherit;
}

.listing-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.listing-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.listing-image.loading {
    opacity: 0;
}

.listing-image.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.listing-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
    position: relative;
}

.listing-image-placeholder::before {
    content: '🚗';
    font-size: 4rem;
    opacity: 0.5;
}

/* Status badges */
.status-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-badge.new {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    animation: pulse 2s infinite;
}

.status-badge.featured {
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
}

/* Quick actions overlay */
.quick-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.quick-action-btn {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-action-btn.primary {
    background: rgba(102, 126, 234, 0.9);
    color: white;
}

.quick-action-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.quick-action-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
    color: inherit;
}

.listing-info {
    padding: 1.5rem;
}

.listing-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
    color: #1e3a5f;
}

.listing-price {
    font-size: 1.8rem;
    color: #28a745;
    font-weight: bold;
    margin: 0.5rem 0;
}

.listing-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #000000;
    margin-top: 0.5rem;
}

.listing-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results h3 {
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Heart Button Styles */
.heart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    padding: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.heart-btn:hover {
    transform: scale(1.1);
    color: #ff4444;
}

.heart-btn.saved {
    color: #ff4444 !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .listing-card {
        transform: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    .quick-actions {
        opacity: 1;
        transform: none;
        position: static;
        justify-content: center;
        margin-top: 12px;
    }
    
    .status-badges {
        top: 8px;
        left: 8px;
    }
}

@media (max-width: 480px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
}

.pagination a {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #667eea;
    color: white;
}

.pagination .current {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .browse-container {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .range-inputs {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #1e3a5f;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 0;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1) !important;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-items {
    padding: 0;
}

.mobile-menu-item {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .auth-buttons {
        display: none;
    }
}

/* ===== CREATE_LISTING.PHP SPECIFIC STYLES ===== */

/* Create Listing Page Styles */
.create-listing-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.required {
    color: #ff4757;
}

.char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.photo-upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    background: #fafafa;
}

.photo-upload-area:hover {
    border-color: #2c5aa0;
    background: #f0f4f8;
}

.photo-upload-area.dragover {
    border-color: #2c5aa0;
    background: #e8f2ff;
    transform: scale(1.02);
}

.upload-prompt {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.photo-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-preview-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.photo-preview-info {
    padding: 8px;
    font-size: 12px;
}

.photo-preview-name {
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 4px;
    word-break: break-all;
}

.photo-preview-size {
    color: #666;
}

.photo-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-remove-btn:hover {
    background: #ff4757;
}

.main-photo-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: #2c5aa0;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
}

.submit-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d72 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.3);
}

.error-messages {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #c62828;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #2e7d32;
}

.links {
    text-align: center;
    margin-top: 2rem;
}

.links a {
    color: #2c5aa0;
    text-decoration: none;
    margin: 0 1rem;
}

.links a:hover {
    text-decoration: underline;
}

/* Professional Details Section */
.professional-details {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.professional-details.expanded {
    max-height: none;
    padding: 20px;
    overflow: visible;
}

.professional-toggle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
    transition: transform 0.2s;
}

.professional-toggle:hover {
    transform: translateY(-2px);
}

.upgrade-cta-card {
    text-align: center;
    padding: 30px;
    border: 2px dashed #667eea;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    margin-top: 20px;
}

.upgrade-cta-card .lock-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upgrade-cta-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.upgrade-cta-card p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.upgrade-cta-card .features-list {
    text-align: left;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

.upgrade-cta-card .upgrade-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s;
}

.upgrade-cta-card .upgrade-button:hover {
    transform: translateY(-2px);
}

.upgrade-cta-card .pricing-note {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

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

.field-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input {
    margin-right: 10px;
}

.conditional-field {
    margin-left: 25px;
    margin-top: 10px;
    display: none;
}

.helper-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Feature Selector Styles */
.features-selector {
    margin-top: 15px;
}

.feature-category {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.feature-category h5 {
    background: #f8f9fa;
    margin: 0;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.2s ease;
}

.feature-category h5:hover {
    background: #e9ecef;
}

.toggle-icon {
    float: right;
    transition: transform 0.2s ease;
}

.feature-category.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
    background: white;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.feature-checkbox:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.feature-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #007bff;
}

.feature-checkbox:has(input:checked) {
    background: #e3f2fd;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

/* Mobile responsive for create listing */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }
    
    .feature-category {
        margin-bottom: 15px;
    }
    
    .feature-category h5 {
        padding: 15px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    .feature-checkbox {
        padding: 12px 15px;
        min-height: 44px;
        font-size: 15px;
        touch-action: manipulation;
    }
    
    .feature-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    .professional-details.expanded {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ===== COMPARE.PHP SPECIFIC STYLES ===== */

/* Compare Page Styles */
.compare-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.compare-page h1 {
    color: #2563eb;
    text-align: center;
    margin-bottom: 2rem;
}

.coming-soon {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== COMPARE.PHP SPECIFIC STYLES ===== */

/* Compare Page Styles - using existing .container class */
.compare-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 2rem;
}

.compare-page h1 {
    color: #2563eb;
    text-align: center;
    margin-bottom: 2rem;
}

.coming-soon {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

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


/* ===== DASHBOARD.PHP SPECIFIC STYLES ===== */

/* Dashboard Page Styles - Only unique styles, duplicates removed */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 163, 102, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
}

.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
    border: 1px solid #e8eef5;
}

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

.stat-card {
    background: white;
    color: #1e3a5f;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eef5;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 1rem;
}

.welcome-message {
    font-size: 1.2rem;
    color: #4a6b8a;
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Inline Layout for Create Listing + Quick Actions */
.dashboard-main-actions {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

.create-listing-section {
    width: 100%;
}

.quick-actions-section {
    width: 100%;
}

@media (max-width: 768px) {
    .dashboard-main-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Create Listing Card */
.create-listing-card {
    background: url('img/check.png') center/cover no-repeat;
    border: 2px solid #FFA366;
    padding: 30px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    animation: gentlePulse 3s ease-in-out infinite;
}

.create-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(211, 84, 0, 0.33);
    border-radius: 12px;
    z-index: 1;
}

.create-listing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 12px;
    z-index: 3;
    pointer-events: none;
}

.create-listing-card > * {
    position: relative;
    z-index: 2;
}

.create-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.create-listing-card h3 {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-top: 20px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.create-listing-card p {
    font-size: 14px;
    font-weight: normal;
    color: white;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-dashboard {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

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

.btn-dashboard:hover::before {
    left: 100%;
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, #e55a2e 0%, #ff6b35 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.btn-dashboard:active {
    transform: translateY(-1px);
}

.btn-logout {
    background-color: #d1dde8;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
}

.btn-logout:hover {
    background-color: #1e3a5f;
    color: white;
}

@media (min-width: 768px) {
    .dashboard-actions {
        flex-direction: row;
        max-width: 600px;
    }
}

/* Listing Item Styles */
.listing-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.listing-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.listing-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

/* Removed conflicting listing-image definition - using main definition above */

.saved-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,0.95);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.listing-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listing-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.listing-header h4 {
    margin: 0;
    font-size: 18px;
    color: #1e3a5f;
    font-weight: 600;
}

.listing-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b35;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.status-sold {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.status-deleted {
    background: #ffebee;
    color: #c62828;
}

.listing-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.listing-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.date-created {
    color: #999;
    font-size: 13px;
}

.listing-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.listing-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

.action-label {
    font-weight: 600;
    color: #666;
    margin-right: 4px;
}

.action-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.action-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.action-link.danger {
    color: #dc3545;
}

.action-link.danger:hover {
    color: #c82333;
}

.action-link.pro {
    color: #ff6b35;
    font-weight: 600;
}

.action-link.warning {
    color: #ffc107;
    font-weight: 600;
}

.action-link.locked {
    color: #999;
}

.separator {
    color: #ddd;
    user-select: none;
}

.no-photo {
    font-size: 3rem;
    color: #d1dde8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .listing-content {
        grid-template-columns: 1fr;
    }
    
    .listing-image {
        width: 100%;
        height: 200px;
    }
    
    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .listing-actions-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
    
    .action-link {
        display: block;
        padding: 4px 0;
    }
}

/* Saved cars section styles */
.saved-cars-section {
    margin-top: 3rem;
}

.saved-cars-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.saved-cars-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    margin: 0;
    font-size: 1.25rem;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    font-size: 1.5rem;
    color: #ff4444;
}

.card-count {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-description {
    color: #6c757d;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.card-action {
    text-align: right;
}

.btn-link {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.saved-cars-card:hover .btn-link {
    color: #5a67d8;
}

/* Responsive design */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .card-action {
        text-align: center;
    }
}

/* Modal styles */
/* Removed duplicate modal styles - now consolidated above */

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn.confirm {
    background: #ff4757;
    color: white;
}

.modal-btn.confirm:hover {
    background: #ff3742;
}

.modal-btn.cancel {
    background: #d1dde8;
    color: #1e3a5f;
}

.modal-btn.cancel:hover {
    background: #1e3a5f;
    color: white;
}

.delete-form {
    display: inline;
}


/* ===== DEALER-PROFILE.PHP SPECIFIC STYLES ===== */

/* Color Theme Selection */
.color-theme-options {
    margin: 1rem 0;
}

.color-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.color-theme-option {
    position: relative;
}

.color-theme-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.theme-label:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.color-theme-option input[type="radio"]:checked + .theme-label {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-preview.theme-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-preview.theme-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.theme-preview.theme-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.theme-preview.theme-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.theme-preview.theme-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.theme-preview.theme-6 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.theme-preview.theme-7 {
    background: linear-gradient(135deg, #ff4757 0%, #2c2c54 100%);
}

.theme-preview.theme-8 {
    background: linear-gradient(135deg, #4facfe 0%, #ff6b35 100%);
}

.theme-preview.theme-9 {
    background: linear-gradient(135deg, #ff6b35 0%, #f5f5dc 100%);
}

.theme-preview.theme-10 {
    background: linear-gradient(135deg, #2c2c54 0%, #ffd700 100%);
}

.theme-preview.theme-11 {
    background: linear-gradient(135deg, #2c2c54 0%, #8e44ad 100%);
}

.theme-label span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* Form Card - Reusable for all forms */
.form_card {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group input[type="file"] {
    padding: 8px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #2c5aa0;
    background: #f0f4ff;
}

.dealer-badge {
    background: #2E7D32;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.help-text {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* ===== DEALER.PHP SPECIFIC STYLES ===== */

/* Fix listing card button text visibility on dealer page */
.dealer-theme-1 .listing-card .btn,
.dealer-theme-2 .listing-card .btn,
.dealer-theme-3 .listing-card .btn,
.dealer-theme-4 .listing-card .btn,
.dealer-theme-5 .listing-card .btn,
.dealer-theme-6 .listing-card .btn,
.dealer-theme-1 .listing-card button,
.dealer-theme-2 .listing-card button,
.dealer-theme-3 .listing-card button,
.dealer-theme-4 .listing-card button,
.dealer-theme-5 .listing-card button,
.dealer-theme-6 .listing-card button,
.dealer-theme-1 .listing-card a.btn,
.dealer-theme-2 .listing-card a.btn,
.dealer-theme-3 .listing-card a.btn,
.dealer-theme-4 .listing-card a.btn,
.dealer-theme-5 .listing-card a.btn,
.dealer-theme-6 .listing-card a.btn {
    color: black !important;
    font-weight: bold !important;
}

.dealer-theme-1 .listing-card .btn:hover,
.dealer-theme-2 .listing-card .btn:hover,
.dealer-theme-3 .listing-card .btn:hover,
.dealer-theme-4 .listing-card .btn:hover,
.dealer-theme-5 .listing-card .btn:hover,
.dealer-theme-6 .listing-card .btn:hover,
.dealer-theme-1 .listing-card button:hover,
.dealer-theme-2 .listing-card button:hover,
.dealer-theme-3 .listing-card button:hover,
.dealer-theme-4 .listing-card button:hover,
.dealer-theme-5 .listing-card button:hover,
.dealer-theme-6 .listing-card button:hover,
.dealer-theme-1 .listing-card a.btn:hover,
.dealer-theme-2 .listing-card a.btn:hover,
.dealer-theme-3 .listing-card a.btn:hover,
.dealer-theme-4 .listing-card a.btn:hover,
.dealer-theme-5 .listing-card a.btn:hover,
.dealer-theme-6 .listing-card a.btn:hover {
    color: black !important;
}


/* Dealer Color Schemes - Can be customized per dealer */
.dealer-theme-1 .dealer-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dealer-theme-2 .dealer-hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.dealer-theme-3 .dealer-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dealer-theme-4 .dealer-hero {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.dealer-theme-5 .dealer-hero {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.dealer-theme-6 .dealer-hero {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.dealer-theme-7 .dealer-hero {
    background: linear-gradient(135deg, #ff4757 0%, #2c2c54 100%);
}

.dealer-theme-8 .dealer-hero {
    background: linear-gradient(135deg, #4facfe 0%, #ff6b35 100%);
}

.dealer-theme-9 .dealer-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f5f5dc 100%);
}

.dealer-theme-10 .dealer-hero {
    background: linear-gradient(135deg, #2c2c54 0%, #ffd700 100%);
}

.dealer-theme-11 .dealer-hero {
    background: linear-gradient(135deg, #2c2c54 0%, #8e44ad 100%);
}

/* Dealer Hero Section */
.dealer-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.dealer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.dealer-logo-container {
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dealer-logo-large {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.dealer-logo-large:hover {
    transform: scale(1.05);
}

.dealer-hero-content {
    position: relative;
    z-index: 1;
}

.dealer-business-name-large {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* Business Logo as Name */
.dealer-business-logo-large {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dealer-business-logo-image {
    max-width: 400px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.dealer-business-logo-image:hover {
    transform: scale(1.02);
}

.dealer-tagline-large {
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Dealer Profile */
.dealer-welcome-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dealer Welcome Section - Theme Colors */
.dealer-theme-1 .dealer-welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 4px solid #5a6fd8;
}

.dealer-theme-2 .dealer-welcome-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-left: 4px solid #e882f0;
}

.dealer-theme-3 .dealer-welcome-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-left: 4px solid #3d8bfe;
}

.dealer-theme-4 .dealer-welcome-section {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    border-left: 4px solid #2dd573;
}

.dealer-theme-5 .dealer-welcome-section {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border-left: 4px solid #f85a8a;
}

.dealer-theme-6 .dealer-welcome-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
    border-left: 4px solid #7de5d8;
}

.dealer-theme-7 .dealer-welcome-section {
    background: linear-gradient(135deg, #ff4757 0%, #2c2c54 100%);
    color: white;
    border-left: 4px solid #ff3742;
}

.dealer-theme-8 .dealer-welcome-section {
    background: linear-gradient(135deg, #4facfe 0%, #ff6b35 100%);
    color: white;
    border-left: 4px solid #3d8bfe;
}

.dealer-theme-9 .dealer-welcome-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f5f5dc 100%);
    color: #333;
    border-left: 4px solid #ff5a1f;
}

.dealer-theme-10 .dealer-welcome-section {
    background: linear-gradient(135deg, #2c2c54 0%, #ffd700 100%);
    color: white;
    border-left: 4px solid #1a1a3a;
}

.dealer-theme-11 .dealer-welcome-section {
    background: linear-gradient(135deg, #2c2c54 0%, #8e44ad 100%);
    color: white;
    border-left: 4px solid #1a1a3a;
}

.dealer-welcome-section h2 {
    color: #1e3a5f;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-align: center;
}

.dealer-welcome-section p {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* Theme-specific text colors for welcome section */
.dealer-theme-1 .dealer-welcome-section h2,
.dealer-theme-2 .dealer-welcome-section h2,
.dealer-theme-3 .dealer-welcome-section h2,
.dealer-theme-4 .dealer-welcome-section h2,
.dealer-theme-5 .dealer-welcome-section h2,
.dealer-theme-7 .dealer-welcome-section h2,
.dealer-theme-8 .dealer-welcome-section h2,
.dealer-theme-10 .dealer-welcome-section h2,
.dealer-theme-11 .dealer-welcome-section h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dealer-theme-1 .dealer-welcome-section p,
.dealer-theme-2 .dealer-welcome-section p,
.dealer-theme-3 .dealer-welcome-section p,
.dealer-theme-4 .dealer-welcome-section p,
.dealer-theme-5 .dealer-welcome-section p,
.dealer-theme-7 .dealer-welcome-section p,
.dealer-theme-8 .dealer-welcome-section p,
.dealer-theme-10 .dealer-welcome-section p,
.dealer-theme-11 .dealer-welcome-section p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Dealer Public Page Styles */
.dealer-profile {
    background: white;
    padding: 40px;
    margin: 10px auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.dealer-info-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dealer-logo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.dealer-business-name {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
}

.dealer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dealer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
}

.dealer-contact-item a {
    color: #667eea;
    text-decoration: none;
}

.dealer-contact-item a:hover {
    text-decoration: underline;
}

.dealer-info-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dealer-tagline {
    font-size: 18px;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    padding: 20px;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    border-radius: 8px;
}

.inventory-filters {
    background: white;
    padding: 25px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.inventory-filters h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1e3a5f;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
}

.filter-form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.filter-form a {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #555;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
}

.filter-form a:hover {
    background: #e0e0e0;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px auto;
}

.listing-details {
    padding: 20px;
}

.listing-specs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.listing-spec {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.view-details-btn:hover {
    background: #5568d3;
}

.contact-dealer {
    background: white;
    padding: 40px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-dealer h2 {
    font-size: 24px;
    color: #1e3a5f;
    margin: 0 0 20px 0;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.contact-note {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.user-notes {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    padding: 30px;
    margin: 30px auto;
    border-radius: 12px;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    position: relative;
}

.user-notes::before {
    content: "📝";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #ffd700;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-notes h3 {
    font-size: 22px;
    color: #1e3a5f;
    margin: 0 0 15px 0;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notes-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.notes-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    min-height: 100px;
    resize: vertical;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease;
}

.notes-form textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.char-count {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.notes-form button {
    margin-top: 15px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notes-form button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 215, 0, 0.4);
}

.error-container {
    text-align: center;
    padding: 80px 20px;
}

.error-container h1 {
    font-size: 48px;
    color: #1e3a5f;
    margin: 0 0 20px 0;
}

.error-container p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.error-container a {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

/* Responsive Design for Dealer Page */
@media (max-width: 1024px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dealer-profile {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .dealer-logo {
        max-width: 150px;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .contact-dealer,
    .user-notes {
        padding: 25px;
    }
}

@media print {
    .inventory-filters,
    .contact-dealer,
    .user-notes,
    .view-details-btn {
        display: none;
    }
}

/* ===== LOGIN.PHP SPECIFIC STYLES ===== */

/* Login/Signup Page Styles */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
    border: 1px solid #e8eef5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 1rem;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #1e3a5f;
    background: #f0f4f8;
}

.password-toggle:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* ===== DEALER-DASHBOARD.PHP SPECIFIC STYLES ===== */

/* Dealer Dashboard Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dealer-dashboard-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.6;
}

/* Removed special dealer dashboard header styling - use standard header */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.welcome-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dealer-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #ff6b35;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.welcome-text {
    flex: 1;
}

.welcome-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.quick-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.quick-stats span {
    font-weight: 600;
    color: #1e3a8a;
    background: rgba(255, 107, 53, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* Removed duplicate - now handled in main container section */

.tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0;
    border-bottom: 2px solid #e2e8f0;
}

.tab {
    flex: 1;
    padding: 1rem 2rem;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 8px 8px 0 0;
    margin-right: 2px;
}

.tab:hover {
    background: #f1f5f9;
    color: #1e3a8a;
    transform: translateY(-1px);
}

.tab.active {
    background: white;
    color: #1e3a8a;
    border-bottom: 2px solid white;
    z-index: 10;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff6b35;
}

.tab-content {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 600px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Inventory Table Styles */
.table-container {
    overflow-x: auto;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
}

.inventory-table th {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid #1e3a8a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.inventory-table th:last-child {
    border-right: none;
}

.inventory-table td {
    padding: 0.75rem;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    background: white;
}

.inventory-table td:last-child {
    border-right: none;
}

.inventory-table tbody tr:hover {
    background-color: #fef3c7;
}

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

.inventory-table tbody tr:nth-child(even):hover {
    background-color: #fef3c7;
}

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

.vehicle-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.vehicle-info {
    font-weight: 500;
    color: #2c3e50;
}

.inventory-number {
    font-family: monospace;
    font-size: 0.85rem;
    color: #6c757d;
}

.price {
    font-weight: 600;
    color: #28a745;
}

.cost {
    font-weight: 500;
    color: #6c757d;
}

/* ===== DEALER-DASHBOARD.PHP SPECIFIC STYLES ===== */

/* Override print styles for dealer dashboard table */
.dealer-dashboard .vehicle-info {
    font-size: 1rem !important;
    font-weight: 500;
    color: #2c3e50;
}

.dealer-dashboard .price {
    font-size: 1rem !important;
    font-weight: 600;
    color: #28a745;
}

/* Sticky images on mobile for dealer dashboard */
@media (max-width: 768px) {
    /* Make the first column (image column) sticky */
    .dealer-dashboard table td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 100;
        min-width: 100px;
    }
    
    .dealer-dashboard .vehicle-thumbnail {
        max-width: 80px;
        max-height: 60px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }
    
    .dealer-dashboard .listing-card:hover .vehicle-thumbnail {
        transform: scale(1.05);
    }
    
    /* Ensure table has proper overflow handling */
    .dealer-dashboard .inventory-table {
        overflow-x: auto;
    }
}

/* ===== BUYER TOOLS SECTION ===== */

.buyer-tools-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.buyer-tools-section h2 {
    text-align: center;
    color: #1e3a5f;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.buyer-tools-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.buyer-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.buyer-tool-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tool-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.buyer-tool-card h3 {
    color: #1e3a5f;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.buyer-tool-card > p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.tool-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tool-benefits li {
    padding: 0.5rem 0;
    color: #333;
    font-size: 0.95rem;
}

.tool-partners {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-partner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-financing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-financing:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-insurance {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-insurance:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.partner-name {
    font-size: 1rem;
}

.partner-cta {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Payment Calculator */
.payment-calculator {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.payment-calculator h3 {
    color: #1e3a5f;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
}

.calc-input-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calc-input-group input,
.calc-input-group select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.calc-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.calc-result-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.calc-result-amount {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.calc-result-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-style: italic;
}

/* Mobile Responsive for Buyer Tools */
@media (max-width: 768px) {
    .buyer-tools-section {
        padding: 2rem 1rem;
    }
    
    .buyer-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
    
    .calc-result-amount {
        font-size: 2.5rem;
    }
}

/* ===== FINANCING QUICK ACCESS ===== */

.financing-quick-access {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.financing-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.financing-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.financing-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-financing-quick {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.btn-financing-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #333;
}

.financing-icon {
    font-size: 1.5rem;
}

.financing-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.financing-text strong {
    font-size: 1rem;
    color: #333;
}

.financing-text small {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Mobile Responsive for Financing Quick Access */
@media (max-width: 768px) {
    .financing-quick-access {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .financing-header h2 {
        font-size: 1.5rem;
    }
    
    .financing-header p {
        font-size: 1rem;
    }
    
    .financing-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-financing-quick {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ===== ENHANCED DEALER DASHBOARD TABS ===== */

/* Tab Instructions */
.tab-instructions {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.instruction-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.instruction-text .arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    color: #ffd700;
}

.instruction-text .instruction {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Enhanced Tab Design */
.dealer-dashboard .tabs {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e6ed;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dealer-dashboard .tab {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
}

.dealer-dashboard .tab:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.dealer-dashboard .tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.dealer-dashboard .tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #667eea;
}

/* Mobile Responsive Tabs */
@media (max-width: 768px) {
    .dealer-dashboard .tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .dealer-dashboard .tab {
        min-width: auto;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .tab-instructions {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }
    
    .instruction-text {
        font-size: 1rem;
        gap: 0.5rem;
    }
}

/* ===== DASHBOARD.PHP SPECIFIC STYLES ===== */

/* Dealer Notes Section */
.dealer-notes-section {
    margin-bottom: 2rem;
}

.dealer-notes-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.note-header strong {
    color: #2c3e50;
    font-size: 1rem;
}

.note-date {
    color: #666;
    font-size: 0.85rem;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.note-content {
    color: #333;
    margin-bottom: 0.75rem;
    font-style: italic;
    line-height: 1.5;
}

.note-card .btn-secondary {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-block;
}

.featured-badge {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #212529;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    border: 1px solid #ffb300;
    display: inline-block;
}

.actions {
    white-space: nowrap;
}

.actions a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.actions a:hover {
    text-decoration: underline;
}

.actions a:last-child {
    margin-right: 0;
}

.actions .separator {
    color: #dee2e6;
    margin: 0 0.25rem;
}

/* Analytics Tab Styles */
.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.analytics-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.analytics-card h3 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.analytics-card p {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.analytics-table th,
.analytics-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.analytics-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dealer-container {
        padding: 1rem;
    }

    .dealer-header {
        padding: 1rem;
    }

    .header-top {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .nav-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }

    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .welcome-text h1 {
        font-size: 1.5rem;
    }

    .quick-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        border-radius: 0;
        border-bottom: 1px solid #cbd5e1;
        margin-right: 0;
    }

    .tab.active {
        border-bottom-color: #ff6b35;
    }

    .table-container {
        overflow-x: scroll;
    }

    .inventory-table {
        min-width: 800px;
    }

    .analytics-summary {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .analytics-card {
        padding: 1.5rem;
    }

    /* Profile tab mobile styles */
    #profile {
        padding: 1rem !important;
    }
    
    #profile .profile-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    #profile .profile-header h3 {
        font-size: 1.25rem !important;
        text-align: center !important;
        margin-bottom: 0 !important;
    }
    
    #profile .nav-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    #profile .profile-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    #profile .profile-card {
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
    }
    
    #profile .profile-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    #profile .field-group {
        margin-bottom: 1rem !important;
    }
    
    #profile .field-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    #profile .field-value {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    #profile .logo-section {
        padding: 1.5rem !important;
    }
    
    #profile .logo-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    #profile .logo-image {
        width: 100px !important;
        height: 100px !important;
        font-size: 1.5rem !important;
    }
    
    #profile .logo-info {
        width: 100% !important;
    }
    
    #profile .logo-info p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    /* Mobile Messages Display */
    .desktop-messages {
        display: none !important;
    }
    
    .mobile-messages {
        display: block !important;
    }

    /* Mobile Bulk Actions */
    .bulk-actions {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .bulk-actions button {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
    }
}

/* Desktop Messages Display */
@media (min-width: 769px) {
    .desktop-messages {
        display: block !important;
    }
    
    .mobile-messages {
        display: none !important;
    }
}

/* Placeholder Tab */
.placeholder-content {
    padding: 4rem 2rem;
    text-align: center;
    color: #6c757d;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

/* Loading and Empty States */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* ===== EDIT_LISTING.PHP SPECIFIC STYLES ===== */

/* Photo management styles */
.existing-photos {
    margin-bottom: 2rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-4px);
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.delete-photo-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.delete-photo-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.main-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.new-photos-section {
    margin-top: 2rem;
}

.photo-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.photo-upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Professional Details Section */
.professional-details {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.professional-details.expanded {
    max-height: none;
    padding: 20px;
    overflow: visible;
}

.professional-toggle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    text-align: left;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

.professional-toggle:hover {
    transform: translateY(-2px);
}

.professional-toggle:active {
    transform: translateY(0);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.helper-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.professional-details.expanded {
    max-height: none !important;
    overflow: visible !important;
}

/* ===== FORGOT_PASSWORD.PHP SPECIFIC STYLES ===== */

/* Reset header styles */
.reset-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reset-header h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.reset-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Submit button styles */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

/* Login button styling to match navigation buttons */
.btn-auth {
    background: #2c5aa0;
    color: white;
    border: 2px solid #2c5aa0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn-auth:hover {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.btn-submit:hover {
    background: #5568d3;
}

/* Error and success message styles */
.error {
    background: #fee;
    border-left: 4px solid #e74c3c;
    padding: 12px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: #c0392b;
}

.success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 12px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: #2e7d32;
}

/* Back link styles */
.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Password requirements styles */
.password-requirements {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ===== INSIGHTS.PHP SPECIFIC STYLES ===== */

/* Analytics Dashboard Container */
.insights-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Time Filter */
.time-filter {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.time-filter a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.time-filter a.active,
.time-filter a:hover {
    background: white;
    color: #333;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.overview-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.overview-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.overview-card .label {
    color: #666;
    font-weight: 600;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Insights Section */
.insights-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.insight-icon {
    font-size: 1.5rem;
}

/* Heatmap */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-top: 1rem;
}

.heatmap-cell {
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.heatmap-cell.active {
    background: #667eea;
    color: white;
}

/* Location List */
.location-list {
    max-height: 300px;
    overflow-y: auto;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

/* Map Container */
.map-container {
    margin-bottom: 2rem;
}

.map-container #scanMap {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.map-legend {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Back Button */
.btn-back {
    background: white;
    color: #333;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .insights-container {
        padding: 0 1rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PRINT_QR.PHP SPECIFIC STYLES ===== */

/* Print-specific styles */
@media print {
    @page {
        size: letter landscape;
        margin: 0;
    }
    * {
        page-break-after: avoid !important;
        page-break-before: avoid !important;
    }
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }
    /* Hide everything except print-container and its children */
    body > *:not(.print-container):not(script):not(style) {
        display: none !important;
        visibility: hidden !important;
    }
    /* Ensure print-container is properly positioned */
    .print-container {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }
    /* Hide all non-print elements including headers and navigation */
    .no-print,
    .buttons,
    .stats,
    footer,
    .btn,
    button,
    a[href*="dashboard"],
    a[download],
    header,
    .header,
    nav,
    .nav,
    .navigation,
    .auth-buttons,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
    .print-container {
        border: 2px solid #000;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 10.5in !important;
        max-height: 10.5in !important;
        box-shadow: none !important;
        position: relative;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .for-sale-header {
        padding: 15px 20px !important;
        min-height: 2in !important;
        max-height: 2.2in !important;
        height: 2.2in !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .for-text {
        font-size: 200px !important;
        letter-spacing: 30px !important;
        margin-right: 20px !important;
        line-height: 1 !important;
    }
    .sale-text {
        font-size: 200px !important;
        letter-spacing: 30px !important;
        line-height: 1 !important;
    }
    .main-content {
        padding: 15px 30px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        min-height: auto !important;
        max-height: calc(10.5in - 2.2in - 0.2in) !important;
        height: calc(10.5in - 2.2in - 0.2in) !important;
        gap: 25px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .info-section {
        flex: 1;
        text-align: left;
        overflow: hidden !important;
        max-width: 50% !important;
    }
    .qr-section {
        flex: 1;
        text-align: center;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
        max-width: 50% !important;
    }
    .print-container .main-content .qr-section .qr-code {
        max-width: 350px !important;
        width: 350px !important;
        height: auto !important;
        min-width: auto !important;
        padding: 8px !important;
    }
    .vehicle-info {
        font-size: 32px !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }
    .price {
        font-size: 42px !important;
        margin: 10px 0 !important;
    }
    .mileage {
        font-size: 22px !important;
        margin: 6px 0 !important;
    }
    .qr-branding {
        display: block;
        margin-top: 12px !important;
        padding-top: 12px !important;
    }
    .logo {
        font-size: 24px !important;
        margin-bottom: 6px !important;
    }
    .tagline {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }
    .scan-instructions {
        display: block;
        font-size: 14px !important;
        margin-top: 6px !important;
    }
    .scallop-bottom {
        height: 0.2in !important;
        background-size: 60px 0.2in !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Print QR Page Styles */
/* Print-specific body styles - only apply to print pages */
.print-page body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

/* Button styles for print_qr.php */
.buttons {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
}

.buttons .btn,
.buttons button {
    padding: 15px 30px;
    font-size: 18px;
    margin: 0 10px 10px 10px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-print {
    background: #2c5aa0;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-print:hover {
    background: #1e3d72;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.btn-download {
    background: #ff6b35;
    color: white;
}

.btn-download:hover {
    background: #e55a2e;
    transform: translateY(-2px);
}

.print-container {
    max-width: 11in;
    margin: 20px auto;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.for-sale-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    min-height: 1.75in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.for-text {
    font-size: 120px;
    font-weight: bold;
    letter-spacing: 18px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-right: 20px;
}

.sale-text {
    font-size: 120px;
    font-weight: bold;
    letter-spacing: 18px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-content {
    padding: 30px 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 3.75in;
    gap: 40px;
}

.info-section {
    flex: 1;
    text-align: left;
}

.qr-section {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    min-width: 0; /* Allow flex item to shrink if needed */
}

/* Specific to print_qr.php - has .main-content and .qr-section structure */
.print-container .main-content .qr-section .qr-code {
    max-width: 100%;
    width: min(800px, 60vw) !important;
    height: auto;
    min-width: 600px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
    object-fit: contain;
}

.vehicle-info {
    font-size: 44px;
    font-weight: bold;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.2;
}

.price {
    font-size: 54px;
    font-weight: bold;
    color: #ff6b35;
    margin: 18px 0;
}

.mileage {
    font-size: 28px;
    color: #666;
    margin: 12px 0;
}

.qr-branding {
    display: block;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.tagline {
    font-size: 20px;
    color: #666;
    margin-bottom: 12px;
}

.scan-instructions {
    display: block;
    font-size: 18px;
    color: #888;
    margin-top: 10px;
}

.scallop-bottom {
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    background-size: 60px 40px;
    background-image: 
        radial-gradient(circle at 30px 20px, transparent 20px, #ff6b35 20px),
        radial-gradient(circle at 90px 20px, transparent 20px, #ff6b35 20px);
    position: absolute;
    bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .for-text, .sale-text {
        font-size: 80px;
        letter-spacing: 12px;
    }
    
    .vehicle-info {
        font-size: 32px;
    }
    
    .price {
        font-size: 40px;
    }
    
    .print-container .main-content .qr-section .qr-code {
        max-width: 95vw !important;
        width: min(600px, 90vw) !important;
        min-width: 400px;
    }
}

/* ===== PRINT_QR_ONLY.PHP SPECIFIC STYLES ===== */

/* Print QR Only Page Styles */
/* Print QR Only Page Styles */
.print-qr-only-page body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.print-container {
    background: white;
    width: 5.5in;
    height: 4.25in;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Half-sheet size (5.5" x 4.25") - Default */
.print-container.half-sheet {
    width: 5.5in;
    height: 4.25in;
    padding: 30px;
}

.print-container.half-sheet .logo {
    width: 100px;
}

.print-container.half-sheet .qr-code {
    width: 220px;
    height: 220px;
}

.print-container.half-sheet .scan-text {
    font-size: 16px;
}

.print-container.half-sheet .website-text {
    font-size: 14px;
}

/* Quarter-sheet size (4.25" x 2.75") */
.print-container.quarter-sheet {
    width: 4.25in;
    height: 2.75in;
    padding: 15px;
}

.print-container.quarter-sheet .logo {
    width: 60px;
}

.print-container.quarter-sheet .qr-code {
    width: 140px;
    height: 140px;
}

.print-container.quarter-sheet .scan-text {
    font-size: 12px;
}

.print-container.quarter-sheet .website-text {
    font-size: 11px;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
}

.qr-code {
    width: 280px;
    height: 280px;
    border: 3px solid #667eea;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: contain;
}

.scan-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.website-text {
    font-size: 16px;
    color: #667eea;
    font-weight: bold;
}

/* Print-specific styles */
@media print {
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .print-container {
        box-shadow: none;
        border: 1px solid #000;
        margin: 0;
        page-break-inside: avoid;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .print-container {
        width: 100%;
        max-width: 5.5in;
        height: auto;
        min-height: 4.25in;
    }
    
    .print-container.quarter-sheet {
        max-width: 4.25in;
        min-height: 2.75in;
    }
}

/* ===== PRINT_WINDOW_STICKER.PHP SPECIFIC STYLES ===== */

/* Print Window Sticker Page Styles */
/* Print Window Sticker Page Styles */
.print-window-sticker-page body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.5;
}

.sticker-container {
    background: white;
    width: 8.5in;
    margin: 0 auto;
    border: 3px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5in;
    position: relative;
}

/* Print Button */
.print-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.print-button:hover {
    background: #5568d3;
}

/* Dealer Information Header */
.dealer-header {
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.dealer-info {
    text-align: center;
}

.dealer-badge {
    background: #ff6b35;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.dealer-info h1 {
    font-size: 24px;
    color: #1e3a5f;
    margin: 0;
    font-weight: bold;
}

/* Vehicle Information */
.vehicle-section {
    margin-bottom: 20px;
}

.vehicle-title {
    font-size: 28px;
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 10px;
    text-align: center;
}

.vehicle-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Price Section */
.price-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.price-value {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
}

/* Features Section */
.features-section {
    margin-bottom: 20px;
}

.features-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 10px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.feature-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ddd;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    margin-bottom: 20px;
}

.qr-section img {
    width: 2in;
    height: 2in;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.qr-text {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Footer */
.sticker-footer {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* Print-specific styles */
@media print {
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .sticker-container {
        box-shadow: none;
        border: 3px solid #000;
        margin: 0;
        page-break-inside: avoid;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-button {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .sticker-container {
        width: 100%;
        max-width: 8.5in;
        padding: 0.25in;
    }
    
    .vehicle-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-section img {
        width: 1.5in;
        height: 1.5in;
    }
}

/* ===== PUBLIC_LISTING.PHP SPECIFIC STYLES ===== */

/* Listing Container */
.listing-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Listing Header - Public Listing Page Specific */
.public-listing .listing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.public-listing .listing-title {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.public-listing .listing-price {
    font-size: 2.5rem;
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Photo Gallery */
.public-listing .photo-gallery {
    margin-bottom: 2rem;
}

.public-listing .main-photo-container {
    position: relative;
    margin-bottom: 1rem;
}

.public-listing .main-photo {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.public-listing .photo-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.public-listing .thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.public-listing .thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    overflow: hidden;
}

.public-listing .thumbnail-item:hover,
.public-listing .thumbnail-item.active {
    border-color: #2c5aa0;
}

.public-listing .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Photo Navigation Arrows */
.public-listing .photo-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.public-listing .photo-navigation:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.public-listing .photo-nav-prev {
    left: 15px;
}

.public-listing .photo-nav-next {
    right: 15px;
}

/* Vehicle Details */
.public-listing .vehicle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.public-listing .detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2c5aa0;
}

.public-listing .detail-section h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.public-listing .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.public-listing .detail-item:last-child {
    border-bottom: none;
}

.public-listing .detail-label {
    font-weight: 600;
    color: #495057;
}

.public-listing .detail-value {
    color: #212529;
}

/* Description */
.public-listing .description-section {
    margin-bottom: 2rem;
}

.public-listing .description-section h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.public-listing .description-text {
    line-height: 1.6;
    color: #495057;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2c5aa0;
}

/* Contact Section */
.public-listing .contact-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.public-listing .contact-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.public-listing .contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.public-listing .contact-btn {
    background: white;
    color: #2c5aa0;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.public-listing .contact-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Contact Phone Link Styling */
.public-listing .phone-link {
    color: #2c5aa0 !important;
    text-decoration: none !important;
    background: rgba(44, 90, 160, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 5px;
}

.public-listing .phone-link:hover {
    background: rgba(44, 90, 160, 0.2);
    color: #1e3a5f !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
}

/* Heart Button */
.public-listing .heart-button {
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dealer Inventory Button */
.dealer-actions {
    margin-top: 0.75rem;
    text-align: center;
}

.dealer-inventory-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.dealer-inventory-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Large Dealer Inventory Button (for listing pages) */
.dealer-inventory-section {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.dealer-inventory-btn-large {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dealer-inventory-btn-large:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.public-listing .heart-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-color: #ff6b6b;
}

.public-listing .heart-button.saved {
    color: #e74c3c;
    background: #ffe6e6;
    border-color: #e74c3c;
    animation: heartbeat 0.6s ease-in-out;
}

.public-listing .heart-button:not(.saved) {
    color: #999;
    background: white;
}

.public-listing .heart-button:not(.saved):hover {
    color: #ff6b6b;
    background: #fff5f5;
}

.public-listing .heart-large {
    font-size: 1.8rem;
    margin-left: 1rem;
    width: 60px;
    height: 60px;
}

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

/* Back Button */
.public-listing .btn-back {
    display: inline-flex;
    align-items: center;
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin-bottom: 1rem;
}

.public-listing .btn-back:hover {
    background: #5a6268;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .public-listing .listing-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .public-listing .listing-title {
        font-size: 2rem;
    }
    
    .public-listing .listing-price {
        font-size: 2rem;
    }
    
    .public-listing .vehicle-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .public-listing .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .public-listing .contact-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact Modal Specific Styles */
/* Enhanced Modal with backdrop blur */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

/* Enhanced Modal Content */
.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.public-listing .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.public-listing .modal-close:hover {
    color: #333;
}

.public-listing .modal-content h2 {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
    margin: 0;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    font-size: 1.5rem;
    text-align: center;
}

.public-listing .modal-content .form-container {
    padding: 30px;
}

.public-listing .modal-content .info-box {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.public-listing .modal-content .info-box p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Consolidated Form Styles - Using main form styles */

.public-listing .modal-content .form-note {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    font-style: italic;
}

.public-listing .modal-content .form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.public-listing .modal-content .btn-submit {
    background: #2c5aa0;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    flex: 1;
    max-width: 200px;
}

.public-listing .modal-content .btn-submit:hover {
    background: #1e3a5f;
}

.public-listing .modal-content .btn-cancel {
    background: #6c757d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    flex: 1;
    max-width: 200px;
}

.public-listing .modal-content .btn-cancel:hover {
    background: #5a6268;
}

/* Mobile responsive for contact modal */
@media (max-width: 768px) {
    .public-listing .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .public-listing .modal-content .form-container {
        padding: 20px;
    }
    
    .public-listing .modal-content .form-buttons {
        flex-direction: column;
    }
    
    .public-listing .modal-content .btn-submit,
    .public-listing .modal-content .btn-cancel {
        max-width: none;
    }
    
    /* Mobile photo gallery fixes */
    .public-listing .thumbnail-strip {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .public-listing .thumbnail-strip::-webkit-scrollbar {
        height: 6px;
    }
    
    .public-listing .thumbnail-strip::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .public-listing .thumbnail-strip::-webkit-scrollbar-thumb {
        background: #2c5aa0;
        border-radius: 3px;
    }
    
    .public-listing .thumbnail-item {
        flex-shrink: 0;
        width: 80px;
        height: 60px;
        border-radius: 8px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.3s;
        overflow: hidden;
    }
}

/* ===== INBOX.PHP SPECIFIC STYLES ===== */
.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.inbox-header h1 {
    color: #1e3a5f;
    margin: 0;
}

.inbox-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.inbox-filters select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.inbox-filters select:focus {
    outline: none;
    border-color: #2c5aa0;
}

.no-inquiries {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
}

.no-inquiries h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.no-inquiries p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inquiry-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.inquiry-card:hover {
    transform: translateY(-2px);
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid #e8eef5;
    background: #f8f9fa;
}

.inquiry-info h3 {
    color: #1e3a5f;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.inquiry-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.inquiry-date {
    color: #666;
    font-size: 0.9rem;
}

.inquiry-vehicle {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 0.9rem;
}

.inquiry-actions {
    display: flex;
    gap: 0.5rem;
}

.inquiry-content {
    padding: 1.5rem;
}

.inquiry-message {
    margin-bottom: 1.5rem;
}

.inquiry-message p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.inquiry-contact {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.inquiry-contact h4 {
    color: #1e3a5f;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.contact-details {
    color: #333;
    line-height: 1.6;
}

.contact-details a {
    color: #2c5aa0;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .inbox-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .inbox-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .inquiry-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .inquiry-actions {
        align-self: stretch;
    }
    
    .inquiry-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ===== VIEW_LISTING.PHP SPECIFIC STYLES ===== */

/* View Listing Container */
.view-listing .listing-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* View Listing Header */
.view-listing .listing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.view-listing .listing-title {
    font-size: 2.5rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.view-listing .listing-price {
    font-size: 2rem;
    color: #ff6b35;
    font-weight: bold;
}

/* View Listing Photo Gallery */
.view-listing .photo-gallery {
    margin-bottom: 2rem;
    position: relative;
}

.view-listing .main-photo-container {
    position: relative;
    margin-bottom: 1rem;
    cursor: pointer;
}

.view-listing .main-photo {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.view-listing .photo-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.view-listing .thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.view-listing .thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    overflow: hidden;
}

.view-listing .thumbnail-item:hover,
.view-listing .thumbnail-item.active {
    border-color: #1e3a5f;
}

.view-listing .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* View Listing Vehicle Details */
.view-listing .vehicle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.view-listing .detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #1e3a5f;
}

.view-listing .detail-section h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.view-listing .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.view-listing .detail-item:last-child {
    border-bottom: none;
}

.view-listing .detail-label {
    font-weight: 600;
    color: #495057;
}

.view-listing .detail-value {
    color: #212529;
}

/* View Listing Description */
.view-listing .description-section {
    margin-bottom: 2rem;
}

.view-listing .description-section h3 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.view-listing .description-text {
    line-height: 1.6;
    color: #495057;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #1e3a5f;
}

/* View Listing Actions */
.view-listing .listing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.view-listing .action-btn {
    background: #1e3a5f;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-listing .action-btn:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.view-listing .action-btn.secondary {
    background: transparent;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
}

.view-listing .action-btn.secondary:hover {
    background: #1e3a5f;
    color: white;
}

/* View Listing Lightbox */
.view-listing .lightbox-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    cursor: pointer;
}

.view-listing .lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.view-listing .lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.view-listing .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.view-listing .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    color: #1e3a5f;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.view-listing .lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.view-listing .lightbox-prev {
    left: 20px;
}

.view-listing .lightbox-next {
    right: 20px;
}

/* Responsive Design for View Listing */
@media (max-width: 768px) {
    .view-listing .listing-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .view-listing .listing-title {
        font-size: 2rem;
    }
    
    .view-listing .listing-price {
        font-size: 1.5rem;
    }
    
    .view-listing .vehicle-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .view-listing .listing-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .view-listing .action-btn {
        width: 100%;
        max-width: 300px;
    }
}
