/*
 * Stylesheet for WordPress Properties Listing Page
 * Hauss Properties Child Theme Asset
 */

@font-face {
  font-family: "Now";
  src: url("../fonts/Now-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Now";
  src: url("../fonts/Now-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Now";
  src: url("../fonts/Now-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1d3d4a;
  --navy-text: #1d3d4a;
  --orange: #ec9b57;
  --muted: #7d8f96;
}

.hauss-properties-container,
.hauss-properties-container * {
  font-family:
    "Now",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif !important;
  box-sizing: border-box;
}

.hauss-properties-container p {
  padding: 0 !important;
}

.hauss-properties-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Page hero (contained) ---------- */
.properties-hero {
  padding: 28px 0 0;
}
.properties-hero-media {
  position: relative;
  overflow: hidden;
  background: #dfe3e3;
  border-radius: 12px;
  height: 300px;
}
.properties-hero-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.hero-overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  text-align: center;
  padding: 24px;
}
.hero-overlay-text h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  font-family:
    "Now",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}
.hero-overlay-text p {
  margin: 14px 0 0;
  font-size: 16px;
  color: #ec9b57;
  font-family:
    "Now",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Listings grid ---------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 44px;
  margin: 54px 0 60px;
  min-height: 400px;
}

/* ---------- Listing Card ---------- */
.listing-card {
  display: block;
  text-decoration: none;
  color: var(--navy-text);
  transition: transform 0.2s ease;
}
.lc-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe3e3;
}
.lc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.listing-card:hover .lc-media img {
  transform: scale(1.04);
}
.lc-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ec9b57;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
.lc-badge.lc-badge-sold {
  background: var(--navy);
  color: #ffffff;
  letter-spacing: 1px;
}
.lc-body {
  padding: 18px 2px 0;
}
.lc-status {
  margin: 0 0 5px !important;
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.lc-status.sold {
  color: var(--navy);
  font-weight: 700;
}
.lc-status.auction {
  color: var(--orange);
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 15px;
  font-weight: 700;
}
.lc-address {
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--navy);
  line-height: 1.35;
  font-weight: 400 !important;
}
.lc-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 400;
}
.lc-stats .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-text);
}
.lc-stats .stat-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}
.lc-stats .stat-svg {
  color: #bdbdbd !important;
  opacity: 1 !important;
}
.lc-open {
  border-top: 1px solid #ececec;
  margin-top: 16px;
  padding-top: 14px;
}
.lc-open .lbl {
  display: block;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.lc-open p {
  margin: 2px 0 !important;
  font-size: 14.5px;
  padding: 0 !important;
}
.lc-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.lc-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.listing-card:hover .lc-more svg {
  transform: translateX(4px);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ececec;
  padding: 34px 0 80px;
  gap: 20px;
}
.page-btn {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  padding: 14px 44px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.page-btn:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
}
.page-btn:disabled {
  border-color: #e8e8e8;
  color: #c5cbcd;
  cursor: not-allowed;
}

/* ---------- Skeleton Loader (Asynchronous loading state) ---------- */
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 24px;
}
.skeleton-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #f2f4f5 25%, #e9ecef 50%, #f2f4f5 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 12px;
}
.skeleton-body {
  padding: 18px 2px 0;
}
.skeleton-text {
  height: 14px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f2f4f5 25%, #e9ecef 50%, #f2f4f5 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}
.skeleton-text.title {
  height: 24px;
  width: 80%;
  margin-bottom: 16px;
}
.skeleton-text.short {
  width: 30%;
}
.skeleton-text.medium {
  width: 55%;
}
.skeleton-text.stats {
  height: 20px;
  width: 45%;
}
@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- Empty State ---------- */
.properties-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  background: #fcfcfc;
  border: 1px dashed #e2e2e2;
  border-radius: 12px;
  color: var(--muted);
}
.properties-empty h3 {
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 10px;
}
.properties-empty p {
  font-size: 16px;
  margin: 0;
}

/* ---------- Responsive Layout ---------- */
@media (max-width: 640px) {
  .listings-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* ---------- Hero Fallback Content ---------- */
.hero-fallback-content {
  height: 300px;
  padding: 24px;
  background: linear-gradient(135deg, #1d3d4a 0%, #0f2027 100%);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-fallback-content h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}
.hero-fallback-content p {
  margin: 14px 0 0;
  font-size: 16px;
  color: #ec9b57;
  letter-spacing: 1px;
  text-transform: uppercase;
}
