/* =============================================================
   TUB & SPA HOTELS — HOTEL CARDS  v3.0  Luxury Edition
   ============================================================= */

:root {
  --lx-navy:    #1B3A5C;
  --lx-navy-dk: #122840;
  --lx-gold:    #C9A84C;
  --lx-gold-lt: #E8C96A;
  --lx-teal:    #0D7377;
  --lx-cream:   #FAF8F5;
  --lx-warm:    #F2EDE6;
  --lx-white:   #FFFFFF;
  --lx-text:    #1A1A2E;
  --lx-muted:   #7A8499;
  --lx-border:  #E5E0D8;
  --lx-rad:     14px;
  --lx-ease:    cubic-bezier(.22,.68,0,1.2);
}

/* ─── Wrapper ───────────────────────────────────────────────── */
.chc-hotel-wrapper {
  margin: 24px 0 48px;
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Top bar ───────────────────────────────────────────────── */
.chc-topbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding: 10px 14px;
  border-radius: 12px;
  background: var(--lx-white);
  border: 1px solid var(--lx-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.chc-filters-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  border-radius: 999px; border: none;
  background: var(--lx-navy);
  color: var(--lx-gold);
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background .2s;
}
.chc-filters-toggle:hover { background: var(--lx-navy-dk); }
.chc-filters-icon { font-size: 14px; }

.chc-results-count { font-size: 14px; color: var(--lx-muted); font-weight: 600; white-space: nowrap; }

.chc-sort-wrapper { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chc-sort-label   { font-size: 13px; color: var(--lx-muted); }

.chc-sort-select {
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--lx-border);
  font-size: 13px; font-weight: 600; min-width: 155px;
  background: var(--lx-white); color: var(--lx-text); cursor: pointer;
}
.chc-sort-select:focus { border-color: var(--lx-gold); outline: none; }

/* ─── Filters panel ─────────────────────────────────────────── */
.chc-layout { display: block; }

.chc-filters-panel {
  border-radius: var(--lx-rad);
  border: 1px solid var(--lx-border);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  background: var(--lx-white);
  margin-bottom: 20px;
}
.chc-filters-inner { padding: 18px 18px 14px; }

.chc-filter-title {
  margin: 0 0 10px;
  font-size: 11px; font-weight: 800;
  color: var(--lx-navy);
  text-transform: uppercase; letter-spacing: .1em;
}
.chc-filter-block { margin-bottom: 18px; }

.chc-price-options { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--lx-text); }
.chc-price-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.chc-price-option input[type="radio"] { accent-color: var(--lx-gold); }

#chc-min-rating {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 999px;
  background: var(--lx-border); outline: none; cursor: pointer;
}
#chc-min-rating::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--lx-gold); cursor: pointer;
  box-shadow: 0 2px 8px rgba(201,168,76,.40);
}
#chc-min-rating::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--lx-gold); border: none; cursor: pointer;
}
#chc-min-rating-label { margin-top: 6px; font-size: 12px; color: var(--lx-muted); font-weight: 600; }

.chc-filter-checkboxes { font-size: 13px; color: var(--lx-text); display: flex; flex-direction: column; gap: 6px; }
.chc-filter-checkboxes.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.chc-filter-checkboxes label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.chc-filter-checkboxes input[type="checkbox"] { accent-color: var(--lx-gold); }

.chc-filters-actions { display: flex; gap: 10px; margin-top: 12px; }
.chc-apply-filters, .chc-reset-filters {
  flex: 1; padding: 10px; border-radius: 999px; border: none;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity .2s;
}
.chc-apply-filters { background: var(--lx-navy); color: var(--lx-gold); }
.chc-apply-filters:hover { background: var(--lx-navy-dk); }
.chc-reset-filters { background: var(--lx-warm); color: var(--lx-muted); border: 1px solid var(--lx-border); }
.chc-reset-filters:hover { background: var(--lx-border); }

/* ─── Grid ──────────────────────────────────────────────────── */
.chc-hotel-cards-grid { display: grid; gap: 28px; }

@media screen and (min-width: 992px) {
  .chc-layout-has-filters { display: flex; align-items: flex-start; gap: 28px; }
  .chc-layout-has-filters .chc-filters-panel { flex: 0 0 270px; max-width: 270px; margin-bottom: 0; }
  .chc-layout-has-filters .chc-hotel-cards-grid,
  .chc-layout-no-filters  .chc-hotel-cards-grid { flex: 1 1 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (min-width: 601px) and (max-width: 991px) {
  .chc-layout-has-filters, .chc-layout-no-filters { display: block; }
  .chc-filters-panel { width: 100%; max-width: 500px; margin: 0 auto 20px; }
  .chc-hotel-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chc-filter-checkboxes.two-columns { display: block; }
}
@media screen and (max-width: 600px) {
  .chc-layout-has-filters, .chc-layout-no-filters { display: block; }
  .chc-hotel-cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .chc-topbar { flex-wrap: nowrap; gap: 6px; }
  .chc-filters-toggle { font-size: 12px; padding: 7px 12px; }
  .chc-results-count { font-size: 12px; }
  .chc-sort-select { font-size: 12px; min-width: 120px; }
}
@media screen and (max-width: 400px) { .chc-topbar { flex-wrap: wrap; } }

/* ─── Hotel card ────────────────────────────────────────────── */
.chc-hotel-card {
  background: var(--lx-white);
  border-radius: var(--lx-rad);
  border: 1px solid var(--lx-border);
  box-shadow: 0 4px 20px rgba(27,58,92,.07);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .24s var(--lx-ease), box-shadow .24s ease;
}
.chc-hotel-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(27,58,92,.14), 0 4px 12px rgba(201,168,76,.12);
}

/* ─── Luxury badge ──────────────────────────────────────────── */
@keyframes chc-luxury-glow {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(201,168,76,.55), 0 0 18px 4px rgba(201,168,76,.25); }
  50%       { box-shadow: 0 0 14px 4px rgba(201,168,76,.85), 0 0 30px 8px rgba(201,168,76,.40); }
}
@keyframes chc-luxury-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.chc-luxury-badge {
  position: absolute; top: 14px; left: 14px; z-index: 10;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #1B3A5C;
  background: linear-gradient(100deg, #C9A84C 0%, #F0D080 40%, #C9A84C 60%, #A07830 100%);
  background-size: 200% auto;
  animation: chc-luxury-glow 2.4s ease-in-out infinite, chc-luxury-shimmer 3s linear infinite;
  border: 1px solid rgba(255,220,100,.6);
  pointer-events: none;
}
.chc-luxury-icon {
  font-size: 10px;
  color: #1B3A5C;
  opacity: .85;
}
/* Luxury card gets a golden border glow */
.chc-hotel-card:has(.chc-luxury-badge) {
  border-color: rgba(201,168,76,.45);
  box-shadow: 0 4px 20px rgba(27,58,92,.07), 0 0 0 1px rgba(201,168,76,.2);
}
.chc-hotel-card:has(.chc-luxury-badge):hover {
  box-shadow: 0 18px 45px rgba(27,58,92,.14), 0 0 0 2px rgba(201,168,76,.5), 0 0 20px rgba(201,168,76,.2);
}

/* ─── Image area ────────────────────────────────────────────── */
.chc-hotel-image-wrap {
  position: relative; overflow: hidden;
  height: 230px; background: var(--lx-warm);
}
@media (max-width: 991px) { .chc-hotel-image-wrap { height: 210px; } }
@media (max-width: 600px)  { .chc-hotel-image-wrap { height: 190px; } }

/* Bottom gradient for luxury depth */
.chc-hotel-image-wrap::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(27,58,92,.55) 0%, transparent 100%);
  pointer-events: none; z-index: 1;
}

.chc-hotel-image { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Price badge — bottom-left over image */
.chc-price-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  background: rgba(255,255,255,.96);
  color: var(--lx-navy);
  font-weight: 900; font-size: 18px;
  padding: 5px 12px; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  line-height: 1.3;
}
.chc-price-badge span { font-size: 11px; font-weight: 600; color: var(--lx-muted); }

/* ─── Slider ─────────────────────────────────────────────────── */
.chc-slider { position: relative; overflow: hidden; width: 100%; height: 100%; }
.chc-slider-track { display: flex; height: 100%; transition: transform 240ms ease; will-change: transform; }
.chc-slide { flex: 0 0 100%; height: 100%; }
.chc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.chc-slider-btn {
  all: unset; box-sizing: border-box;
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.90); color: var(--lx-navy);
  display: grid; place-items: center;
  font-size: 20px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
  transition: background .15s, transform .15s;
}
.chc-slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.chc-slider-prev { left: 10px; }
.chc-slider-next { right: 10px; }
.chc-slider-btn:focus-visible { outline: 2px solid var(--lx-gold); }

.chc-slider-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px; z-index: 3;
}
.chc-slider-dot {
  all: unset; width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,.55); cursor: pointer;
  transition: background .2s, transform .2s;
}
.chc-slider-dot[aria-current="true"] { background: #fff; transform: scale(1.3); }

/* ─── Card content ──────────────────────────────────────────── */
.chc-hotel-content {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 0;
  flex: 1;
}

/* Meta row — price + rating (matches map card style) */
.chc-hotel-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: transparent;
  border-radius: 0;
  margin-bottom: 12px;
  border-top: 1px solid #E8E0D5;
  border-bottom: 1px solid #E8E0D5;
}
.chc-hotel-price { margin: 0; display: flex; align-items: center; gap: 4px; }
.chc-price-amount { font-weight: 900; font-size: 19px; color: var(--lx-navy); font-family: inherit; }
.chc-price-label  { color: var(--lx-muted); font-size: 11px; }

.chc-hotel-rating {
  margin: 0;
  display: flex; align-items: center; gap: 6px;
}
.chc-rating-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 26px; padding: 0 8px;
  border-radius: 6px;
  background: var(--lx-navy);
  color: var(--lx-gold);
  font-weight: 900; font-size: 13px;
  font-family: inherit;
}
.chc-rating-label   { font-weight: 700; font-size: 13px; color: var(--lx-navy); }
.chc-rating-reviews { font-size: 11px; color: var(--lx-muted); }

/* Hotel stars (kept for map card compatibility) */
.chc-stars { display: inline-flex; align-items: center; gap: 1px; }
.chc-star { position: relative; display: inline-block; font-size: 13px; line-height: 1; }
.chc-star-full  { color: var(--lx-gold); }
.chc-star-empty { color: #CBD5E1; }
.chc-star-partial { color: #CBD5E1; }
.chc-star-partial::before {
  content: '★'; position: absolute; left: 0; top: 0;
  width: var(--chc-fill, 0%); overflow: hidden; color: var(--lx-gold);
}

/* Title */
.chc-hotel-title {
  margin: 0 0 6px;
  font-size: 18px; font-weight: 800; color: var(--lx-navy); line-height: 1.3;
}

/* Address */
.chc-hotel-address {
  margin: 0 0 12px; font-size: 13px; color: var(--lx-muted); font-style: normal;
}

/* Description */
.chc-hotel-description {
  margin: 0 0 14px; font-size: 13px; color: #4A5568; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Amenities */
.chc-hotel-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chc-amenity-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--lx-warm);
  border: 1px solid var(--lx-border);
  font-size: 11px; color: var(--lx-navy); font-weight: 600;
}
.chc-amenity-icon { width: 13px; height: 13px; object-fit: contain; }

/* CTA button — matches map card exactly */
.chc-hotel-wrapper .chc-hotel-card .chc-hotel-button,
.chc-hotel-wrapper .chc-hotel-button {
  margin-top: auto;
  padding: 12px 16px !important;
  width: 100% !important;
  background: #1B3A5C !important;
  color: #C9A84C !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  box-shadow: 0 4px 14px rgba(27,58,92,.28), 0 0 12px rgba(201,168,76,.18) !important;
  transition: background .2s, transform .15s, box-shadow .2s !important;
  display: block !important;
  text-decoration: none !important;
}
.chc-hotel-wrapper .chc-hotel-card .chc-hotel-button:hover,
.chc-hotel-wrapper .chc-hotel-button:hover {
  background: #122840 !important;
  color: #C9A84C !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,58,92,.35), 0 0 20px rgba(201,168,76,.30) !important;
}

/* ─── State page city grid ───────────────────────────────────── */
.thm-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}
.thm-city-card {
  border: 2px solid var(--lx-gold);
  border-radius: 12px;
  overflow: hidden;
}
.thm-city-card a {
  display: block;
  padding: 20px 16px;
  background: var(--lx-navy);
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
.thm-city-card a:hover { background: var(--lx-navy-dk); }
.thm-city-card strong { display: block; font-size: 17px; margin-bottom: 6px; color: var(--lx-gold); }
.thm-city-card span { font-size: 13px; opacity: .85; }
.thm-city-list { column-count: 2; column-gap: 32px; padding: 0; margin: 12px 0 28px; }
.thm-city-list li { margin-bottom: 8px; }
.thm-city-list a { color: var(--lx-navy); font-weight: 600; }
@media (max-width: 600px) {
  .thm-city-grid { grid-template-columns: 1fr 1fr; }
  .thm-city-list { column-count: 1; }
}

/* ─── Admin ─────────────────────────────────────────────────── */
#chc-global-amenities-table .chc-amenity-icon-wrap { display: flex; align-items: center; gap: 10px; }
