/* ==========================================================================
   FloorLo home illustration -- the shared "no photo yet" placeholder for
   every property / unit card (home grid, category grid, property list,
   cart page, wishlist page, live-property hero).

   Pure CSS -- no SVG, no image file. Built from a handful of <span>s so it
   scales to whatever media box it is dropped into: the outer .fl-home-illus
   fills its parent and becomes a size container, and every shape inside is
   sized in `cqmin` (1% of the box's shorter side), so one rule looks right
   in a 90px list thumbnail and a 420px hero alike.
   ========================================================================== */

/* Every media box the illustration can be dropped into must be a
   positioning context so the absolutely-filled .fl-home-illus lands on it
   and not some far-up ancestor. Most already are; this makes the rest safe
   without editing each template's own stylesheet. */
.unit-media,
.wl-card-image,
.fl-cart-row-image,
.pd-list-thumb,
.project-image,
.property-image-placeholder,
.detail-image-placeholder,
.tp-card-image,
.lp-placeholder {
  position: relative;
}

.fl-home-illus {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  container-type: size;
  background: linear-gradient(155deg, #eaf5f1 0%, #d8ece4 55%, #c7e2d8 100%);
  color: #0f7a72;
  /* If a parent isn't positioned, still fill it rather than collapse. */
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* Sun */
.fl-home-illus::before {
  content: "";
  position: absolute;
  top: 16cqmin;
  right: 20cqmin;
  width: 13cqmin;
  height: 13cqmin;
  border-radius: 50%;
  background: #f6cd7c;
  box-shadow: 0 0 0 5cqmin rgba(246, 205, 124, 0.28);
}

.fl-home-illus-scene {
  position: relative;
  width: 46cqmin;
  height: 40cqmin;
  margin-top: 8cqmin;
}

/* House body */
.fl-home-illus-house {
  position: absolute;
  left: 50%;
  bottom: 12cqmin;
  transform: translateX(-50%);
  width: 40cqmin;
  height: 27cqmin;
  background: #ffffff;
  border: 2.2cqmin solid #0f7a72;
  border-bottom: 0;
  border-radius: 2.5cqmin 2.5cqmin 0 0;
}

/* Roof (CSS triangle -- border trick, not an SVG) */
.fl-home-illus-house::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.5cqmin;
  transform: translate(-50%, -100%);
  width: 0;
  height: 0;
  border-left: 27cqmin solid transparent;
  border-right: 27cqmin solid transparent;
  border-bottom: 18cqmin solid #0f7a72;
}

/* Door */
.fl-home-illus-house::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 11cqmin;
  height: 15cqmin;
  background: #0f7a72;
  border-radius: 2cqmin 2cqmin 0 0;
}

/* Window */
.fl-home-illus-window {
  position: absolute;
  top: 7cqmin;
  right: 6cqmin;
  width: 8cqmin;
  height: 8cqmin;
  background: #cfeae3;
  border: 1.6cqmin solid #0f7a72;
  border-radius: 1cqmin;
}

/* Ground line */
.fl-home-illus-scene::after {
  content: "";
  position: absolute;
  left: -6cqmin;
  right: -6cqmin;
  bottom: 10cqmin;
  height: 2.2cqmin;
  border-radius: 2cqmin;
  background: rgba(15, 122, 114, 0.35);
}

.fl-home-illus-word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9cqmin;
  text-align: center;
  font-size: 11cqmin;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f7a72;
  font-family: inherit;
}

/* Very small boxes (avatars, tiny thumbs): drop the word, keep the house. */
@container (max-width: 90px) {
  .fl-home-illus-word { display: none; }
  .fl-home-illus-scene { margin-top: 0; }
}

/* Browsers without container queries: a plain centered wordmark still reads
   as intentional rather than broken. */
@supports not (container-type: size) {
  .fl-home-illus { container-type: normal; }
  .fl-home-illus-scene { display: none; }
  .fl-home-illus-word {
    position: static;
    font-size: clamp(16px, 6vw, 30px);
  }
}
