/* ==========================================================================
   Carduri oferte in lista (lista.asp) - format identic cu tema angluxury-nou
   (col-prop-recomandate / property-card-body), adaptat la brandul Fimmo.
   ========================================================================== */
:root {
  --fm-gold: #c5a572;
  --fm-bg-card: #1a1a1a;
  --fm-border: rgba(197, 165, 114, 0.15);
  --fm-border-subtle: rgba(255, 255, 255, 0.08);
  --fm-text: #f5f0eb;
  --fm-text-secondary: #a09890;
  --fm-text-muted: #8a847d;
  --fm-font-display: "Cormorant Garamond", Georgia, serif;
}

/* Grid 3 coloane (bootstrap .row -> grid) */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
.properties-grid > .property_wrapper {
  width: auto;
  max-width: none;
  max-height: none !important;
  flex: none;
  padding: 0;
  margin: 0;
}
.properties-grid > .clearfix { display: none; }
.properties-grid > :not(.property_wrapper) { grid-column: 1 / -1; }

/* Card */
.properties-grid .col-prop-recomandate {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--fm-bg-card);
  border: 1px solid var(--fm-border-subtle);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.properties-grid .col-prop-recomandate:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-color: var(--fm-gold);
}

/* Imagine */
.properties-grid .col-prop-recomandate > a:first-of-type {
  display: block;
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  margin: 0;
}
.properties-grid .col-prop-recomandate > a:first-of-type img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.properties-grid .col-prop-recomandate:hover > a:first-of-type img {
  transform: scale(1.05);
}

/* Badge tip tranzactie */
.properties-grid .col-prop-recomandate .rent {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(197, 165, 114, 0.3);
  z-index: 2;
  line-height: 1.2;
  max-width: calc(100% - 80px);
  white-space: normal;
}

/* Inima salvare oferta */
.properties-grid .col-prop-recomandate .btnSaveIcon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 3;
  transition: all 0.3s;
  text-decoration: none;
  line-height: 1;
}
.properties-grid .col-prop-recomandate .btnSaveIcon i {
  font-size: 15px;
  color: inherit;
}
.properties-grid .col-prop-recomandate .btnSaveIcon:hover,
.properties-grid .col-prop-recomandate .btnSaveIcon.saved,
.properties-grid .col-prop-recomandate .btnSaveIcon.active {
  background: var(--fm-gold);
  color: #0a0a0a;
}

/* Corp card: pret, titlu, locatie, specificatii */
.properties-grid .col-prop-recomandate .property-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
  color: var(--fm-text);
}
.properties-grid .col-prop-recomandate .property-price {
  font-family: var(--fm-font-display);
  font-size: 25px;
  font-weight: 500;
  color: var(--fm-gold);
  line-height: 1.2;
  margin: 0;
}
.properties-grid .col-prop-recomandate .property-price-tva {
  font-family: var(--fm-font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--fm-text-secondary);
  opacity: 0.8;
  margin-left: 6px;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: baseline;
}
.properties-grid .col-prop-recomandate .property-price-old {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--fm-text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.properties-grid .col-prop-recomandate .property-title {
  font-family: var(--fm-font-display);
  font-size: 19px;
  color: var(--fm-text);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.properties-grid .col-prop-recomandate .property-title .property-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.properties-grid .col-prop-recomandate .property-title .property-title-link:hover,
.properties-grid .col-prop-recomandate .property-title .property-title-link:focus {
  color: var(--fm-gold);
  text-decoration: none;
}
.properties-grid .col-prop-recomandate .property-location {
  font-size: 13px;
  color: var(--fm-text-muted);
  line-height: 1.5;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.properties-grid .col-prop-recomandate .property-location .loc-dot {
  color: var(--fm-gold);
  font-size: 0.85em;
}
.properties-grid .col-prop-recomandate .property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--fm-border-subtle);
}
.properties-grid .col-prop-recomandate .property-specs:empty { display: none; }
.properties-grid .col-prop-recomandate .property-spec {
  font-size: 13px;
  color: var(--fm-text-secondary);
  line-height: 1.4;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.properties-grid .col-prop-recomandate .property-spec strong {
  color: var(--fm-text);
  font-weight: 600;
  font-size: 14px;
}

/* Microdate schema.org ascunse vizual */
.properties-grid .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .properties-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .properties-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Paginile cu h3 restilizat (ex. .property_section din detaliioferta) nu trebuie sa suprascrie titlul cardului */
.properties-grid h3.property-title,
.properties-grid h3.property-title a {
  font-family: var(--fm-font-display) !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  text-transform: none !important;
}
