/* Pagina unui apartament disponibil (apartament-<bloc>-<nr>.html), randată din app/modules/apartments.php.
   Se încarcă după disponibilitate.css (de acolo vin pastilele de stare .st). */

.apd-hero { min-height: clamp(360px, 44svh, 480px); }
.apd-hero .page-hero__title { max-width: 18ch; }
.apd-hero__k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; font: 500 .9rem/1.2 var(--f-display); color: var(--muted); animation: fadeUp .9s var(--ease) both; }
.apd-hero .page-hero__facts { background: var(--paper); border-color: var(--line); }
.apd-hero .page-hero__facts > div + div { border-left-color: var(--line); }
.apd-hero .page-hero__facts dt { color: var(--muted); }

.apd { padding-top: clamp(28px, 4vw, 56px); }
.apd__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

/* planul */
.apd__plan { margin: 0; }
.apd__zoom {
  position: relative; display: block; width: 100%; padding: clamp(14px, 2.4vw, 32px);
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); cursor: zoom-in;
  transition: border-color .2s, box-shadow .3s var(--ease);
}
.apd__zoom:hover { border-color: rgba(15, 15, 14, .25); box-shadow: 0 24px 60px -32px rgba(15, 15, 14, .35); }
.apd__zoom img { display: block; width: 100%; height: auto; max-height: 78svh; object-fit: contain; }
.apd__hint {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 .84rem/1 var(--f-display);
}
.apd__hint .ic { width: 15px; height: 15px; }
.apd__plan figcaption { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.apd__noplan {
  display: grid; place-items: center; gap: 14px; min-height: 340px; padding: 32px; text-align: center;
  border-radius: var(--r-lg); background: var(--white); border: 1px dashed rgba(15, 15, 14, .2); color: var(--muted);
}
.apd__noplan .ic { width: 30px; height: 30px; color: var(--ink); }
.apd__noplan p { max-width: 34ch; }

/* cardul cu detalii */
.apd__card {
  position: sticky; top: 104px; padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
}
.apd__price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.apd__price span { font-size: .86rem; color: var(--muted); }
.apd__price b { font: 600 clamp(1.7rem, 2.6vw, 2.2rem)/1 var(--f-display); letter-spacing: -.03em; }
.apd__price b.is-ask { font-size: 1.3rem; }
.apd__h { margin: 22px 0 8px; font: 600 1rem/1.2 var(--f-display); letter-spacing: -.01em; }
.apd__rooms { width: 100%; border-collapse: collapse; font-size: .96rem; }
.apd__rooms th, .apd__rooms td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.apd__rooms td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.apd__rooms tfoot th, .apd__rooms tfoot td { border-bottom: 0; padding-top: 13px; font: 600 1.06rem/1.2 var(--f-display); }
.apd__rooms tbody tr:last-child th, .apd__rooms tbody tr:last-child td { border-bottom-color: rgba(15, 15, 14, .3); }
.apd__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 20px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--paper); }
.apd__meta dt { font-size: .78rem; color: var(--muted); }
.apd__meta dd { margin-top: 3px; font: 600 .98rem/1.25 var(--f-display); }
.apd__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.apd__ctas .btn--ink { flex: 1 1 260px; justify-content: space-between; }
.apd__gift { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.apd__gift .ic { width: 17px; height: 17px; color: var(--ink); }

/* alte apartamente din bloc */
.apd-more { padding-top: 0; }
.apd-more__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 28px; }
.apd-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.apd-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px 22px;
  border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease);
}
.apd-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.apd-card__k { font-size: .82rem; color: var(--muted); }
.apd-card b { font: 600 1.2rem/1.2 var(--f-display); letter-spacing: -.02em; padding-right: 40px; }
.apd-card__row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 10px; font-size: .92rem; }
.apd-card__price { font-weight: 600; }
.apd-card__go { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.apd-card__go .ic { width: 15px; height: 15px; }
.apd-more__all { margin-top: 18px; }
.apd-more__all a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .apd__grid { grid-template-columns: 1fr; }
  .apd-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apd__card { position: static; }
  .apd-hero .page-hero__facts { width: 100%; }
  .apd-hero .page-hero__facts > div { flex: 1; padding: 14px 16px; }
}
@media (max-width: 520px) {
  .apd__meta { grid-template-columns: 1fr 1fr; }
  .apd-more__grid { grid-template-columns: 1fr; }
  .apd__hint span, .apd__hint { font-size: .78rem; }
}
