/*
Theme Name: Car Dealer
Theme URI: https://dsautomobil.pl
Author: Paweł
Description: Motyw do sprzedaży samochodów z systemem ogłoszeń
Version: 1.0
Text Domain: car-dealer
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

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

/* Header container bez padding - będzie w header-wrapper */
.site-header .container {
    padding: 0;
    max-width: 100%; /* Pozwól na pełną szerokość */
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    overflow: visible;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px; /* Zwiększone dla szerszego rozłożenia */
    margin: 0 auto;
    padding: 0 20px 0 0; /* Usunięty left padding - logo będzie przy samej lewej krawędzi */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
    margin-right: 110px; /* Zwiększony odstęp między logo a menu */
    margin-left: -30px; /* Przesunięcie logo bardziej w lewo */
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    display: block;
    object-fit: contain;
    background: transparent;
}

/* Navigation */
.main-nav {
    position: relative;
    z-index: 1001;
    margin-left: auto; /* Przyciśnij menu do prawej */
    margin-right: -80px; /* Przesunięcie menu 100px w prawo */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 5px;
}

.main-nav a:hover {
    color: #e21f26;
}

/* Przycisk Kontakt */
.main-nav li:last-child a {
    background: #e21f26;
    color: white !important;
    font-weight: 600;
    border-radius: 5px;
    padding: 10px 20px;
    border: 2px solid #e21f26;
}

.main-nav li:last-child a:hover {
    background: white;
    color: #e21f26 !important;
    border-color: #e21f26;
    transform: none;
    box-shadow: none;
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1002;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger-line:nth-child(1) {
    top: 10px;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(3) {
    bottom: 10px;
}

/* Active state - X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile placeholder for centering */
.mobile-placeholder {
    display: none;
    width: 40px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Header adjustments */
    .site-header {
        height: 70px;
    }
    
    .header-wrapper {
        padding: 0 15px;
        display: grid;
        grid-template-columns: 60px 1fr 60px; /* Trzy kolumny: hamburger | logo | puste */
        align-items: center;
        max-width: 100%;
    }
    
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
        grid-column: 1;
        justify-self: start;
        position: relative;
        z-index: 1003;
        margin-left: -20px; /* Przesunięcie 20px w lewo */
    }
    
    /* Center logo */
    .logo {
        grid-column: 2;
        display: flex;
        justify-content: center;
        margin: 0;
        position: relative;
        z-index: 1001;
    }
    
    /* Show placeholder to maintain layout */
    .mobile-placeholder {
        display: block;
        grid-column: 3;
    }
    
    /* Mobile navigation styles */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
        transition: left 0.3s ease;
        margin: 0;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 25px;
        border-radius: 0;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav li:last-child a {
        margin: 20px 25px;
        padding: 12px 20px;
        border-radius: 5px;
        text-align: center;
        border: 2px solid #e21f26;
    }
    
    /* Show overlay when menu is active */
    .mobile-menu-overlay {
        display: block;
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 50px !important;
        height: 50px !important;
    }
    
    .site-header {
        height: 60px;
    }
    
    /* Poprawka pozycji strzałek na małych ekranach */
    .slider-arrow {
        width: 35px;
        height: 35px;
        bottom: 140px; /* Wyżej na małych ekranach */
    }
    
    .slider-arrow-prev {
        left: 10px;
    }
    
    .slider-arrow-next {
        right: 10px;
    }
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 40px 0;
}

/* Single Listing Card */
.listing-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.listing-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.listing-content {
    padding: 20px;
}

.listing-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.listing-price {
    font-size: 24px;
    color: #e21f26;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Button */
.btn {
    background: #e21f26;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn:hover {
    background: #e21f26;
}

/* Hero Slider */
.hero-slider {
    width: 100vw;
    height: calc(100vh - 80px); /* Odejmujemy wysokość headera */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #000;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.slide.active {
    opacity: 1;
}

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

.slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideUp 1s ease-out;
}

.slide-subtitle {
    font-size: 20px;
    color: #fff;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideUp 1s ease-out 0.2s backwards;
}

.slide-btn {
    display: inline-block;
    background: #e21f26;
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(226, 31, 38, 0.3);
    animation: slideUp 1s ease-out 0.4s backwards;
}

.slide-btn:hover {
    background: #e21f26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 31, 38, 0.4);
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    color: #fff;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: #e21f26;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Hero Search Section */
.hero-search-overlay {
    position: relative;
    background: #f8f8f8;
    padding: 40px 20px;
    margin-top: 0;
}

.hero-search-form-wrapper {
    background: white;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-search-header {
    text-align: center;
    background: #e21f26;
    border-radius: 5px 5px 0 0;
    padding: 20px;
}

.hero-search-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.hero-car-search-form {
    padding: 30px;
}

.hero-car-search-form .hero-search-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.hero-car-search-form .hero-search-row:nth-child(3) {
    grid-template-columns: 1fr 2fr;
    align-items: end;
}

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

.hero-search-field label {
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-search-field select,
.hero-search-field input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    color: #333;
    font-family: inherit;
    transition: all 0.3s;
}

.hero-search-field select:focus,
.hero-search-field input:focus {
    outline: none;
    border-color: #e21f26;
}

.hero-search-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.hero-search-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: 27px;
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    min-width: 180px;
    height: 48px;
}

.hero-search-btn.primary {
    background: #e21f26;
    color: white;
    box-shadow: 0 4px 15px rgba(226, 31, 38, 0.3);
}

.hero-search-btn.primary:hover {
    background: #c91b22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 31, 38, 0.4);
}

.hero-search-btn.secondary {
    background: white;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.hero-search-btn.secondary:hover {
    border-color: #e21f26;
    color: #e21f26;
    transform: translateY(-2px);
}

/* Hero Search Responsive */
@media (max-width: 1024px) {
    .hero-search-overlay {
        padding: 30px 15px;
    }
    
    .hero-search-form-wrapper {
        padding: 25px 20px;
    }
    
    .hero-car-search-form .hero-search-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-car-search-form .hero-search-row:nth-child(2) {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-car-search-form .hero-search-row:nth-child(3) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-search-overlay {
        padding: 20px 15px;
    }
    
    .hero-search-title {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    /* Kompletnie przepisz layout dla mobile */
    .hero-car-search-form {
        padding: 20px;
    }
    
    .hero-car-search-form .hero-search-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
        grid-template-columns: none !important;
    }
    
    .hero-car-search-form .hero-search-row:nth-child(1),
    .hero-car-search-form .hero-search-row:nth-child(2),
    .hero-car-search-form .hero-search-row:nth-child(3) {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }
    
    /* Wszystkie pola formularza identyczne */
    .hero-search-field {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex: none !important;
    }
    
    .hero-search-field select,
    .hero-search-field input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 12px 15px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 5px !important;
        font-size: 14px !important;
        background: white !important;
    }
    
    .hero-search-field select {
        padding-right: 40px !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
        background-position: right 12px center !important;
        background-repeat: no-repeat !important;
        background-size: 16px !important;
        appearance: none !important;
    }
    
    .hero-search-buttons {
        justify-content: stretch;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-search-btn {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        padding: 12px 30px !important;
        font-size: 13px !important;
    }
}

/* Modern Listings Page */
.listings-page {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.listings-header {
    text-align: center;
    margin-bottom: 50px;
}

.listings-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.listings-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.listings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Filters */
.listings-sidebar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.clear-filters {
    color: #e21f26;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.clear-filters:hover {
    color: #c91b22;
    text-decoration: underline;
}

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

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    background: white;
    transition: all 0.3s;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #e21f26;
    box-shadow: 0 0 0 3px rgba(226, 31, 38, 0.1);
}

.price-range,
.year-range,
.mileage-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-input,
.year-select,
.mileage-input {
    flex: 1;
}

.price-separator,
.mileage-separator {
    font-weight: 600;
    color: #6c757d;
}

/* Equipment Filters */
.equipment-filters {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.equipment-section {
    border-bottom: 1px solid #dee2e6;
}

.equipment-section:last-child {
    border-bottom: none;
}

.equipment-section summary {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    list-style: none;
    transition: background 0.3s;
}

.equipment-section summary:hover {
    background: #e9ecef;
}

.equipment-section summary::-webkit-details-marker {
    display: none;
}

.equipment-section summary::after {
    content: '+';
    float: right;
    font-weight: 700;
    color: #6c757d;
}

.equipment-section[open] summary::after {
    content: '−';
}

.checkbox-group {
    padding: 20px;
    background: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.checkbox-label:hover {
    color: #e21f26;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #e21f26;
}

.checkbox-text {
    font-size: 14px;
    color: #495057;
}

.filter-submit-btn {
    width: 100%;
    background: #e21f26;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 30px;
}

.filter-submit-btn:hover {
    background: #c91b22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 31, 38, 0.3);
}

/* Main Content */
.listings-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.listings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.listings-count {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.listings-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listings-sort label {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: white;
    min-width: 200px;
    cursor: pointer;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 30px;
    align-items: stretch;
}

.listings-grid > * {
    min-height: 0;
}

.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.listing-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
}

.listing-no-image span {
    margin-top: 10px;
    font-size: 14px;
}

.listing-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: #e21f26;
    color: white;
}

.badge-condition {
    background: #28a745;
    color: white;
}

.listing-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s;
}

.listing-title a:hover {
    color: #e21f26;
}

.listing-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0 20px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
}

.spec-item:nth-child(n+3) {
    display: none !important;
}

.spec-item svg {
    color: #e21f26;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.spec-label {
    color: #6c757d;
    font-size: 14px;
}

.spec-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.listing-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
    margin-top: auto;
}

.listing-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #e21f26;
}

.price-currency {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
}

.price-negotiable {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    font-style: italic;
}

.btn-details {
    width: 100%;
    padding: 12px 20px !important;
    font-size: 14px !important;
    text-align: center;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #e21f26;
    color: white;
}

.btn-primary:hover {
    background: #c91b22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 31, 38, 0.3);
}

.btn-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-outline:hover {
    color: #e21f26;
    border-color: #e21f26;
    background: rgba(226, 31, 38, 0.05);
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    text-align: center;
}

.no-results-icon {
    margin-bottom: 30px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-results p {
    font-size: 16px;
    color: #6c757d;
    max-width: 400px;
    line-height: 1.6;
}

.no-results a {
    color: #e21f26;
    text-decoration: none;
    font-weight: 600;
}

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

/* Pagination */
.pagination-wrapper {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 1400px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .listings-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }

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

@media (max-width: 992px) {
    .listings-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .listings-sidebar {
        position: relative;
        top: auto;
        max-height: none;
    }

    .listings-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        text-align: center;
    }

    .listings-sort {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .listings-page {
        padding: 40px 0;
    }

    .listings-title {
        font-size: 32px;
    }

    .listings-sidebar {
        padding: 20px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .listing-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .listing-actions {
        justify-content: stretch;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Featured Listings Section - Homepage */
.featured-listings-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.featured-listings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(226,31,38,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #e21f26;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(226, 31, 38, 0.1);
}

.section-header {
    position: relative;
    z-index: 10;
}

.home-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.home-listing-card {
    background: white !important;
    border-radius: 25px !important;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(226, 31, 38, 0.1) !important;
}

.home-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e21f26, #f87171);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.home-listing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.home-listing-card:hover::before {
    transform: scaleX(1);
}

.home-listing-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.home-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.home-listing-card:hover .home-listing-image img {
    transform: scale(1.08);
}

.listing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.badge-premium {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #94a3b8;
}

.home-listing-content {
    padding: 35px;
}

.listing-title {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.home-listing-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.spec-item svg {
    color: #e21f26;
}

.home-listing-price {
    margin: 25px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #e21f26;
}

.price-currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
}

.price-negotiable {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64748b;
    font-style: italic;
}

.home-listing-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #e21f26, #f87171);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(226, 31, 38, 0.2);
}

.home-listing-link:hover {
    background: linear-gradient(135deg, #c91b22, #e21f26);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 31, 38, 0.3);
    color: white;
}

.home-listing-link svg {
    transition: transform 0.3s ease;
}

.home-listing-link:hover svg {
    transform: translateX(4px);
}

.no-listings-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-listings-message h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-listings-message p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 25px;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.btn-large {
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 600;
    background: #e21f26;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-large:hover {
    background: #c91b22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 31, 38, 0.3);
}

/* Modern CTA Section */
.cta-wrapper-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 30px;
    padding: 80px 60px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-wrapper-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(226, 31, 38, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-icon {
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

.cta-title-modern {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta-subtitle-modern {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cta-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e21f26, #f87171);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 30px rgba(226, 31, 38, 0.3);
}

.cta-button-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(226, 31, 38, 0.4);
    color: white;
}

.cta-button-primary svg {
    transition: transform 0.3s ease;
}

.cta-button-primary:hover svg {
    transform: translateX(4px);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    padding: 20px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: white;
}

.cta-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

/* Responsive CTA */
@media (max-width: 768px) {
    .cta-wrapper-modern {
        padding: 60px 30px;
        margin-top: 60px;
    }
    
    .cta-buttons-group {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-stats {
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 20px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

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

    .benefit-card,
    .benefit-card:nth-child(4),
    .benefit-card:nth-child(5) {
        grid-column: 1;
    }
}

.benefit-card {
    grid-column: span 2;
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Wycentruj ostatnie 2 karty (4 i 5) */
.benefit-card:nth-child(4) {
    grid-column: 2 / 4;
}

.benefit-card:nth-child(5) {
    grid-column: 4 / 6;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.benefit-card:hover .benefit-icon {
    background: #ffe5e5;
}

.benefit-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.benefit-text {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* CTA Section */
.cta-wrapper {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: calc(100vh - 70px); /* Mniejszy header na mobile */
    }

    .slide-title {
        font-size: 32px;
    }

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

    .slider-arrow {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 120px; /* Przesunięcie strzałek nad przycisk */
        transform: none;
    }

    .slider-arrow-prev {
        left: 15px;
    }

    .slider-arrow-next {
        right: 15px;
    }

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

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

    .benefits-grid {
        gap: 25px;
    }

    .benefit-card {
        padding: 30px 20px;
    }

    .cta-wrapper {
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 28px;
    }
}

/* Page Styles */
.page-content {
    padding: 80px 0;
}

/* Ukryj tytuł strony głównej */
.home .page-title,
.home h1.entry-title,
.home .entry-header,
body.home > h1:first-of-type,
body.home .container > h1:first-of-type,
body.home main h1:first-of-type {
    display: none !important;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.page-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

/* Contact Page */
.contact-page {
    min-height: calc(100vh - 80px);
}

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}

/* Modern Contact Page Hero */
.page-hero-contact {
    position: relative;
    background-image: url('images/contact-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    overflow: hidden;
}

.page-hero-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.page-hero-contact .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top, rgba(255,255,255,0.05) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

.page-hero-contact .container {
    position: relative;
    z-index: 3;
}

.page-hero-contact .hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.page-hero-contact .hero-text-wrapper {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.page-hero-contact .page-title {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    letter-spacing: -1px;
    animation: slideInFromLeft 0.6s ease-out;
}

.page-hero-contact .title-separator {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    margin: 0 auto 25px;
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.3s both;
}

.page-hero-contact .page-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: #f8f9fa;
    margin-bottom: 30px;
    opacity: 0.95;
    letter-spacing: 0.5px;
    animation: slideInFromRight 0.6s ease-out 0.2s both;
}

.page-hero-contact .hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.page-hero-contact .hero-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.page-hero-contact .hero-breadcrumb a:hover {
    color: rgba(255,255,255,0.7);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.page-hero-contact .hero-breadcrumb .separator {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.page-hero-contact .hero-breadcrumb .current {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

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

.page-hero .page-title {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 73, 94, 0.1), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info */
.info-header {
    margin-bottom: 40px;
}

.info-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.info-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, rgba(44, 62, 80, 0.3));
    border-radius: 2px;
}

.info-subtitle {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    max-width: 400px;
}

.contact-cards {
    display: grid;
    gap: 24px;
}

.contact-card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(52, 73, 94, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.contact-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.contact-card:hover .card-icon {
    transform: scale(1.1);
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.card-content p {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 4px;
    font-size: 15px;
}

.contact-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: #667eea;
}

.availability {
    font-size: 13px;
    color: #28a745;
    font-weight: 500;
    margin-top: 4px;
}

.hours-list {
    margin-top: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
}

.hours-row span {
    color: #6c757d;
}

.hours-row strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 73, 94, 0.06);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    position: relative;
}

.form-subtitle {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.input-wrapper,
.textarea-wrapper,
.select-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fff;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-wrapper input:focus + .input-icon {
    color: #667eea;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 16px 50px 16px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fff;
    appearance: none;
    cursor: pointer;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: color 0.3s ease;
}

.select-wrapper select:focus ~ .select-arrow {
    color: #667eea;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fff;
    resize: vertical;
    min-height: 120px;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    margin-bottom: 35px;
}

.checkbox-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 2px solid #d0d0d0;
    border-radius: 5px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #fff;
}

.checkbox-text {
    flex: 1;
    display: inline !important;
}

.checkbox-custom .checkmark {
    opacity: 0;
    color: white;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: #e21f26;
    border-color: #e21f26;
    box-shadow: 0 2px 8px rgba(226, 31, 38, 0.3);
}

.checkbox-wrapper input:checked + .checkbox-custom .checkmark {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    color: #6c757d;
}

.checkbox-text a {
    color: #e21f26;
    text-decoration: none;
    font-weight: 500;
}

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

.submit-btn {
    width: 100%;
    background: #e21f26;
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.submit-btn::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;
}

.submit-btn:hover {
    background: #c91b22;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(226, 31, 38, 0.4);
}

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

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Contact Form 7 Styling */
.wpcf7 {
    margin-top: 20px;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #e21f26;
    outline: none;
    box-shadow: 0 0 0 4px rgba(226, 31, 38, 0.1);
    background: #fff;
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    background: #e21f26;
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: #c91b22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 31, 38, 0.3);
}

.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e21f26;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 14px;
    color: #6c757d;
}

.wpcf7-form .wpcf7-acceptance a {
    color: #e21f26;
    text-decoration: none;
    font-weight: 500;
}

.wpcf7-form .wpcf7-acceptance a:hover {
    text-decoration: underline;
}

.wpcf7-response-output {
    margin: 20px 0 !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
}

.wpcf7-form.sent .wpcf7-response-output {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

.wpcf7-not-valid-tip {
    color: #e21f26;
    font-size: 13px;
    margin-top: 5px;
}

.wpcf7-spinner {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .page-hero {
        padding: 60px 0;
    }

    .page-hero .page-title {
        font-size: 36px;
    }

    /* Responsive Contact Hero */
    .page-hero-contact {
        padding: 80px 0;
    }

    .page-hero-contact .hero-content {
        min-height: 200px;
    }

    .page-hero-contact .page-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .page-hero-contact .title-separator {
        width: 60px;
        height: 3px;
        margin-bottom: 20px;
    }

    .page-hero-contact .page-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
        padding: 0 20px;
    }

    .page-hero-contact .hero-breadcrumb {
        padding: 10px 20px;
        font-size: 13px;
    }

    .page-hero-contact .hero-breadcrumb a,
    .page-hero-contact .hero-breadcrumb .current {
        font-size: 13px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-grid {
        gap: 40px;
    }

    .info-header h2 {
        font-size: 28px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .form-header h2 {
        font-size: 28px;
    }

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

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

    .input-wrapper input,
    .select-wrapper select,
    .textarea-wrapper textarea {
        padding: 14px 14px 14px 45px;
        font-size: 15px;
    }

    .select-wrapper select {
        padding: 14px 45px 14px 14px;
    }

    .textarea-wrapper textarea {
        padding: 14px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 16px 25px;
    }
}

/* Map Section */
.map-section {
    padding: 80px 0 0;
    background: #f8f9fa;
}

.map-header {
    text-align: center;
    margin-bottom: 50px;
}

.map-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.map-subtitle {
    font-size: 18px;
    color: #6c757d;
    font-weight: 400;
}

.map-container {
    width: 100%;
    height: 450px;
    margin-top: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 0;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Map Responsive */
@media (max-width: 992px) {
    .map-section {
        padding: 60px 0 0;
    }

    .map-header {
        margin-bottom: 40px;
    }

    .map-header h2 {
        font-size: 28px;
        padding: 0 20px;
    }

    .map-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .map-section {
        padding: 40px 0 0;
    }

    .map-header {
        margin-bottom: 30px;
    }

    .map-header h2 {
        font-size: 24px;
    }

    .map-subtitle {
        font-size: 15px;
    }

    .map-container {
        height: 300px;
    }
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3.footer-title {
    color: #e21f26;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    display: block;
    object-fit: contain;
    opacity: 0.9;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(236, 240, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    transition: all 0.3s;
}

.social-link:hover {
    background: #e21f26;
    color: white;
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e21f26;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bdc3c7;
}

.contact-item-footer svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #e21f26;
}

.contact-item-footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item-footer a:hover {
    color: #e21f26;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #e21f26;
}

/* Car Search Section */
.search-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.search-header {
    text-align: center;
    margin-bottom: 60px;
}

.search-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.search-subtitle {
    font-size: 20px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.search-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.car-search-form .search-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.car-search-form .search-row:last-child {
    grid-template-columns: 1fr 2fr;
    align-items: end;
    margin-bottom: 0;
}

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

.search-field label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.search-field select,
.search-field input {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: #e21f26;
    box-shadow: 0 0 0 3px rgba(226, 31, 38, 0.1);
}

.search-field select {
    cursor: pointer;
}

.search-field input::placeholder {
    color: #adb5bd;
}

.search-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.search-btn.primary {
    background: #e21f26;
    color: white;
    box-shadow: 0 4px 15px rgba(226, 31, 38, 0.3);
}

.search-btn.primary:hover {
    background: #c91b22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 31, 38, 0.4);
}

.search-btn.secondary {
    background: white;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.search-btn.secondary:hover {
    border-color: #e21f26;
    color: #e21f26;
    transform: translateY(-2px);
}

/* Search Responsive */
@media (max-width: 992px) {
    .search-form-wrapper {
        padding: 30px 25px;
    }
    
    .car-search-form .search-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .car-search-form .search-row:last-child {
        grid-template-columns: 1fr;
    }
    
    .search-buttons {
        justify-content: stretch;
        flex-direction: column;
    }
    
    .search-btn {
        justify-content: center;
        width: 100%;
    }
    
    .search-title {
        font-size: 32px;
    }
    
    .search-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 60px 0;
    }
    
    .search-header {
        margin-bottom: 40px;
    }
    
    .search-title {
        font-size: 28px;
    }
}

/* Compact Search Section */
.search-section.compact {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.search-section.compact .search-form-wrapper {
    box-shadow: none;
    border: 1px solid #e9ecef;
}

/* Results Section */
.results-section {
    padding: 80px 0;
}

.results-header {
    margin-bottom: 40px;
}

.results-count {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Listings Grid for Results */
.results-section .listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.listing-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.listing-meta {
    margin-bottom: 20px;
}

.listing-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f8f9fa;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 0;
}

.no-results-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-results-content p {
    color: #7f8c8d;
    font-size: 16px;
}

.no-results-content a {
    color: #e21f26;
    text-decoration: none;
}

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

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

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

.page-numbers .page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s;
}

.page-numbers .page-numbers:hover,
.page-numbers .page-numbers.current {
    background: #e21f26;
    color: white;
    border-color: #e21f26;
}

.page-numbers .page-numbers.prev,
.page-numbers .page-numbers.next {
    font-size: 14px;
}

/* Results Responsive */
@media (max-width: 992px) {
    .results-section .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .results-section {
        padding: 60px 0;
    }
    
    .search-section.compact {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .results-section .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .results-count {
        font-size: 24px;
    }
    
    .listing-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .listing-footer .btn {
        text-align: center;
    }
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* Wyśrodkowanie logo i ikon social media */
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        gap: 20px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    z-index: 10000;
    padding: 20px;
    border-top: 3px solid #e21f26;
    animation: slideUpCookie 0.5s ease-out;
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-banner-text a {
    color: #e21f26;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-modal-body > p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.6;
}

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

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fafbfc;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cookie-category-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .slider {
    background-color: #e21f26;
}

.cookie-switch input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-switch input:disabled + .slider {
    background-color: #4CAF50;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 25px 30px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.btn-primary {
    background: #e21f26;
    color: white;
}

.btn-primary:hover {
    background: #c11e24;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-modal .btn-outline {
    color: #333;
    border-color: #ddd;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-modal .btn-outline:hover {
    background: #f8f9fa;
    border-color: #999;
}

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

.btn-secondary:hover {
    background: #5a6268;
}

/* Animation for Cookie Banner */
@keyframes slideUpCookie {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Cookie Banner - Tablet */
@media (max-width: 992px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        gap: 20px;
    }
    
    .cookie-banner-text h4 {
        font-size: 16px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
    }
    
    .cookie-banner-buttons {
        gap: 10px;
    }
    
    .cookie-banner-buttons .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Responsive Cookie Banner - Mobile */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px 10px;
        border-top-width: 2px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: left;
        gap: 15px;
        padding: 0 5px;
    }
    
    .cookie-banner-text h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .cookie-banner-text p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .cookie-banner-buttons {
        flex-direction: row;
        width: 100%;
        gap: 8px;
        justify-content: stretch;
    }
    
    .cookie-banner-buttons .btn {
        flex: 1;
        width: auto;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
        min-width: 0;
    }
    
    .cookie-modal-content {
        width: calc(100% - 20px);
        margin: 10px;
        max-height: calc(100vh - 20px);
        border-radius: 8px;
    }
    
    .cookie-modal-header {
        padding: 15px 20px;
    }
    
    .cookie-modal-header h3 {
        font-size: 18px;
    }
    
    .modal-close {
        font-size: 24px;
        padding: 5px;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-body > p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .cookie-category {
        margin-bottom: 15px;
    }
    
    .cookie-category-header {
        padding: 15px;
        gap: 12px;
    }
    
    .cookie-category-info h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .cookie-category-info p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .cookie-switch {
        width: 44px;
        height: 22px;
    }
    
    .cookie-switch .slider:before {
        height: 16px;
        width: 16px;
    }
    
    .cookie-switch input:checked + .slider:before {
        transform: translateX(22px);
    }
    
    .cookie-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }
}

/* Responsive Cookie Banner - Small Mobile */
@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px 8px;
    }
    
    .cookie-banner-content {
        gap: 12px;
    }
    
    .cookie-banner-text h4 {
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .cookie-banner-text p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .cookie-banner-buttons {
        gap: 6px;
    }
    
    .cookie-banner-buttons .btn {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    /* Ukryj emoji na bardzo małych ekranach dla oszczędności miejsca */
    @media (max-width: 360px) {
        .cookie-banner-text h4::before {
            content: '';
            display: none;
        }
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .cookie-banner {
        padding: 10px;
    }
    
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .cookie-banner-text {
        flex: 1;
    }
    
    .cookie-banner-text h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .cookie-banner-text p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .cookie-banner-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .cookie-banner-buttons .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .cookie-modal-content {
        max-height: calc(100vh - 40px);
    }
}