/**
 * Hotel components — single + archive + card.
 * All values from design tokens (variables.css). No hardcoded colours or sizes.
 *
 * Component tree:
 *   .tt-hotel-hero        — single page hero section
 *   .tt-hotel-stars       — star rating display (shared)
 *   .tt-hotel-routes      — transfer options heading + vehicle grid
 *   .tt-hotel-vehicle-card — per-vehicle pricing card
 *   .tt-hotel-info        — hotel detail grid
 *   .tt-hotel-nearby      — "More hotels at this destination" section
 *   .tt-hotel-card        — card used in archive + nearby (reusable)
 *   .tt-hotel-filters     — archive filter bar
 *   .tt-hotel-archive     — archive-level layout
 */

/* ============================================================
   HERO
   ============================================================ */
.tt-hotel-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--tt-color-primary) 0%, #0a3fa8 100%);
  overflow: hidden;
  color: #fff;
}

.tt-hotel-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tt-hotel-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 60%, transparent 100%);
}

.tt-hotel-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--tt-space-12) var(--tt-space-10);
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-3);
}

.tt-hotel-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--tt-space-3);
  flex-wrap: wrap;
}

.tt-hotel-hero__dest {
  color: rgba(255,255,255,.85);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tt-hotel-hero__dest:hover { color: #fff; }

.tt-hotel-stars--hero {
  color: var(--tt-color-warning, #f6c21c);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.tt-hotel-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  max-width: 700px;
}

.tt-hotel-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tt-space-4);
  align-items: center;
  margin-block-start: var(--tt-space-1);
}

.tt-hotel-hero__fact {
  display: flex;
  align-items: center;
  gap: var(--tt-space-2);
  font-size: 0.9rem;
  color: rgba(255,255,255,.9);
}

.tt-hotel-hero__fact--price {
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.12);
  padding: var(--tt-space-1) var(--tt-space-3);
  border-radius: var(--tt-radius-md);
}

/* ============================================================
   STAR RATING (shared)
   ============================================================ */
.tt-hotel-stars {
  color: var(--tt-color-warning, #f6c21c);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ============================================================
   TRANSFER OPTIONS
   ============================================================ */
.tt-hotel-routes {
  padding-block: var(--tt-space-10) var(--tt-space-8);
}

.tt-hotel-routes h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-block-end: var(--tt-space-2);
}

.tt-hotel-routes__meta {
  color: var(--tt-color-text-muted);
  margin-block-end: var(--tt-space-6);
}

/* Vehicle cards grid */
.tt-hotel-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--tt-space-5);
}

.tt-hotel-vehicle-card {
  background: var(--tt-color-surface);
  border: 1px solid var(--tt-color-border);
  border-radius: var(--tt-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tt-hotel-vehicle-card:hover {
  box-shadow: var(--tt-shadow-2);
  transform: translateY(-2px);
}

.tt-hotel-vehicle-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.tt-hotel-vehicle-card__body {
  padding: var(--tt-space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-2);
}

.tt-hotel-vehicle-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.tt-hotel-vehicle-card__capacity {
  font-size: 0.85rem;
  color: var(--tt-color-text-muted);
  margin: 0;
}

.tt-hotel-vehicle-card__features {
  list-style: none;
  padding: 0;
  margin: var(--tt-space-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-1);
  font-size: 0.85rem;
  color: var(--tt-color-text-muted);
}

.tt-hotel-vehicle-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tt-space-3);
  padding-block-start: var(--tt-space-3);
  border-block-start: 1px solid var(--tt-color-border);
  margin-block-start: auto;
}

.tt-hotel-vehicle-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tt-color-primary);
}
.tt-hotel-vehicle-card__price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--tt-color-text-muted);
  display: block;
  line-height: 1;
}

/* ============================================================
   HOTEL INFO GRID
   ============================================================ */
.tt-hotel-info {
  padding-block: var(--tt-space-8);
  border-block-start: 1px solid var(--tt-color-border);
}

.tt-hotel-info__content {
  margin-block-end: var(--tt-space-6);
  max-width: 720px;
}

.tt-hotel-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--tt-space-4);
}

.tt-hotel-info__item {
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-1);
  padding: var(--tt-space-4);
  background: var(--tt-color-surface);
  border-radius: var(--tt-radius-lg);
  border: 1px solid var(--tt-color-border);
}

.tt-hotel-info__item--full {
  grid-column: 1 / -1;
}

.tt-hotel-info__item strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tt-color-text-muted);
}

.tt-hotel-info__item a {
  color: var(--tt-color-primary);
}

/* ============================================================
   NEARBY HOTELS SECTION
   ============================================================ */
.tt-hotel-nearby {
  padding-block: var(--tt-space-10);
  border-block-start: 1px solid var(--tt-color-border);
}

.tt-hotel-nearby__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--tt-space-5);
  margin-block-start: var(--tt-space-6);
}

.tt-hotel-nearby__more {
  text-align: center;
  margin-block-start: var(--tt-space-8);
}

/* ============================================================
   HOTEL CARD (archive + nearby — reusable)
   ============================================================ */
.tt-hotel-card {
  background: var(--tt-color-surface);
  border: 1px solid var(--tt-color-border);
  border-radius: var(--tt-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.tt-hotel-card:hover {
  box-shadow: var(--tt-shadow-2);
  transform: translateY(-3px);
}

.tt-hotel-card__media {
  display: block;
  position: relative;
  overflow: hidden;
}

.tt-hotel-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.tt-hotel-card:hover .tt-hotel-card__img {
  transform: scale(1.04);
}

.tt-hotel-card__placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--tt-color-primary) 0%, #0a3fa8 100%);
}

.tt-hotel-card__badge {
  position: absolute;
  inset-block-start: var(--tt-space-3);
  inset-inline-start: var(--tt-space-3);
  background: var(--tt-color-secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--tt-radius-sm);
}

.tt-hotel-card__body {
  padding: var(--tt-space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--tt-space-2);
}

.tt-hotel-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tt-space-2);
}

.tt-hotel-card__dest {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tt-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.tt-hotel-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}
.tt-hotel-card__title a {
  color: var(--tt-color-text);
  text-decoration: none;
}
.tt-hotel-card__title a:hover {
  color: var(--tt-color-primary);
}

.tt-hotel-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tt-space-3);
  align-items: center;
  margin-block-start: auto;
  padding-block-start: var(--tt-space-2);
}

.tt-hotel-card__fact {
  font-size: 0.82rem;
  color: var(--tt-color-text-muted);
}

.tt-hotel-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tt-color-primary);
  margin-inline-start: auto;
}

.tt-hotel-card__footer {
  display: flex;
  gap: var(--tt-space-2);
  padding: var(--tt-space-3) var(--tt-space-4);
  border-block-start: 1px solid var(--tt-color-border);
  background: var(--tt-color-bg);
}

/* ============================================================
   ARCHIVE — FILTER BAR
   ============================================================ */
.tt-hotel-filters {
  margin-block-end: var(--tt-space-6);
  background: var(--tt-color-surface);
  border: 1px solid var(--tt-color-border);
  border-radius: var(--tt-radius-xl);
  padding: var(--tt-space-4) var(--tt-space-5);
}

.tt-hotel-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tt-space-3);
}

.tt-hotel-filters__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tt-color-text-muted);
  white-space: nowrap;
}

.tt-hotel-filters__select {
  border: 1px solid var(--tt-color-border);
  border-radius: var(--tt-radius-md);
  padding: var(--tt-space-2) var(--tt-space-3);
  font-size: 0.9rem;
  background: var(--tt-color-bg);
  color: var(--tt-color-text);
  cursor: pointer;
}
.tt-hotel-filters__select:focus {
  outline: 2px solid var(--tt-color-primary);
  outline-offset: 2px;
}

/* ============================================================
   ARCHIVE GRID
   ============================================================ */
.tt-hotel-archive__count {
  color: var(--tt-color-text-muted);
  font-size: 0.9rem;
  margin-block-end: var(--tt-space-5);
}

.tt-hotel-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--tt-space-6);
}

/* ============================================================
   RESPONSIVE — mobile first adjustments
   ============================================================ */
@media (max-width: 639px) {
  .tt-hotel-hero {
    min-height: 360px;
  }
  .tt-hotel-hero__title {
    font-size: 1.6rem;
  }
  .tt-hotel-hero__facts {
    gap: var(--tt-space-3);
  }
  .tt-hotel-vehicle-grid {
    grid-template-columns: 1fr;
  }
  .tt-hotel-archive__grid,
  .tt-hotel-nearby__grid {
    grid-template-columns: 1fr 1fr;
  }
  .tt-hotel-filters__row {
    gap: var(--tt-space-2);
  }
}

@media (max-width: 479px) {
  .tt-hotel-archive__grid,
  .tt-hotel-nearby__grid {
    grid-template-columns: 1fr;
  }
  .tt-hotel-card__footer {
    flex-direction: column;
  }
  .tt-hotel-card__footer .tt-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   RTL — logical properties already used above.
   Only explicit overrides needed for non-logical properties.
   ============================================================ */
[dir="rtl"] .tt-hotel-card__badge {
  inset-inline-start: auto;
  inset-inline-end: var(--tt-space-3);
}
