/* Wishlist page (Views/WishlistPage.cshtml) - layout from the wishlist prototype; the hotel
   cards are the deals page's .deal-card (Home-v2.css) and the pickers are the hotel page's
   dialogs (AipSearchDropdowns.css). Everything here is .wl-* scoped. */

.hp2 .wl {
  padding: 24px 0 56px;
  background: var(--home-page-bg, #f3f6f6);
  color: var(--home-text, #3c4e5a);
}

.hp2 .wl-crumbs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  font-size: 13px;
}

.hp2 .wl-crumbs a {
  color: var(--home-primary-dark, #218887);
  text-decoration: none;
}

/* ---- Heading row ---- */
.hp2 .wl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d8e0e0;
}

.hp2 .wl-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-primary-dark, #218887);
}

.hp2 .wl-head h1 {
  margin: 0;
  font-family: var(--home-font-display, "Montserrat", sans-serif);
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 700;
  color: var(--home-text, #3c4e5a);
}

.hp2 .wl-lede {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--home-text-muted, #707070);
}

.hp2 .wl-context {
  margin: 12px 0 0;
  font-size: 13px;
}

.hp2 .wl-context a {
  margin-left: 8px;
  color: var(--home-primary-dark, #218887);
}

.hp2 .wl-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.hp2 .wl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #d8e0e0;
  border-radius: 10px;
  background: #fff;
  color: var(--home-text, #3c4e5a);
  font: 700 14px/1 Lato, "Segoe UI", sans-serif;
  cursor: pointer;
}

.hp2 .wl-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp2 .wl-btn:hover:not(:disabled) {
  border-color: var(--home-primary, #02aaa9);
}

.hp2 .wl-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---- Dates + guests bar ---- */
.hp2 .wl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #d8e0e0;
}

.hp2 .wl-bar[hidden] {
  display: none;
}

.hp2 .wl-bar__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hp2 .wl-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d8e0e0;
  border-radius: 10px;
  background: #fff;
  color: var(--home-text, #3c4e5a);
  font: 400 14px/1 Lato, "Segoe UI", sans-serif;
  cursor: pointer;
}

.hp2 .wl-pill em {
  font-style: normal;
}

.hp2 .wl-pill svg {
  width: 18px;
  height: 18px;
  color: var(--home-primary-dark, #218887);
}

.hp2 .wl-pill .wl-pill__chev {
  width: 16px;
  height: 16px;
  color: var(--home-text-muted, #707070);
}

.hp2 .wl-pill:hover,
.hp2 .wl-pill.is-on {
  border-color: var(--home-primary, #02aaa9);
}

.hp2 .wl-reset {
  border: 0;
  background: none;
  padding: 0 4px;
  color: var(--home-primary-dark, #218887);
  font: 700 13px/1 Lato, "Segoe UI", sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.hp2 .wl-reset[hidden] {
  display: none;
}

.hp2 .wl-count {
  margin: 0;
  font-size: 14px;
  color: var(--home-text-muted, #707070);
  white-space: nowrap;
}

/* ---- Cards (deal cards + a heart over the photo) ---- */
.hp2 .wl-grid[hidden] {
  display: none;
}

.hp2 .wl-card__media {
  position: relative;
}

.hp2 .wl-card__noimg {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--home-primary-mist, #def6f5);
}

.hp2 .wl-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 44, 46, 0.18);
  cursor: pointer;
}

.hp2 .wl-heart svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #c92843;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.hp2 .wl-heart.is-on svg,
.hp2 .wl-heart[aria-pressed="true"] svg {
  fill: #c92843;
}

.hp2 .wl-heart.is-popping svg {
  animation: wl-pop 0.3s ease;
}

.hp2 .wl-check {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--home-text, #3c4e5a);
}

.hp2 .wl-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--home-text-muted, #707070);
}

/* ---- Empty state ---- */
.hp2 .wl-empty {
  max-width: 520px;
  margin: 24px auto;
  padding: 40px 24px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 0 #d8e0e0, 0 10px 30px rgba(16, 68, 67, 0.07);
}

.hp2 .wl-empty[hidden] {
  display: none;
}

.hp2 .wl-empty__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--home-primary-mist, #def6f5);
}

.hp2 .wl-empty__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #c92843;
  stroke-width: 1.8;
}

.hp2 .wl-empty h2 {
  margin: 0 0 8px;
  font-family: var(--home-font-display, "Montserrat", sans-serif);
  font-size: 22px;
}

.hp2 .wl-empty p {
  margin: 0 0 20px;
  color: var(--home-text-muted, #707070);
  line-height: 1.6;
}

/* ---- Foot ---- */
.hp2 .wl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  font-size: 13px;
}

.hp2 .wl-foot__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-primary-dark, #218887);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.hp2 .wl-foot svg {
  width: 18px;
  height: 18px;
}

.hp2 .wl-foot__saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-text-muted, #707070);
}

/* ---- Toast ---- */
.hp2 .wl-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--home-text, #3c4e5a);
  color: #fff;
  font-size: 14px;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(16, 44, 46, 0.25);
}

.hp2 .wl-toast[hidden] {
  display: none;
}

.hp2 .wl-toast button {
  border: 0;
  background: none;
  color: var(--home-gold, #febb02);
  font: 800 14px/1 Lato, "Segoe UI", sans-serif;
  cursor: pointer;
}

.hp2 .wl-toast button[hidden] {
  display: none;
}

/* ---- Dialogs (share, map) ---- */
.hp2 .wl-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: 16px;
  color: var(--home-text, #3c4e5a);
  box-shadow: 0 24px 60px rgba(16, 44, 46, 0.25);
}

.hp2 .wl-dialog::backdrop {
  background: rgba(60, 78, 90, 0.45);
}

.hp2 .wl-dialog--map {
  width: min(960px, calc(100vw - 32px));
}

.hp2 .wl-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hp2 .wl-dialog__head h2 {
  margin: 0;
  font-family: var(--home-font-display, "Montserrat", sans-serif);
  font-size: 20px;
}

.hp2 .wl-dialog__x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef1f1;
  color: var(--home-text, #3c4e5a);
  font: 400 22px/1 Lato, "Segoe UI", sans-serif;
  cursor: pointer;
}

.hp2 .wl-share__label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.hp2 .wl-share__row {
  display: flex;
  gap: 8px;
}

.hp2 .wl-share__row input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d8e0e0;
  border-radius: 10px;
  font-size: 14px;
}

.hp2 .wl-share__status {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--home-green-text, #008009);
}

.hp2 .wl-map {
  height: min(460px, 60vh);
  border-radius: 12px;
  background: var(--home-primary-mist, #def6f5);
  overflow: hidden;
}

.hp2 .wl-map__none {
  margin: 0;
  padding: 24px;
}

.hp2 .wl-map__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hp2 .wl-map__list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #d8e0e0;
  border-radius: 10px;
  font-size: 13px;
}

.hp2 .wl-map__list span {
  color: var(--home-text-muted, #707070);
}

.hp2 .wl-map__list a {
  color: var(--home-primary-dark, #218887);
  font-weight: 700;
}

@keyframes wl-pop {
  50% { transform: scale(1.25); }
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .hp2 .wl-head {
    flex-direction: column;
  }

  .hp2 .wl-actions {
    width: 100%;
  }

  .hp2 .wl-actions .wl-btn {
    flex: 1;
    justify-content: center;
  }

  .hp2 .wl-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hp2 .wl-bar__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hp2 #aipOpenGuests,
  .hp2 .wl-reset {
    grid-column: 1 / -1;
  }

  .hp2 .wl-pill {
    justify-content: flex-start;
  }

  .hp2 .wl-pill .wl-pill__chev {
    margin-left: auto;
  }

  .hp2 .wl-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp2 .wl-heart.is-popping svg {
    animation: none;
  }
}

/* The pickers' hidden pax holder is a flex child of the bar - keep it out of the layout. */
.hp2 .wl-bar #aipRoomsPax {
  display: none;
}
