/**
 * DP API Omnetic - Vehicle Detail Styles
 * Version: 3.0.0 beta1 - REDESIGN: Varianta A (Sauto/Mobile.de style)
 */

/* ============================================================================
   SEKCE 1: CSS Variables - BRAND COLORS
   ========================================================================== */
:root {
    --brand-yellow: #FDC300;
    --brand-black: #191919;
    --brand-gray: #B5B5B5;
    --brand-white: #FFFFFF;
    
    --dpapi-shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --dpapi-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --dpapi-shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    --dpapi-radius-sm: 6px;
    --dpapi-radius-md: 8px;
    --dpapi-radius-lg: 12px;
    
    --dpapi-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   SEKCE 2: Base Styles - Základní styly
   ========================================================================== */
.dpapi-vehicle-detail-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ============================================================================
   SEKCE 3: Breadcrumbs - Navigační drobečková navigace
   ========================================================================== */
.dpapi-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-gray);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dpapi-breadcrumbs a {
    color: var(--brand-yellow);
    text-decoration: none;
    transition: var(--dpapi-transition);
}

.dpapi-breadcrumbs a:hover {
    text-decoration: underline;
}

.dpapi-breadcrumb-sep {
    color: var(--brand-gray);
}

.dpapi-breadcrumb-current {
    color: #1a1a1a;
    font-weight: 500;
}

/* ============================================================================
   SEKCE 4: HERO SECTION - Galerie + Název + Cena (OPRAVENO v3.0.1)
   ========================================================================== */
.dpapi-hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .dpapi-hero-section {
        grid-template-columns: 1fr;
    }
}

/* Hero Gallery */
.dpapi-hero-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* DŮLEŽITÉ: Zabrání přetečení */
}

.dpapi-hero-gallery-main-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;        /* ← ZMĚNA z 16/9 na 3/2 */
    max-height: 700px;          /* ← Zvýšeno z 600px */
    background: #f5f5f5;
    border-radius: var(--dpapi-radius-lg);
    overflow: hidden;
    box-shadow: var(--dpapi-shadow-md);
}

.dpapi-hero-gallery-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    cursor: zoom-in;
    transition: var(--dpapi-transition);
}

.dpapi-hero-gallery-main:hover {
    opacity: 0.95;
}

/* Hero Gallery Counter - Desktop */
.dpapi-hero-gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(25, 25, 25, 0.85);
    color: var(--brand-white);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}


/* Hero Gallery Counter - MOBIL (kompaktnější) */
@media (max-width: 768px) {
    .dpapi-hero-gallery-counter {
        bottom: 8px;           /* ← Blíže ke spodnímu okraji */
        left: 8px;             /* ← Blíže k levému okraji */
        padding: 6px 12px;     /* ← Menší vnitřní padding */
        font-size: 12px;       /* ← Menší písmo */
        border-radius: 20px;   /* ← Menší zaoblení */
    }
}

/* Hero Gallery Thumbnails - Horizontální scroll - OPRAVENO */
.dpapi-hero-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-yellow) #f1f1f1;
    padding-bottom: 10px;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap; /* DŮLEŽITÉ: Zabrání zalamování */
}

.dpapi-hero-gallery-thumbs::-webkit-scrollbar {
    height: 8px;
}

.dpapi-hero-gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dpapi-hero-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--brand-yellow);
    border-radius: 10px;
}

.dpapi-hero-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: var(--brand-black);
}

.dpapi-hero-gallery-thumb-wrapper {
    position: relative;
    flex: 0 0 120px; /* DŮLEŽITÉ: flex-shrink: 0 */
    width: 120px;
    height: 80px;
    border-radius: var(--dpapi-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--dpapi-transition);
    box-shadow: var(--dpapi-shadow-sm);
    scroll-snap-align: start;
}

.dpapi-hero-gallery-thumb-wrapper:hover {
    border-color: var(--brand-yellow);
    transform: scale(1.05);
    box-shadow: var(--dpapi-shadow-md);
}

.dpapi-hero-gallery-thumb-wrapper.active {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(253, 195, 0, 0.3);
}

.dpapi-hero-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Info - Název + Cena + Akce */
.dpapi-hero-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dpapi-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.dpapi-hero-subtitle {
    font-size: 18px;
    color: var(--brand-gray);
    margin-top: -10px;
}

.dpapi-hero-price {
    background: linear-gradient(135deg, #fff9e6 0%, #fff4cc 100%);
    border: 2px solid var(--brand-yellow);
    border-radius: var(--dpapi-radius-lg);
    padding: 25px;
    text-align: center;
}

.dpapi-hero-price-main {
    font-size: 36px;
    font-weight: 700;
    color: var(--brand-black);
    margin-bottom: 5px;
}

.dpapi-hero-price-sub {
    font-size: 18px;
    color: var(--brand-gray);
}

.dpapi-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 1024px) {
    .dpapi-hero-title {
        font-size: 28px;
    }
    
    .dpapi-hero-price-main {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .dpapi-hero-gallery-thumb-wrapper {
        flex: 0 0 100px;
        width: 100px;
        height: 70px;
    }
}


/* ============================================================================
   SEKCE 5: RYCHLÉ PARAMETRY - 6 nejdůležitějších (NOVÉ v3.0.0)
   ========================================================================== */
.dpapi-quick-params {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    padding: 30px;
    border-radius: var(--dpapi-radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--dpapi-shadow-sm);
}

@media (max-width: 1024px) {
    .dpapi-quick-params {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .dpapi-quick-params {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }
}

.dpapi-quick-param {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.dpapi-quick-param-icon {
    font-size: 32px;
    filter: grayscale(20%);
}

.dpapi-quick-param-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.dpapi-quick-param-label {
    font-size: 12px;
    color: var(--brand-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   SEKCE 6: Sticky Price Bar - Plovoucí lišta s cenou
   ========================================================================== */
.dpapi-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--brand-black);
    box-shadow: var(--dpapi-shadow-md);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.dpapi-sticky-bar.visible {
    transform: translateY(0);
}

/* Vypnout sticky bar na mobilu */
@media (max-width: 768px) {
    .dpapi-sticky-bar {
        display: none !important;
    }
}

.dpapi-sticky-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dpapi-sticky-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-white);
}

.dpapi-sticky-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-yellow);
}

.dpapi-sticky-right {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .dpapi-sticky-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dpapi-sticky-right {
        width: 100%;
    }
    
    .dpapi-sticky-right .dpapi-btn {
        width: 100%;
    }
}

/* ============================================================================
   SEKCE 7: Content Grid - Dvousloupcový layout (hlavní obsah + sidebar)
   ========================================================================== */
.dpapi-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .dpapi-content-grid {
        grid-template-columns: 1fr;
    }
    
    .dpapi-sidebar-column {
        order: -1;
    }
}

/* ============================================================================
   SEKCE 8: PARAMS - Nový styl parametrů (PŘEPRACOVÁNO v3.0.0)
   ========================================================================== */
.dpapi-params-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dpapi-params-section {
    background: var(--brand-white);
    border-radius: var(--dpapi-radius-lg);
    padding: 30px;
    box-shadow: var(--dpapi-shadow-sm);
    transition: var(--dpapi-transition);
}

.dpapi-params-section:hover {
    box-shadow: var(--dpapi-shadow-md);
}

.dpapi-params-highlight {
    background: linear-gradient(135deg, #fff9e6 0%, #fff4cc 100%);
    border: 2px solid var(--brand-yellow);
}

.dpapi-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Params List - Nový styl (tabulkový) */
.dpapi-params-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dpapi-param-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dpapi-param-row:last-child {
    border-bottom: none;
}

.dpapi-param-row-full {
    grid-template-columns: 1fr;
}

.dpapi-param-row-full .dpapi-param-label {
    margin-bottom: 5px;
}

.dpapi-param-label {
    font-size: 14px;
    color: var(--brand-gray);
    font-weight: 500;
}

.dpapi-param-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    word-break: break-word;
}

.dpapi-param-row-full .dpapi-param-value {
    font-size: 14px;
    font-family: monospace;
    word-break: break-all;
}

@media (max-width: 768px) {
    .dpapi-param-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* ============================================================================
   SEKCE 9: Features - Výbava vozidla
   ========================================================================== */
.dpapi-features-section {
    background: var(--brand-white);
    border-radius: var(--dpapi-radius-lg);
    padding: 30px;
    box-shadow: var(--dpapi-shadow-sm);
    margin-top: 30px;
}

.dpapi-features-category {
    margin-bottom: 30px;
}

.dpapi-features-category:last-child {
    margin-bottom: 0;
}

.dpapi-features-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.dpapi-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 1024px) {
    .dpapi-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dpapi-features-grid {
        grid-template-columns: 1fr;
    }
}

.dpapi-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: var(--dpapi-radius-sm);
    font-size: 14px;
    transition: var(--dpapi-transition);
}

.dpapi-feature-item:hover {
    background: #fff9e6;
    transform: translateX(5px);
}

.dpapi-feature-check {
    color: var(--brand-yellow);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.dpapi-feature-name {
    flex: 1;
    color: #333;
}

/* ============================================================================
   SEKCE 10: Description - Popis vozidla
   ========================================================================== */
.dpapi-description-section {
    background: var(--brand-white);
    border-radius: var(--dpapi-radius-lg);
    padding: 30px;
    box-shadow: var(--dpapi-shadow-sm);
    margin-top: 30px;
}

.dpapi-description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* ============================================================================
   SEKCE 11: Sidebar - Price Box
   ========================================================================== */
.dpapi-sidebar-sticky {
    position: relative;
    top: 0;
    transition: var(--dpapi-transition);
}

@media (min-width: 1025px) {
    .dpapi-sidebar-sticky {
        position: sticky;
        top: 120px;
    }
}

.dpapi-price-box {
    background: var(--brand-black);
    color: var(--brand-white);
    border-radius: var(--dpapi-radius-lg);
    padding: 30px;
    box-shadow: var(--dpapi-shadow-lg);
    margin-bottom: 20px;
}

.dpapi-price-label {
    font-size: 14px;
    color: var(--brand-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dpapi-price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-yellow);
    margin-bottom: 10px;
    line-height: 1;
}

.dpapi-price-without {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-white);
    margin-bottom: 25px;
}

.dpapi-price-no-deduct {
    font-size: 14px;
    color: var(--brand-gray);
    margin-bottom: 25px;
    font-style: italic;
}

.dpapi-contact-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.dpapi-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dpapi-contact-item:last-child {
    margin-bottom: 0;
}

.dpapi-contact-icon {
    font-size: 20px;
}

.dpapi-contact-item a {
    color: var(--brand-white);
    text-decoration: none;
    transition: var(--dpapi-transition);
}

.dpapi-contact-item a:hover {
    color: var(--brand-yellow);
}

/* ============================================================================
   SEKCE 12: Share Box - Sdílení na sociálních sítích
   ========================================================================== */
.dpapi-share-box {
    background: var(--brand-white);
    border-radius: var(--dpapi-radius-lg);
    padding: 25px;
    box-shadow: var(--dpapi-shadow-sm);
    margin-bottom: 20px;
}

.dpapi-share-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.dpapi-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.dpapi-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: var(--dpapi-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dpapi-transition);
}

.dpapi-share-btn svg {
    width: 18px;
    height: 18px;
}

.dpapi-share-facebook {
    background: #1877f2;
    color: white;
}

.dpapi-share-facebook:hover {
    background: #145dbf;
}

.dpapi-share-whatsapp {
    background: #25d366;
    color: white;
}

.dpapi-share-whatsapp:hover {
    background: #1da851;
}

.dpapi-share-email {
    background: #ea4335;
    color: white;
}

.dpapi-share-email:hover {
    background: #c5221f;
}

.dpapi-share-copy {
    background: #f9f9f9;
    color: #1a1a1a;
}

.dpapi-share-copy:hover {
    background: #f0f0f0;
}

/* ============================================================================
   SEKCE 13: Buttons - Tlačítka
   ========================================================================== */
.dpapi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--dpapi-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dpapi-transition);
    text-decoration: none;
    white-space: nowrap;
}

.dpapi-btn-primary {
    background: var(--brand-yellow);
    color: var(--brand-black);
}

.dpapi-btn-primary:hover {
    background: var(--brand-yellow);
    color: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: var(--dpapi-shadow-md);
}

.dpapi-btn-secondary {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #1a1a1a !important;
}

.dpapi-btn-secondary:hover {
    background: #333333 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

.dpapi-btn-outline {
    background: transparent;
    color: var(--brand-white);
    border: 2px solid var(--brand-white);
}

.dpapi-btn-outline:hover {
    background: var(--brand-white);
    color: var(--brand-black);
}

.dpapi-btn-block {
    width: 100%;
}

.dpapi-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ============================================================================
   SEKCE 14: Modal - Modální okno (kontaktní formulář)
   ========================================================================== */
.dpapi-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dpapi-modal.active {
    display: flex;
}

.dpapi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.dpapi-modal-content {
    position: relative;
    background: white;
    border-radius: var(--dpapi-radius-lg);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--dpapi-shadow-lg);
}

.dpapi-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e8e8e8;
    color: #1a1a1a;
    -webkit-text-fill-color: #1a1a1a;
    font-weight: 700;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: var(--dpapi-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

.dpapi-modal-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.dpapi-modal h2 {
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.dpapi-modal-subtitle {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* ============================================================================
   SEKCE 15: Contact Form - Kontaktní formulář
   ========================================================================== */
.dpapi-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dpapi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 640px) {
    .dpapi-form-row {
        grid-template-columns: 1fr;
    }
}

.dpapi-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dpapi-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.dpapi-form-group input,
.dpapi-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--dpapi-radius-sm);
    font-size: 16px;
    transition: var(--dpapi-transition);
    font-family: inherit;
}

.dpapi-form-group input:focus,
.dpapi-form-group textarea:focus {
    outline: none;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(253, 195, 0, 0.1);
}

.dpapi-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.dpapi-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.dpapi-form-message {
    padding: 15px;
    border-radius: var(--dpapi-radius-sm);
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

.dpapi-form-success {
    background: #e8f5e9;
    color: #4caf50;
}

.dpapi-form-error {
    background: #ffebee;
    color: #e74c3c;
}

.dpapi-form-loading {
    background: #f9f9f9;
    color: var(--brand-gray);
}

/* ============================================================================
   Tlačítko Odeslat poptávku - pevná barva #e5b000
   ============================================================================ */
.dpapi-contact-form .dpapi-btn-primary,
.dpapi-contact-form .dpapi-btn-primary:visited {
    background: #e5b000 !important;
    color: #1a1a1a !important;
    border-color: #e5b000 !important;
    font-weight: 700 !important;
}

.dpapi-contact-form .dpapi-btn-primary:hover,
.dpapi-contact-form .dpapi-btn-primary:focus {
    background: #cc9e00 !important;
    color: #1a1a1a !important;
    border-color: #cc9e00 !important;
}

.dpapi-contact-form .dpapi-btn-primary:active {
    background: #b38a00 !important;
    color: #1a1a1a !important;
}

/* Sladit barvy formuláře - focus border */
.dpapi-modal-content .dpapi-form-group input:focus,
.dpapi-modal-content .dpapi-form-group textarea:focus {
    border-color: #e5b000 !important;
    box-shadow: 0 0 0 3px rgba(229, 176, 0, 0.15) !important;
}

/* Checkbox focus */
.dpapi-modal-content .dpapi-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid #e5b000 !important;
}

/* ============================================================================
   SEKCE 16: Lightbox - Fullscreen prohlížeč obrázků
   ========================================================================== */
.dpapi-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: dpapi-lightbox-fade-in 0.3s ease;
}

.dpapi-lightbox.active {
    display: flex;
}

@keyframes dpapi-lightbox-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dpapi-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: dpapi-lightbox-zoom-in 0.3s ease;
    transition: transform 0.3s ease;
}

@keyframes dpapi-lightbox-zoom-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dpapi-lightbox-image:hover {
    cursor: zoom-in;
}

.dpapi-lightbox-image.zoomed {
    transform: scale(1.5) !important;
    cursor: zoom-out;
}

.dpapi-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: var(--dpapi-transition);
    backdrop-filter: blur(10px);
    display: flex;              /* ← PŘIDÁNO */
    align-items: center;        /* ← PŘIDÁNO */
    justify-content: center;    /* ← PŘIDÁNO */
    line-height: 1;             /* ← PŘIDÁNO */
}

.dpapi-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.dpapi-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--dpapi-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.dpapi-lightbox-nav svg {
    width: 30px;
    height: 30px;
}

.dpapi-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.dpapi-lightbox-prev {
    left: 40px;
}

.dpapi-lightbox-next {
    right: 40px;
}

.dpapi-lightbox-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}


/* ============================================================================
   Lightbox - Mobilní layout (počítadlo vlevo, šipky vpravo dole)
   ========================================================================== */

@media (max-width: 768px) {
    /* Počítadlo vlevo dole */
    .dpapi-lightbox-counter {
        position: absolute;
        left: 20px;
        right: auto;
        bottom: 20px;
        transform: none;
        font-size: 14px;
        background: rgba(0, 0, 0, 0.7);
        padding: 8px 12px;
        border-radius: 20px;
        z-index: 1001;
    }
    
    /* Šipky vpravo dole (vedle sebe) - BEZ ANIMACE */
    .dpapi-lightbox-prev,
    .dpapi-lightbox-next {
        position: absolute;
        top: auto !important;
        left: auto !important;
        bottom: 20px !important;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        transform: none !important;
        transition: none !important; /* ← VYPNOUT ANIMACI */
        z-index: 1002;
    }
    
    /* Šipka VLEVO (←) - vpravo dole, vedle šipky → */
    .dpapi-lightbox-prev {
        right: 80px !important; /* 80px od pravého kraje */
        left: auto !important;
    }
    
    /* Šipka VPRAVO (→) - úplně vpravo dole */
    .dpapi-lightbox-next {
        right: 20px !important; /* 20px od pravého kraje */
        left: auto !important;
    }
    
    /* Zvětšit ikony šipek */
    .dpapi-lightbox-prev svg,
    .dpapi-lightbox-next svg {
        width: 24px;
        height: 24px;
    }
    
    /* Odstranit hover efekty na mobilu */
    .dpapi-lightbox-prev:hover,
    .dpapi-lightbox-next:hover {
        transform: none !important;
        background: rgba(0, 0, 0, 0.8);
    }
}



/* ============================================================================
   SEKCE 17: Skeleton Loader - Načítací placeholder
   ========================================================================== */
.dpapi-skeleton-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dpapi-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: dpapi-skeleton-loading 1.5s infinite;
    border-radius: var(--dpapi-radius-md);
}

@keyframes dpapi-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.dpapi-skeleton-breadcrumbs {
    height: 20px;
    width: 300px;
    margin-bottom: 30px;
}

.dpapi-skeleton-hero {
    height: 500px;
    width: 100%;
    margin-bottom: 30px;
}

.dpapi-skeleton-quick-params {
    height: 120px;
    width: 100%;
    margin-bottom: 40px;
}

.dpapi-skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.dpapi-skeleton-section {
    height: 300px;
    margin-bottom: 20px;
}

.dpapi-skeleton-sidebar {
    height: 400px;
}

@media (max-width: 1024px) {
    .dpapi-skeleton-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   SEKCE 18: Error State - Chybový stav
   ========================================================================== */
.dpapi-error-wrapper {
    text-align: center;
    padding: 80px 20px;
}

.dpapi-error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.dpapi-error-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.dpapi-error-text {
    font-size: 16px;
    color: var(--brand-gray);
    margin-bottom: 30px;
}

/* ============================================================================
   SEKCE 19: Responsive - MOBIL (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .dpapi-hero-gallery-thumb-wrapper {
        flex: 0 0 100px;
        height: 70px;
    }
    
    .dpapi-lightbox-nav {
        width: 50px;
        height: 50px;
    }
    
    .dpapi-lightbox-prev {
        left: 20px;
    }
    
    .dpapi-lightbox-next {
        right: 20px;
    }
    
    .dpapi-modal-content {
        padding: 30px 20px;
    }
}

/* ============================================================================
   SEKCE 20: Print Styles - Styly pro tisk
   ========================================================================== */
@media print {
    .dpapi-sticky-bar,
    .dpapi-hero-gallery-counter,
    .dpapi-share-box,
    .dpapi-btn {
        display: none !important;
    }
}

/* ============================================================================
   SEKCE 21: Smooth Animations & Transitions (v3.0.0)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

.dpapi-params-section,
.dpapi-features-section,
.dpapi-description-section {
    animation: dpapi-fade-in-up 0.5s ease forwards;
}

@keyframes dpapi-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dpapi-params-section:nth-child(2) {
    animation-delay: 0.1s;
}

.dpapi-params-section:nth-child(3) {
    animation-delay: 0.2s;
}

.dpapi-params-section:nth-child(4) {
    animation-delay: 0.3s;
}


/* ============================================================================
   Odkaz na CEBIA u VIN
   ========================================================================== */

.dpapi-cebia-link {
    color: #01215A;  /* Tmavě modrá CEBIA */
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    white-space: nowrap;
}

.dpapi-cebia-link:hover {
    color: #023A8F;  /* Světlejší modrá při hoveru */
    text-decoration: underline;
}

.dpapi-cebia-link:visited {
    color: #01215A;  /* Zachovat modrou i po kliknutí */
}

/* Responzivita - menší na mobilu */
@media (max-width: 768px) {
    .dpapi-cebia-link {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        font-size: 14px;
    }
}

/* ============================================================================
   Oprava růžové barvy po kliknutí na tlačítka
   ========================================================================== */

/* Odstranit výchozí focus barvu prohlížeče */
.dpapi-btn:focus,
.dpapi-btn:active,
.dpapi-btn-primary:focus,
.dpapi-btn-primary:active,
.dpapi-btn-secondary:focus,
.dpapi-btn-secondary:active,
button:focus,
button:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Vlastní focus styl pro přístupnost (žlutý outline) */
.dpapi-btn:focus-visible,
.dpapi-btn-primary:focus-visible {
    outline: 3px solid #ECB600 !important;
    outline-offset: 2px !important;
}

.dpapi-btn-secondary:focus-visible {
    outline: 3px solid #191919 !important;
    outline-offset: 2px !important;
}

/* Odstranit růžovou barvu z WordPress výchozích stylů */
.dpapi-btn::-moz-focus-inner,
button::-moz-focus-inner {
    border: 0 !important;
}

/* Specificky pro tlačítko Kontaktovat */
.dpapi-btn-primary:active,
.dpapi-btn-primary:focus {
    background: #FDC300 !important; /* Světlejší žlutá při kliknutí */
    border-color: #FDC300 !important;
    color: #191919 !important;
}

/* ============================================================================
   NUKLEÁRNÍ ŘEŠENÍ - Odstranit VŠECHNY růžové barvy
   ========================================================================== */

* {
    /* Odstranit všechny možné růžové barvy */
    --wp-admin-theme-color: #ECB600 !important;
    --wp-admin-theme-color-darker-10: #d4a300 !important;
    --wp-admin-theme-color-darker-20: #bc9000 !important;
}

/* Odstranit růžovou z outline */
*:focus {
    outline-color: #ECB600 !important;
}

*:active {
    outline-color: transparent !important;
}

/* Odstranit růžovou z border */
*:focus,
*:active {
    border-color: inherit !important;
}

/* Odstranit růžovou z background */
button:focus, 
button:active,
a:focus,
a:active {
    background-color: inherit !important;
}

/* Specificky pro WordPress admin bar (pokud je viditelný) */
#wpadminbar * {
    color: inherit !important;
}


/* ============================================================================
   Skrytí sticky-bar na mobilu i PC
   ========================================================================== */

.dpapi-sticky-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Skrýt i když má třídu "visible" */
.dpapi-sticky-bar.visible {
    display: none !important;
}

/* Skrýt všechny sticky bary */
[class*="sticky-bar"] {
    display: none !important;
}


/* ========================================
   HYBRIDNÍ REŽIM - SSR STYLY
   Verze: 3.9.1 beta01
   ======================================== */

/* Hlavička vozidla */
.vehicle-header-section {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #007bff;
}

.vehicle-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.vehicle-main-title .title-extension {
    font-size: 24px;
    color: #666;
    font-weight: 400;
    display: block;
    margin-top: 5px;
}

.vehicle-meta-info {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.vehicle-id {
    color: #666;
    font-size: 14px;
}

/* Cenový box */
.vehicle-price-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.price-main {
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

.price-without-vat {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.vat-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #28a745;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Sekce */
.vehicle-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* Popis */
.vehicle-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Parametry grid */
.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.param-group h3 {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* Tabulka parametrů */
.params-table {
    width: 100%;
    border-collapse: collapse;
}

.params-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.params-table tbody tr:last-child {
    border-bottom: none;
}

.params-table td {
    padding: 12px 8px;
    font-size: 15px;
}

.params-table td:first-child {
    color: #666;
    width: 50%;
}

.params-table td:last-child {
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* Responzivita */
@media (max-width: 768px) {
    .vehicle-main-title {
        font-size: 24px;
    }
    
    .vehicle-main-title .title-extension {
        font-size: 18px;
    }
    
    .price-main {
        font-size: 28px;
    }
    
    .vehicle-price-box {
        margin-top: 20px;
    }
    
    .params-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-section {
        padding: 20px;
    }
}

/* Loading state (skryje se po načtení JS) */
.vehicle-js-enhanced[style*="display:none"] ~ .loading-spinner {
    display: none;
}

/* ============================================================================
   Tlačítko Zpět na seznam
   ============================================================================ */
.dpapi-btn-back {
    background: #f2f2f2 !important;
    color: #1a1a1a !important;
    border: 1px solid #ddd !important;
    font-weight: 500 !important;
    transition: background 0.2s ease !important;
}

.dpapi-btn-back:hover {
    background: #e4e4e4 !important;
    color: #1a1a1a !important;
    border-color: #bbb !important;
    transform: translateY(-1px) !important;
}

/* ============================================================================
   Poznámka k ceně (priceNote)
   ============================================================================ */

/* Desktop - zobrazí se pod cenou */
.dpapi-price-note {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.dpapi-price-note-label {
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}

.dpapi-price-note-text {
    color: #777;
}

@media (max-width: 768px) {
    .dpapi-price-note {
        font-size: 11px;
        margin-top: 5px;
        color: #888;
    }
}

/* ── Modal nadpis poptávkového formuláře ─────────────────────────────────── */
.dpapi-modal-title-main {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 6px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .dpapi-modal-title-main {
        font-size: 16px;
    }
}

/* Select pole ve formuláři */
.dpapi-contact-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: #1a1a1a;
    appearance: auto;
}
.dpapi-contact-form select:focus {
    border-color: #e5b000;
    outline: none;
}
