/* =====================================================================
   Astrust Travel — Hotel archive (filterable, AJAX-driven listing)
   Booking-style results layout: search bar + sort, taxonomy filters
   sidebar and horizontal hotel cards. RTL-first.
   ===================================================================== */
.hotel-archive {
  width: 100%;
  max-width: var(--content-width, 1140px);
  margin-inline: auto;
  padding: 32px 20px 64px;
  box-sizing: border-box;
  color: var(--ast-ink);
}

/* ── Header ── */
.hotel-archive__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hotel-archive__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--ast-primary);
}
.hotel-archive__back {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ast-accent);
  text-decoration: none;
}
.hotel-archive__back:hover {
  text-decoration: underline;
}

/* ── Search bar ── */
.hotel-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(15, 27, 76, 0.06);
  margin-bottom: 24px;
}
.hotel-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.hotel-search__field svg {
  position: absolute;
  inset-inline-start: 12px;
  width: 18px;
  height: 18px;
  color: var(--ast-muted);
  pointer-events: none;
}
.hotel-search__input {
  width: 100%;
  padding: 12px 14px;
  padding-inline-start: 40px;
  border: 1px solid transparent;
  border-radius: var(--ast-radius-sm);
  background: var(--ast-bg);
  font: inherit;
  box-sizing: border-box;
}
.hotel-search__input:focus {
  outline: none;
  border-color: var(--ast-accent);
  background: #fff;
}
.hotel-search__submit {
  flex: 0 0 auto;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--ast-radius-sm);
  background: var(--ast-accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.hotel-search__submit:hover {
  filter: brightness(0.95);
}
.hotel-filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius-sm);
  background: #fff;
  color: var(--ast-ink);
  font-weight: 700;
  cursor: pointer;
}
.hotel-filters-toggle svg {
  width: 20px;
  height: 20px;
}

/* ── Layout: filters sidebar + results ── */
.hotel-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Filters ── */
.hotel-filters {
  background: #fff;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  padding: 8px 16px 16px;
  position: sticky;
  top: 20px;
}
.hotel-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.hotel-filters__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ast-primary);
}
.hotel-filters__close {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ast-muted);
}
.hotel-filters__close svg {
  width: 22px;
  height: 22px;
}
.hotel-filters__group {
  border-top: 1px solid var(--ast-line);
  padding: 14px 0;
}
.hotel-filters__group:last-child {
  padding-bottom: 0;
}
.hotel-filters__group-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ast-ink);
}
.hotel-filters__options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
}
.hotel-filters__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
}
.hotel-filters__option:hover {
  background: var(--ast-bg);
}
.hotel-filters__option input {
  width: 17px;
  height: 17px;
  accent-color: var(--ast-accent);
  cursor: pointer;
  flex: 0 0 auto;
}
.hotel-filters__option-label {
  flex: 1 1 auto;
}
.hotel-filters__option-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: var(--ast-muted);
}

/* ── Results ── */
.hotel-results {
  min-width: 0;
}
.hotel-results__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  padding: 12px 16px;
  margin-bottom: 18px;
}
.hotel-results__count {
  font-weight: 700;
  color: var(--ast-ink);
}
#hotel-results-container .hotel-results__count {
  margin-bottom: 14px;
}
.hotel-results__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ast-muted);
}
.hotel-results__sort select {
  padding: 8px 12px;
  border: 1px solid var(--ast-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--ast-ink);
  cursor: pointer;
}

/* ── Grid ── */
.hotel-grid {
  all: unset;
  display: grid;
  gap: 16px;
}
.hotel-grid__item {
  display: flex;
}

/* ── Hotel card ── */
.hotel-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  padding: 14px;
  box-sizing: border-box;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.hotel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(15, 27, 76, 0.1);
}
.hotel-card__media {
  position: relative;
  display: block;
  border-radius: var(--ast-radius-sm);
  overflow: hidden;
  min-height: 180px;
  aspect-ratio: 1 / 1;
}
.hotel-card__img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hotel-card:hover .hotel-card__img {
  transform: scale(1.05);
}
.hotel-card__img--placeholder {
  background: linear-gradient(135deg, #d7def0, #b9c6e6);
}
.hotel-card__stars-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  gap: 1px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
}
.hotel-card__star {
  width: 13px;
  height: 13px;
  color: #eabd33;
}
.hotel-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-block: 4px;
}
.hotel-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hotel-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ast-primary);
  text-decoration: none;
}
.hotel-card__title:hover {
  color: var(--ast-accent);
}
.hotel-card__stars-label {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ast-accent);
  background: var(--ast-accent-light);
  padding: 3px 10px;
  border-radius: 999px;
}
.hotel-card__location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ast-muted);
}
.hotel-card__location svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.hotel-card__facilities {
  all: unset;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hotel-facility {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--ast-ink);
  background: var(--ast-bg);
  border-radius: 8px;
}
.hotel-facility--more {
  color: var(--ast-muted);
  font-weight: 700;
}
.hotel-facility__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ast-primary);
  font-size: 18px;
  line-height: 1;
}
.hotel-facility__icon svg {
  width: 100%;
  height: 100%;
}
.hotel-facility__icon.dashicons {
  width: 18px;
  height: 18px;
}
.hotel-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hotel-card__feature {
  font-size: 0.74rem;
  color: var(--ast-primary);
  border: 1px solid var(--ast-line);
  border-radius: 999px;
  padding: 3px 10px;
}
.hotel-card__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 6px;
}
.hotel-card__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ast-muted);
  text-decoration: none;
}
.hotel-card__map svg {
  width: 16px;
  height: 16px;
}
.hotel-card__map:hover {
  color: var(--ast-primary);
}
.hotel-card__cta {
  margin-inline-start: auto;
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--ast-primary);
  border-radius: var(--ast-radius-sm);
  text-decoration: none;
  transition: filter 0.15s ease;
}
.hotel-card__cta:hover {
  filter: brightness(1.1);
}

/* ── Loading ── */
.hotel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--ast-muted);
}
.hotel-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--ast-line);
  border-top-color: var(--ast-accent);
  border-radius: 50%;
  animation: hotel-spin 0.8s linear infinite;
}
@keyframes hotel-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Pagination (shared style) ── */
.hotel-results .archive-pagination {
  margin-top: 28px;
  text-align: center;
}
.hotel-results .archive-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  margin: 0 0.2rem;
  background: #fff;
  border: 1px solid var(--ast-line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ast-ink);
  transition: 0.15s;
}
.hotel-results .archive-pagination .page-numbers:hover {
  background: var(--ast-bg);
}
.hotel-results .archive-pagination .page-numbers.current {
  background: var(--ast-accent);
  border-color: var(--ast-accent);
  color: #fff;
}
.hotel-results .archive-empty {
  padding: 3rem;
  text-align: center;
  color: var(--ast-muted);
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hotel-card {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .hotel-layout {
    grid-template-columns: 1fr;
  }
  .hotel-filters-toggle {
    display: inline-flex;
  }
  .hotel-filters {
    position: fixed;
    inset: 0;
    z-index: 1000;
    border-radius: 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -12px 64px rgba(0, 0, 0, 0.2);
  }
  .hotel-filters.is-open {
    transform: translateY(10%);
    -webkit-transform: translateY(10%);
    -moz-transform: translateY(10%);
    -ms-transform: translateY(10%);
    -o-transform: translateY(10%);
  }
  .hotel-filters__close {
    display: inline-flex;
  }
  .hotel-filters__head {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--ast-line);
    margin-bottom: 8px;
  }
}

@media (max-width: 560px) {
  .hotel-search {
    flex-wrap: wrap;
  }
  .hotel-search__field {
    flex: 1 1 100%;
    order: -1;
  }
  .hotel-card {
    grid-template-columns: 1fr;
  }
  .hotel-card__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .hotel-card__img {
    min-height: 0;
  }
}
