/* ============================================================
   Posto Property: "Hamptons, Coming Soon" stylesheet
   ------------------------------------------------------------
   Upload to wp-content/uploads/posto-cards/ and let
   posto-hamptons-loader.php enqueue it. Do NOT paste this into
   wp-admin: the payload is what trips the Cloudflare WAF.

   Generated from snippets/hamptons-coming-soon-properties/
   hamptons-coming-soon-properties.html. Edit there, re-split,
   re-upload, or edit this file on the server and keep the HTML
   in step.
   ============================================================ */

/* ---------- the Where tile ----------
   No .image div: the site CSS hides region thumbnails
   (`.hfse-form-zone-subfield-locations .hfse-form-zone-btn .image`),
   so the tile is name + subheading, which is what the city tiles
   already are. Everything else, including the navy selected state,
   is inherited. */
#hfse-form-zone-modal-1 .cs-zone-tile .subheading,
.hfse-form-zone-btn.cs-zone-tile .subheading {
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Hamptons mode ----------
   The Explorer prints "No properties found." above the grid on a
   zero-result query. Nine cards under that message contradict it. */
.hfse.cs-hamptons-mode .hfse-properties-no-items { display: none !important; }

/* The map panel goes blank grey on ANY zero-result search. That is the
   plugin's behaviour today, not something this file causes, but this
   feature sends people into that state on purpose, so half the screen
   would routinely be an empty grey block beside nine cards.

   A note over the panel, scoped to Hamptons mode, is the whole fix: no
   touching the map toggle, the `map_hidden` param or Google's own
   lifecycle. Delete this rule and the map simply goes back to blank. */
.hfse.cs-hamptons-mode .hfse-map-container::after {
  content: "Hamptons homes are coming soon. They will appear on the map when the first listings go live.";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, 78%);
  box-sizing: border-box;
  padding: 24px 26px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(21, 43, 71, .08);
  box-shadow: 0 12px 34px -14px rgba(21, 43, 71, .40);
  font-family: "DM Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  color: #152B47;
}

/* ---------- the cards ----------
   A stand-in, not a link: no hover lift, no pointer. */
.hfse-property-container.coming-soon-injected { pointer-events: none; }
.hfse-property-container.coming-soon-injected .hfse-property-card { cursor: default; }

/* MEDIA
   The site CSS clips .hfse-property-media so the photo keeps the card's
   top radius. The pill straddles the photo's bottom edge, so this one card
   type has to let it out. Nothing is lost: the card itself is still
   `overflow:hidden` with a 20px radius, so it clips the photo corners. */
.hfse-property-container.coming-soon-injected .hfse-property-media {
  position: relative;
  overflow: visible !important;
}

/* Frame. The site CSS already sets 4/3 on .hfse-property-slideshow with
   !important, so these values never fight it. They are here so the card
   still frames correctly if that snippet is ever edited or renamed, and
   because UIkit's slideshow JS does not run on an injected card (it writes
   the inline ratio onto the <ul> on real cards only). */
.hfse-property-container.coming-soon-injected .hfse-property-slideshow {
  aspect-ratio: 4 / 3;
  position: relative;
}
.hfse-property-container.coming-soon-injected .hk-slideshow-items {
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  overflow: hidden;
}
.hfse-property-container.coming-soon-injected .cs-photo-wrap {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hfse-property-container.coming-soon-injected .cs-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft tint over the (already blurred) photo, so the pill keeps its
   contrast on the bright shots. */
.hfse-property-container.coming-soon-injected .cs-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 43, 71, .04) 0%, rgba(21, 43, 71, .28) 100%);
}

/* THE PILL
   Sits on the seam between photo and body, in the card's own chrome:
   white ground, navy ink, the card's hairline. It borrows the town
   eyebrow's type (DM Sans, uppercase, wide tracking) so it reads as part
   of the card rather than as a sticker. Gold is left to the real group
   badges, which mean something else. */
.hfse-property-container.coming-soon-injected .cs-pill {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  padding: 8px 18px;
  border: 1px solid rgba(21, 43, 71, .10);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px -8px rgba(21, 43, 71, .45);
  font-family: "DM Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #152B47;
}

/* THE BLUR
   Leaf by leaf, not on the body, for two reasons. The price container
   carries the card's hairline and that has to stay crisp. And the three
   meta cells already run a `filter: brightness(0) ... !important` of their
   own to tint the icon sprites, so the blur goes on their row instead of
   on the cells, where it would collide. */
.hfse-property-container.coming-soon-injected .hfse-property-subtitle,
.hfse-property-container.coming-soon-injected .hfse-property-title,
.hfse-property-container.coming-soon-injected .hfse-property-price,
.hfse-property-container.coming-soon-injected .hfse-property-meta-secondary {
  filter: blur(4px);
  -webkit-filter: blur(4px);
  -webkit-user-select: none;
  user-select: none;
}
