/* ==================================================
   STAYBIX - ROOM DETAILS (100% MOBILE FIT & NATIVE SCROLL)
   Dark Theme matching Homepage Aesthetic
================================================== */

:root {
  --bg-primary: #090d16;
  --bg-card: #111827;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;

  --text-pure: #ffffff;
  --text-heading: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --shadow-lux: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ZERO HORIZONTAL BLEED & UNLOCKED VERTICAL SCROLL */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: var(--bg-primary);
  color: var(--text-heading);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* KISI BHI overflow KO LOCK NAHI KIYA GAYA TA-KI NATIVE TOUCH SCROLL CHALTI RAHE */
}

body.dark-theme {
  padding-bottom: 76px; /* Sticky Bottom Bar clearance */
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Outer Shell: clip stops horizontal bleed without freezing vertical scroll */
.room-page-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

/* ===== APP TOP BAR ===== */
.app-top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.top-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 56px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.top-bar-title {
  flex: 1;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pure);
  padding: 0 4px;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s ease;
}

.nav-icon-btn:active {
  transform: scale(0.92);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== MASTER CONTAINER ===== */
.room-details-container {
  width: 100%;
  max-width: 1140px;
  margin: 12px auto 28px;
  padding: 0 12px;
}

.room-master-card {
  width: 100%;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lux);
  display: flex;
  flex-direction: column; /* Mobile first: clean vertical flow */
}

@media (min-width: 901px) {
  .room-master-card {
    display: grid;
    grid-template-columns: 50% 50%;
  }
}

/* ===== GALLERY COLUMN & SLIDER ===== */
.gallery-column {
  position: relative;
  width: 100%;
  min-width: 0;
  background: #050811;
  height: 270px;
  overflow: hidden;
}

@media (min-width: 901px) {
  .gallery-column {
    height: auto;
    min-height: 460px;
    border-right: 1px solid var(--border-subtle);
  }
}

.gallery-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y; /* Crucial: Allows vertical page scroll even when touching carousel */
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y; /* Permits horizontal image swipe AND vertical page scroll */
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  position: relative;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  display: block;
}

.photo-floating-pill {
  position: absolute;
  z-index: 10;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.photo-floating-pill.rating {
  top: 10px;
  left: 10px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.photo-floating-pill.rating i {
  color: var(--accent-amber);
}

.photo-floating-pill.tap-hint {
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.slider-arrow.left { left: 8px; }
.slider-arrow.right { right: 8px; }

@media (max-width: 900px) {
  .slider-arrow { display: none; }
}

.slider-dots-container {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}

.slider-dot.active {
  width: 16px;
  background: var(--accent-amber);
}

/* ===== DETAILS COLUMN ===== */
.details-column {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 901px) {
  .details-column {
    padding: 24px;
    gap: 16px;
  }
}

.verified-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.room-hero-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  word-break: break-word;
}

.room-geo-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.room-geo-location i {
  color: var(--accent-amber);
}

.locality-chip {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-amber);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 700;
}

/* Feature Pills Row (Horizontal Scroll Safe) */
.feature-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feature-pills-row::-webkit-scrollbar {
  display: none;
}

.feat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-heading);
  white-space: nowrap;
}

.feat-pill.highlight {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  font-weight: 700;
}

/* Desktop Price Banner */
.price-action-banner {
  display: none;
}

@media (min-width: 901px) {
  .price-action-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
  }
}

.price-data {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.price-data .curr-sign {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-amber);
}

.price-data .price-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-pure);
}

.price-data .cycle-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-primary-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-amber);
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}

.btn-primary-amber.disabled {
  background: #1f2937;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary-amber.full {
  width: 100%;
}

/* ===== TRUST BADGES (SCREEN SAFE NO-OVERFLOW) ===== */
.trust-grid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.trust-cell {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 901px) {
  .trust-cell {
    flex-direction: row;
    text-align: left;
    padding: 9px 10px;
    gap: 8px;
  }
}

.trust-cell i {
  color: var(--accent-amber);
  font-size: 14px;
  flex-shrink: 0;
}

.trust-cell div {
  min-width: 0;
  overflow: hidden;
}

.trust-cell strong {
  display: block;
  font-size: 10.5px;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trust-cell small {
  display: block;
  font-size: 9px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Description & Content */
.section-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.card-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pure);
}

.desc-content-block {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-height: 56px;
  overflow: hidden;
  position: relative;
  word-break: break-word;
}

.desc-content-block::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 24px;
  background: linear-gradient(transparent, var(--bg-card));
}

.desc-content-block.expanded {
  max-height: none;
}

.desc-content-block.expanded::after {
  display: none;
}

.toggle-read-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

/* Amenities */
.amenities-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-heading);
}

.amenity-tag i {
  color: var(--accent-cyan);
}

/* Cashback Card */
.cashback-perk-card {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  width: 100%;
}

.cashback-badge-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 3px;
}

.cashback-perk-card p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===== NEARBY CARDS ===== */
.nearby-section-wrap {
  margin-top: 28px;
  width: 100%;
}

.section-heading-bar {
  margin-bottom: 12px;
}

.section-heading-bar h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-pure);
}

.section-heading-bar .sub-text {
  font-size: 11.5px;
  color: var(--text-dim);
}

.room-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

@media (min-width: 768px) {
  .room-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }
}

.home-room-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 115px;
  background: #000;
}

@media (min-width: 768px) {
  .card-thumb-wrap { height: 145px; }
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-rating-pill {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-rating-pill i {
  color: var(--accent-amber);
}

.card-fav-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.card-content-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-tag-verified {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-title-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-specs-row {
  font-size: 10.5px;
  color: var(--text-dim);
}

.card-price-row {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.card-price-row strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-pure);
}

.card-price-row small {
  font-size: 10px;
  color: var(--text-muted);
}

/* ===== FULLSCREEN CINEMA LIGHTBOX ===== */
.cinema-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.98);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  width: 100vw;
  height: 100vh;
}

.cinema-lightbox-overlay.active {
  display: flex;
}

.lightbox-header {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.lightbox-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-swipe-area {
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  will-change: transform;
}

.lightbox-swipe-area img {
  max-width: 95%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn.prev { left: 16px; }
.lightbox-nav-btn.next { right: 16px; }

@media (max-width: 900px) {
  .lightbox-nav-btn { display: none; }
}

.lightbox-footer-hint {
  position: absolute;
  bottom: 20px;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== MOBILE BOTTOM STICKY CTA DOCK ===== */
.mobile-bottom-cta-dock {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(17, 24, 39, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 901px) {
  .mobile-bottom-cta-dock { display: none; }
}

.dock-price small {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
}

.dock-price strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-amber);
}

/* ===== MODAL POPUPS ===== */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.app-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow-lux);
}

.modal-icon-header {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.app-modal-dialog h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.app-modal-dialog .modal-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.btn-skip-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: underline;
}