/* ZAA TRUCK — ichki sahifalar uchun umumiy uslublar (loads, listing, post, my) */
:root {
  --navy: #152A4D;
  --navy-deep: #0C1A33;
  --navy-2: #1D3864;
  --orange: #E8772E;
  --orange-dim: #CC6220;
  --orange-tint: #FCEFE5;
  --paper: #F3F5F8;
  --line: #E1E5EC;
  --ink: #152A4D;
  --text: #2A3550;
  --muted: #5D6980;
  --danger: #C8371D;
  --ok: #1F8A5B;
  --ok-tint: #E7F4EE;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--paper); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: "Archivo", "Inter", sans-serif; color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
main { flex: 1; }
.mono { font-family: "JetBrains Mono", monospace; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 125%; font-size: 1.22rem; color: var(--navy); letter-spacing: .02em; }
.logo-text span { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 125%; font-size: .56rem; color: var(--orange); letter-spacing: .42em; margin-top: 4px; }
.hdr nav { display: flex; gap: 2px; margin-left: 12px; }
.hdr nav a { padding: 8px 13px; white-space: nowrap; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--text); transition: background .15s; }
.hdr nav a:hover { background: var(--paper); }
.hdr nav a.active { background: var(--navy); color: #fff; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cur-select { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 10px; font-size: .84rem; font-weight: 600; cursor: pointer; }
.avatar-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; }
.avatar-btn:hover { border-color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: "Archivo", sans-serif; font-weight: 800; font-size: .82rem; flex-shrink: 0; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }
.mnav { display: none; }
@media (max-width: 960px) {
  .hdr nav, .hdr .hide-md { display: none; }
  .menu-btn { display: block; }
  .mnav.open { display: flex; flex-direction: column; padding: 8px 16px 16px; gap: 2px; border-top: 1px solid var(--line); background: #fff; }
  .mnav a { padding: 12px 10px; border-radius: 10px; font-weight: 600; }
  .mnav a:hover, .mnav a.active { background: var(--paper); }
}
@media (max-width: 480px) { .avatar-btn .name { display: none; } .avatar-btn { padding: 4px; } .hdr .btn-post-txt { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: .93rem; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, opacity .15s; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dim); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(21,42,77,.06); }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid #F3C9BF; }
.btn-danger:hover { background: #FDECE8; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading svg { display: none; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); transition: color .15s, border-color .15s, background .15s; flex-shrink: 0; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { color: var(--orange); border-color: var(--orange); background: var(--orange-tint); }

/* ---------- Forms ---------- */
.fld { display: block; }
.fld > span, .lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin: 0 0 6px 2px; }
.fld > span small, .lbl small { color: var(--muted); font-weight: 500; }
.inp, .sel, .txt { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: .95rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus, .sel:focus, .txt:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(21,42,77,.08); }
.inp.invalid, .sel.invalid { border-color: var(--danger); }
.sel { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D6980' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.txt { min-height: 96px; resize: vertical; line-height: 1.5; }
.inp-group { display: flex; }
.inp-group .inp { border-radius: 12px 0 0 12px; }
.inp-group .sel { border-radius: 0 12px 12px 0; border-left: 0; width: auto; min-width: 92px; background-color: var(--paper); font-weight: 600; }
.inp-suffix { position: relative; }
.inp-suffix .inp { padding-right: 44px; }
.inp-suffix em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: .88rem; font-weight: 600; pointer-events: none; }
.place { display: grid; grid-template-columns: 112px 1fr; }
.place .sel { border-radius: 12px 0 0 12px; background-color: var(--paper); font-weight: 600; padding-right: 30px; background-position: right 8px center; }
.place .inp { border-radius: 0 12px 12px 0; border-left: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; line-height: 1.4; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); margin: 1px 0 0; flex-shrink: 0; cursor: pointer; }
.check small { display: block; color: var(--muted); font-size: .8rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.switch-row b { display: block; font-size: .9rem; color: var(--ink); }
.switch-row small { display: block; font-size: .78rem; color: var(--muted); }
.toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle i { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked + i { background: var(--orange); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { box-shadow: 0 0 0 3px rgba(232,119,46,.35); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-pick button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--text); }
.chips-pick button:hover { border-color: #C3CBD8; }
.chips-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Cards / panels ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.panel-title .n { font-family: "JetBrains Mono", monospace; font-size: .72rem; color: var(--orange); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-muted { background: var(--paper); color: var(--muted); }
.badge-orange { background: var(--orange-tint); color: var(--orange-dim); }
.badge-navy { background: var(--navy); color: #fff; }
.badge svg { width: 12px; height: 12px; }

/* Listing card */
.lcard { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lcard:hover { border-color: #C9D0DC; box-shadow: 0 12px 30px -18px rgba(21,42,77,.35); }
.lcard-link { position: absolute; inset: 0; border-radius: 16px; z-index: 1; }
.lcard .route { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.lcard .route .flag { font-size: 1rem; }
.lcard .route svg { width: 18px; height: 18px; color: var(--orange); }
.lcard .route .any { color: var(--muted); font-weight: 600; font-family: "Inter", sans-serif; font-size: .95rem; }
.lcard .title { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.lcard .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.lcard .meta span { display: inline-flex; align-items: center; gap: 5px; background: var(--paper); border-radius: 8px; padding: 4px 9px; font-size: .8rem; font-weight: 500; color: var(--text); }
.lcard .meta svg { width: 13px; height: 13px; color: var(--muted); }
.lcard .price { text-align: right; }
.lcard .price b { display: block; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.12rem; color: var(--ink); white-space: nowrap; }
.lcard .price small { display: block; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.lcard .foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.lcard .foot .who { display: inline-flex; align-items: center; gap: 6px; }
.lcard .foot .who svg { width: 14px; height: 14px; color: var(--ok); }
.lcard .save { position: relative; z-index: 2; }
.lcard.closed { opacity: .65; }
@media (max-width: 560px) { .lcard { grid-template-columns: 1fr; padding: 16px; } .lcard .price { text-align: left; } }

/* Empty / loading */
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed #CBD2DE; border-radius: var(--r); }
.empty .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: var(--orange-tint); color: var(--orange); display: grid; place-items: center; }
.empty .ico svg { width: 30px; height: 30px; }
.empty h3 { font-size: 1.15rem; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 380px; font-size: .93rem; }
.skeleton { height: 128px; border-radius: 16px; background: linear-gradient(90deg, #E9EDF2 25%, #F4F6F9 50%, #E9EDF2 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Alerts & toast */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; font-weight: 500; line-height: 1.45; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: #FDECE8; color: var(--danger); }
.alert-info { background: #EAF5FB; color: #1A6E96; }
.alert-ok { background: var(--ok-tint); color: var(--ok); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(12,26,51,.5); }
.modal-box { background: #fff; border-radius: 20px; padding: 26px; width: 100%; max-width: 420px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); }
.modal-box h3 { font-size: 1.25rem; }
.modal-box p { color: var(--muted); margin: 8px 0 20px; font-size: .93rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Page head */
.page-head { padding: 34px 0 24px; }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 900; font-stretch: 110%; letter-spacing: -.01em; }
.page-head p { color: var(--muted); margin-top: 6px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { flex-shrink: 0; }
.tabs button, .tabs a { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tabs button svg, .tabs a svg { width: 17px; height: 17px; }
.tabs .on { background: var(--navy); color: #fff; }
.tabs .count { font-size: .72rem; background: rgba(255,255,255,.2); padding: 1px 7px; border-radius: 99px; }
.tabs :not(.on) .count { background: var(--paper); color: var(--muted); }

/* Footer */
.ftr { margin-top: 0; background: var(--navy-deep); color: rgba(255,255,255,.6); font-size: .85rem; }
.ftr .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.ftr a:hover { color: #fff; }
.ftr nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- Mashina rasmlari ---------- */
.v-mini { width: 46px; height: 22px; flex-shrink: 0; margin: -3px 0; }
.lcard .meta .v-chip { padding: 3px 9px 3px 6px; }
.v-art { width: 100%; height: auto; display: block; }

/* ---------- Yulduzlar va baholash ---------- */
.stars { display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; white-space: nowrap; }
.stars b { color: #E8A21B; font-weight: 800; }
.stars small { color: var(--muted); }
.stars.new { color: var(--muted); font-size: .74rem; background: var(--paper); padding: 1px 7px; border-radius: 99px; }
.rate-box { position: relative; text-align: center; max-width: 440px; }
.rate-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
.rate-ava { width: 64px; height: 64px; border-radius: 20px; font-size: 1.3rem; margin: 4px auto 12px; display: grid; }
.rate-sub { color: var(--muted); font-size: .88rem; margin: 4px 0 0; }
.rate-q { font-weight: 700; color: var(--ink); margin: 18px 0 8px; }
.star-pick { display: flex; justify-content: center; gap: 6px; }
.star-pick button { background: none; border: 0; font-size: 2.6rem; line-height: 1; color: #D6DCE6; cursor: pointer; padding: 2px; transition: transform .1s, color .1s; }
.star-pick button:hover { transform: scale(1.12); }
.star-pick button.on { color: #F5B323; }
.star-hint { font-size: .85rem; color: var(--muted); min-height: 1.3em; margin-top: 4px; }
.rate-more { text-align: left; margin-top: 14px; }
.rate-tags { justify-content: center; }
.rate-tags .lbl { text-align: center; }
.rate-box .modal-actions { justify-content: space-between; }
.rating-head { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 18px 0 10px; }
.rating-head .big { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 3rem; color: var(--ink); line-height: 1; }
.big-stars { color: #F5B323; font-size: 1.3rem; letter-spacing: 2px; }
.big-stars span { color: #D6DCE6; }
.rating-head small { color: var(--muted); }
.dist { display: grid; gap: 5px; margin: 8px 0 14px; text-align: left; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.dist-row i { height: 7px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.dist-row i b { display: block; height: 100%; background: #F5B323; border-radius: 99px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.reviews { text-align: left; max-height: 300px; overflow-y: auto; display: grid; gap: 10px; }
.review { background: var(--paper); border-radius: 12px; padding: 12px; font-size: .88rem; }
.review-top { display: flex; justify-content: space-between; gap: 10px; }
.review-tags { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.review p { margin-top: 6px; }
.review > small { color: var(--muted); font-size: .74rem; display: block; margin-top: 6px; }

/* Viloyat tanlash */
.place-pick { display: grid; gap: 8px; }
.place-pick .sel optgroup { font-weight: 700; color: var(--ink); }

/* Til tanlash */
.lang-select { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 10px; font-size: .84rem; font-weight: 600; cursor: pointer; }

/* ---------- E'lon rasmlari ---------- */
.lcard.has-photo { grid-template-columns: 132px 1fr auto; }
.lcard.has-photo .meta, .lcard.has-photo .foot { grid-column: 2 / -1; }
.lcard-photo { grid-row: 1 / span 3; position: relative; border-radius: 12px; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; align-self: start; }
.lcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.lcard:hover .lcard-photo img { transform: scale(1.05); }
.lcard-photo span { position: absolute; right: 6px; bottom: 6px; background: rgba(12,26,51,.75); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
@media (max-width: 560px) { .lcard.has-photo { grid-template-columns: 1fr; } .lcard.has-photo .meta, .lcard.has-photo .foot { grid-column: 1; } .lcard-photo { grid-row: auto; aspect-ratio: 16 / 9; } }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--paper); cursor: pointer; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .ph-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(12,26,51,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph .ph-x svg { width: 14px; height: 14px; }
.ph .ph-main { position: absolute; left: 6px; bottom: 6px; background: var(--orange); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.ph.uploading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55) linear-gradient(90deg, transparent, rgba(232,119,46,.35), transparent) no-repeat; background-size: 60% 100%; animation: ph-load 1s linear infinite; }
@keyframes ph-load { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.ph.err { outline: 2px solid var(--danger); }
.ph-add { aspect-ratio: 1; border: 2px dashed #C9D0DC; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; text-align: center; padding: 8px; color: var(--navy); transition: border-color .15s, background .15s; }
.ph-add:hover, .photos.drag .ph-add { border-color: var(--orange); background: var(--orange-tint); }
.ph-add .ai { width: 34px; height: 34px; }
.ph-add b { font-size: .82rem; }
.ph-add small { font-size: .7rem; color: var(--muted); }

.gallery { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.gallery-main { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 84px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--paper); }
.gallery-thumbs button.on { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,12,24,.92); display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-x { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-n { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; }

/* Bo'sh holatdagi animatsiyali ikonka */
.empty .ico .ai { width: 34px; height: 34px; }

/* Kartochkalar ketma-ket paydo bo'ladi */
.list > .lcard, .list > .item-wrap, .list > .ss, .similar > .lcard { animation: card-in .45s cubic-bezier(.2,.7,.2,1) both; }
.list > :nth-child(2) { animation-delay: .04s; } .list > :nth-child(3) { animation-delay: .08s; }
.list > :nth-child(4) { animation-delay: .12s; } .list > :nth-child(5) { animation-delay: .16s; }
.list > :nth-child(n+6) { animation-delay: .2s; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.btn-orange { position: relative; overflow: hidden; }
.btn-orange::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-orange:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .list > *, .similar > * { animation: none !important; } .btn-orange::after { display: none; } }

/* Davlat → viloyat tanlash */
.pp-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sel:disabled { background-color: var(--paper); color: var(--muted); cursor: not-allowed; }
@media (max-width: 460px) { .pp-row { grid-template-columns: 1fr; } }

.badge-tg { background: #E3F2FB; color: #1A7DB0; }
.badge-tg svg { width: 12px; height: 12px; }

/* ---------- Sarlavha: xabarlar va bildirishnomalar ---------- */
.hdr { position: sticky; }
.hdr-ic { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.hdr-ic:hover { border-color: var(--ink); }
.hdr-ic svg { width: 19px; height: 19px; }
.dot-n { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.note-panel { position: absolute; top: 62px; right: 24px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(12,26,51,.35); z-index: 80; }
.np-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.np-h a { font-size: .8rem; color: var(--orange-dim); font-weight: 700; }
.np-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--paper); }
.np-item:hover { background: var(--paper); }
.np-item.unread { background: var(--orange-tint); }
.np-ic { font-size: 1.2rem; line-height: 1.4; }
.np-item b { display: block; font-size: .88rem; color: var(--ink); }
.np-item small { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.np-item em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.np-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) { .hdr .wrap { gap: 8px; } .hdr-ic { width: 36px; height: 36px; } .note-panel { right: 8px; } }
.av-img { object-fit: cover; }
.vbadge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #1DA1F2; color: #fff; margin-left: 4px; vertical-align: -3px; }
.vbadge svg { width: 10px; height: 10px; }

/* Suzuvchi "Xabarlar" tugmasi */
.fab-chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 12px 30px rgba(21,42,77,.35); text-decoration: none; transition: transform .2s, background .2s; }
.fab-chat:hover { transform: translateY(-2px); background: var(--orange); color: #fff; }
.fab-chat svg { width: 20px; height: 20px; }
.fab-chat .dot-n { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: #fff; font-size: .74rem; display: grid; place-items: center; border: 2px solid #fff; }
.fab-chat:hover .dot-n { background: var(--navy); }
@media (max-width: 600px) { .fab-chat span { display: none; } .fab-chat { padding: 14px; right: 14px; bottom: 14px; } }
@media (max-width: 1440px) { .hdr nav a { padding: 8px 9px; font-size: .88rem; } .hdr .avatar-btn .name { display: none; } }

/* Fura yo'nalishi (assets/route.js) */
.rt-map { height: 320px; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); z-index: 0; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.rt-grid > div, .rt-fuel-out { background: var(--paper); border-radius: 14px; padding: 12px 14px; }
.rt-grid span, .rt-fuel-out span { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; }
.rt-grid b, .rt-fuel-out b { display: block; font-family: "Archivo", sans-serif; font-weight: 900; font-size: 1.2rem; color: var(--ink); margin-top: 2px; }
.rt-grid small, .rt-fuel-out small { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.rt-fuel { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; margin-top: 10px; align-items: end; }
.rt-fuel label { font-size: .76rem; color: var(--muted); font-weight: 600; display: grid; gap: 4px; }
@media (max-width: 560px) { .rt-fuel { grid-template-columns: 1fr 1fr; } .rt-fuel-out { grid-column: 1 / -1; } .rt-map { height: 240px; } }
.rt-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rt-tolls { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; gap: 8px; font-size: .88rem; color: var(--ink); }
.rt-cs { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-cs > span { padding: 3px 10px; border-radius: 99px; background: var(--paper); font-weight: 700; font-size: .8rem; }
.rt-toll small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.rt-tolls [data-rt-docs] { justify-self: start; }
.rt-docs ul { margin: 4px 0 8px 18px; padding: 0; display: grid; gap: 3px; }
.rt-docs b { display: block; margin-top: 6px; }
.rt-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.rt-upd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.rt-warn { color: var(--ink); background: var(--orange-tint); border-radius: 10px; padding: 8px 12px; }
.report-reasons { display: grid; gap: 6px; margin-top: 12px; }
.report-reasons label { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink); }
.report-reasons label:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.link-report { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; }
.link-report:hover { color: var(--danger); }
.rt-borders { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); display: grid; gap: 6px; font-size: .88rem; }
.rt-borders a { color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rt-borders a:hover { text-decoration: underline; }
.rt-borders .dotc { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rt-borders small { color: var(--muted); }

/* Bozor narxi, narx takliflari, qaytish yuki */
.market { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--paper); display: grid; gap: 2px; }
.market span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.market b { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 1.15rem; color: var(--ink); }
.market small { color: var(--muted); font-size: .8rem; }
.market .mk { font-style: normal; font-weight: 800; font-size: .78rem; justify-self: start; padding: 3px 9px; border-radius: 99px; margin-top: 4px; }
.mk.low { background: #E6F6EE; color: #138A55; } .mk.ok { background: #EAF1FB; color: #2A5DA8; } .mk.high { background: #FDECE8; color: var(--danger); }
.offer-form { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.offer-form input[name=note], .offer-form .btn { grid-column: 1 / -1; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.offer:last-child { border-bottom: 0; }
.offer.rejected { opacity: .55; }
.offer-who { display: flex; gap: 10px; align-items: center; color: var(--ink); min-width: 0; }
.offer-who .avatar { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.offer-who small { display: block; color: var(--muted); font-size: .8rem; }
.offer-price { text-align: right; }
.offer-price b { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 1.15rem; color: var(--ink); display: block; }
.offer-price small { color: var(--muted); font-size: .78rem; }
.offer-note { grid-column: 1 / -1; color: var(--text); font-size: .9rem; margin: 0; }
.offer-acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.backhaul { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #FFF3EA, #FFE6D3); color: var(--ink); border: 1px solid #F6CDAE; }
.backhaul .bh-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; flex-shrink: 0; }
.backhaul b { display: block; } .backhaul small { color: var(--text); font-size: .82rem; }
.backhaul .bh-go { margin-left: auto; font-weight: 900; color: var(--orange); font-size: 1.3rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--orange); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
#market-hint { margin-top: 6px; font-size: .84rem; color: var(--text); }

/* Telefon pastki menyusi */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(21,42,77,.08); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: .7rem; font-weight: 700; }
  .tabbar a i { font-style: normal; font-size: 1.35rem; line-height: 1; }
  .tabbar a.on { color: var(--orange); }
  .tabbar a.plus i { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(232,119,46,.45); font-size: 1.3rem; }
  .tabbar .dot-n { position: absolute; top: 0; right: 22%; }
  body.has-tabbar { padding-bottom: 72px; }
  body.has-tabbar .fab-chat { display: none; }
}
/* «Yangi imkoniyatlar» va profil asboblari */
.tools-box { max-width: 560px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.tool { display: grid; gap: 2px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .15s, transform .15s; }
.tool:hover { border-color: var(--orange); transform: translateY(-2px); }
.tool i { font-style: normal; font-size: 1.6rem; }
.tool b { font-size: .92rem; }
.tool small { color: var(--muted); font-size: .76rem; line-height: 1.35; }

.mnav-sel { display: flex; gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
.mnav-sel select { flex: 1; min-width: 130px; }
