/* ==========================================================================
 * Sendet e nderrimit: forma e propozimit (shared/src/sale.jsx), fotot e sendit
 * dhe pamja vetem per lexim (shared/ds/Exchange.jsx).
 * ========================================================================== */

/* ------------------------------------------------------- forma e sendit */

.ex-item {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.ex-item > .form-row,
.ex-item > .field { margin-bottom: 0; }

.ex-item-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 32px; }
.ex-item-title { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }

.ex-location { display: grid; gap: var(--s-2); }
.ex-location > .field { margin-bottom: 0; }

.ex-point { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }
.ex-point-text { font-size: var(--fs-sm); color: var(--ink-2); }

.ex-map {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--surface);
}

.ex-map .form-row { margin-bottom: 0; }

.ex-facts { display: grid; gap: var(--s-3); }
.ex-fact { display: grid; gap: 4px; }

.ex-details,
.exv-details {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: var(--lh-normal);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ex-where { margin: 0; font-size: var(--fs-sm); color: var(--ink); overflow-wrap: anywhere; }

.ex-photos { display: grid; gap: var(--s-2); }
.ex-hint { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }

/* ------------------------------------------------------ fotot e sendit */

.exp { display: grid; gap: var(--s-3); }
.exp-empty { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }

.exp-grid {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.exp-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}

.exp-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-3);
  cursor: zoom-in;
}

.exp-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.exp-thumb:hover img { opacity: 0.9; }
.exp-thumb:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--focus-ring); }

.exp-actions { display: flex; align-items: center; gap: 2px; padding: 2px 4px; border-top: 1px solid var(--line-soft); }

.exp-upload { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); }
.exp-upload-hint { font-size: var(--fs-xs); color: var(--ink-3); }

.exp-stage { display: grid; place-items: center; background: var(--surface-3); border-radius: var(--r); overflow: hidden; }
.exp-stage img { display: block; max-width: 100%; max-height: min(70vh, 640px); object-fit: contain; }

/* --------------------------------------------- pamja vetem per lexim */

.exv { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.exv-empty { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }

.exv-item {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.exv-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.exv-title { flex: 1 1 180px; min-width: 0; font-size: var(--fs-md); color: var(--ink); overflow-wrap: anywhere; }
.exv-value { font-weight: 700; color: var(--ink); white-space: nowrap; }
.exv-note { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

.exv-block { display: grid; gap: 4px; }
.exv-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }

.exv-where { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); margin: 0; font-size: var(--fs-sm); color: var(--ink); }
.exv-where svg { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }
.exv-where a { display: inline-flex; align-items: center; gap: 4px; }
.exv-where a svg { width: 13px; height: 13px; color: currentColor; }

@media (max-width: 640px) {
  .ex-item, .exv-item { padding: var(--s-3); }
  .exp-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

@media print {
  .exp-actions, .exp-upload, .ex-point .btn { display: none; }
}
