/* ============================================================
   TWG HOLIDAYS — Luxury Hotels page (cn/hotels, en/hotels)
   Extends style.css, does not modify it.
   ============================================================ */

/* ── Hero gradient (deep navy, matches page-hero-* convention) */
.page-hero-hotels .hero-bg { background: linear-gradient(160deg, #04233f 0%, var(--navy) 55%, #0d4f8a 100%); }

/* ── Perk strip (features-grid variant, tighter) ─────────── */
.perk-note {
  font-size: .82rem; color: var(--gray); margin-top: 1.5rem; font-style: italic;
}

/* ── Program badges ──────────────────────────────────────── */
.badges-row {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem;
}
.hotel-badge {
  display: inline-block; padding: 9px 18px;
  border: 1.5px solid var(--gold); border-radius: 30px;
  font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  color: var(--navy); background: #fff; cursor: pointer;
  transition: all .2s; user-select: none;
}
.hotel-badge:hover { background: var(--bg); }
.hotel-badge.active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ── Search / filter bar ─────────────────────────────────── */
.hotels-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; margin-bottom: 1.25rem;
}
.hotels-search-input {
  flex: 1 1 320px;
  padding: 12px 16px; font-size: .92rem;
  border: 1.5px solid #dde7f0; border-radius: 3px;
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  color: var(--text);
}
.hotels-search-input:focus { outline: none; border-color: var(--blue); }
.hotels-select {
  padding: 12px 14px; font-size: .88rem;
  border: 1.5px solid #dde7f0; border-radius: 3px;
  background: #fff; color: var(--text);
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  min-width: 170px;
}
.hotels-select:focus { outline: none; border-color: var(--blue); }

.hotels-count { font-size: .84rem; color: var(--gray); margin-bottom: 1rem; }

/* ── Loading / empty states ──────────────────────────────── */
.hotels-loading {
  padding: 3rem 1rem; text-align: center; color: var(--gray); font-size: .92rem;
  display: none;
}
.hotels-empty { text-align: center !important; color: var(--gray); padding: 2.5rem 1rem !important; }

/* ── Results table (extends .price-table look) ───────────── */
.hotels-table-wrap { overflow-x: auto; border-radius: 4px; box-shadow: 0 2px 20px rgba(10,61,107,.08); }
.hotels-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 620px; }
.hotels-table th {
  background: var(--navy); color: #fff;
  padding: .9rem 1.1rem; font-size: .8rem; font-weight: 500;
  text-align: left; white-space: nowrap;
}
.hotels-table td {
  padding: .8rem 1.1rem; font-size: .87rem;
  border-bottom: 1px solid #eef3f8; color: var(--text);
  vertical-align: top;
}
.hotels-table tr:last-child td { border-bottom: none; }
.hotels-table tr:hover td { background: #f8fbff; }
.hotels-name { font-weight: 600; color: var(--navy); }

.hotel-program-badge {
  display: inline-block; font-size: .7rem; font-weight: 500;
  padding: 2px 9px; border: 1px solid var(--gold); border-radius: 20px;
  color: var(--gold); white-space: nowrap; margin: 2px 3px 2px 0;
}

.hotels-showmore-wrap { text-align: center; margin-top: 2rem; }

@media (max-width: 640px) {
  .hotels-toolbar { flex-direction: column; }
  /* flex-basis 320px becomes a HEIGHT once the toolbar turns vertical */
  .hotels-search-input { flex: 1 1 auto; width: 100%; }
  .hotels-select { min-width: 0; width: 100%; }
}

/* 10-28 参考价(锚点区间)+ 价位筛选 */
.hotel-ref { display: block; font-weight: 400; font-size: .82rem; color: #8a5a00; margin-top: 2px; }
.hotels-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: .6rem 0 0; }
.hotels-price-row .hp-lab { font-size: .9rem; color: #555; margin-right: 4px; }
.hotels-price-row button { border: 1px solid #d8dce3; background: #fff; color: var(--navy); border-radius: 16px; padding: 4px 12px; font-size: .88rem; cursor: pointer; }
.hotels-price-row button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.hotels-ref-note { font-size: .85rem; color: #666; margin: .5rem 0 0; }
/* 10-28 礼遇一行小标签 */
.perk-chip { background: #fff8e8; border: 1px solid #f0d9a8; color: var(--navy); border-radius: 18px; padding: 6px 14px; font-size: .92rem; }
.prog-more .badges-row { margin-top: .8rem; }

/* 10-28 主表:酒店名链到介绍页 + 「查价 ›」弹窗(hotel-inquiry.js)+ 4 个锚点价各一列 */
.hotels-table.has-a4 { min-width: 980px; }
.hotels-name a { color: var(--navy); }
.hotels-name a.price-check-inline { margin-left: 6px; font-size: .78rem; font-weight: 400; color: var(--blue); white-space: nowrap; text-decoration: none; }
.hotels-name a.price-check-inline:hover { text-decoration: underline; }
.hotels-table th[data-a4], .hotels-a4 { text-align: right; white-space: nowrap; }
