/* ============================================
   ROOM DETAIL PAGE — room.css
   Premium minimal design
   Mobile-first approach
   ============================================ */

/* --- Breadcrumb --- */
.room-breadcrumb {
  padding: 100px 0 0;
}
.room-breadcrumb .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.room-breadcrumb a {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.room-breadcrumb a:hover {
  color: var(--gold);
}
.room-breadcrumb .sep {
  color: var(--line);
  font-size: 0.75rem;
}
.room-breadcrumb .current {
  color: var(--ink);
  font-weight: 500;
}

/* --- Gallery --- */
.room-gallery {
  padding: 24px 0 0;
}
.room-gallery .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Main image */
.gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  cursor: pointer;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-main:hover img {
  transform: scale(1.02);
}

/* Photo count badge */
.gallery-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  pointer-events: none;
}
.gallery-badge svg {
  opacity: 0.8;
}

/* Expand button */
.gallery-expand {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-expand:hover {
  background: rgba(26, 26, 26, 0.8);
  transform: scale(1.05);
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
  scroll-snap-align: start;
  opacity: 0.6;
  padding: 0;
  background: var(--line);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb:hover {
  opacity: 0.85;
}
.gallery-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Lightbox controls */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Lightbox image */
.lightbox-img-wrap {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img-wrap img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

/* Lightbox counter */
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
}

/* --- Room Info --- */
.room-info {
  padding: 48px 0 var(--section-y);
}
.room-info-grid {
  display: grid;
  gap: 48px;
}

/* Left content */
.room-content .tag {
  margin-bottom: 16px;
}
.room-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-top: 8px;
  line-height: 1.2;
}

/* Meta badges */
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.room-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gold-wash);
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold-deep);
}
.room-meta-badge svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Description */
.room-description {
  margin-top: 32px;
  line-height: 1.8;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Features */
.room-features {
  margin-top: 40px;
}
.room-features-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--ink);
}
.room-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.room-feature-item {
  display: flex;
  /* BUG-004: center → flex-start. Uzun feature metni satır kaydırınca icon
     ortalanmak yerine ilk satırla hizalı kalır → görsel hizalama bozulmaz. */
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.room-feature-item:hover {
  border-color: var(--gold-pale);
  box-shadow: var(--shadow-sm);
}
.room-feature-item svg {
  flex-shrink: 0;
  /* Icon 18px, line-height ile ilk satır cap-height'ı yaklaşık 13-14px →
     2-3px nudge görsel olarak baseline'a yakın hizalar. */
  margin-top: 3px;
}
.room-feature-item span {
  /* BUG-004: uzun Türkçe kelimelerde overflow ve word-break yönetimi.
     min-width:0 flex item'da text-overflow için zorunlu (default min-width:auto
     intrinsic genişliği zorlar, wrap çalışmaz). */
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* --- Sidebar --- */
.room-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.room-price-note {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--gold-wash);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.room-price-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Sidebar buttons */
.room-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.room-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  text-align: center;
  min-height: 48px;
}
.room-btn:hover {
  transform: translateY(-2px);
}
.room-btn-gold {
  background: var(--gold);
  color: #fff;
}
.room-btn-gold:hover {
  background: var(--gold-deep);
  box-shadow: var(--shadow-gold);
}
.room-btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.room-btn-whatsapp:hover {
  background: #1EB954;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.3);
}
.room-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.room-btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* --- Other Rooms --- */
.room-others {
  padding: 0 0 var(--section-y);
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.room-others .section-head {
  margin-bottom: 48px;
  padding-top: var(--section-y);
}
.room-others-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.room-others-card {
  display: block;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.room-others-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-pale);
}
.room-others-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line);
}
.room-others-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.room-others-card:hover .room-others-card-img img {
  transform: scale(1.05);
}
.room-others-card-body {
  padding: 20px;
}
.room-others-card-body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
}
.room-others-cap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.room-others-cap svg {
  color: var(--gold);
}
.room-others-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-top: 12px;
  transition: gap 0.3s var(--ease);
}
.room-others-card:hover .room-others-link {
  gap: 10px;
}

/* --- Sticky Mobile Bottom Bar --- */
.room-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 91;
  display: none;
  gap: 8px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(26, 26, 26, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}
.room-mobile-bar.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.room-mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
  min-height: 48px;
  transition: transform 0.2s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}
.room-mobile-btn:active {
  transform: scale(0.96);
}
.room-mobile-btn-gold {
  background: var(--gold);
  color: #fff;
}
.room-mobile-btn-wa {
  background: #25D366;
  color: #fff;
}
.room-mobile-btn-dark {
  background: var(--ink);
  color: var(--bg);
}

/* --- Responsive: Tablet portrait edge (--bp-sm-tablet 600px) --- */
@media (min-width: 600px) {
  .room-others-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-thumb {
    width: 96px;
    height: 64px;
  }
}

/* --bp-sm-tablet (600px) — features 2-col
   (BUG-004 amend: 768'den 600'e geri çekildi, D5 Q2 kararıyla uyum) */
@media (min-width: 600px) {
  .room-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Responsive: Desktop (--bp-tablet 1024px+) --- */
@media (min-width: 1024px) {
  .room-breadcrumb {
    padding-top: 108px;
  }

  .room-gallery {
    padding: 28px 0 0;
  }

  .gallery-main {
    border-radius: 16px;
  }

  .gallery-thumb {
    width: 108px;
    height: 72px;
    border-radius: 10px;
  }

  .room-info-grid {
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
  }

  .room-sidebar-card {
    position: sticky;
    top: 84px;
    padding: 32px 28px;
  }

  .room-others-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* BUG-004: Features grid desktop 3-col (--bp-tablet 1024px+) */
  .room-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Lightbox arrows bigger */
  .lightbox-prev,
  .lightbox-next {
    width: 56px;
    height: 56px;
  }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }

  /* Hide mobile bar on desktop */
  .room-mobile-bar {
    display: none !important;
  }
}

/* Show mobile bar only on tablet/mobil (--bp-tablet 1024 alt sınırı) */
@media (max-width: 1023px) {
  .room-mobile-bar {
    display: flex;
  }

  /* WhatsApp FAB & scroll-top yukarı kaydır (mobile bar'ın üstüne) */
  .page-room .whatsapp-wrap { bottom: 80px; }
  .page-room .scroll-top { bottom: 150px; }

  /* Add bottom padding to body so footer isn't hidden behind mobile bar */
  .page-room .site-footer {
    padding-bottom: 80px;
  }

  /* Lightbox arrows on mobile */
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-prev svg,
  .lightbox-next svg {
    width: 22px;
    height: 22px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}

/* Large desktop (--bp-desktop 1280px+) */
@media (min-width: 1280px) {
  .room-info-grid {
    grid-template-columns: 1fr 400px;
    gap: 72px;
  }
}

/* Body scroll lock handled via JS (position:fixed) for iOS Safari compat */
