/* ==========================================================================
   LISTINGS PAGE – Full sahibinden.com reference design
   Category grid + mini-card grid + search hero + promo banner
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Nunito+Sans:wght@400;600;700&display=swap');

/* ---------- Tokens ---------- */
.lp-wrap {
    --orange: #f07800;
    --orange-dark: #d96800;
    --orange-light: #fff3e0;
    --orange-faint: #fffbf5;

    /* Semantic mapping to global theme */
    --ldark: var(--text-main);
    --ldark2: var(--text-main);
    --lmid: var(--text-muted);
    --llight: var(--text-muted);
    --llighter: var(--text-muted);
    --lborder: var(--border-main);
    --lborder-light: var(--border-light);
    --lbg: var(--bg-main);
    --lwhite: var(--card-bg);

    --lgreen: #2e7d32;
    --lgreen-light: #e8f5e9;
    --lred: #c62828;
    --lblue: #1565c0;
    --lyellow: #f9a825;
    --lyellow-light: #fffde7;
    --lradius: 6px;
    --lradius-lg: 10px;
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ldark);
}

html[data-theme='dark'] .lp-wrap {
    --orange-light: rgba(240, 120, 0, 0.15);
    --orange-faint: rgba(240, 120, 0, 0.05);
    --lgreen-light: rgba(46, 125, 50, 0.15);
    --lyellow-light: rgba(249, 168, 37, 0.15);
}

.lp-wrap *,
.lp-wrap *::before,
.lp-wrap *::after {
    box-sizing: border-box;
}

/* ---------- Section Titles ---------- */
.lp-section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--ldark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-section-title .lp-line {
    flex: 1;
    height: 2px;
    background: var(--lborder);
    margin-left: 10px;
}

.lp-section-title .lp-see-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    margin-left: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.lp-section-title .lp-see-all:hover {
    text-decoration: underline;
}

/* ---------- Search Hero ---------- */
.lp-hero {
    background: linear-gradient(135deg, #f07800 0%, #e05500 50%, #c04000 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.lp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.lp-hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: white;
    margin: 0 0 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.lp-hero p {
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    margin: 0 0 18px;
}

.lp-hero-search {
    display: flex;
    background: var(--input-bg);
    border-radius: 8px;
    overflow: hidden;
    max-width: 720px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    height: 48px;
    border: 1px solid var(--border-main);
}

.lp-hero-search select {
    border: none;
    border-right: 2px solid var(--border-light);
    padding: 0 14px;
    font-size: 13px;
    font-family: 'Nunito Sans', sans-serif;
    background: var(--bg-main);
    outline: none;
    color: var(--text-main);
    min-width: 130px;
    cursor: pointer;
}

.lp-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
    min-width: 0;
    background: transparent;
    color: var(--text-main);
}

.lp-hero-search-btn {
    background: var(--orange-dark);
    border: none;
    color: white;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.lp-hero-search-btn:hover {
    background: #b84d00;
}

.lp-hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 20px;
}

.lp-hero-stat {
    color: white;
    text-align: center;
}

.lp-hero-stat .num {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 900;
    display: block;
}

.lp-hero-stat .lbl {
    font-size: 11px;
    opacity: .7;
}

/* ---------- Page Wrapper ---------- */
.lp-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 30px;
}

/* ---------- Category Grid ---------- */
.lp-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.lp-cat-card {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius-lg);
    padding: 16px 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.lp-cat-card:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(240, 120, 0, .15);
    transform: translateY(-2px);
}

.lp-cat-card.active {
    border-color: var(--orange);
    background: var(--orange-faint);
}

.lp-cat-card.active .lp-cat-name {
    color: var(--orange);
}

.lp-cat-icon {
    font-size: 28px;
    line-height: 1;
    color: var(--orange);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-light);
    border-radius: 12px;
}

.lp-cat-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--ldark2);
    line-height: 1.3;
}

.lp-cat-count {
    font-size: 10px;
    color: var(--llighter);
}

/* ---------- Promo Banner ---------- */
.lp-banner {
    background: linear-gradient(90deg, #1a1a1a 0%, #333 100%);
    border-radius: var(--lradius-lg);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.lp-banner::after {
    content: '🚀';
    position: absolute;
    right: 20px;
    font-size: 52px;
    opacity: .12;
}

.lp-banner h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    font-family: 'Nunito', sans-serif;
}

.lp-banner p {
    font-size: 12px;
    opacity: .7;
    margin: 0;
}

.lp-banner-btn {
    flex-shrink: 0;
    margin-left: auto;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: var(--lradius);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    transition: background .15s;
}

.lp-banner-btn:hover {
    background: var(--orange-dark);
}

/* ---------- Active Filters ---------- */
.lp-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.lp-active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--orange-light);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
}

.lp-active-filter-tag i {
    font-size: 10px;
}

.lp-clear-filters {
    color: var(--lred);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
}

.lp-clear-filters:hover {
    text-decoration: underline;
}

/* ---------- Layout: Sidebar + Main ---------- */
.lp-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* ---------- Sidebar ---------- */
.lp-sidebar {
    width: 226px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.lp-sidebar-box {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    margin-bottom: 10px;
    overflow: hidden;
}

.lp-sidebar-title {
    background: var(--bg-main);
    border-bottom: 1px solid var(--lborder);
    padding: 9px 12px;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-sidebar-body {
    padding: 10px 12px;
}

.lp-filter-group {
    margin-bottom: 10px;
}

.lp-filter-group:last-child {
    margin-bottom: 0;
}

.lp-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--lmid);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lp-filter-label i {
    color: var(--orange);
    font-size: 11px;
}

.lp-filter-input {
    width: 100%;
    border: 1px solid var(--lborder);
    border-radius: 4px;
    padding: 7px 9px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    color: var(--ldark);
    background: var(--lwhite);
}

.lp-filter-input:focus {
    border-color: var(--orange);
}

.lp-filter-input::placeholder {
    color: var(--llighter);
}

.lp-sidebar-actions {
    padding: 6px 12px 12px;
}

.lp-btn-search {
    width: 100%;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lp-btn-search:hover {
    background: var(--orange-dark);
}

.lp-btn-reset {
    display: block;
    text-align: center;
    color: var(--orange);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 0 0;
}

.lp-btn-reset:hover {
    text-decoration: underline;
}

/* Sidebar close (mobile) */
.lp-sidebar-close {
    display: none;
    margin-left: auto;
    background: rgba(0, 0, 0, .1);
    border: none;
    color: var(--ldark);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- Main ---------- */
.lp-main {
    flex: 1;
    min-width: 0;
}

/* ---------- Toolbar ---------- */
.lp-toolbar {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.lp-result-count {
    font-weight: 700;
    font-size: 13px;
}

.lp-result-count em {
    color: var(--orange);
    font-style: normal;
}

.lp-toolbar-gap {
    flex: 1;
}

.lp-sort-label {
    font-size: 12px;
    color: var(--lmid);
}

.lp-toolbar-select {
    border: 1px solid var(--lborder);
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
    outline: none;
    color: var(--ldark);
    font-family: inherit;
    cursor: pointer;
}

.lp-toolbar-select:focus {
    border-color: var(--orange);
}

/* ---------- Mini Card Grid ---------- */
.lp-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.lp-mini-card {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.lp-mini-card:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(240, 120, 0, .12);
    transform: translateY(-2px);
}

.lp-mini-card-img {
    width: 100%;
    height: 140px;
    background: #eee;
    overflow: hidden;
    position: relative;
}

.lp-mini-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.lp-mini-card:hover .lp-mini-card-img img {
    transform: scale(1.06);
}

.lp-mini-card-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--llighter);
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #f0f0f0;
}

.lp-mini-card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lp-mini-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ldark);
    margin: 0 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.lp-mini-card-meta {
    font-size: 11px;
    color: var(--llight);
    margin-bottom: 6px;
}

.lp-mini-card-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.lp-mini-card-price {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: var(--orange);
}

.lp-mini-card-loc {
    font-size: 10.5px;
    color: var(--llighter);
    display: flex;
    align-items: center;
    gap: 3px;
}

.lp-mini-card-loc i {
    font-size: 9px;
    color: var(--lred);
}

/* ---------- List Card (sidebar layout) ---------- */
.lp-list-card {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    margin-bottom: 6px;
    display: flex;
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.lp-list-card:hover {
    border-color: var(--orange);
    box-shadow: 0 2px 14px rgba(240, 120, 0, .13);
}

.lp-list-thumb {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    background: #eee;
    position: relative;
    overflow: hidden;
}

.lp-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.lp-list-card:hover .lp-list-thumb img {
    transform: scale(1.04);
}

.lp-list-thumb-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--llighter);
    text-transform: uppercase;
    background: #f0f0f0;
}

.lp-list-body {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-list-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ldark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}

.lp-list-card:hover .lp-list-title {
    color: var(--orange);
}

.lp-list-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--orange-light);
    color: var(--orange);
    width: fit-content;
}

.lp-list-desc {
    font-size: 11.5px;
    color: var(--llight);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.lp-list-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid var(--lborder-light);
    padding-top: 6px;
    margin-top: auto;
}

.lp-list-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--orange);
    font-family: 'Nunito', sans-serif;
    letter-spacing: -.5px;
}

.lp-list-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.lp-list-loc {
    font-size: 11px;
    color: var(--llight);
}

.lp-list-loc i {
    color: var(--lred);
    font-size: 10px;
}

.lp-list-date {
    font-size: 10.5px;
    color: #bbb;
}

/* ---------- Empty ---------- */
.lp-empty {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    padding: 48px 24px;
    text-align: center;
    color: var(--llight);
    grid-column: 1 / -1;
}

.lp-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: .3;
    display: block;
}

.lp-empty p {
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

/* ---------- Pagination ---------- */
.lp-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 20px 0 10px;
    flex-wrap: wrap;
}

.lp-page-btn {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--lborder);
    background: var(--lwhite);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lmid);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    transition: all .1s;
    text-decoration: none;
    cursor: pointer;
}

.lp-page-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-faint);
}

.lp-page-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    pointer-events: none;
}

.lp-page-btn.disabled {
    opacity: .3;
    pointer-events: none;
}

.lp-page-dots {
    color: var(--llighter);
    padding: 0 4px;
    font-weight: 600;
}

/* ---------- Mobile Bar ---------- */
.lp-mobile-bar {
    display: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .lp-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-sidebar {
        width: 200px;
    }

    .lp-list-thumb {
        width: 150px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .lp-hero h1 {
        font-size: 20px;
    }

    .lp-hero p {
        font-size: 12px;
    }

    .lp-hero-search {
        height: 42px;
    }

    .lp-hero-search select {
        min-width: 90px;
        font-size: 11px;
        padding: 0 8px;
    }

    .lp-hero-search input {
        padding: 0 10px;
        font-size: 13px;
    }

    .lp-hero-search-btn {
        padding: 0 14px;
        font-size: 13px;
    }

    .lp-hero-stats {
        gap: 16px;
    }

    .lp-hero-stat .num {
        font-size: 18px;
    }

    .lp-hero-stat .lbl {
        font-size: 10px;
    }

    .lp-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .lp-cat-card {
        padding: 12px 6px 10px;
    }

    .lp-cat-icon {
        font-size: 22px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .lp-cat-name {
        font-size: 11px;
    }

    .lp-banner {
        padding: 14px 16px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .lp-banner h3 {
        font-size: 14px;
    }

    .lp-banner-btn {
        margin-left: 0;
    }

    /* Layout stacks */
    .lp-layout {
        flex-direction: column;
    }

    /* Sidebar as bottom-sheet */
    .lp-sidebar {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, .45);
        width: 100%;
    }

    .lp-sidebar.open {
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .lp-sidebar.open .lp-sidebar-box {
        width: 100%;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        overflow-y: auto;
        margin: 0;
        animation: lpSlideUp .25s ease-out;
    }

    @keyframes lpSlideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .lp-sidebar-close {
        display: flex;
    }

    /* Mobile bar */
    .lp-mobile-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        margin-bottom: 8px;
    }

    .lp-mobile-bar-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 7px 12px;
        border: 1px solid var(--lborder);
        border-radius: var(--lradius);
        background: var(--lwhite);
        color: var(--ldark);
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
    }

    .lp-mobile-bar-btn i {
        color: var(--orange);
    }

    .lp-mobile-bar-select {
        padding: 7px 8px;
        border: 1px solid var(--lborder);
        border-radius: var(--lradius);
        font-size: 12px;
        font-weight: 600;
        font-family: inherit;
        outline: none;
    }

    .lp-mobile-bar-count {
        margin-left: auto;
        font-size: 11px;
        font-weight: 700;
        color: var(--llight);
    }

    .lp-mobile-bar-count strong {
        color: var(--orange);
    }

    /* Hide desktop toolbar */
    .lp-toolbar {
        display: none;
    }

    /* Grid becomes 2 columns */
    .lp-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .lp-mini-card-img {
        height: 120px;
    }

    .lp-mini-card-title {
        font-size: 11.5px;
    }

    .lp-mini-card-price {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lp-hero {
        padding: 20px 0 28px;
    }

    .lp-hero h1 {
        font-size: 17px;
    }

    .lp-hero-search select {
        display: none;
    }

    .lp-hero-stats {
        gap: 12px;
        flex-wrap: wrap;
    }

    .lp-hero-stat .num {
        font-size: 16px;
    }

    .lp-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .lp-cat-icon {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }

    .lp-cat-name {
        font-size: 10px;
    }

    .lp-cat-count {
        font-size: 9px;
    }

    .lp-card-grid {
        grid-template-columns: 1fr;
    }

    .lp-mini-card {
        flex-direction: row;
    }

    .lp-mini-card-img {
        width: 110px;
        height: 90px;
    }

    .lp-mini-card-body {
        padding: 8px 10px;
    }

    .lp-mini-card-title {
        font-size: 12px;
    }
}

/* ---------- Dark Mode ---------- */
html[data-theme="dark"] .lp-wrap {
    --ldark: #e5e7eb;
    --ldark2: #d1d5db;
    --lmid: #9ca3af;
    --llight: #6b7280;
    --llighter: #4b5563;
    --lborder: #374151;
    --lborder-light: #1f2937;
    --lbg: #0f172a;
    --lwhite: #1e293b;
}

html[data-theme="dark"] .lp-hero {
    background: linear-gradient(135deg, #d96800, #b84d00, #8c3900);
}

html[data-theme="dark"] .lp-mini-card-ph,
html[data-theme="dark"] .lp-list-thumb-ph {
    background: #374151;
}

html[data-theme="dark"] .lp-sidebar-title {
    background: #1e293b;
}

/* Fixes for hardcoded white backgrounds in dark mode */
html[data-theme="dark"] .lp-hero-search {
    background: var(--lwhite);
}

html[data-theme="dark"] .lp-hero-search select {
    background: #1e293b;
    border-color: #374151;
    color: var(--ldark);
}

html[data-theme="dark"] .lp-hero-search input {
    background: var(--lwhite);
    color: var(--ldark);
}

html[data-theme="dark"] .lp-banner {
    background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
}

html[data-theme="dark"] .lp-mini-card-img,
html[data-theme="dark"] .lp-list-thumb {
    background: #374151;
}

html[data-theme="dark"] .lp-cat-icon {
    background: #374151;
}

/* Public Demands List-Card Styles (from Demands/Index) */
.demands-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.demands-main {
    flex-grow: 1;
    min-width: 0;
}

.demand-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: block;
    text-decoration: none !important;
    position: relative;
    color: inherit;
}

.demand-card.is-closed {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.demand-card:hover {
    border-color: #ffaa00;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.1);
    transform: translateY(-2px);
}

.demand-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    padding-right: 100px;
    /* space for badge */
}

.demand-card:hover .demand-title {
    color: #ffaa00;
}

.demand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-item i {
    color: #ffaa00;
    font-size: 0.9rem;
}

.demand-desc {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.demand-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f5;
}

.budget-info {
    font-weight: 600;
    color: #2c3e50;
}

.budget-info .val {
    color: #ffaa00;
    font-size: 1.1rem;
}

.btn-detail {
    background-color: #fff;
    color: #2c3e50;
    border: 1px solid #dee2e6;
    font-weight: 500;
    padding: 0.4rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.demand-card:hover .btn-detail {
    background-color: #ffaa00;
    color: #fff;
    border-color: #ffaa00;
}

.filter-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .demands-layout {
        flex-direction: column;
    }

    .filters-sidebar {
        width: 100%;
        position: static;
    }
}

/* ---------- Listing Details (New Reference Style) ---------- */
.det-wrap {
    padding: 10px 0 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.det-breadcrumb-nav {
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    margin-bottom: 10px;
}

.det-crumbs {
    font-size: 13px;
    color: #4a6fa5;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 500;
}

.det-crumbs a {
    color: inherit;
    text-decoration: none;
}

.det-crumbs a:hover {
    color: #ffaa00;
    text-decoration: underline;
}

.det-breadcrumb-sep {
    font-size: 10px;
    color: #ccc;
}

.det-user-links a {
    transition: color 0.2s;
}

.det-user-links a:hover {
    color: #ffaa00 !important;
    text-decoration: underline !important;
}

.det-id-text {
    border-left: 1px solid #ddd;
    padding-left: 12px;
}


/* ── Titlebar: title left, buttons right, line below both ── */
.det-titlebar {
    position: relative;
    margin-bottom: 5px;
}

.det-title {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    color: #333;
    line-height: 1.2;
    text-transform: uppercase;
}

.det-top-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--lblue);
}

.det-top-bar a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.det-top-bar a:hover {
    text-decoration: underline;
}

.det-header-actions {
    display: flex;
    gap: 8px;
    font-size: 18px;
    padding-left: 10px;
    border-left: 1px solid var(--lborder);
    line-height: 1;
}

/* Legacy 2-col kept for backwards compat */
.det-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: flex-start;
}

/* New 3-column reference layout */
.det-grid3 {
    display: grid;
    grid-template-columns: 460px 1fr 300px;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

/* Gallery */
.det-gallery-box {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    padding: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.det-hero {
    width: 100%;
    aspect-ratio: 4/3;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--lborder-light);
}

.det-hero img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.det-thumbs-outer {
    position: relative;
    padding: 15px;
}

.det-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.det-thumb {
    aspect-ratio: 4/3;
    border: 2px solid var(--lborder);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    background: #fff;
    border-radius: 4px;
}

.det-thumb.active {
    border-color: var(--lblue);
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.2);
}

.det-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Footer */
.det-gallery-footer {
    padding: 8px 15px;
    font-size: 12px;
    color: var(--lmid);
    border-top: 1px solid var(--lborder-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.det-gallery-footer i {
    color: var(--lblue);
}

/* Center Column */
.det-center-col {
    display: flex;
    flex-direction: column;
}

/* Side Column */
.det-side-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Price Block */
.det-price-block {
    padding: 0 2px 14px;
    border-bottom: 1px solid var(--lborder-light);
    margin-bottom: 0;
}

.det-price-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.det-loc-inline {
    font-size: 13px;
    font-weight: 700;
    color: var(--lblue);
}

.det-loc-inline i {
    font-size: 11px;
    margin-right: 2px;
}

/* Complaint Link */
.det-complaint-link {
    margin-top: 12px;
    font-size: 12px;
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.det-complaint-link:hover {
    text-decoration: underline;
}

/* Promo banner */
.det-promo-banner {
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    overflow: hidden;
}

/* Legacy */
.det-side-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.det-price-box {
    padding: 0 5px;
}

.det-price {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--lblue);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.det-kredi-link {
    font-size: 12px;
    color: var(--lblue);
    text-decoration: none;
    font-weight: 700;
}

.det-loc {
    font-size: 14px;
    color: var(--lblue);
    font-weight: 700;
    margin-bottom: 15px;
}

.det-attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.det-attr-table tr {
    border-bottom: 1px solid var(--lborder-light);
}

.det-attr-table td {
    padding: 10px 5px;
}

.det-attr-table .lbl {
    color: var(--ldark);
    font-weight: 600;
    width: 140px;
}

.det-attr-table .val {
    color: var(--ldark);
    font-weight: 400;
    text-align: left;
}

.det-attr-table tr.important .val {
    color: var(--lred);
    font-weight: 700;
}

/* Seller Card */
.det-seller-card {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.det-seller-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.det-seller-avatar {
    width: 52px;
    height: 52px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--lblue);
}

.det-seller-info {
    flex: 1;
}

.det-seller-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--lblue);
    margin-bottom: 2px;
}

.det-seller-meta {
    font-size: 12px;
    color: var(--lblue);
    display: flex;
    gap: 12px;
}

.det-seller-meta a {
    color: inherit;
    text-decoration: none;
}

.det-seller-meta a:hover {
    text-decoration: underline;
}

.det-contact-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.det-phone-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.det-phone-lbl {
    font-size: 13px;
    color: var(--lmid);
}

.det-phone-val {
    font-weight: 700;
    color: #333;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
}

.det-msg-btn {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 1.5px solid var(--lblue);
    color: var(--lblue);
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.det-msg-btn:hover {
    background: var(--lblue);
    color: white;
}

/* Tabs */
.det-tabs-section {
    margin-top: 30px;
}

.det-tabs-header {
    display: flex;
    gap: 2px;
}

.det-tab-btn {
    padding: 12px 25px;
    background: #e2e8f0;
    font-weight: 800;
    font-size: 14px;
    color: #475569;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
}

.det-tab-btn.active {
    background: var(--orange);
    color: white;
}

.det-tab-pane {
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    padding: 25px;
    border-radius: 0 0 6px 6px;
}

.det-pane-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    color: var(--ldark);
}

/* Mobile Visibility */
.det-mob-only {
    display: none;
}

.det-desk-only {
    display: block;
}

@media (max-width: 768px) {
    .det-desk-only {
        display: none;
    }

    .det-mob-only {
        display: block;
    }

    .det-wrap {
        padding: 0;
    }

    .det-mob-top {
        background: var(--lblue);
        color: white;
        padding: 12px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1050;
    }

    .det-mob-top a {
        color: white;
        text-decoration: none;
        font-size: 20px;
    }

    .det-mob-hero {
        position: relative;
        background: white;
    }

    .det-hero-counter {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 4px 15px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 800;
    }

    .det-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .det-grid3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .det-center-col,
    .det-side-col {
        display: block;
    }

    .det-price-block {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    .det-mob-info-summary {
        padding: 15px;
        background: white;
        text-align: center;
    }

    .det-mob-seller-name {
        font-weight: 800;
        color: var(--lblue);
        font-size: 16px;
        margin-bottom: 10px;
    }

    .det-price-row {
        display: flex;
        justify-content: space-between;
        padding: 15px;
        background: #f8fafc;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        font-weight: 800;
        color: var(--lblue);
        font-size: 16px;
    }

    .det-mob-tabs {
        display: flex;
        border-bottom: 1px solid #ddd;
    }

    .det-mob-tab {
        flex: 1;
        padding: 12px;
        text-align: center;
        font-weight: 800;
        font-size: 14px;
        color: #666;
        border-bottom: 4px solid transparent;
        cursor: pointer;
    }

    .det-mob-tab.active {
        color: #333;
        border-bottom-color: var(--orange);
        background: var(--orange-faint);
    }

    .det-attr-table td {
        padding: 12px 15px;
    }

    .det-attr-table .lbl {
        width: 50%;
    }

    .det-attr-table .val {
        text-align: right;
    }

    .det-mob-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 10px 15px;
        display: flex;
        gap: 12px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1070;
    }

    .det-mob-btn {
        flex: 1;
        padding: 12px;
        border-radius: 8px;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
        font-size: 15px;
    }

    .det-mob-btn-blue {
        background: var(--lblue);
        color: white;
    }

    .det-mob-btn-outline {
        border: 2px solid var(--lblue);
        color: var(--lblue);
    }

    .det-tabs-section {
        padding-bottom: 80px;
    }
}

html[data-theme='dark'] .det-gallery-box,
html[data-theme='dark'] .det-seller-card,
html[data-theme='dark'] .det-tab-pane {
    background: var(--bg-white);
}

html[data-theme='dark'] .det-hero {
    background: #1a1f2c;
}

html[data-theme='dark'] .det-thumb {
    background: #1a1f2c;
    border-color: #333a4d;
}

html[data-theme='dark'] .det-tab-btn {
    background: #1a1f2c;
    color: #94a3b8;
}

html[data-theme='dark'] .det-seller-avatar {
    background: #1a1f2c;
}

html[data-theme='dark'] .det-phone-val {
    color: #e2e8f0;
}

html[data-theme='dark'] .det-pane-title {
    border-bottom-color: #333a4d;
}

html[data-theme='dark'] .det-price-row {
    background: #1a1f2c;
    border-color: #333a4d;
}

/* Detail page enhancements */
.det-footer-pad {
    margin-bottom: 80px !important;
}

@media (min-width: 769px) {
    .det-footer-pad {
        margin-bottom: 0 !important;
    }
}

.det-header-title {
    font-weight: 800;
    font-size: 16px;
}

.det-top-actions {
    display: flex;
    gap: 15px;
}

.det-fav-icon {
    cursor: pointer;
}

.det-fav-icon.active {
    color: gold;
}

.det-breadcrumb-sep {
    font-size: 8px;
    color: #ccc;
}

.det-promo-placeholder {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

html[data-theme='dark'] .det-promo-placeholder {
    background: #1a1f2c;
    border-color: #333a4d;
    color: #64748b;
}

.det-desc-content {
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-main);
}

.det-pane-info {
    font-size: 14px;
    color: var(--text-muted);
}

/* Index page enhancements */
.btn-save-search {
    margin-left: auto;
    background: #fff3e0;
    color: #f39c12;
    border: 1px solid #ffe0b2;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-save-search:hover {
    background: #ffe0b2;
}

html[data-theme='dark'] .btn-save-search {
    background: #1a1f2c;
    border-color: #333a4d;
    color: #f39c12;
}

.idx-filter-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.idx-filter-contents {
    display: contents;
}

/* Price History Styles */
.det-price-history-container {
    margin-top: 25px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-main);
    border-radius: 8px;
}

.det-price-history-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.det-price-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.det-price-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.det-price-history-item:last-child {
    border-bottom: none;
}

.det-ph-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.det-ph-date {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
}

.det-ph-label {
    font-size: 11px;
    color: var(--text-muted);
}

.det-ph-price-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.det-ph-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.det-ph-change-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
}

.det-ph-down {
    background: #e8f5e9;
    color: #2e7d32;
}

.det-ph-up {
    background: #ffebee;
    color: #c62828;
}

.det-ph-initial {
    background: #fff3e0;
    color: #f07800;
}

html[data-theme='dark'] .det-ph-down {
    background: rgba(46, 125, 50, 0.2);
}

html[data-theme='dark'] .det-ph-up {
    background: rgba(198, 40, 40, 0.2);
}

html[data-theme='dark'] .det-ph-initial {
    background: rgba(240, 120, 0, 0.2);
}

.det-ph-current {
    background: #e3f2fd;
    color: #2196f3;
}

html[data-theme='dark'] .det-ph-current {
    background: rgba(33, 150, 243, 0.2);
}


/* Category Tree Style */
.lp-cat-tree-box {
    margin-bottom: 20px;
}

.lp-cat-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-tree-path-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.lp-tree-path-item a {
    color: #1565c0;
    text-decoration: none;
}

.lp-tree-path-item a:hover {
    text-decoration: underline;
}

.lp-tree-children-container {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 5px;
    padding-right: 8px;
}

.lp-tree-children-container::-webkit-scrollbar {
    width: 6px;
}

.lp-tree-children-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.lp-tree-children-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.lp-tree-children {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-tree-child {
    display: block;
    color: #1565c0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    line-height: 1.4;
}

.lp-tree-child:hover {
    text-decoration: underline;
    color: #d96800;
}

.lp-tree-count {
    color: #999;
    font-size: 12px;
    margin-left: 2px;
    font-weight: normal;
}

/* ---------- Demands Dark Mode Overrides ---------- */
html[data-theme="dark"] .demands-layout .filters-sidebar {
    background: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .demand-card {
    background: #1e293b;
    border-color: #374151;
}

html[data-theme="dark"] .demand-card:hover {
    border-color: #ffaa00;
}

html[data-theme="dark"] .demand-title {
    color: #e5e7eb;
}

html[data-theme="dark"] .demand-desc {
    color: #9ca3af;
}

html[data-theme="dark"] .demand-meta {
    color: #9ca3af;
}

html[data-theme="dark"] .budget-info {
    color: #e5e7eb;
}

html[data-theme="dark"] .filter-section-title {
    color: #d1d5db;
}

html[data-theme="dark"] .btn-detail {
    background-color: #1e293b;
    color: #e5e7eb;
    border-color: #4b5563;
}

html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .input-group-text.bg-white {
    background-color: #1e293b !important;
    border-color: #374151;
    color: #9ca3af;
}

html[data-theme="dark"] .form-control {
    background-color: #0f172a;
    border-color: #374151;
    color: #e5e7eb;
}

html[data-theme="dark"] .form-select {
    background-color: #0f172a;
    border-color: #374151;
    color: #e5e7eb;
}

html[data-theme="dark"] .lp-tree-path-item a,
html[data-theme="dark"] .lp-tree-child {
    color: #60a5fa;
}

html[data-theme="dark"] .lp-tree-path-item a:hover,
html[data-theme="dark"] .lp-tree-child:hover {
    color: #fbbf24;
}

html[data-theme="dark"] .lp-tree-count {
    color: #6b7280;
}

.text-muted-dark-mode {
    color: #6c757d;
}

html[data-theme="dark"] .text-muted-dark-mode {
    color: #9ca3af;
}

/* ==========================================================================
   SaSeBu DETAIL PAGE — Visual Identity Enhancements
   Özgün görsel dokunuşlar: fiyat, satıcı, sekmeler, placeholder, tablo
   ========================================================================== */

/* ── Breadcrumb: Marka rengiyle sol çizgi ── */
.det-breadcrumb-nav {
    border-left: 3px solid #ffaa00;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(255,170,0,0.04) 0%, transparent 60%);
}

/* ── İlan başlığı: uppercase kaldır, gradient renk ── */
.det-title {
    text-transform: none !important;
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px !important;
    letter-spacing: -0.3px;
}

/* ── Fiyat bloğu: animasyonlu gradient badge ── */
.det-price-block {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 10px;
    padding: 16px 18px !important;
    border: 1px solid #bfdbfe !important;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.det-price-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #2563eb 0%, #ffaa00 100%);
    border-radius: 4px 0 0 4px;
}

.det-price {
    font-size: 30px !important;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Fiyat pulse animasyonu */
@keyframes pricePulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.85; }
    100% { opacity: 1; }
}

.det-price span:first-child {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pricePulse 3s ease-in-out infinite;
    display: inline-block;
}

.det-kredi-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 11px !important;
    color: #1e40af !important;
    transition: all 0.2s;
}
.det-kredi-link:hover {
    background: #dbeafe;
    text-decoration: none !important;
}

/* ── Attribute tablosu: zebra & ikon desteği ── */
.det-attr-table tr:nth-child(odd) {
    background: rgba(248, 250, 252, 0.8);
}
.det-attr-table tr:nth-child(even) {
    background: transparent;
}
.det-attr-table tr {
    transition: background 0.15s;
}
.det-attr-table tr:hover {
    background: rgba(37, 99, 235, 0.04) !important;
}
.det-attr-table .lbl {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 600;
    padding: 10px 8px 10px 6px !important;
}
.det-attr-table .val {
    padding: 10px 8px 10px 10px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    font-size: 13px !important;
}

.det-attr-table tr.important .val {
    color: #dc2626 !important;
    font-weight: 800 !important;
}
.det-attr-table tr.important {
    background: rgba(220, 38, 38, 0.03) !important;
}

/* ── Şikayet linki: dikkat çekmeyen, zarif stil ── */
.det-complaint-link {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin-top: 18px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px dashed #e2e8f0;
    background: #fafafa;
    display: inline-flex !important;
    width: auto !important;
    transition: all 0.2s;
}
.det-complaint-link:hover {
    color: #ef4444 !important;
    border-color: #fecaca;
    background: #fff5f5;
}

/* ── Seller Card: Premium görünüm ── */
.det-seller-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%) !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 12px !important;
    padding: 18px !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.det-seller-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #ffaa00 50%, #2563eb 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.det-seller-avatar {
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: white !important;
    border-radius: 10px !important;
    font-weight: 800;
    font-size: 18px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.det-seller-name {
    font-size: 14px !important;
}

/* Satıcı güven skoru widget */
.det-seller-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 10px;
}
.det-seller-trust i {
    color: #22c55e;
    font-size: 13px;
}
.det-seller-trust-stars {
    display: flex;
    gap: 2px;
    margin-left: auto;
}
.det-seller-trust-stars i {
    font-size: 10px;
    color: #facc15;
}

/* Mesaj butonu: daha çekici */
.det-msg-btn {
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    border: none !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 13px !important;
    font-size: 13px !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s !important;
}
.det-msg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45) !important;
    color: white !important;
}

/* ── Platform Değer Kartı (Reklam Alanı yerine) ── */
.det-promo-banner {
    border: none !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0284c7 100%);
    border-radius: 12px !important;
    padding: 18px;
    position: relative;
    overflow: hidden;
    color: white;
}

.det-promo-banner::after {
    content: '🛡️';
    position: absolute;
    right: -5px;
    bottom: -10px;
    font-size: 64px;
    opacity: 0.12;
    transform: rotate(-15deg);
}

.det-promo-placeholder {
    display: none; /* Eski placeholder'ı gizle */
}

.det-platform-card {
    position: relative;
    z-index: 1;
}

.det-platform-card-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.det-platform-card-title i {
    color: #facc15;
}

.det-platform-card-desc {
    font-size: 11px;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 10px;
}

.det-platform-features {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.det-platform-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
}

.det-platform-feature i {
    color: #86efac;
    font-size: 11px;
}

/* ── Tab butonları: Özgün SaSeBu kimliği ── */
.det-tab-nav {
    border-bottom: 2px solid #e2e8f0 !important;
    gap: 4px !important;
    padding-bottom: 0 !important;
}

.det-tab-nav .nav-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 9px 22px !important;
    font-size: 13px !important;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s !important;
    position: relative;
    top: 2px;
}

.det-tab-nav .nav-btn:hover:not(.active) {
    background: #e8f0fe;
    color: #1e3a8a;
    border-color: #bfdbfe !important;
}

.det-tab-nav .nav-btn.active {
    background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
    color: white !important;
    border-color: #2563eb !important;
    box-shadow: 0 -2px 8px rgba(37, 99, 235, 0.2);
}

/* ── Galeri Placeholder: Branded ── */
.det-hero .det-hero-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #cbd5e1;
}

.det-hero-logo-ph {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #ffaa00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -1px;
}

.det-hero-ph-icon {
    font-size: 40px;
    color: #e2e8f0;
}

.det-hero-ph-text {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

/* ── Fiyat geçmişi container: daha öne çıkan ── */
.det-price-history-container {
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
}

.det-price-history-title {
    background: transparent;
    color: #92400e;
}

/* ── Aksesuar: aktif feature item renk ── */
.det-feature-item.active i {
    color: #2563eb !important;
}

.det-feature-item.active {
    color: #1e293b !important;
}

/* ── Accordion override: SaSeBu rengi ── */
.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, #eff6ff, #dbeafe) !important;
    color: #1e3a8a !important;
    border-left: 3px solid #2563eb;
}

.accordion-button::after {
    filter: hue-rotate(220deg);
}

/* ── Dark mode için overrides ── */
html[data-theme="dark"] .det-price-block {
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05)) !important;
    border-color: rgba(37,99,235,0.3) !important;
}

html[data-theme="dark"] .det-seller-card {
    background: linear-gradient(145deg, #1e293b, #1a2540) !important;
    border-color: rgba(37,99,235,0.3) !important;
}

html[data-theme="dark"] .det-promo-banner {
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #1e40af) !important;
}

html[data-theme="dark"] .det-attr-table tr:nth-child(odd) {
    background: rgba(255,255,255,0.03);
}

html[data-theme="dark"] .det-attr-table tr:hover {
    background: rgba(37, 99, 235, 0.08) !important;
}

html[data-theme="dark"] .det-attr-table .lbl {
    color: #94a3b8 !important;
}


html[data-theme="dark"] .det-attr-table .val {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .det-complaint-link {
    background: #1e293b;
    border-color: #334155;
    color: #64748b !important;
}

html[data-theme="dark"] .det-tab-nav .nav-btn {
    background: #1e293b;
    border-color: #334155 !important;
    color: #94a3b8;
}

html[data-theme="dark"] .det-tab-nav .nav-btn:hover:not(.active) {
    background: rgba(37,99,235,0.1);
    color: #93c5fd;
}

html[data-theme="dark"] .det-seller-trust {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
    border-color: rgba(16,185,129,0.3);
    color: #34d399;
}

html[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, rgba(37,99,235,0.15), rgba(37,99,235,0.08)) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .det-price-history-container {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.05));
    border-color: rgba(245,158,11,0.3);
    border-left-color: #f59e0b;
}

html[data-theme="dark"] .det-price-history-title {
    color: #fbbf24;
}

html[data-theme="dark"] .det-title {
    background: linear-gradient(120deg, #93c5fd 0%, #60a5fa 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .det-price span:first-child {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .det-breadcrumb-nav {
    background: linear-gradient(90deg, rgba(255,170,0,0.06) 0%, transparent 60%);
}

/* ── Breadcrumb nav dark override ── */
html[data-theme="dark"] .det-breadcrumb-nav {
    background: linear-gradient(90deg, rgba(255,170,0,0.06) 0%, transparent 60%);
    border-color: rgba(250, 204, 21, 0.4);
}

/* ==========================================================================
   List View Toggle & Listings Row Styles (Grid vs List View)
   ========================================================================== */

/* ─── View Toggle ─── */
.lp-view-toggle {
    display: flex;
    gap: 6px;
    margin-left: 10px;
}
.lp-view-btn {
    border: 1.5px solid var(--lborder);
    background: transparent;
    border-radius: var(--lradius);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--llight);
    transition: all 0.15s ease-in-out;
}
.lp-view-btn.active, .lp-view-btn:hover {
    background: var(--orange);
    color: #fff !important;
    border-color: var(--orange);
}

/* ─── List View ─── */
.lp-list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.lp-list-row {
    display: grid;
    grid-template-columns: 110px 1fr 140px 140px;
    align-items: center;
    gap: 16px;
    background: var(--lwhite);
    border: 1px solid var(--lborder);
    border-radius: var(--lradius);
    padding: 10px 16px 10px 10px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease-in-out;
}
.lp-list-row:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px rgba(240, 120, 0, 0.12);
    transform: translateY(-1px);
    color: inherit;
}
.lp-list-img {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lp-list-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lp-list-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ldark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lp-list-cat {
    font-size: 11.5px;
    color: var(--llight);
}
.lp-list-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--orange);
    white-space: nowrap;
    font-family: 'Nunito', sans-serif;
}
.lp-list-loc {
    font-size: 11.5px;
    color: var(--llighter);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lp-list-loc i {
    font-size: 10px;
    color: var(--lred);
}

/* Dark Mode Overrides */
html[data-theme="dark"] .lp-list-img {
    background: #374151;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .lp-view-toggle {
        display: none;
    }
}
@media (max-width: 600px) {
    .lp-list-row {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    .lp-list-img {
        width: 80px;
        height: 60px;
    }
    .lp-list-price {
        grid-column: 2;
        font-size: 14px;
    }
    .lp-list-loc {
        grid-column: 1 / -1;
    }
}

/* Dark Mode dropdown/select overrides */
html[data-theme="dark"] select,
html[data-theme="dark"] .lp-toolbar-select,
html[data-theme="dark"] .lp-filter-input,
html[data-theme="dark"] .lp-mobile-bar-select {
    background-color: #1e293b !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}