/* Savu Hub Property — brand design tokens */
:root {
  --sh-forest: #1e3148;
  --sh-forest-dark: #142536;
  --sh-clay: #e8622e;
  --sh-clay-dark: #c94f1f;
  --sh-gold: #f2a93c;
  --sh-sand: #f4f6fb;
  --sh-sand-dim: #e8ecf5;
  --sh-ink: #131c2e;
  --sh-ink-soft: #4a5568;
  --sh-line: #dbe1ee;
  --sh-font-display: 'Fraunces', serif;
  --sh-font-body: 'Inter', system-ui, sans-serif;
  --sh-font-data: 'IBM Plex Mono', monospace;
}

body {
  background: var(--sh-sand);
  color: var(--sh-ink);
  font-family: var(--sh-font-body);
}

.sh-display {
  font-family: var(--sh-font-display);
  font-weight: 700;
  color: var(--sh-ink);
}

.sh-data {
  font-family: var(--sh-font-data);
}

.sh-eyebrow {
  font-family: var(--sh-font-data);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sh-clay);
}

.sh-divider {
  height: 3px;
  width: 96px;
  margin: 1.25rem 0;
  border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, var(--sh-clay) 0px, var(--sh-clay) 10px, transparent 10px, transparent 18px);
}

/* Hero */
.sh-hero {
  background: var(--sh-forest);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.sh-hero h1 {
  font-family: var(--sh-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 1rem auto;
  max-width: 42rem;
  color: #fff;
}
.sh-hero p {
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}
.sh-hero .sh-eyebrow { color: var(--sh-gold); }

/* Buttons */
.sh-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease;
}
.sh-btn--accent {
  background: var(--sh-clay);
  color: #fff;
}
.sh-btn--accent:hover { background: var(--sh-clay-dark); color: #fff; }
.sh-btn--dark {
  background: var(--sh-ink);
  color: #fff;
}
.sh-btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

/* Cards */
.sh-card {
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Section wrapper */
.sh-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.sh-section--sand { background: var(--sh-sand-dim); }
.sh-section--accent { background: var(--sh-clay); color: #fff; text-align: center; }
.sh-section--accent .sh-display { color: #fff; }

/* Property grid + cards (used for featured listings on Home) */
.sh-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.sh-property-card {
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}
.sh-property-card:hover { box-shadow: 0 8px 24px rgba(19,28,46,0.08); }
.sh-property-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sh-property-card__body { padding: 1rem; }
.sh-property-card__price {
  font-family: var(--sh-font-data);
  color: var(--sh-forest);
  font-weight: 500;
  font-size: 1.1rem;
}
.sh-property-card__title {
  font-family: var(--sh-font-display);
  font-weight: 600;
  margin: 0.25rem 0;
}

/* Badges */
.sh-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-family: var(--sh-font-data);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.sh-badge--verified { background: rgba(16,31,61,0.95); color: #fff; }
.sh-badge--featured { background: var(--sh-gold); color: var(--sh-ink); }
.sh-badge--mortgage { background: var(--sh-clay); color: #fff; }

/* Forms (contact / submit property / auth) */
.sh-contact-form, .sh-submit-form, .sh-auth-form { max-width: 640px; }
.sh-contact-form label, .sh-submit-form label, .sh-auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--sh-ink-soft);
  margin-bottom: 1rem;
}
.sh-contact-form input, .sh-contact-form textarea, .sh-contact-form select,
.sh-submit-form input, .sh-submit-form textarea, .sh-submit-form select,
.sh-auth-form input, .sh-auth-form textarea, .sh-auth-form select {
  border: 1px solid var(--sh-line);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-family: var(--sh-font-body);
  color: var(--sh-ink);
  background: var(--sh-sand);
}
.sh-auth-form__hint {
  font-size: 0.8rem;
  color: var(--sh-ink-soft);
  margin: -0.25rem 0 0.75rem;
}
.sh-auth-form__alt {
  font-size: 0.85rem;
  color: var(--sh-ink-soft);
  margin-top: 1rem;
}
.sh-form-error {
  background: #fdecea;
  border: 1px solid #f3b7ae;
  color: #92140c;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.sh-auth-form__divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--sh-ink-soft);
  font-size: 0.8rem;
  margin: 1.25rem 0;
}
.sh-auth-form__divider::before,
.sh-auth-form__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sh-line);
}
.sh-auth-form__divider span {
  padding: 0 0.75rem;
}
.sh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sh-form-row--3 { grid-template-columns: repeat(3, 1fr); }
.sh-form-row--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  .sh-form-row, .sh-form-row--3, .sh-form-row--4 { grid-template-columns: 1fr; }
}
.sh-form-success {
  text-align: center;
  padding: 2rem;
}
.sh-form-success__title {
  font-family: var(--sh-font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.sh-pill-group {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--sh-sand);
  border-radius: 999px;
  padding: 0.25rem;
  margin-bottom: 1.25rem;
}
.sh-pill {
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--sh-ink-soft);
}
.sh-pill input { display: none; }
.sh-pill:has(input:checked) { background: var(--sh-forest); color: #fff; }

/* City tiles */
.sh-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.sh-tile {
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.sh-tile__title {
  font-family: var(--sh-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sh-ink);
}
.sh-tile__tagline { font-size: 0.9rem; color: var(--sh-ink-soft); margin-top: 0.35rem; }

/* Value cards (About page) */
.sh-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Site header */
.sh-header {
  background: var(--sh-forest);
  color: #fff;
  padding: 0.9rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.sh-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sh-header__logo {
  font-family: var(--sh-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.sh-header__logo img {
  display: block;
  height: 44px;
  width: auto;
}
.sh-header__logo span {
  font-family: var(--sh-font-data);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-gold);
  margin-left: 0.4rem;
}
.sh-header__nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.sh-header__nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}
.sh-header__nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sh-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sh-header__actions a.sh-btn--accent { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.sh-header__divider {
  height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--sh-clay) 0px, var(--sh-clay) 10px, transparent 10px, transparent 18px);
  max-width: 1280px;
  margin: 0.9rem auto 0;
}

/* Estatik property archive/taxonomy pages render through a classic
   template (get_header()/get_footer()) that skips the theme's own
   layout constraints, so the listings sat flush against the browser
   edges with no breathing room. Match the max-width/padding used
   everywhere else on the site (header/footer/hero). */
.wrap:has(> #primary) {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  box-sizing: border-box;
}

/* Equal-height property cards: cards with more badges/labels (e.g. a
   "Mortgage plan" tag) grow taller than their neighbors by default
   since each card is plain block content. Stretch every card to the
   grid row's height and pin the price/terms footer to the bottom so
   the varying content above it doesn't throw off row alignment. */
.es-listings[class*="es-listings--grid-"] {
  align-items: stretch;
}
.es-listings[class*="es-listings--grid-"] .es-listing {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.es-listings[class*="es-listings--grid-"] .es-listing .es-listing__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.es-listings[class*="es-listings--grid-"] .es-listing .es-listing__content__inner {
  flex: 1;
}
.es-listings[class*="es-listings--grid-"] .es-listing .es-listing__footer {
  margin-top: auto;
}

/* Site footer */
.sh-footer {
  background: var(--sh-ink);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.sh-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.sh-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.sh-footer__brand {
  font-family: var(--sh-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.sh-footer h3 {
  font-family: var(--sh-font-data);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-gold);
  margin: 0 0 0.75rem;
}
.sh-footer ul { list-style: none; margin: 0; padding: 0; }
.sh-footer li { margin-bottom: 0.5rem; }
.sh-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.sh-footer a:hover { color: #fff; }
.sh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}
.sh-footer__legal a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}
.sh-footer__legal a:hover { color: #fff; }

/* Stats row */
.sh-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 640px;
  margin: 2rem auto 0;
  text-align: center;
}
.sh-stats dt {
  font-family: var(--sh-font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: #fff;
}
.sh-stats dd {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.sh-map-wrap {
  border: 1px solid var(--sh-line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}
.sh-map {
  height: 420px;
  width: 100%;
}
.sh-map-attribution {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--sh-ink-soft);
  border-top: 1px solid var(--sh-line);
}
.sh-map-attribution a {
  color: var(--sh-ink-soft);
}
.sh-condition-badge {
  display: inline-block;
  margin: 0.75rem 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--sh-sand-dim);
  color: var(--sh-ink);
  font-size: 0.85rem;
}
.sh-condition-badge strong {
  color: var(--sh-forest);
}

/* Single property page: main content + sticky sidebar */
.sh-btn--outline-dark {
  display: block;
  text-align: center;
  background: transparent;
  border: 1px solid var(--sh-line);
  color: var(--sh-ink);
}
.sh-btn--outline-dark:hover {
  background: var(--sh-sand-dim);
  color: var(--sh-ink);
}

.sh-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
}
.sh-single-main {
  min-width: 0;
}
.sh-single-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sh-sidebar-price__amount {
  font-family: var(--sh-font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sh-ink);
  line-height: 1.25;
  overflow-wrap: break-word;
}
/* Estatik's own CSS sets a very large font-size on .es-price for its
   original full-width hero placement; it doesn't fit a 340px sidebar
   card and was overflowing the page horizontally. Force it back down
   to match the wrapper above. */
.sh-sidebar-price__amount .es-price {
  font-size: 1.6rem !important;
  font-family: var(--sh-font-display) !important;
  font-weight: 700 !important;
  white-space: normal !important;
}
.sh-sidebar-price .es-price-badge {
  margin-top: 0.5rem;
}

.sh-sidebar-contact__title {
  font-family: var(--sh-font-display);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--sh-ink);
}
.sh-sidebar-contact .es-property-section__title {
  display: none !important;
}

.sh-sidebar-agent {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sh-sidebar-agent__top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.sh-sidebar-agent__avatar img {
  display: block;
  border-radius: 999px;
}
.sh-sidebar-agent__name {
  font-weight: 600;
  color: var(--sh-ink);
  margin: 0;
}
.sh-sidebar-agent__meta {
  font-size: 0.8rem;
  color: var(--sh-ink-soft);
  margin: 0.15rem 0 0;
}
.sh-sidebar-agent__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.sh-sidebar-safety__title {
  font-family: var(--sh-font-display);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  color: var(--sh-ink);
}
.sh-sidebar-safety__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--sh-ink-soft);
}
.sh-sidebar-safety__list li {
  margin-bottom: 0.6rem;
}
.sh-sidebar-safety__list li:last-child {
  margin-bottom: 0;
}

.sh-sidebar-cta {
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
}

@media (max-width: 900px) {
  .sh-single-grid {
    grid-template-columns: 1fr;
  }
  .sh-single-sidebar {
    position: static;
  }
}

/* Property listing grid (forced to 4 columns site-wide, see
   listings_layout setting) doesn't collapse on its own — Estatik's
   grid-N classes are fixed column counts with no responsive
   breakpoints built in. Step it down as the viewport narrows so cards
   never get crushed. */
@media (max-width: 1024px) {
  .es-listings[class*="es-listings--grid-"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 782px) {
  .es-listings[class*="es-listings--grid-"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .es-listings[class*="es-listings--grid-"] {
    grid-template-columns: 1fr !important;
  }
}

/* "Please sign in" popup (triggered by anonymous actions like the
   wishlist heart) — replaces Estatik's bundled email-only auth widget
   with simple links out to the real login/register pages. */
.sh-auth-popup {
  max-width: 26rem;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border-radius: 1rem;
}
.sh-auth-popup__text {
  color: var(--sh-ink-soft);
  margin: 0.75rem 0 1.5rem;
}
.sh-auth-popup__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.65rem;
  margin-bottom: 0.75rem;
}
.sh-auth-popup__btn:last-child {
  margin-bottom: 0;
}

/* Hide Estatik's Slick carousels until Slick.js has initialized them.
   Estatik renders slides with lazyLoad:"ondemand", so each <img> has a
   data-lazy attribute and NO src until Slick runs — before that, browsers
   show a broken-image icon per slide and the un-wrapped slide <div>s stack
   as plain block elements instead of a positioned carousel. */
.js-es-slick:not(.slick-initialized) {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sh-line, #e5e7eb);
}
.js-es-slick:not(.slick-initialized) > div {
  display: none;
}
.js-es-slick:not(.slick-initialized) > div:first-child {
  display: block;
  width: 100%;
  height: 100%;
}
.js-es-slick:not(.slick-initialized) img {
  visibility: hidden;
}
