/**
 * Room list — Airbnb-style listing sections
 */
.room-list-page {
  padding-top: 80px;
  padding-bottom: 64px;
  background: #fff;
}

@media (min-width: 992px) {
  .room-list-page {
    padding-top: 108px;
    padding-bottom: 80px;
  }
}

.dark .room-list-page {
  background: #111827;
}

.room-list-page__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 48px 32px;
}

@media (max-width: 991.98px) {
  .room-list-page__inner {
    padding: 12px 24px 24px;
  }
}

.room-list-section {
  margin-bottom: 40px;
}

.room-list-section:last-child {
  margin-bottom: 0;
}

.room-list-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.room-list-section__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.room-list-section__title {
  margin: 0;
  font-size: var(--lm-list-section);
  font-weight: var(--lm-fw-semibold);
  line-height: var(--lm-lh-tight);
  color: #111827;
}

.dark .room-list-section__title {
  color: #f9fafb;
}

.room-list-section__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: var(--lm-list-section);
  line-height: 1;
  color: #111827;
  background: transparent;
  border: 0;
  cursor: default;
  pointer-events: none;
}

.dark .room-list-section__more {
  color: #f9fafb;
}

.room-list-section__nav {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.room-list-section__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.room-list-section__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.room-list-section__nav-btn:not(:disabled):hover {
  border-color: #d1d5db;
}

.dark .room-list-section__nav-btn {
  color: #e5e7eb;
  background: #1f2937;
  border-color: #4b5563;
}

.dark .room-list-section__nav-btn:not(:disabled):hover {
  border-color: #6b7280;
}

.room-list-section__grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  overflow: hidden;
}

.room-list-card {
  min-width: 0;
  width: 100%;
}

.room-list-card__media {
  position: relative;
  height: 140px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}

.room-list-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.room-list-card:hover .room-list-card__media img {
  transform: scale(1.03);
}

.room-list-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 4px 8px;
  font-size: var(--lm-caption);
  font-weight: var(--lm-fw-semibold);
  line-height: 1.2;
  color: #111827;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.room-list-card__body {
  padding-top: 10px;
}

.room-list-card__title {
  margin: 0;
  overflow: hidden;
  font-size: var(--lm-list-card);
  font-weight: var(--lm-fw-semibold);
  line-height: var(--lm-lh-tight);
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .room-list-card__title {
  color: #f9fafb;
}

.room-list-card__meta {
  margin: 4px 0 0;
  font-size: var(--lm-list-meta);
  line-height: var(--lm-lh-normal);
  color: #6b7280;
}

.dark .room-list-card__meta {
  color: #9ca3af;
}

.room-list-card__footer {
  margin: 4px 0 0;
  font-size: var(--lm-list-meta);
  line-height: var(--lm-lh-normal);
  color: #111827;
}

.dark .room-list-card__footer {
  color: #e5e7eb;
}

.room-list-card__footer .room-list-card__rating {
  font-weight: 600;
}
