/* Rooms listing page (rooms.html) */
.listing-head {
  width: 100%;
  box-sizing: border-box;
  padding: 40px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-head__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  color: var(--color-text);
}

.listing-head__count {
  font-size: 14px;
  color: var(--color-muted);
}

/* Filter bar (visual only, as in the design) */
.filter-bar {
  box-sizing: border-box;
  margin: 24px var(--gutter) 0;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.filter-bar__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-sand);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.filter-bar__field--search {
  flex: 1.4;
  justify-content: flex-start;
  gap: 10px;
}

.filter-bar__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
}

.filter-bar__input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

/* Native dropdown laid over the field: the closed state keeps the design's look */
.filter-bar__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.filter-bar__field:focus-within {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

.filter-bar__value {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 600;
}

.filter-bar__apply {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  background: var(--color-teal);
  color: var(--color-surface);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
}

/* Sort */
.listing-sort {
  width: 100%;
  box-sizing: border-box;
  padding: 32px var(--gutter) 8px;
  display: flex;
  justify-content: flex-end;
}

.listing-sort__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  cursor: pointer;
}

.listing-sort__value {
  font-weight: 700;
  color: var(--color-text);
}

/* Native dropdown laid over the control: the closed state keeps the design's look
   (same trick as .filter-bar__select) */
.listing-sort__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

/* Grid */
.listing-grid {
  width: 100%;
  box-sizing: border-box;
  padding: 8px var(--gutter) 24px;
}

/* Pagination (visual only, as in the design) */
.pagination {
  width: 100%;
  box-sizing: border-box;
  padding: 8px var(--gutter) 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pagination__page {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--color-sand);
  color: var(--color-text);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__page--active {
  background: var(--color-teal);
  color: var(--color-surface);
  font-weight: 700;
}

.pagination__next {
  font-size: 13px;
  color: var(--color-muted);
  margin-left: 6px;
}
