/* Saved hotels: hearts, the shelf button, the saved panel and the comparison table. */
.ho-heart {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(10, 18, 40, 0.16);
  color: #44506e;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease;
}

.ho-heart[hidden] { display: none; }
.ho-heart:hover { color: #e8445f; transform: scale(1.06); }
.ho-heart:focus-visible { outline: 2px solid #2f6bff; outline-offset: 2px; }
.ho-heart-icon { width: 1.2rem; height: 1.2rem; }
.ho-heart-icon path { fill: transparent; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill 0.2s ease; }
.ho-heart[aria-pressed="true"] { color: #e8445f; }
.ho-heart[aria-pressed="true"] .ho-heart-icon path { fill: currentColor; }
.ho-heart.is-pop .ho-heart-icon { animation: ho-heart-pop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes ho-heart-pop { 0% { transform: scale(0.7); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }

.ho-heart.is-on-photo { position: absolute; top: 0.7rem; inset-inline-end: 0.7rem; z-index: 3; }
.ho-heart.is-head { width: 2.5rem; height: 2.5rem; border: 1px solid var(--ho-line); box-shadow: none; }
.ho-heart.is-plain { width: 2.2rem; height: 2.2rem; background: var(--ho-soft); box-shadow: none; }
.ho-head-tools { display: flex; align-items: flex-start; gap: 0.5rem; }

/* The Saved switch in the Options header and the saved list in the hotels pane. */
.ho-saved-open {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(40, 80, 140, 0.08);
  color: #44506e;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ho-saved-open[hidden] { display: none; }
.ho-saved-open:hover { color: #1a2744; }
.ho-saved-open:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.28); }
.ho-saved-open[aria-pressed="true"] { background: #fff; color: #1a2744; }
.ho-saved-open .ho-heart-icon { width: 1.05rem; height: 1.05rem; color: #8a96b6; }
.ho-saved-open.has-saved .ho-heart-icon,
.ho-saved-open[aria-pressed="true"] .ho-heart-icon { color: #e8445f; }
.ho-saved-open.has-saved .ho-heart-icon path { fill: currentColor; }
.ho-saved-count { min-width: 1.15rem; padding: 0.05rem 0.35rem; border-radius: 999px; background: #ffe8ec; color: #c2304a; font-size: 0.7rem; text-align: center; }
.ho-saved-count[hidden] { display: none; }

@container offers (max-width: 30rem) {
  .ho-saved-open { padding: 0 0.6rem; }
  .ho-saved-open .ho-saved-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* The results stay in the pane, only out of sight; nothing else may show them meanwhile. */
.desk-shelf.is-saved-view > .desk-empty,
.desk-shelf.is-saved-view > .desk-shelf-body { display: none !important; }
.ho-saved-view { display: grid; gap: 0.85rem; }
.ho-saved-view[hidden] { display: none; }
.ho-saved-top { display: grid; justify-items: start; gap: 0.6rem; }
.ho-saved-top .ho-back[hidden] { display: none; }
.ho-saved-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.55rem; }
.ho-saved-sub { color: var(--ho-muted); font-size: 0.82rem; font-weight: 600; }

.ho-saved-toast {
  position: fixed;
  inset: auto 50% 1.5rem auto;
  z-index: 80;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px -14px rgba(16, 28, 58, 0.45);
  color: #24345e;
  font-size: 0.86rem;
  font-weight: 650;
  transform: translateX(50%);
}

/* The saved list. */
.ho-saved-mark { width: 1.3rem; height: 1.3rem; color: #e8445f; }
.ho-saved-mark path { fill: currentColor; }
.ho-cities { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; }
.ho-cities::-webkit-scrollbar { display: none; }
.ho-cities[hidden] { display: none; }
.ho-city { display: inline-flex; flex: none; align-items: center; gap: 0.4rem; min-height: 2.2rem; padding: 0 0.85rem; border: 1px solid rgba(16, 40, 90, 0.12); border-radius: 999px; background: #fff; color: var(--ho-text); cursor: pointer; font: inherit; font-size: 0.84rem; font-weight: 700; }
.ho-city:focus-visible { outline: 2px solid #2f6bff; outline-offset: 2px; }
.ho-city[aria-pressed="true"] { border-color: #2f6bff; background: #e9f0ff; color: #2f6bff; }
.ho-city-count { color: var(--ho-faint); font-size: 0.74rem; }
.ho-city[aria-pressed="true"] .ho-city-count { color: #2f6bff; }

.ho-saved-list { display: grid; gap: 0.7rem; }

.ho-saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  border: 1px solid rgba(16, 40, 90, 0.09);
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ho-saved-item:hover { box-shadow: 0 14px 30px -24px rgba(24, 52, 102, 0.6); }
.ho-saved-item.is-picked { border-color: rgba(47, 107, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.2); }

.ho-saved-main {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: start;
}

.ho-saved-main:focus-visible { outline: 2px solid #2f6bff; outline-offset: 3px; border-radius: 14px; }
.ho-saved-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #e8eef9; color: #9db3dc; font-size: 1.6rem; }
.ho-saved-photo img { width: 100%; height: 100%; object-fit: cover; }
.ho-saved-info { display: grid; gap: 0.3rem; min-width: 0; }
.ho-saved-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; color: var(--ho-ink); font-size: 0.98rem; line-height: 1.25; }
.ho-saved-where { overflow: hidden; color: var(--ho-muted); font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.ho-seen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.5rem; color: var(--ho-muted); font-size: 0.76rem; }
.ho-seen b { color: var(--ho-ink); font-family: var(--round); font-size: 1rem; font-weight: 900; }
.ho-seen.is-past b { color: var(--ho-muted); }
.ho-saved-tools { display: grid; justify-items: center; gap: 0.5rem; }

.ho-pick { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--ho-muted); cursor: pointer; font-size: 0.72rem; font-weight: 700; }
.ho-pick input { width: 1rem; height: 1rem; margin: 0; accent-color: #2f6bff; cursor: pointer; }
.ho-pick:has(input:disabled) { cursor: default; opacity: 0.45; }

.ho-compare-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  position: sticky;
  bottom: 0.6rem;
  z-index: 2;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--ho-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px -18px rgba(24, 52, 102, 0.45);
}

.ho-compare-bar[hidden] { display: none; }
.ho-compare-bar p { margin: 0; color: var(--ho-text); font-size: 0.86rem; font-weight: 650; }
.ho-compare-bar .ho-add:disabled { background: #b8c9f5; box-shadow: none; cursor: default; }

.ho-saved-empty { display: grid; justify-items: center; gap: 0.4rem; padding: 3rem 1rem; text-align: center; }
.ho-saved-empty-mark { width: 2.6rem; height: 2.6rem; color: #f2a3b1; }
.ho-saved-empty-mark path { fill: #ffe8ec; stroke: currentColor; stroke-width: 1.4; }
.ho-saved-empty-title { margin: 0.4rem 0 0; color: var(--ho-ink); font-size: 1.05rem; font-weight: 760; }
.ho-saved-empty-copy { max-width: 22rem; margin: 0; color: var(--ho-muted); font-size: 0.86rem; line-height: 1.5; }

/* Comparison. */
.ho-compare { display: grid; gap: 0.9rem; }
.ho-compare-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.ho-back { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.3rem; padding: 0 0.85rem; border: 1px solid rgba(16, 40, 90, 0.12); border-radius: 999px; background: #fff; color: var(--ho-ink); cursor: pointer; font: inherit; font-size: 0.84rem; font-weight: 700; }
.ho-back:focus-visible { outline: 2px solid #2f6bff; outline-offset: 2px; }
.ho-compare-scroll { overflow-x: auto; border: 1px solid var(--ho-line); border-radius: 18px; }
.ho-compare-table { width: 100%; min-width: calc(8rem + var(--cols) * 11rem); border-collapse: collapse; table-layout: fixed; font-size: 0.84rem; }
.ho-compare-table th,
.ho-compare-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--ho-line); text-align: start; vertical-align: top; }
.ho-compare-table tbody tr:last-child th,
.ho-compare-table tbody tr:last-child td { border-bottom: 0; }
.ho-compare-table tbody th { width: 8rem; color: var(--ho-muted); font-weight: 650; }
.ho-compare-table td { color: var(--ho-ink); font-weight: 600; }
.ho-compare-corner { width: 8rem; }
.ho-compare-open { display: grid; gap: 0.4rem; width: 100%; padding: 0; border: 0; background: none; color: var(--ho-ink); cursor: pointer; font: inherit; text-align: start; }
.ho-compare-open:focus-visible { outline: 2px solid #2f6bff; outline-offset: 3px; border-radius: 10px; }
.ho-compare-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #e8eef9; color: #9db3dc; font-size: 1.5rem; }
.ho-compare-photo img { width: 100%; height: 100%; object-fit: cover; }
.ho-compare-name { font-size: 0.9rem; font-weight: 760; line-height: 1.25; }
.ho-compare-score,
.ho-compare-price { display: grid; gap: 0.15rem; }
.ho-compare-score b,
.ho-compare-price b { font-size: 1rem; }
.ho-compare-score span,
.ho-compare-price span { color: var(--ho-muted); font-size: 0.74rem; font-weight: 500; }
.ho-compare-score.is-best b,
.ho-compare-price.is-best b { color: var(--ho-good); }
.ho-compare-terms { color: var(--ho-text); font-weight: 550; }
.ho-compare-none { color: var(--ho-faint); }
.ho-flag { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ho-soft); color: var(--ho-faint); font-size: 0.95rem; }
.ho-flag.is-yes { background: var(--ho-good-soft); color: var(--ho-good); }
.ho-compare-note { margin: 0; color: var(--ho-muted); font-size: 0.76rem; }

@media (max-width: 640px) {
  .ho-saved-main { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 0.7rem; }
  .ho-saved-name { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ho-heart,
  .ho-heart-icon path,
  .ho-saved-item { transition: none; }
  .ho-heart.is-pop .ho-heart-icon { animation: none; }
  .ho-heart:hover { transform: none; }
}
