/* Presentation only: no hidden records, invented fields, or numeric changes. */
.os-rail > .os-card {
  align-self: flex-start;
  height: auto;
}
.os-card .name-row {
  align-items: center;
}
.os-card .os-restaurant-info {
  font-size: 16px;
  line-height: 1.35;
}
.os-card .os-compact-status {
  display: flex;
  align-items: baseline;
  gap: 0;
  min-width: 0;
  margin-top: 6px;
  color: var(--os-text, #1c2a44);
  font-size: 16px;
  line-height: 1.35;
}
.os-card .os-compact-status .os-card-branch {
  flex: 0 1 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.os-card .os-card-branch:not([hidden])::after {
  content: " · ";
  white-space: pre;
}
.os-card .os-compact-status .os-restaurant-info {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-card .os-compact-status [hidden] {
  display: none !important;
}
.os-card .meta-row .os-distance-price {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  white-space: nowrap;
}
.os-card .meta-row .os-distance-price .distance-badge,
.os-card .meta-row .os-distance-price .fee {
  flex: 0 0 auto;
  margin-block: 0;
}
.os-card .os-compact-distance-row {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
}
/* Shared optional row (preparation, minimum order, pickup) for tenant and import cards. */
.os-card .os-compact-optional {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
  color: var(--os-muted, #6b7384);
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.os-card .os-compact-optional[hidden] {
  display: none !important;
}
.os-card .os-compact-optional [hidden] {
  display: none !important;
}
.os-card .os-compact-status .os-restaurant-info:empty {
  display: none;
}

/* Shared under-image geometry, preserving the existing Kazdoura reference.
   No content, calculations, contacts, grid, image or offer changes. */
.os-card .body > .name-row {
  min-height: 36px;
  margin: 0 0 4px;
  align-items: center;
}

/* Branch labels are overflow-clipped flex items. Do not derive the row's
   baseline from them: the single-status tenant uses a different flex baseline. */
.os-card .os-compact-status {
  align-items: center;
  margin: 6px 0 0;
  height: 1.35em;
  min-height: 1.35em;
  line-height: 1.35;
}
.os-card .os-compact-status > .os-card-branch,
.os-card .os-compact-status > .os-restaurant-info {
  display: block;
  line-height: inherit;
  margin: 0;
  padding: 0;
}

/* Keep the separator outside the ellipsized branch so it cannot disappear. */
.os-card .os-card-branch:not([hidden])::after {
  content: none;
}
.os-card .os-card-branch:not([hidden]) + .os-restaurant-info::before {
  content: " · ";
  white-space: pre;
}

.os-card .meta-row.os-compact-distance-row {
  margin: 6px 0 2px;
  line-height: 1.4;
  min-height: 20.8px;
  align-items: center;
}
.os-card .os-compact-distance-row .os-distance-price {
  align-items: center;
  line-height: 1.4;
}
.os-card .os-compact-distance-row .distance-badge {
  line-height: 1.4;
}
