/* ============================================
   PATRIO MOTORHOMES & CARAVANS - MAIN STYLES
   Design inspired by Rusiv GmbH
   ============================================ */

/* === CSS Variables === */
:root {
    --primary-color: #1155cc;
    --primary-hover: #0d47a1;
    --secondary-color: #c7081b;
    --text-dark: #2D2D2D;
    --text-light: #ffffff;
    --text-muted: #929596;
    --bg-dark: rgba(0, 0, 0, 0.65);
    --bg-darker: #3d3d3d;
    --bg-darkest: #2f2f2f;
    --bg-light: #ffffff;
    --bg-gray: #f7f7f7;
    --border-color: #e0e0e0;
    --font-primary: 'Open Sans', sans-serif;
    --font-logo: 'Jockey One', sans-serif;
    --font-accent: 'Yellowtail', cursive;
    --transition: all 0.3s ease;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-dark);
    line-height: 24px;
    font-weight: 400;
    background-color: var(--bg-light);
}

/* === Typography === */
h1, .page-content h1 {
    font-family: var(--font-primary);
    font-size: 72px;
    color: var(--text-dark);
    line-height: 80px;
    font-weight: 400;
}

h2, .page-content h2 {
    font-family: var(--font-primary);
    font-size: 32px;
    color: var(--text-dark);
    line-height: 32px;
    font-weight: 600;
}

h3, .page-content h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    color: var(--secondary-color);
    line-height: 22px;
    font-weight: 800;
}

h4, .page-content h4 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--secondary-color);
    line-height: 26px;
    font-weight: 400;
}

h5, .page-content h5 {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--text-dark);
    line-height: 22px;
    font-weight: 400;
}

h6, .page-content h6 {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-dark);
    line-height: 17px;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.highlight {
    color: var(--primary-color);
}

/* === Header === */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.bottom-header {
    background-color: var(--bg-dark);
}

.main-header.scrolled .bottom-header {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    display: flex;
    flex-direction: column;
}

.navbar-brand .logo .primary_text {
    font-family: var(--font-logo);
    font-size: 50px;
    color: var(--primary-color);
    line-height: 1;
    font-weight: 400;
}

.navbar-brand .logo .secondary_text {
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--text-light);
    line-height: 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

.main-header.scrolled .navbar-brand .logo .primary_text {
    font-size: 40px;
}

.navbar-nav .nav-item .nav-link {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    padding: 10px 15px;
    transition: var(--transition);
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.navbar-toggler {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* === Hero Section === */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-primary-custom {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* === Search Filter Section === */
.search-filter-section {
    background-color: var(--bg-gray);
    padding: 40px 0;
    margin-top: -100px;
    position: relative;
    z-index: 100;
}

.search-filter-box {
    background-color: var(--bg-light);
    padding: 30px;
    box-shadow: var(--shadow);
    border-radius: 0;
}

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

.vehicle-search-form .form-control {
    height: 45px;
    border-radius: 0;
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.vehicle-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.vehicle-search-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232D2D2D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.search-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.btn-reset {
    background-color: #6c757d;
    color: var(--text-light);
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 0;
    border: none;
    transition: var(--transition);
}

.btn-reset:hover {
    background-color: #5a6268;
    color: var(--text-light);
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 0;
    border: none;
    transition: var(--transition);
}

.btn-search:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
}

/* === Recent Vehicles Section === */
.recent-vehicles-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-title-box {
    padding-right: 20px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title-box p {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    background-color: var(--bg-gray);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.vehicles-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}

/* === Vehicle Card === */
.vehicle-card {
    flex: 0 0 167px;
    max-width: 167px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.vehicle-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.vehicle-card:hover .vehicle-card-bottom {
    background-color: var(--primary-color);
}

.vehicle-card:hover .vehicle-card-bottom * {
    color: var(--text-light);
}

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

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-card-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-card-image .overlay {
    opacity: 1;
}

.overlay i {
    color: var(--text-light);
    font-size: 24px;
}

.vehicle-card-bottom {
    padding: 10px;
    background-color: var(--bg-gray);
    transition: var(--transition);
}

.vehicle-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

/* === Featured Categories === */
.featured-categories {
    padding: 60px 0;
    background-color: var(--bg-gray);
}

.category-card {
    display: block;
    margin-bottom: 30px;
    overflow: hidden;
    text-decoration: none;
}

.category-image {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: var(--text-light);
}

.category-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.category-count {
    font-size: 14px;
    opacity: 0.8;
}

/* === Why Choose Us === */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-heading {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: var(--text-light);
}

.feature-box h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-box p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Footer === */
.main-footer {
    background-color: var(--bg-darker);
    color: var(--text-light);
}

.footer-content {
    padding: 60px 0;
}

.footer-logo .logo .primary_text {
    font-family: var(--font-logo);
    font-size: 40px;
    color: var(--primary-color);
}

.footer-logo .logo .secondary_text {
    font-family: var(--font-primary);
    font-size: 11px;
    color: var(--text-light);
}

.footer-description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact li i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.footer-contact li a,
.footer-contact li span {
    color: rgba(255,255,255,0.7);
}

.footer-contact li a:hover {
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright-section {
    background-color: var(--bg-darkest);
    padding: 20px 0;
}

.copyright-section p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.copyright-section a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0 5px;
}

.copyright-section a:hover {
    color: var(--text-light);
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
}

/* === Inventory Page Styles === */
.inventory-section {
    padding: 40px 0;
    background-color: var(--bg-gray);
}

.inventory-header {
    background-color: var(--bg-light);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.inventory-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.inventory-count {
    color: var(--text-muted);
    font-size: 14px;
}

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

.sort-controls label {
    font-weight: 600;
    margin-bottom: 0;
}

.sort-controls select {
    width: auto;
    min-width: 150px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.vehicle-grid-card {
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.vehicle-grid-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.vehicle-grid-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vehicle-grid-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.vehicle-grid-card .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
}

.badge-sold {
    background-color: #dd3333;
    color: var(--text-light);
}

.badge-new {
    background-color: #81d742;
    color: var(--text-light);
}

.badge-reserved {
    background-color: #eeee22;
    color: var(--text-dark);
}

.vehicle-grid-card .card-body {
    padding: 20px;
}

.vehicle-grid-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.vehicle-grid-card .card-title a {
    color: inherit;
}

.vehicle-grid-card .card-title a:hover {
    color: var(--primary-color);
}

.vehicle-grid-card .card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.vehicle-grid-card .card-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehicle-grid-card .card-specs i {
    color: var(--primary-color);
}

.vehicle-grid-card .card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* === Vehicle Detail Page === */
.vehicle-detail-section {
    padding: 40px 0;
    background-color: var(--bg-gray);
}

.vehicle-gallery {
    background-color: var(--bg-light);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 15px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.vehicle-info {
    background-color: var(--bg-light);
    padding: 30px;
    box-shadow: var(--shadow);
}

.vehicle-info .vehicle-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

.vehicle-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.vehicle-specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.vehicle-specs-table td {
    padding: 12px 0;
}

.vehicle-specs-table td:first-child {
    font-weight: 600;
    width: 40%;
}

.contact-seller-form {
    background-color: var(--bg-gray);
    padding: 25px;
    margin-top: 30px;
}

.contact-seller-form h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* === Page Banner === */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('https://images.unsplash.com/photo-1523987355523-c7b5b0dd90a7?w=1920') center/cover no-repeat;
    padding: 140px 0 80px;
    margin-top: 70px;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.page-banner h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb li,
.breadcrumb li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.breadcrumb li a:hover {
    color: var(--text-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* === Contact Page === */
.contact-section {
    padding: 60px 0;
}

.contact-info-box {
    background-color: var(--bg-light);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-info-box h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-info-item p {
    margin: 0;
    color: var(--text-muted);
}

.contact-form-box {
    background-color: var(--bg-light);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-form-box h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

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

.contact-form .form-control {
    height: 50px;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.contact-form textarea.form-control {
    height: 150px;
    resize: none;
}

.contact-form .btn-submit {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 40px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.contact-form .btn-submit:hover {
    background-color: var(--primary-hover);
}

/* === Testimonials Page === */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--bg-gray);
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.testimonial-content {
    font-size: 16px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    color: var(--primary-color);
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-muted);
}

.testimonial-rating {
    color: #ffc107;
    margin-top: 5px;
}

/* === Pagination === */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination .page-item .page-link {
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    margin: 0 3px;
    border-radius: 0;
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* === Loading Spinner === */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Responsive Design === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .search-filter-section {
        margin-top: 0;
    }

    .section-title-box {
        margin-bottom: 30px;
        text-align: center;
    }

    .slider-controls {
        justify-content: center;
    }

    .navbar-brand .logo .primary_text {
        font-size: 36px;
    }

    .main-header.scrolled .navbar-brand .logo .primary_text {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        min-height: 500px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-primary-custom {
        padding: 12px 30px;
        font-size: 14px;
    }

    .search-buttons {
        flex-direction: column;
    }

    .search-buttons .btn {
        width: 100%;
    }

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

    .category-image {
        height: 200px;
    }

    .footer-content .col-lg-4,
    .footer-content .col-lg-2,
    .footer-content .col-lg-3 {
        margin-bottom: 30px;
    }

    h1, .page-content h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    h2, .page-content h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .page-banner {
        padding: 100px 0 40px;
    }

    .page-banner h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .navbar-brand .logo .primary_text {
        font-size: 28px;
    }

    .navbar-brand .logo .secondary_text {
        font-size: 10px;
    }

    .hero-slider {
        min-height: 400px;
    }

    .vehicle-card {
        flex: 0 0 150px;
        max-width: 150px;
    }

    .vehicle-card-image {
        height: 100px;
    }
}

/* === Utility Classes === */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}

.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* === Sidebar Filters === */
.sidebar-filters {
    background-color: var(--bg-light);
    padding: 25px;
    box-shadow: var(--shadow);
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

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

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

.filter-checkbox label {
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    margin-bottom: 0;
}

.price-range-slider {
    padding: 10px 0;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.price-inputs input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.btn-apply-filters {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 20px;
}

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

.btn-clear-filters {
    width: 100%;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px;
    border: 1px solid var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-clear-filters:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* === Promo Banner === */
.promo-banner {
    background-color: #2D2D2D;
    padding: 12px 0;
    text-align: center;
}

.promo-banner p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
}

.promo-accent {
    font-family: var(--font-accent);
    font-size: 26px;
    color: var(--text-light);
    font-style: italic;
    text-decoration: underline;
    margin-right: 10px;
}

/* === Hero Video Background === */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.hero-overlay {
    z-index: 2;
}

.hero-content {
    z-index: 3;
}

.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 0;
    overflow: hidden;
}

/* Adjust header position for promo banner */
.main-header {
    top: 50px;
}

.main-header.scrolled {
    top: 0;
}

/* Pages WITHOUT promo banner - header at top */
body.no-promo-banner .main-header {
    top: 0;
}

body.no-promo-banner .page-banner {
    margin-top: 80px;
}

/* === Welcome & Search Section === */
.welcome-search-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.welcome-box {
    padding-right: 30px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.4;
}

.welcome-accent {
    color: var(--primary-color);
    font-weight: 800;
}

.welcome-text p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: justify;
}

.welcome-text strong {
    color: var(--text-dark);
}

.search-box-home {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 25px;
}

.search-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.search-accent {
    color: var(--secondary-color);
    font-weight: 800;
}

.search-box-home .form-control {
    margin-bottom: 15px;
}

/* === Section Title Accent === */
.title-accent {
    color: var(--primary-color);
    font-weight: 800;
}

.section-title {
    text-transform: uppercase;
}

/* === Responsive adjustments for promo banner === */
@media (max-width: 991px) {
    .promo-banner {
        padding: 10px 15px;
    }

    .promo-accent {
        font-size: 20px;
        display: block;
        margin-bottom: 5px;
    }

    .promo-banner p {
        font-size: 13px;
    }

    .main-header {
        top: 70px;
    }

    .welcome-box {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .main-header {
        top: 90px;
    }

    .promo-accent {
        font-size: 18px;
    }

    .hero-slider {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .main-header {
        top: 0;
    }

    .promo-banner {
        display: none;
    }
}

/* === Placeholder Image Styles === */
.placeholder-img {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.placeholder-img::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 48px;
    opacity: 0.5;
}

/* Image loading fallback */
img[src="images/placeholder.jpg"],
img[src=""] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 150px;
}

/* === Legal Pages Styling === */
.contact-form-box h2 {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.contact-form-box h4 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.contact-form-box h5 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* === Filter Sidebar Title === */
.sidebar-filters h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* === Vehicle Description Styling === */
.vehicle-description h4,
.vehicle-equipment h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* === CTA Box === */
.cta-box {
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.cta-box h3 {
    color: var(--text-dark);
    font-weight: 600;
}

/* === Contact Info on Contact Page === */
.contact-info-box h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* === Additional Mobile Fixes === */
@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .welcome-title,
    .search-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .vehicle-card {
        flex: 0 0 140px;
        max-width: 140px;
    }

    .vehicle-card-image {
        height: 100px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
    }

    .copyright-section .row {
        text-align: center;
    }

    .copyright-section .text-md-right {
        text-align: center !important;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .btn-primary-custom {
        padding: 12px 25px;
        font-size: 14px;
    }

    .vehicle-card {
        flex: 0 0 120px;
        max-width: 120px;
    }

    .vehicle-card-title {
        font-size: 10px;
    }

    .vehicle-card-price {
        font-size: 12px;
    }
}

/* === Video Fallback Enhancement === */
.hero-video {
    background-color: #1a1a1a;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1523987355523-c7b5b0dd90a7?w=1920') center/cover no-repeat;
    z-index: -1;
}

/* === Admin Panel Link in Footer === */
.admin-link {
    opacity: 0.5;
    font-size: 12px;
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 1;
}

/* === Enhanced Product Cards === */
.vehicle-grid-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.vehicle-grid-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vehicle-grid-card:hover::after {
    transform: scaleX(1);
}

.vehicle-grid-card .card-image {
    position: relative;
}

.vehicle-grid-card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-grid-card:hover .card-image::before {
    opacity: 1;
}

.vehicle-grid-card .card-body {
    border-top: 1px solid var(--border-color);
}

/* Quick View Button on Hover */
.vehicle-grid-card .quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    z-index: 2;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vehicle-grid-card:hover .quick-view {
    opacity: 1;
}

/* === Improved Sidebar on Mobile === */
@media (max-width: 991px) {
    .sidebar-filters {
        margin-bottom: 30px;
    }

    .inventory-section .row {
        flex-direction: column-reverse;
    }

    .inventory-section .col-lg-3 {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .page-banner {
        padding: 120px 0 60px;
    }

    .page-banner h1 {
        font-size: 32px;
    }

    .inventory-header {
        padding: 15px;
    }

    .inventory-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .sort-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sort-controls select {
        width: 100%;
    }

    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .vehicle-grid-card .card-image {
        height: 150px;
    }

    .vehicle-grid-card .card-body {
        padding: 15px;
    }

    .vehicle-grid-card .card-title {
        font-size: 14px;
    }

    .vehicle-grid-card .card-price {
        font-size: 18px;
    }

    .vehicle-grid-card .card-specs {
        font-size: 11px;
        gap: 8px;
    }

    .filter-group {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
}

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

    .vehicle-grid-card .card-image {
        height: 200px;
    }
}

/* === Inventory Section Improvements === */
.inventory-section {
    min-height: 60vh;
}

.inventory-header {
    border-left: 4px solid var(--primary-color);
}

.inventory-title {
    position: relative;
    display: inline-block;
}

.inventory-count {
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

/* === Enhanced Filter Checkboxes === */
.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.filter-checkbox label {
    transition: color 0.2s ease;
}

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

/* === No Results Message === */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-muted);
}

/* === Vehicle Detail Page Improvements === */
.vehicle-gallery {
    background: var(--bg-light);
    padding: 20px;
    box-shadow: var(--shadow);
}

.vehicle-gallery .main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

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

.thumbnail-gallery::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

.thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.vehicle-info {
    background: var(--bg-light);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.vehicle-info .vehicle-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.vehicle-info .vehicle-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vehicle-status .badge {
    font-size: 14px;
    padding: 8px 16px;
    font-weight: 600;
}

.vehicle-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.vehicle-specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.vehicle-specs-table td {
    padding: 12px 0;
    font-size: 14px;
}

.vehicle-specs-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 45%;
}

.vehicle-specs-table td:last-child {
    color: var(--text-muted);
}

.vehicle-description,
.vehicle-equipment {
    background: var(--bg-light);
    padding: 25px;
    box-shadow: var(--shadow);
}

.vehicle-description h4,
.vehicle-equipment h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.vehicle-description p {
    line-height: 1.8;
    color: var(--text-dark);
}

.vehicle-equipment .col-md-6,
.vehicle-equipment .col-lg-4 {
    font-size: 14px;
    color: var(--text-dark);
}

.vehicle-equipment i {
    margin-right: 8px;
}

.contact-seller-form {
    background: var(--bg-gray);
    padding: 20px;
    margin-top: 25px;
}

.contact-seller-form h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-seller-form h4 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.seller-contact {
    padding: 20px;
    background: var(--bg-gray);
}

.seller-contact h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.seller-contact p {
    font-size: 14px;
}

.seller-contact i {
    width: 20px;
    margin-right: 8px;
}

/* Vehicle Detail Mobile */
@media (max-width: 991px) {
    .vehicle-info {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .vehicle-gallery .main-image {
        height: 300px;
    }

    .thumbnail {
        width: 80px;
        height: 55px;
    }

    .vehicle-info .vehicle-title {
        font-size: 22px;
    }

    .vehicle-info .vehicle-price {
        font-size: 26px;
    }

    .vehicle-description,
    .vehicle-equipment {
        padding: 20px;
    }
}

/* ============================================
   LIGHTBOX / IMAGE ZOOM
   ============================================ */

/* Zoom icon on gallery */
.vehicle-gallery {
    position: relative;
}

.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.zoom-icon i {
    color: #fff;
    font-size: 18px;
}

.zoom-icon:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.vehicle-gallery .main-image:hover {
    cursor: pointer;
    opacity: 0.95;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Lightbox Container */
.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 120px;
}

/* Lightbox Content */
.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-close i {
    color: #fff;
    font-size: 24px;
}

.lightbox-close:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-nav i {
    color: #fff;
    font-size: 24px;
}

.lightbox-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Zoom Controls */
.lightbox-controls {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 10;
}

.lightbox-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-btn i {
    color: #fff;
    font-size: 16px;
}

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

.lightbox-zoom-level {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Lightbox Thumbnails */
.lightbox-thumbnails {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    max-width: 90%;
    overflow-x: auto;
}

.lightbox-thumb {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}

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

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--secondary-color);
}

/* Lightbox Mobile Responsive */
@media (max-width: 991px) {
    .lightbox-container {
        padding: 60px 50px 140px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .lightbox-container {
        padding: 60px 20px 160px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    .lightbox-nav i {
        font-size: 18px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .lightbox-close i {
        font-size: 20px;
    }

    .lightbox-controls {
        padding: 8px 15px;
        gap: 8px;
    }

    .lightbox-btn {
        width: 35px;
        height: 35px;
    }

    .lightbox-thumb {
        width: 60px;
        height: 42px;
    }

    .lightbox-thumbnails {
        gap: 6px;
    }

    .zoom-icon {
        width: 40px;
        height: 40px;
    }

    .zoom-icon i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-container {
        padding: 50px 10px 150px;
    }

    .lightbox-controls {
        bottom: 80px;
    }

    .lightbox-thumb {
        width: 50px;
        height: 35px;
    }
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.language-nav-item {
    position: relative;
    margin-left: 15px;
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 15px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-btn .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.language-btn .lang-code {
    font-weight: 600;
    font-size: 13px;
}

.language-btn i {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.language-dropdown.show + .language-btn i,
.language-btn:focus i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.language-option.active {
    background: var(--primary-color);
    color: #fff;
}

.language-option .lang-flag {
    font-size: 20px;
    line-height: 1;
}

.language-option .lang-name {
    font-size: 14px;
    font-weight: 500;
}

/* Scrolled header language button */
.main-header.scrolled .language-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.main-header.scrolled .language-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Mobile language selector */
@media (max-width: 991px) {
    .language-nav-item {
        margin-left: 0;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .language-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .language-dropdown {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .language-dropdown.show {
        max-height: 500px;
        padding: 5px 0;
    }

    .language-option {
        color: #fff;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .language-option:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .language-option.active {
        background: var(--secondary-color);
    }
}
