/* ========================================
   SELLER LISTING PAGES
   ======================================== */

/* Common form/page utilities */
.form-page { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.form-page-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.form-page-title { font-size: 1.6rem; font-weight: 700; margin: 0; }
.back-link { color: var(--text-secondary); text-decoration: none; font-size: .9rem; }
.back-link:hover { color: var(--brand-600); }

.bidora-form .form-section {
    background: var(--surface-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.form-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); }
.form-section-sub { font-size: .85rem; color: var(--text-secondary); margin-bottom: 1rem; }

.form-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.bidora-input {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: .9rem;
    padding: .6rem .9rem;
    transition: border .2s, box-shadow .2s;
    width: 100%;
}
.bidora-input:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(21,101,192,.12);
    outline: none;
}

.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; pointer-events: none; }

.checkbox-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.checkbox-pill {
    display: flex; align-items: center; gap: .5rem;
    background: var(--surface-100); border: 1.5px solid var(--border-color);
    border-radius: 50px; padding: .35rem .9rem; font-size: .85rem; cursor: pointer;
    transition: all .15s;
}
.checkbox-pill input { display: none; }

.publish-toggle {
    display: flex; align-items: flex-start; gap: .75rem;
    background: var(--surface-100); border-radius: var(--radius-sm);
    padding: 1rem; cursor: pointer;
}

/* Photo upload */
.photo-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.photo-upload-zone.drag-over { border-color: var(--brand-600); background: var(--brand-50); }
.photo-upload-icon { font-size: 2.5rem; color: var(--text-muted); display: block; margin-bottom: .5rem; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .5rem; }
.photo-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-cover-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(21,101,192,.85); color: #fff; font-size: .65rem;
    text-align: center; padding: 2px;
}

/* Buttons */
.btn-brand-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-600); color: #fff;
    border: none; border-radius: var(--radius-sm);
    padding: .65rem 1.5rem; font-size: .9rem; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-brand-primary:hover { background: var(--brand-700); color: #fff; }

.btn-brand-outline {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--brand-600);
    border: 1.5px solid var(--brand-600); border-radius: var(--radius-sm);
    padding: .63rem 1.25rem; font-size: .9rem; font-weight: 500;
    cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-brand-outline:hover { background: var(--brand-600); color: #fff; }

.btn-sm { padding: .4rem .85rem !important; font-size: .82rem !important; }

/* Ilanlarim page */
.ilanlarim-page { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.ilanlarim-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ilanlarim-title { font-size: 1.8rem; font-weight: 800; margin: 0; }
.ilanlarim-sub { color: var(--text-secondary); font-size: .9rem; margin: .25rem 0 0; }
.ilanlarim-filters { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-select {
    background: #fff; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm); padding: .5rem .75rem; font-size: .85rem;
    color: var(--text-primary); min-width: 140px;
}
.filter-count { margin-left: auto; color: var(--text-muted); font-size: .85rem; }

.ilanlarim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }

.ilan-yonetim-card {
    background: #fff; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .2s;
}
.ilan-yonetim-card:hover { box-shadow: var(--shadow-md); }

.ilan-card-img { position: relative; height: 180px; overflow: hidden; background: var(--surface-100); }
.ilan-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ilan-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-muted); }
.ilan-cat-badge { position: absolute; top: .6rem; left: .6rem; border-radius: 50px; padding: .2rem .7rem; font-size: .75rem; font-weight: 600; }
.cat-vehicle { background: rgba(21,101,192,.15); color: #1565C0; }
.cat-realestate { background: rgba(56,142,60,.15); color: #388E3C; }

.ilan-card-body { padding: 1rem; }
.ilan-card-title { font-weight: 600; font-size: .9rem; color: var(--text-primary); text-decoration: none; line-height: 1.3; }
.ilan-card-title:hover { color: var(--brand-600); }

.ilan-status-badge { font-size: .72rem; font-weight: 600; border-radius: 50px; padding: .2rem .65rem; white-space: nowrap; }
.badge-status-active { background: rgba(56,142,60,.12); color: #388E3C; }
.badge-status-draft { background: rgba(100,116,139,.12); color: #64748b; }
.badge-status-paused { background: rgba(234,179,8,.12); color: #b45309; }
.badge-status-sold { background: rgba(244,98,29,.12); color: #F4621D; }

.ilan-card-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; font-size: .78rem; color: var(--text-secondary); }
.ilan-card-meta span { display: flex; align-items: center; gap: .3rem; }
.ilan-card-price { margin: .5rem 0; }
.price-val { font-size: 1.05rem; font-weight: 700; color: var(--brand-600); }
.price-neg { font-size: .75rem; color: var(--accent-green); margin-left: .4rem; }
.price-ask { font-size: .85rem; color: var(--text-muted); }
.ilan-card-stats { display: flex; align-items: center; gap: .75rem; font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }

.ilan-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; background: var(--surface-50); border-top: 1px solid var(--border-color); }
.ilan-action-btn { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 500; border: none; border-radius: 6px; padding: .35rem .75rem; cursor: pointer; text-decoration: none; transition: all .15s; }
.btn-activate { background: rgba(56,142,60,.12); color: #388E3C; }
.btn-activate:hover { background: #388E3C; color: #fff; }
.btn-pause { background: rgba(234,179,8,.12); color: #b45309; }
.btn-pause:hover { background: #b45309; color: #fff; }
.btn-sold { background: rgba(21,101,192,.1); color: var(--brand-600); }
.btn-sold:hover { background: var(--brand-600); color: #fff; }
.btn-view { background: var(--surface-100); color: var(--text-secondary); }
.btn-view:hover { background: var(--surface-200); color: var(--text-primary); }
.btn-delete { background: rgba(239,68,68,.1); color: #ef4444; }
.btn-delete:hover { background: #ef4444; color: #fff; }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; background: var(--surface-50); border: 2px dashed var(--border-color); border-radius: var(--radius-lg); }
.empty-icon { font-size: 3rem; color: var(--text-muted); display: block; margin-bottom: 1rem; }

/* Choose listing type */
.olustur-sec-page { max-width: 700px; margin: 3rem auto; padding: 0 1rem; }
.olustur-sec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.olustur-sec-card { display: block; text-align: center; padding: 2.5rem 1.5rem; background: #fff; border: 2px solid var(--border-color); border-radius: var(--radius-lg); text-decoration: none; color: var(--text-primary); transition: all .2s; }
.olustur-sec-card:hover { border-color: var(--brand-600); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text-primary); }
.sec-card-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1rem; }
.olustur-sec-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.olustur-sec-card p { font-size: .85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.sec-card-cta { font-size: .85rem; font-weight: 600; color: var(--brand-600); }

/* Ilan Detay */
.ilan-detay-page { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }
.detay-breadcrumb { font-size: .83rem; color: var(--text-muted); }
.detay-breadcrumb a { color: var(--brand-600); text-decoration: none; }
.ilan-detay-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.ilan-detay-main { min-width: 0; }
.ilan-detay-sidebar { position: sticky; top: 80px; }

.ilan-gallery { margin-bottom: 1.5rem; border-radius: var(--radius-md); overflow: hidden; }
.gallery-main { position: relative; height: 420px; background: var(--surface-100); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-sold-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 900; color: #fff; letter-spacing: .1em; }
.gallery-thumbs { display: flex; gap: .5rem; padding: .5rem; background: var(--surface-100); overflow-x: auto; }
.gallery-thumb { width: 72px; height: 56px; flex-shrink: 0; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .7; transition: opacity .2s; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ilan-gallery-empty { height: 300px; background: var(--surface-100); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.ilan-detay-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ilan-detay-h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.ilan-det-cat { border-radius: 50px; padding: .25rem .8rem; font-size: .78rem; font-weight: 600; }
.ilan-detay-price { text-align: right; }
.price-big { font-size: 1.6rem; font-weight: 800; color: var(--brand-600); display: block; }
.price-neg-badge { font-size: .8rem; background: rgba(56,142,60,.12); color: #388E3C; border-radius: 50px; padding: .2rem .6rem; }

.ilan-specs-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.spec-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface-100); border: 1px solid var(--border-color); border-radius: 50px; padding: .35rem .9rem; font-size: .82rem; color: var(--text-secondary); }
.spec-good { background: rgba(56,142,60,.1); border-color: rgba(56,142,60,.2); color: #388E3C; }
.spec-warning { background: rgba(234,179,8,.1); border-color: rgba(234,179,8,.2); color: #b45309; }

.ilan-description { margin-bottom: 1.5rem; }
.ilan-description h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.ilan-description p { color: var(--text-secondary); white-space: pre-wrap; }

.ilan-specs-table { margin-bottom: 1.5rem; background: var(--surface-50); border-radius: var(--radius-md); padding: 1.25rem; border: 1px solid var(--border-color); }
.ilan-specs-table h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.spec-row { display: flex; justify-content: space-between; padding: .4rem .6rem; border-radius: 6px; font-size: .85rem; }
.spec-row:nth-child(odd) { background: #fff; }
.spec-row span:first-child { color: var(--text-secondary); }
.spec-row span:last-child { font-weight: 600; }

.amenities-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.amenity-tag { display: inline-flex; align-items: center; background: rgba(56,142,60,.1); color: #388E3C; border-radius: 50px; padding: .3rem .8rem; font-size: .8rem; font-weight: 500; }

.seller-card { background: #fff; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.seller-card-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.seller-avatar { width: 44px; height: 44px; background: var(--brand-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.seller-name { font-weight: 700; font-size: .95rem; }
.seller-role { font-size: .78rem; color: var(--text-muted); }
.seller-stats { display: flex; gap: 1.5rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.stat-val { font-weight: 700; font-size: .95rem; display: block; }
.stat-lbl { font-size: .75rem; color: var(--text-muted); }

.sidebar-actions-card { background: #fff; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-actions-title { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.btn-sidebar-primary, .btn-sidebar-secondary, .btn-sidebar-success, .btn-sidebar-outline {
    display: flex; align-items: center; justify-content: center;
    padding: .6rem 1rem; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; transition: all .15s;
}
.btn-sidebar-primary { background: var(--brand-600); color: #fff; }
.btn-sidebar-primary:hover { background: var(--brand-700); color: #fff; }
.btn-sidebar-secondary { background: rgba(234,179,8,.12); color: #b45309; }
.btn-sidebar-success { background: rgba(56,142,60,.12); color: #388E3C; }
.btn-sidebar-success:hover { background: #388E3C; color: #fff; }
.btn-sidebar-outline { background: transparent; border: 1.5px solid var(--border-color); color: var(--text-secondary); }
.btn-sidebar-outline:hover { border-color: var(--brand-600); color: var(--brand-600); }

.sidebar-other-listings { background: #fff; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; }
.sidebar-other-listings h4 { font-size: .9rem; font-weight: 700; margin-bottom: .75rem; }
.other-listing-item { display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text-primary); transition: background .15s; margin-bottom: .25rem; }
.other-listing-item:hover { background: var(--surface-100); }
.other-listing-img { width: 52px; height: 42px; background: var(--surface-100); border-radius: 6px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-muted); }
.other-listing-img img { width: 100%; height: 100%; object-fit: cover; }
.other-listing-title { font-size: .82rem; font-weight: 600; line-height: 1.2; }
.other-listing-price { font-size: .78rem; color: var(--brand-600); font-weight: 600; }

/* TeklifVer page */
.teklif-ver-page { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.teklif-request-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface-50); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.teklif-request-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); display: block; }
.teklif-request-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.teklif-request-title:hover { color: var(--brand-600); }

.teklif-ver-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
.teklif-ver-main { min-width: 0; }
.teklif-ver-sidebar { position: sticky; top: 80px; }

.listing-select-section, .teklif-form-section { background: #fff; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.25rem; }
.teklif-section-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; display: flex; align-items: center; gap: .25rem; }
.section-badge { font-size: .7rem; background: rgba(21,101,192,.12); color: var(--brand-600); border-radius: 50px; padding: .15rem .5rem; margin-left: .25rem; }
.teklif-section-sub { font-size: .83rem; color: var(--text-secondary); margin-bottom: 1rem; }

.listing-select-grid { display: flex; flex-direction: column; gap: .5rem; }
.listing-select-card { display: block; cursor: pointer; }
.listing-select-card input[type=radio] { display: none; }
.listing-select-card-inner { display: flex; align-items: center; gap: .75rem; background: var(--surface-50); border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); padding: .75rem 1rem; transition: all .15s; }
.listing-select-card:has(input:checked) .listing-select-card-inner { border-color: var(--brand-600); background: rgba(21,101,192,.05); }
.listing-select-card-inner:hover { border-color: var(--brand-400); }
.lsc-icon { width: 40px; height: 40px; background: var(--surface-200); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-muted); flex-shrink: 0; }
.lsc-img { width: 52px; height: 42px; background: var(--surface-200); border-radius: 6px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-muted); }
.lsc-img img { width: 100%; height: 100%; object-fit: cover; }
.lsc-info { flex: 1; min-width: 0; }
.lsc-title { font-weight: 600; font-size: .87rem; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsc-sub { font-size: .77rem; color: var(--text-secondary); }
.lsc-price { font-size: .82rem; font-weight: 700; color: var(--brand-600); }
.lsc-status { font-size: .7rem; font-weight: 600; border-radius: 50px; padding: .15rem .5rem; white-space: nowrap; }
.lsc-active { background: rgba(56,142,60,.12); color: #388E3C; }
.lsc-draft { background: rgba(100,116,139,.1); color: #64748b; }
.lsc-create-link { font-size: .82rem; color: var(--text-secondary); margin-top: .75rem; }
.lsc-create-link a { color: var(--brand-600); font-weight: 600; text-decoration: none; }

.no-listing-prompt { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface-50); border: 1.5px dashed var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.25rem; }
.nlp-icon { font-size: 2rem; color: var(--text-muted); flex-shrink: 0; margin-top: .25rem; }
.no-listing-prompt h4 { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.no-listing-prompt p { font-size: .85rem; color: var(--text-secondary); margin-bottom: .75rem; }

.manual-fields-header { font-size: .9rem; font-weight: 600; color: var(--text-primary); margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-color); }

.teklif-req-summary { background: #fff; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.teklif-req-summary h4 { font-size: .9rem; font-weight: 700; margin-bottom: .75rem; }
.req-sum-title { font-weight: 600; font-size: .9rem; margin-bottom: .75rem; color: var(--text-primary); }
.req-sum-row { display: flex; justify-content: space-between; font-size: .82rem; padding: .3rem 0; border-bottom: 1px solid var(--border-color); }
.req-sum-row span:first-child { color: var(--text-secondary); }
.req-sum-row span:last-child { font-weight: 600; }
.req-sum-link { display: inline-flex; align-items: center; font-size: .83rem; color: var(--brand-600); text-decoration: none; font-weight: 600; }

.teklif-tips { background: rgba(21,101,192,.05); border: 1px solid rgba(21,101,192,.15); border-radius: var(--radius-md); padding: 1.25rem; }
.teklif-tips h4 { font-size: .88rem; font-weight: 700; margin-bottom: .75rem; }
.teklif-tips ul { padding-left: 1.25rem; margin: 0; }
.teklif-tips li { font-size: .82rem; color: var(--text-secondary); margin-bottom: .4rem; }

/* Responsive */
@media (max-width: 900px) {
    .form-grid-2col { grid-template-columns: 1fr; }
    .ilan-detay-layout { grid-template-columns: 1fr; }
    .teklif-ver-layout { grid-template-columns: 1fr; }
    .ilan-detay-sidebar, .teklif-ver-sidebar { position: static; }
}
@media (max-width: 600px) {
    .olustur-sec-cards { grid-template-columns: 1fr; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr; }
    .ilanlarim-grid { grid-template-columns: 1fr; }
}
