/* Alwarda Property Card V2 - 2026 warm liquid real estate card */

.alw-v2-shell {
  --aw-green: #17664d;
  --aw-green-deep: #0f3f31;
  --aw-ink: #14382f;
  --aw-muted: #647f76;
  --aw-soft: #f6f1ea;
  --aw-glass: rgba(255, 255, 255, 0.82);
  --aw-line: rgba(23, 102, 77, 0.14);
  --aw-gold: #b78a55;
  --aw-shadow: 0 24px 70px rgba(15, 63, 49, 0.13);
  --aw-shadow-hover: 0 34px 95px rgba(15, 63, 49, 0.20);
  direction: rtl;
  width: 100%;
  container-type: inline-size;
  font-family: Cairo, "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  color: var(--aw-ink);
}

.alw-v2-shell *,
.alw-v2-shell *::before,
.alw-v2-shell *::after {
  box-sizing: border-box;
}

.alw-v2-shell a {
  color: inherit;
  text-decoration: none;
}

.alw-v2-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 8%, rgba(214, 173, 129, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--aw-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(0);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.alw-v2-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--aw-shadow-hover);
  border-color: rgba(214, 173, 129, 0.34);
}

.alw-v2-card__media-link {
  display: block;
}

.alw-v2-card__media {
  position: relative;
  height: 248px;
  margin: 0;
  overflow: hidden;
  border-radius: 28px 28px 20px 20px;
  background: #eef2ef;
}

.alw-v2-card__image,
.alw-v2-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.alw-v2-card__image {
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 520ms ease, filter 520ms ease;
}

.alw-v2-card:hover .alw-v2-card__image {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}

.alw-v2-card__placeholder {
  display: grid;
  place-items: center;
  color: rgba(15, 63, 49, 0.58);
  background: linear-gradient(135deg, rgba(23,102,77,0.10), rgba(214,173,129,0.16));
  font-weight: 900;
}

.alw-v2-card__image-wash {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15, 63, 49, 0.28));
}

.alw-v2-card__micro {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 14px;
  display: inline-flex;
  max-width: calc(100% - 32px);
  min-height: 30px;
  align-items: center;
  padding: 7px 12px;
  color: #fff;
  background: rgba(15, 63, 49, 0.42);
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alw-v2-card__surface {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 18px;
}

.alw-v2-card__title {
  margin: 0;
  color: var(--aw-green-deep);
  text-align: start;
  font-size: clamp(21px, 4.8cqw, 27px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.04em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.alw-v2-card__title a {
  color: inherit;
}

.alw-v2-card__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(246, 241, 234, 0.74);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.alw-v2-card__fact {
  min-width: 0;
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(23, 102, 77, 0.07);
}

.alw-v2-card__fact-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--aw-green);
  opacity: 0.92;
}

.alw-v2-card__fact-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.alw-v2-card__fact-main {
  width: 100%;
  color: var(--aw-green-deep);
  text-align: center;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alw-v2-card__fact-sub {
  width: 100%;
  color: var(--aw-muted);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alw-v2-card__decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-top: 2px;
}

.alw-v2-card__prices {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.alw-v2-card__price-primary {
  max-width: 100%;
  color: var(--aw-gold);
  font-size: clamp(17px, 4.1cqw, 22px);
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  unicode-bidi: plaintext;
}

.alw-v2-card__price-secondary {
  max-width: 100%;
  color: rgba(100, 127, 118, 0.92);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alw-v2-card__price-primary--contact {
  direction: rtl;
  color: var(--aw-muted);
  font-size: 14px;
}

.alw-v2-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  color: #fff !important;
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.22), transparent 32%),
    linear-gradient(135deg, var(--aw-green), var(--aw-green-deep));
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(15, 63, 49, 0.22);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.alw-v2-card__action-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  transition: transform 220ms ease;
}

.alw-v2-card__action:hover .alw-v2-card__action-icon {
  transform: translateX(-2px);
}

.alw-v2-card__action-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.alw-v2-card a:focus-visible {
  outline: 3px solid rgba(214, 173, 129, 0.82);
  outline-offset: 4px;
  border-radius: 14px;
}

@container (max-width: 390px) {
  .alw-v2-card {
    border-radius: 20px;
  }

  .alw-v2-card:hover {
    transform: none;
  }

  .alw-v2-card__media {
    height: 138px;
    border-radius: 20px 20px 14px 14px;
  }

  .alw-v2-card__media-link {
    display: block;
  }

  .alw-v2-card__image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .alw-v2-card__image-wash {
    height: 28%;
    background: linear-gradient(180deg, transparent, rgba(15, 63, 49, 0.14));
  }

  .alw-v2-card__micro {
    inset-inline-start: 9px;
    bottom: 9px;
    min-height: 24px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .alw-v2-card__surface {
    gap: 10px;
    padding: 12px 9px 12px;
  }

  .alw-v2-card__title {
    font-size: clamp(17px, 9.6cqw, 20px);
    line-height: 1.12;
    -webkit-line-clamp: 3;
    min-height: 2.24em;
    max-height: 3.36em;
  }

  .alw-v2-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border-radius: 18px;
  }

  .alw-v2-card__fact {
    min-height: 68px;
    padding: 7px 5px;
    border-radius: 15px;
  }

  .alw-v2-card__fact-icon {
    width: 17px;
    height: 17px;
  }

  .alw-v2-card__fact-icon svg {
    width: 14px;
    height: 14px;
  }

  .alw-v2-card__fact-main {
    font-size: 12px;
  }

  .alw-v2-card__fact-sub {
    font-size: 9.8px;
  }

  .alw-v2-card__decision {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .alw-v2-card__prices {
    align-items: center;
    text-align: center;
  }

  .alw-v2-card__price-primary {
    font-size: clamp(14px, 7.6cqw, 16px);
  }

  .alw-v2-card__price-secondary {
    font-size: 10.5px;
  }

  .alw-v2-card__action {
    width: 100%;
    min-height: 36px;
    font-size: 12.5px;
    padding: 0 10px;
  }

  .alw-v2-card__action-icon {
    width: 18px;
    height: 18px;
  }
}

@container (min-width: 391px) and (max-width: 620px) {
  .alw-v2-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .alw-v2-shell .alw-v2-card__image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .alw-v2-shell .alw-v2-card__image-wash {
    height: 28%;
    background: linear-gradient(180deg, transparent, rgba(15, 63, 49, 0.14));
  }
}

@media (prefers-reduced-motion: reduce) {
  .alw-v2-card,
  .alw-v2-card__image,
  .alw-v2-card__action-icon {
    transition: none;
  }
}
