/* ============================================================
   Offerte del Mese — Kerners v1.0
   ============================================================ */

/* ── Wrapper ──────────────────────────────────────────── */
.odm-wrapper {
  width: 100%;
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Grid ─────────────────────────────────────────────── */
.odm-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.odm-cols-1 { grid-template-columns: 1fr; }
.odm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.odm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.odm-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ─────────────────────────────────────────────── */
.odm-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.odm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(3,63,110,0.10);
}

/* ── Image ────────────────────────────────────────────── */
.odm-card__image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 380 / 226;
  background: #f0f2f4;
  text-decoration: none;
}
.odm-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.odm-card:hover .odm-card__image {
  transform: scale(1.03);
}

/* ── Broken image fallback ────────────────────────────── */
.odm-card__image-wrap.odm-no-image {
  background: #f0f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.odm-card__image-wrap.odm-no-image::after {
  content: '📷';
  font-size: 32px;
  opacity: 0.3;
}

/* ── Badge ────────────────────────────────────────────── */
.odm-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.odm-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0.01em;
}
.odm-badge--type {
  background: #033F6E;
}

/* ── Body ─────────────────────────────────────────────── */
.odm-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

/* ── Title ────────────────────────────────────────────── */
.odm-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #033F6E;
  height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.odm-card__title a {
  color: inherit;
  text-decoration: none;
}
.odm-card__title a:hover {
  color: #F28B28;
}

/* ── Location ─────────────────────────────────────────── */
.odm-card__location {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #888;
  line-height: 1;
}
.odm-card__location .odm-icon {
  width: 13px;
  height: 13px;
  color: #aaa;
}

/* ── Details ──────────────────────────────────────────── */
.odm-card__details {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.odm-card__details li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #777;
  line-height: 1;
}
.odm-card__details .odm-icon {
  width: 14px;
  height: 14px;
  color: #F28B28;
}

/* ── Icons ────────────────────────────────────────────── */
.odm-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────── */
.odm-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.odm-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #033F6E;
  line-height: 1;
}
.odm-card__cta {
  display: inline-block;
  padding: 7px 16px;
  background: #F28B28;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.odm-card__cta:hover {
  background: #d97706;
  color: #fff;
}

/* ── Ref (hidden per Figma) ───────────────────────────── */
.odm-card__ref {
  display: none;
}

/* ── States ───────────────────────────────────────────── */
.odm-error,
.odm-empty {
  padding: 20px;
  text-align: center;
  color: #666;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  background: #f8f8f8;
  border-radius: 12px;
}
.odm-error {
  color: #c0392b;
  background: #fdf0ef;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .odm-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .odm-cols-3,
  .odm-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .odm-grid   { gap: 16px; }
}
@media (max-width: 480px) {
  .odm-grid { grid-template-columns: 1fr !important; }
  .odm-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .odm-card__cta {
    width: 100%;
    text-align: center;
  }
}
