        /* ==========================================================================
           1. GLOBÁLNÍ TMÁVÉ STYLY & RESET
           ========================================================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        body {
            background-color: #071b11; /* Temně luxusní zelená */
            color: #ffffff;
            padding-bottom: 60px;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* ==========================================================================
           2. HLAVIČKA STRÁNKY (Úvodní nadpis)
           ========================================================================== */
        .marketplace-hero {
            width: 100%;
            max-width: 1300px;
            margin: 0 auto;
            padding: 60px 20px 30px 20px;
            text-align: center;
        }

        .marketplace-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 3.5rem;
            color: #ffffff;
            margin-bottom: 10px;
        }

        .marketplace-hero p {
            color: #a3b8ac;
            font-size: 1.1rem;
        }

        /* ==========================================================================
           3. TOP BAR (Vyhledávání a řazení podle image_26bf34.png)
           ========================================================================== */
        .marketplace-topbar {
            width: 100%;
            max-width: 1300px;
            margin: 0 auto 30px auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .search-box {
            position: relative;
            flex: 1;
            max-width: 400px;
        }

        .search-box input {
            width: 100%;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 14px 24px 14px 50px;
            border-radius: 30px;
            color: #ffffff;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.3s;
        }

        .search-box input:focus {
            border-color: #ff5e14;
        }

        .search-box svg {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #627a6d;
            width: 18px;
            height: 18px;
        }

        .topbar-right {
            display: flex;
            align-items: center;
            gap: 20px;
            color: #a3b8ac;
            font-size: 0.9rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .sort-select {
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #ffffff;
            padding: 10px 20px;
            border-radius: 20px;
            outline: none;
            cursor: pointer;
            font-weight: 600;
            min-width: 180px;
            max-width: 100%;
        }

        /* ==========================================================================
           4. HLAVNÍ LAYOUT (Boční filtry + Grid nabídek)
           ========================================================================== */
        .marketplace-layout {
            width: 100%;
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 40px;
        }

        /* --- BOČNÍ FILTRY --- */
        .filters-sidebar {
            display: flex;
            flex-direction: column;
            gap: 35px;
        }

        .filter-section {
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding-bottom: 25px;
        }

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

        .filter-section h3 {
            font-size: 1.1rem;
            color: #ffffff;
            margin-bottom: 18px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        /* Seznamy s checkboxem */
        .filter-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .filter-checkbox-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #a3b8ac;
            font-size: 0.92rem;
            cursor: pointer;
            transition: color 0.2s;
        }

        .filter-checkbox-label:hover {
            color: #ffffff;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .checkbox-container input {
            accent-color: #ff5e14;
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .item-count {
            font-size: 0.8rem;
            background-color: rgba(255, 255, 255, 0.05);
            padding: 2px 8px;
            border-radius: 10px;
            color: #627a6d;
        }

        /* Cenový rozsah */
        .price-inputs {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .price-inputs input {
            width: 100%;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #ffffff;
            padding: 10px 14px;
            border-radius: 12px;
            outline: none;
            font-size: 0.9rem;
        }

        /* Tagy / Obyčejná tlačítka filtrů */
        .tags-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag-btn {
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #a3b8ac;
            padding: 8px 14px;
            border-radius: 15px;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-sizing: border-box;
        }

        .tag-btn:hover, .tag-btn.active {
            background-color: #ff5e14;
            color: #ffffff;
            border-color: #ff5e14;
        }

        /* Reset filtru tlačítko */
        .btn-reset-filters {
            width: 100%;
            background-color: transparent;
            border: 1px dashed rgba(255, 255, 255, 0.2);
            color: #ffffff;
            padding: 12px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-reset-filters:hover {
            border-color: #ff5e14;
            color: #ff5e14;
        }


        /* ==========================================================================
           5. GRID S NABÍDKAMI (Výrazně zaoblené prémiové karty)
           ========================================================================== */
        .offers-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }

        .offer-card {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 32px; /* Pořádné zaoblení z konceptu */
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
        }

        .offer-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
            border-color: rgba(255, 255, 255, 0.1);
        }

        /* Obrázek nabídky */
        .card-image-wrap {
            width: 100%;
            height: 260px;
            position: relative;
            overflow: hidden;
            background-color: rgba(0,0,0,0.1);
            display: block;
        }

        .card-image-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .offer-card:hover .card-image-wrap img {
            transform: scale(1.04);
        }

        /* Badges / Štítky přes obrázek */
        .card-badges {
            position: absolute;
            top: 15px;
            left: 15px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .badge-type {
            background-color: #ff5e14; /* Oranžová pro typ prodeje/swapu */
            color: #ffffff;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-form {
            background-color: rgba(13, 46, 29, 0.85);
            color: #ffffff;
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(5px);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.72rem;
            font-weight: 600;
        }

        .badge-location {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            color: #ffffff;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        /* Obsah karty */
        .card-body {
            padding: 22px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .user-line {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            color: #627a6d;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .verified-tick {
            color: #ff5e14;
            font-weight: bold;
        }

        .card-body h2 {
            font-size: 1.15rem;
            font-weight: 700;
            color: #ffffff;
            line-height: 1.4;
            margin-bottom: 8px;
        }

        .card-meta-tags {
            display: flex;
            gap: 6px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .meta-tag {
            font-size: 0.75rem;
            background-color: rgba(255, 255, 255, 0.04);
            color: #a3b8ac;
            padding: 2px 8px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.04);
        }

        /* Spodní řádek karty s cenou a akcí */
        .card-footer {
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 15px;
        }

        .price-box {
            display: flex;
            flex-direction: column;
        }

        .price-label {
            font-size: 0.75rem;
            color: #627a6d;
            text-transform: uppercase;
        }

        .price-value {
            font-size: 1.2rem;
            font-weight: 700;
            color: #ffffff;
        }

        .price-value.swap {
            color: #ff5e14;
        }

        .btn-action {
            background-color: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #ffffff;
            padding: 8px 16px;
            border-radius: 18px;
            font-size: 0.85rem;
            font-weight: 700;
            transition: all 0.2s;
            cursor: pointer;
        }

        .btn-action:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .offer-card:hover .btn-action:not(:disabled) {
            background-color: #ff5e14;
            border-color: #ff5e14;
            color: #ffffff;
        }

        /* Stránkování / Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 50px;
        }

        .page-num {
            width: 42px;
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 50%;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            color: #a3b8ac;
            transition: all 0.2s;
        }

        .page-num.active, .page-num:hover {
            background-color: #ff5e14;
            color: #ffffff;
            border-color: #ff5e14;
        }

        /* ==========================================================================
           6. RESPONSIVE DESIGN
           ========================================================================== */
        @media (max-width: 1100px) {
            .marketplace-layout { grid-template-columns: 1fr; }
            .filters-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
        }

        @media (max-width: 820px) {
            .offers-grid { grid-template-columns: repeat(2, 1fr); }
            .filters-sidebar { grid-template-columns: 1fr; }
        }

        @media (max-width: 550px) {
            .offers-grid { grid-template-columns: 1fr; }
            .marketplace-hero h1 { font-size: 2.4rem; }
        }

.listing-detail-layout {
    grid-template-columns: 1fr;
}

.listing-detail-container {
    width: 100%;
}

.listing-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
}

.listing-gallery {
    display: grid;
    gap: 16px;
}

.listing-gallery img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    max-height: 520px;
}

.listing-main h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.listing-location {
    color: #a3b8ac;
    margin-bottom: 16px;
}

.listing-description {
    color: #d7e3db;
    line-height: 1.7;
    margin: 20px 0;
}

.listing-price-box {
    margin: 24px 0;
}

.listing-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.listing-actions .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
}

@media (max-width: 820px) {
    .listing-detail-grid {
        grid-template-columns: 1fr;
    }

    .global-auth-bar-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo auth"
            "nav nav";
    }

    .global-auth-logo {
        grid-area: logo;
    }

    .global-auth-links {
        grid-area: nav;
        justify-content: flex-start;
        padding-top: 4px;
    }

    .auth-zone {
        grid-area: auth;
    }
}

.offer-card {
    position: relative;
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(7, 27, 17, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wishlist-btn svg { width: 18px; height: 18px; }
.wishlist-btn.is-active { color: #ff5e14; }

.gs-state {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
}

.gs-state-loading,
.gs-state-empty {
    background: rgba(255, 255, 255, 0.04);
    color: #a3b8ac;
}

.gs-state-error {
    background: rgba(255, 94, 20, 0.12);
    color: #ffb08a;
}

.global-auth-bar {
    background: rgba(7, 27, 17, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.global-auth-bar-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 24px;
}

.global-auth-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.global-auth-links a {
    color: #a3b8ac;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.global-auth-links a:hover {
    color: #fff;
}

.global-auth-logo {
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.global-auth-logo span {
    color: #ff5e14;
}

.nav-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff5e14;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    margin-left: 4px;
}

.global-auth-links .nav-link-disabled {
    color: #627a6d;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.7;
}

.listing-form-container {
    max-width: 760px;
    margin: 0 auto;
}

.listing-form label {
    display: block;
    margin: 14px 0 6px;
    color: #a3b8ac;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-form input,
.listing-form textarea,
.listing-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
}

.listing-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.image-preview-item {
    display: inline-block;
    margin: 8px 8px 0 0;
    text-align: center;
}

.image-preview-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.form-help {
    color: #627a6d;
    font-size: 0.85rem;
    margin-top: 8px;
}

.auth-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auth-user-label {
    color: #a3b8ac;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-zone .btn-primary,
.auth-zone .btn-secondary,
.global-auth-bar .btn-primary,
.global-auth-bar .btn-secondary {
    border: none;
    padding: 8px 14px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.auth-zone .btn-primary,
.global-auth-bar .btn-primary {
    background: #ff5e14;
    color: #fff;
}

.auth-zone .btn-secondary,
.global-auth-bar .btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}
