/*--------------------------------------------------------------
# Hispabelgo-Homes — listing subdomain
#
# A third layer on top of main.css (Forma) and hispabelgo.css (brand).
# Only contains what the corporate site does not already have: the property
# grid, the search bar, the gallery and the property sidebar. Everything else
# — header, footer, page-hero, cta-band, section-badge — is inherited so both
# sites stay visually identical.
--------------------------------------------------------------*/

/* ===== Page hero variant for a single property ===== */
.page-hero-compact { padding: 120px 0 60px; }
.page-hero-compact h1 { margin-bottom: 10px; }

/* ===== Search ===== */
.listing-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e0edf0;
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 26px rgba(15, 50, 71, .07);
}

.listing-search-inner > .bi-search { color: var(--hb-teal); font-size: 17px; flex-shrink: 0; }

.listing-search-inner input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .98rem;
  color: var(--hb-navy);
  padding: 10px 0;
  min-width: 0;
}
.listing-search-inner input[type="search"]::placeholder { color: #8aa6b2; }

.btn-search {
  background: var(--hb-teal);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 26px;
  font-weight: 600;
  font-size: .92rem;
  flex-shrink: 0;
  transition: background .2s;
}
.btn-search:hover { background: var(--hb-teal-dark); }

.results-line { color: #51677c; font-size: .95rem; }
.clear-link { font-weight: 600; white-space: nowrap; }

@media (max-width: 575.98px) {
  .listing-search-inner { padding-left: 16px; }
  .btn-search { padding: 11px 18px; }
}

/* ===== Property card ===== */
.property-card {
  background: #fff;
  border: 1px solid #e6eff1;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15, 50, 71, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 50, 71, .11);
}

.property-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hb-sea-pale);
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.property-card:hover .property-media img { transform: scale(1.05); }

.property-media-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8c6cf;
  font-size: 3rem;
  background: linear-gradient(160deg, #eaf6f8, #f6fbfc);
}

.property-price {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--hb-teal);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(11, 114, 133, .35);
}
.property-price.is-request {
  background: #fff;
  color: var(--hb-teal-dark);
  box-shadow: 0 6px 18px rgba(15, 50, 71, .16);
}

.property-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-ref {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hb-coral);
  margin-bottom: 8px;
}

.property-title {
  font-family: var(--heading-font);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
.property-title a { color: var(--hb-navy); }
.property-title a:hover { color: var(--hb-teal); }

.property-loc {
  font-size: .88rem;
  color: #51677c;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.property-loc i { color: var(--hb-teal); flex-shrink: 0; margin-top: 2px; }

.property-desc {
  font-size: .92rem;
  color: #51677c;
  flex-grow: 1;
  margin-bottom: 16px;
}

.property-link {
  font-weight: 700;
  font-size: .93rem;
  color: var(--hb-teal);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap .2s;
}
.property-link:hover { gap: 12px; color: var(--hb-teal-dark); }

/* ===== Empty state ===== */
.empty-state { padding: 40px 0 20px; }
.empty-state i { font-size: 3.2rem; color: #a8c6cf; display: block; margin-bottom: 18px; }
.empty-state h3 { font-family: var(--heading-font); color: var(--hb-navy); font-weight: 600; margin-bottom: 10px; }
.empty-state p { color: #51677c; margin-bottom: 24px; }

/* ===== Shared buttons ===== */
.btn-hb-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hb-teal);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 28px;
  font-weight: 600;
  transition: background .2s;
}
.btn-hb-primary:hover { background: var(--hb-teal-dark); color: #fff; }

.btn-hb-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.6px solid var(--hb-navy);
  color: var(--hb-navy);
  background: transparent;
  border-radius: 50px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: .92rem;
  transition: background .2s, color .2s;
}
.btn-hb-outline:hover { background: var(--hb-navy); color: #fff; }

/* ===== Gallery ===== */
.gallery-main {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--hb-sea-pale);
}
.gallery-main a { display: block; width: 100%; height: 100%; position: relative; }
.gallery-main img,
.gallery-main video { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8c6cf;
  font-size: 4rem;
  background: linear-gradient(160deg, #eaf6f8, #f6fbfc);
}

.zoom-badge, .play-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
}
.zoom-badge {
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  background: rgba(15, 50, 71, .62);
  backdrop-filter: blur(4px);
  font-size: 1rem;
  transition: background .2s;
}
.gallery-main a:hover .zoom-badge { background: var(--hb-teal); }

.play-badge {
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  background: rgba(11, 114, 133, .88);
  font-size: 2rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6eff1;
  background: var(--hb-sea-pale);
  transition: transform .2s, border-color .2s;
}
.gallery-thumb:hover { transform: translateY(-3px); border-color: var(--hb-teal); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb-video {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hb-navy);
  color: #fff;
  font-size: 1.6rem;
}

/* ===== Description ===== */
.detail-heading {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--hb-navy);
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hb-sea-pale);
}

.property-description {
  font-size: 1rem;
  line-height: 1.75;
  color: #40566b;
}

/* ===== Sidebar ===== */
.property-aside {
  background: #fff;
  border: 1px solid #e6eff1;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 10px 30px rgba(15, 50, 71, .05);
  position: sticky;
  top: 100px;
}

.aside-price {
  font-family: var(--heading-font);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--hb-teal);
  line-height: 1.15;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6eff1;
  margin-bottom: 18px;
}
.aside-price.is-request { font-size: 1.35rem; color: var(--hb-navy); }

.aside-facts { list-style: none; padding: 0; margin: 0 0 24px; }
.aside-facts li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed #e6eff1;
  font-size: .92rem;
}
.aside-facts li:last-child { border-bottom: none; }

.fact-label { color: #6b8794; display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.fact-label i { color: var(--hb-teal); }
.fact-value { color: var(--hb-navy); font-weight: 600; text-align: right; }

.aside-title {
  font-family: var(--heading-font);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--hb-navy);
  margin-bottom: 8px;
}
.aside-text { font-size: .9rem; color: #51677c; margin-bottom: 18px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: .9rem;
  font-weight: 600;
  color: #6b8794;
}
.back-link:hover { color: var(--hb-teal); }

@media (max-width: 991.98px) {
  .property-aside { position: static; }
}
