@keyframes meshFloat {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-utility {
    padding: 30px 0 0;
    position: relative;
    overflow: visible;
    background: #fff;
}

.container-hero-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-wrapper-new {
    position: relative;
    background-image: url('../assets/images/header/hero_img.png');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 60px 80px;
    min-height: 500px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* --- Left Hero Content --- */
.hero-content-left {
    max-width: 50vw;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px; /* Stretch to separate arrows and text */
    padding-top: 20px;
}



.hero-text-bottom {
    margin-top: 40px;
}

.hero-title-practical {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-main-btn {
    display: inline-block;
    background: #fff;
    color: #1e293b;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}



/* --- Right Vertical Search Box --- */
.hero-search-right {
    position: relative;
    width: 380px;
    z-index: 10;
}

.search-box-utility {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Lighter shadow */
    width: 100%;
    position: relative;
}

.search-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.search-chip {
    display: block;
    cursor: pointer;
}

.search-chip input {
    display: none;
}

.search-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: none;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    transition: 0.2s;
    text-align: center;
}

.search-chip input:checked + span {
    background: #eef2ff;
    color: #2563eb;
    font-weight: 600;
}

.vertical-filters-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-item-vert {
    position: relative;
}

.filter-item-vert label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.input-wrapper-vert, .select-trigger-vert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 44px;
    padding: 0 12px;
    cursor: pointer;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.input-wrapper-vert:hover, .select-trigger-vert:hover {
    border-color: #cbd5e1;
}

.input-wrapper-vert input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.btn-map-vert {
    background: none;
    border: none;
    color: #0045A5;
    font-size: 16px;
    cursor: pointer;
}

.select-trigger-vert i {
    font-size: 12px;
    color: #94a3b8;
}

.dual-inputs-vert {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dual-inputs-vert input {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    outline: none;
    transition: 0.2s;
}

.select-native-vert {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    outline: none;
    appearance: none;
}

.search-actions-vert {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-search-primary {
    width: 100%;
    background: #003785;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0, 69, 165, 0.4);
    transition: 0.3s;
}

.btn-search-primary:hover {
    background: #002d6b;
}

.btn-advanced-link {
    background: none;
    border: none;
    color: #003785;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* Chat Mockup */
.chat-widget-mock {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 280px;
}

.chat-widget-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
}

.chat-widget-avatars {
    display: flex;
    margin-bottom: 12px;
}

.chat-widget-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.chat-widget-avatars img:nth-child(2) {
    margin-left: -12px;
}

.chat-widget-text {
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 12px;
}

.chat-widget-btn {
    width: 100%;
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* --- Quick Categories Row --- */
.quick-categories-row {
    padding: 30px 0 60px;
}

.quick-cat-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-cat-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    margin-left: 20px;
}

.quick-cat-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.quick-cat-link {
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    transition: 0.2s;
}

.quick-cat-link.dark {
    background: #0f172a;
}

.quick-cat-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-icon-cir {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.btn-icon-cir:hover {
    background: #2563eb;
}

.input-premium-v2, .select-premium-v2 {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    width: 100%;
    outline: none;
    transition: 0.2s;
}

.input-premium-v2:focus, .select-premium-v2:focus {
    border-color: #003785;
    box-shadow: 0 0 0 3px rgba(0, 55, 133, 0.1);
}

.search-tabs-practical {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.tab-practical {
    background: #e2e8f0; /* Gray background for inactive */
    border: 1px solid #cbd5e1; /* Subtle border */
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #334155; /* Subtle text */
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.tab-practical:hover {
    background: #cbd5e1;
}

.tab-practical.active {
    background: #ffffff; /* White background for active */
    border-color: #0f172a; /* Dark distinct border */
    color: #0f172a; /* Dark text */
}

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

.custom-select-wrapper-fixed {
    width: 100%;
}

@keyframes pulse-status {
    0% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.95; }
}

/* --- Search Layout V2 --- */
.search-box-utility {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;
}

.search-container-v2 {
    padding: 24px 32px;
}

.search-row-v2 {
    display: grid;
    gap: 32px;
    align-items: flex-end;
}

/* Row 1: The Essentials */
.primary-row {
    grid-template-columns: 1fr 1fr 200px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

/* Row 2: Basic Refining */
.secondary-row {
    grid-template-columns: 1fr 1.5fr 180px;
    padding-top: 24px;
}

/* Row 3: Advanced Details */
.advanced-row {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed #e2e8f0;
    animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Group & Label Styling */
.filter-group-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group-v2 label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group-v2 label i {
    color: #0045A5;
    font-size: 14px;
}

/* Input Wrappers */
.input-wrapper-v2, 
.select-trigger-v2,
.input-native-v2,
.select-native-v2 {
    height: 56px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    width: 100%;
}

.input-wrapper-v2:hover, 
.select-trigger-v2:hover {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.input-wrapper-v2 input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 15px;
    color: #0f172a;
}

/* Custom UI Elements */
.btn-map-v2 {
    background: none;
    border: none;
    color: #0045A5;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
}

.btn-search-v2 {
    height: 56px;
    background: linear-gradient(135deg, #0045A5 0%, #003380 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0, 69, 165, 0.4);
    transition: all 0.3s;
}

.btn-search-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(0, 69, 165, 0.5);
}

.dual-inputs-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-prefix-v2 {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 12px;
    height: 48px;
    transition: all 0.2s;
}

.input-prefix-v2:focus-within {
    border-color: #0045A5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 69, 165, 0.1);
}

.input-prefix-v2 span {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-right: 8px;
    user-select: none;
}

.input-prefix-v2 input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    padding: 0;
}

.btn-advanced-v2 {
    height: 48px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-advanced-v2:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Custom Select Dropdowns V2 */
.custom-select-v2 {
    position: relative;
    width: 100%;
}

.select-options-v2 {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
}

.custom-select-v2.active .select-options-v2 {
    display: block;
}

.option-v2 {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.1s;
}

.option-v2:hover {
    background: #f1f5f9;
}

.select-native-v2 {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

/* Price Slider */
.price-slider-compact { padding: 12px 0 0; }
input[type=range] { appearance: none; -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; background: #e2e8f0; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #003785;
    margin-top: -7px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }

/* --- Offerings Grid (Otomoto Style) --- */
.section-header-sync {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.section-header-sync h2 { font-size: 32px; color: #1e293b; font-weight: 800; }
.section-header-sync a { color: #003785; font-weight: 600; text-decoration: none; }

.otomoto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.otomoto-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
}

.otomoto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.otomoto-media {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--s-100);
    overflow: hidden;
}

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

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

.otomoto-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.otomoto-location {
    font-size: 11px;
    font-weight: 700;
    color: #003785;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.otomoto-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.otomoto-meta-line {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.otomoto-price-wrap {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--text-main);
}

.otomoto-price { font-size: 22px; font-weight: 800; }
.otomoto-currency { font-size: 14px; font-weight: 600; color: var(--text-muted); }

/* --- B2B Section --- */
.b2b-utility-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 60px 80px;
    margin: 100px 0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.04);
}

.b2b-grid-practical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.b2b-content-practical h2 {
    font-size: 32px;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 800;
}
.b2b-content-practical p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.features-practical { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.feature-item-practical {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.feature-item-practical:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.feature-item-practical h4 { font-size: 14px; font-weight: 700; margin: 12px 0 6px; color: #1e293b; }
.feature-item-practical p { font-size: 13px; color: #64748b; line-height: 1.5; }

.btn-submit-utility {
    background: #EBF2FA;
    color: #003785;
    padding: 20px 48px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 55, 133, 0.1);
}

.btn-submit-utility:hover {
    background: #003785;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 55, 133, 0.2);
}

/* --- Quick Index Section (Organized Rows) --- */
.quick-index-section {
    padding: 80px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

.index-row {
    margin-bottom: 24px;
}

.index-row h4 {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: normal;
}

.index-link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.index-link-group a {
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    line-height: 1.6;
    border-bottom: 1px solid transparent;
}

.index-link-group a:hover {
    color: #003785;
    border-bottom-color: #003785;
}

/* --- Mega Professional Responsive Scaling --- */

@media (max-width: 1400px) {
    .container-hero-custom { padding: 0 20px; }
    .hero-wrapper-new { padding: 50px 60px; }
    .hero-title-practical { font-size: 42px; }
}

@media (max-width: 1200px) {
    .hero-search-right { width: 340px; }
    .hero-title-practical { font-size: 38px; }
    .hero-subtitle { font-size: 22px; }
    .hero-content-left { max-width: 55vw; }
}

@media (max-width: 991px) {
    /* Layout shift: Hero content stacks */
    .hero-wrapper-new {
        flex-direction: column;
        padding: 40px 30px;
        min-height: auto;
        gap: 40px;
        background-position: top center;
    }

    .hero-content-left {
        max-width: 100%;
        min-height: auto;
        padding-top: 0;
        text-align: center;
    }



    .hero-text-bottom {
        margin-top: 20px;
    }

    .hero-title-practical {
        font-size: 34px;
        margin-bottom: 10px;
    }

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

    .hero-search-right {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .search-box-utility {
        margin-top: -20px;
    }

    /* Grids */
    .otomoto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-header-sync {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-header-sync h2 { font-size: 24px; }
    
    .featured-offers-section,
    .why-rentuj-section,
    .car-types-section,
    .partners-section {
        padding: 60px 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-wrapper-new {
        padding: 30px 20px;
        border-radius: 0; /* Full width edge to edge on mobile looks more professional */
    }

    .container-hero-custom { padding: 0; }
    
    .hero-utility { padding: 0; }

    .hero-title-practical { font-size: 28px; }
    
    .b2b-grid-practical { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }

    .b2b-utility-section { padding: 30px 20px; }
    
    .category-card { height: 160px; }
}

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

    .hero-title-practical { font-size: 24px; }
    
    .hero-main-btn {
        width: 100%;
        text-align: center;
    }

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

/* Duplication fix: Ensure mobile-only elements are NEVER visible on desktop */
.header-mobile-actions,
.mobile-nav-header,
.mobile-nav-footer {
    display: none !important;
}

@media (max-width: 991px) {
    .header-mobile-actions {
        display: flex !important;
    }
    /* Note: .mobile-nav-header and footer are controlled via .nav-utility-new.active display in header-footer.css */
}
