/* =============================================
   BeliHomeStay — Listing Detail Page Styles
   listing-detail-2.css
   Extends global.css — do not re-import fonts or
   CSS variables here; load global.css first.
   ============================================= */

/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 88px 2rem 0;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s;
}

.breadcrumb-back:hover {
  color: var(--green);
}

/* =============================================
   HERO IMAGE / GALLERY TRIGGER
   ============================================= */

.detail-hero-wrap {
  max-width: 1260px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}

.detail-hero-image {
  width: 100%;
  height: 440px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: filter 0.25s, transform 0.25s;
}

.detail-hero-image:hover {
  filter: brightness(0.88);
  transform: scale(1.005);
}

.gallery-hint {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  background: rgba(28, 43, 54, 0.75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* =============================================
   MAIN DETAIL BODY (2-column grid)
   ============================================= */

.detail-body {
  max-width: 1260px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

/* ─── Left Column Header ─── */

.detail-location {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* ─── Badges ─── */

.detail-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-green { background: var(--green-light); color: var(--green); }
.badge-teal  { background: var(--teal-light);  color: var(--teal); }
.badge-slate { background: rgba(74, 98, 116, 0.1); color: var(--slate); }

/* ─── Stats Row ─── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--white);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ─── Content Blocks ─── */

.content-block {
  background: var(--white);
  border-radius: 14px;
  padding: 1.8rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
}

.block-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.content-block p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
}

/* ─── Details Grid ─── */

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-key   { color: var(--muted); }
.detail-value { font-weight: 600; color: var(--dark); }

/* ─── Amenities ─── */

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amenity-tag {
  background: var(--green-light);
  color: var(--green);
  padding: 0.32rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* =============================================
   RIGHT COLUMN — CTA / STICKY CARD
   ============================================= */

.cta-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  position: sticky;
  top: 90px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
}

.cta-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.cta-income-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.roi-badge-box {
  background: var(--teal-light);
  border: 1px solid rgba(2, 182, 200, 0.18);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.roi-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
}

.roi-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ─── CTA Buttons ─── */

.btn-enquiry {
  display: block;
  width: 100%;
  background: var(--green);
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  text-decoration: none;
  margin-bottom: 0.65rem;
}

.btn-enquiry:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(0, 176, 82, 0.25);
}

.btn-whatsapp {
  display: block;
  width: 100%;
  background: #25D366;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  text-decoration: none;
  margin-bottom: 0.65rem;
}

.btn-whatsapp:hover {
  background: #1aaa54;
}

.btn-outline {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--slate);
  padding: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--slate);
  color: var(--dark);
}

/* ─── Card Divider ─── */

.card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ─── Owner Info ─── */

.owner-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.owner-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.owner-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.owner-role { font-size: 0.75rem; color: var(--muted); }

/* =============================================
   GALLERY LIGHTBOX
   ============================================= */

.gallery-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 25, 0.96);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.gallery-overlay.is-open {
  display: flex;
}

.gallery-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-main-image {
  width: 100%;
  max-width: 820px;
  height: 480px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: opacity 0.25s;
}

.gallery-caption {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  text-align: center;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 90px;
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0.65;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumb.is-active {
  border-color: var(--green);
  opacity: 1;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }

.gallery-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =============================================
   DETAIL PAGE FOOTER (simple version)
   ============================================= */

.detail-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.35);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 5rem;
}

.detail-footer-logo {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.detail-footer-logo em {
  font-style: italic;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .detail-body { grid-template-columns: 1fr; }
  .cta-card    { position: static; order: -1; }
}

@media (max-width: 640px) {
  .stats-row          { grid-template-columns: 1fr 1fr; }
  .detail-hero-image  { height: 260px; font-size: 5rem; }
  .detail-title       { font-size: 1.7rem; }
  .gallery-main-image { height: 260px; font-size: 5rem; }
  .gallery-thumb      { width: 64px; height: 48px; font-size: 1.2rem; }
}
