/* ==========================================================================
   BHUMI-GO BATCH 4 STYLESHEET
   - Full-Screen 60fps Property Detail Overlay
   - Swipeable Multi-Photo HD Gallery + Counter & Dots
   - Rent/Deposit Breakdown, Specs Grid, Amenities & Landmarks
   - Masked Owner Phone Shield + Fixed Direct Call & WhatsApp Lead Bar
   ========================================================================== */

.property-detail-stage {
  position: absolute;
  inset: 0;
  background-color: var(--bg-app);
  z-index: 36;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s var(--ease-60fps), opacity 0.22s ease;
  will-change: transform, opacity;
}

.property-detail-stage.open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.detail-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 88px;
  -webkit-overflow-scrolling: touch;
}

.detail-scroll-body::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   1. SWIPEABLE HD PHOTO GALLERY & FLOATING GLASS HEADER
   ========================================================================== */
.detail-gallery-wrapper {
  position: relative;
  width: 100%;
  height: 256px;
  background: #13221B;
  overflow: hidden;
}

.detail-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.detail-gallery-track::-webkit-scrollbar {
  display: none;
}

.detail-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
}

.detail-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(19, 34, 27, 0.48) 0%,
    rgba(19, 34, 27, 0) 35%,
    rgba(19, 34, 27, 0) 68%,
    rgba(19, 34, 27, 0.58) 100%
  );
  pointer-events: none;
}

/* Floating Back, Share & Save Controls */
.detail-floating-topbar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.detail-glass-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s var(--ease-spring);
}

.detail-glass-circle-btn:active {
  transform: scale(0.9);
}

.detail-glass-circle-btn.saved {
  color: #E11D48;
}

.detail-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bottom Gallery Meta: ID Badge + Photo Counter */
.detail-gallery-bottom-bar {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.detail-id-chip {
  background: rgba(27, 94, 58, 0.92);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.detail-photo-counter {
  background: rgba(19, 34, 27, 0.76);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   2. DETAIL CONTENT CONTAINER & CARDS
   ========================================================================== */
.detail-content-stack {
  padding: 15px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.detail-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 15px;
  box-shadow: var(--shadow-card);
}

.detail-price-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.detail-main-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.detail-main-price span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-status-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-badge-green {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--green-primary);
  background: var(--bg-sage-soft);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.detail-prop-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 5px;
}

.detail-prop-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Rent / Deposit / Maintenance 3-Column Strip */
.detail-financial-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid var(--border-subtle);
}

.fin-mini-box {
  background: var(--bg-app);
  border-radius: 11px;
  padding: 8px 9px;
}

.fin-mini-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.fin-mini-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
  display: block;
}

/* 6-Item Key Specifications Grid */
.detail-section-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.spec-detail-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: var(--bg-app);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.spec-cell-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--bg-sage-soft);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
}

.spec-cell-texts span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-cell-texts strong {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   3. DIRECT OWNER VERIFIED CARD & MASKED PHONE SHIELD
   ========================================================================== */
.owner-verified-card {
  background: linear-gradient(135deg, #F3F9F5 0%, #E7F2EC 100%);
  border: 1px solid #CBE2D5;
  border-radius: 18px;
  padding: 14px 15px;
}

.owner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.owner-identity-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.owner-avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.owner-name-block h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.owner-name-block p {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-primary);
}

.owner-phone-shield-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-pill);
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.masked-phone-display {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.unlock-phone-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--green-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   4. AMENITIES CHIPS, NEARBY LANDMARKS & ANTI-BROKER REPORT
   ========================================================================== */
.amenities-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.amenity-pill-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-sage-soft);
  border: 1px solid var(--border-pill);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.landmark-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}

.landmark-list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landmark-dist-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-primary);
  background: var(--bg-sage-soft);
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
}

.detail-desc-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.anti-broker-report-bar {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.anti-broker-report-bar span {
  font-size: 11.5px;
  font-weight: 600;
  color: #92400E;
}

.report-broker-btn {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid #F59E0B;
  color: #B45309;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==========================================================================
   5. FIXED BOTTOM DIRECT CALL & WHATSAPP LEAD BAR
   ========================================================================== */
.detail-lead-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px env(safe-area-inset-bottom, 10px);
  display: grid;
  grid-template-columns: 1fr 1.15fr auto;
  gap: 8px;
  align-items: center;
  z-index: 15;
  box-shadow: 0 -4px 20px rgba(19, 34, 27, 0.06);
}

.lead-btn-call {
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--green-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(27, 94, 58, 0.24);
  transition: transform 0.16s var(--ease-60fps);
}

.lead-btn-whatsapp {
  height: 44px;
  border-radius: var(--radius-pill);
  background: #16A34A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.24);
  transition: transform 0.16s var(--ease-60fps);
}

.lead-btn-chat {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-sage-soft);
  border: 1px solid var(--border-pill);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s var(--ease-60fps);
}

.lead-btn-call:active,
.lead-btn-whatsapp:active,
.lead-btn-chat:active {
  transform: scale(0.95);
}
