/* Immo Agent: additions to the shared "engineering drawing" system (app.css, from job-seeker-agent).
   The feature control frame now reads  typology | score | département. */

/* more filters than job-seeker: let them wrap */
.filters { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

.offer { grid-template-columns: auto minmax(0, 1fr) 230px 170px; }
.offer-body { display: flex; gap: var(--s-4); align-items: flex-start; min-width: 0; }
.offer-body > div { min-width: 0; }
.offer-thumb {
  width: 112px; height: 84px; object-fit: cover; flex: none;
  border: 1px solid var(--frame); background: var(--panel);
}
.offer-dates { row-gap: 2px; align-items: baseline; }
.price { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1; }
.fcf-sym { min-width: 3.4ch; }

.chip {
  display: inline-block; margin-right: var(--s-1);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 1px 6px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink-2);
}
.chip-new { border-color: var(--high); color: var(--high); }

.status.contacted { border-color: var(--mid); color: var(--mid); }
.status.visit { border-color: var(--high); color: var(--high); }

.detail-photo {
  display: block; width: 100%; max-height: 420px; object-fit: cover;
  border: 1.5px solid var(--frame); margin-bottom: var(--s-5);
}
/* the location study is the centrepiece of a listing: frame it like a drawing note */
.study { border-left: 3px solid var(--dykem); padding-left: var(--s-4); }
.study p { white-space: pre-line; }

@media (max-width: 960px) {
  .offer { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .offer { grid-template-columns: 1fr; }
  .offer-thumb { width: 88px; height: 66px; }
}

/* ---------- info + change pages ---------- */
.block-title { margin-top: var(--s-6); }
.sheet h3.display { margin-bottom: var(--s-3); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  font: 500 11px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1.5px solid var(--frame); white-space: nowrap;
}
.table td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tbody tr:hover { background: var(--panel); }
.table .num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.table .big { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.x { border: 0; background: none; color: var(--ink-2); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.x:hover { color: var(--low); }
.hint { font-size: 12px; color: var(--ink-2); }
.sim { display: grid; gap: var(--s-4); }
.sim-out { margin-top: var(--s-2); }
.sim-out .tb-cell:nth-last-child(-n+2) { border-bottom: 0; }
.converter { max-width: 760px; align-items: end; }
.zones .zone-name { white-space: normal; }

/* euro equivalents on Algiers listings */
.eur { margin: 0; font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--high); }
.fx-note { margin: var(--s-4) 0 0; color: var(--ink-2); }

/* info page: overview tab */
.overview { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.overview .tb-cell { border-bottom: 0; }
.tb-link { display: block; color: var(--ink); text-decoration: none; }
.tb-link:hover { background: var(--sheet); text-decoration: none; }
.tb-link:hover .muted { color: var(--dykem); }
.notes { margin: 0; padding-left: 1.2em; max-width: 78ch; display: grid; gap: var(--s-2); }

/* ---------- map page ---------- */
.map { height: clamp(620px, 78vh, 780px); border: 1.5px solid var(--frame); background: var(--panel); z-index: 0; }
.map-filters { border: 0; border-top: 1px solid var(--rule); margin: 0; justify-content: flex-start; gap: var(--s-4); }
.pin-key { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--frame); }
.pin, .pin-key { --pin: var(--dykem); }
.pin.neuf, .pin-key.neuf { --pin: #2F7A4B; }
.pin.ancien, .pin-key.ancien { --pin: #55616B; }
.pin-key { background: var(--pin); border-color: var(--pin); }
/* a pin = a small score frame; colours are fixed (the OSM tiles stay light even in dark mode) */
.pin {
  display: grid; place-items: center; width: 38px; height: 24px;
  font: 700 15px/1 "Saira Extra Condensed", "Arial Narrow", sans-serif; letter-spacing: 0.03em;
  color: #fff; background: var(--pin); border: 2px solid #18212B; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); cursor: pointer;
}
.pin.approx { border-style: dashed; opacity: 0.88; }
.pin:hover { outline: 2px solid #fff; }
.leaflet-tooltip.map-tip {
  padding: 0; border: 1.5px solid #18212B; border-radius: 3px; background: #F7F8F5; color: #18212B;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); white-space: normal;
}
.map-card { width: 300px; padding: 10px 12px; font: 400 12.5px/1.35 "Archivo", system-ui, sans-serif; }
.map-card .label { color: #55616B; margin: 0; }
.map-card-photo { display: block; width: calc(100% + 24px); height: 84px; object-fit: cover; margin: -10px -12px 8px; }
.map-card-title { margin: 2px 0 8px; font-weight: 600; font-size: 15px; line-height: 1.25; }
.map-card-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; }
.map-card-facts dd { margin: 0; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 12px; }
.map-card-reason { margin: 8px 0 0; color: #55616B; font-size: 12px; }
.map-card-hint { margin: 8px 0 0; font-size: 11px; color: #2340C4; font-weight: 600; }

/* developer / agency name */
.map-card-seller { margin: -4px 0 8px; font-size: 14px; }
.map-card-seller strong { color: #2340C4; }
.seller { margin: var(--s-2) 0 0; font-size: 17px; }
.offer-seller { margin: 4px 0 0; font-size: 14px; }

.map-wilaya { min-width: 180px; }
.zones { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
