/*
 * Resort cards + grid layout.
 */

/*
 * Resort cards: mobile-first (Bootstrap sm/md breakpoints for 1→2→3).
 * Beside the 320px sidebar, stay at 3 until xxl-ish width; then 4 → 5 on very wide screens.
 */
.grid {
  margin-top: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 576px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1400px) {
  /* Bootstrap xxl — room for four cards next to the toolbar */
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1680px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.card {
  overflow: hidden;
  position: relative;
}
.card .media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(800px 240px at 30% 10%, rgba(96,165,250,0.30), transparent 60%),
    radial-gradient(700px 280px at 70% 0%, rgba(52,211,153,0.22), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--border);
  position: relative;
}
.card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mediaBadge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 12px;
  border: 1px solid rgba(96,165,250,0.55);
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  letter-spacing: 0.06em;
  font-weight: 750;
}
.mediaBadgeNew {
  border: none;
  /* Violet highlight (distinct from status dots) */
  background: #c4b5fd;
  box-shadow:
    0 10px 24px rgba(139, 92, 246, 0.18),
    0 2px 10px rgba(139, 92, 246, 0.12);
  color: #1e1b4b;
  font-size: 11px;
  padding: 4px 7px;
  letter-spacing: 0.04em;
}
@media (prefers-color-scheme: light) {
  .mediaBadge {
    background: rgba(255, 255, 255, 0.55);
    color: #0b1220;
  }
  .mediaBadgeNew {
    background: #a78bfa;
    box-shadow:
      0 12px 26px rgba(139, 92, 246, 0.14),
      0 2px 10px rgba(139, 92, 246, 0.10);
    color: #1e1b4b;
  }
}

.iconBtn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  line-height: 1;
}
.iconBtn span {
  display: inline-block;
  transform: scaleX(-1);
}
.iconBtn:hover {
  border-color: rgba(96, 165, 250, 0.55);
}
.iconBtn:active {
  transform: translateY(1px);
}
@media (prefers-color-scheme: light) {
  .iconBtn {
    background: rgba(255, 255, 255, 0.55);
    color: #0b1220;
  }
}

.card .body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.name { display: grid; gap: 4px; min-width: 0; }
.name strong {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metaLine {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metaLine.metaYear {
  color: var(--muted);
}
.metaLine.metaLocation {
  color: rgba(229, 231, 235, 0.92);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (prefers-color-scheme: light) {
  .metaLine.metaLocation {
    color: rgba(11, 18, 32, 0.92);
  }
}
.metaIcon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.78;
  flex: 0 0 auto;
}

/* Give the header row a bit more breathing room */
.card .body > .row:first-child {
  margin-bottom: 2px;
  align-items: flex-start;
}

.badge {
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--chip);
  white-space: nowrap;
}
.badge.tui { border-color: rgba(96, 165, 250, 0.45); }
.badge.jet2 { border-color: rgba(251, 191, 36, 0.5); }
.badge.otb { border-color: rgba(251, 146, 60, 0.55); }
.badge.other { border-color: rgba(52, 211, 153, 0.45); }

.statusPill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: default;
}
.statusPill strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}
/* Make status feel like a label, not a control */
.statusPill .dot {
  width: 11px;
  height: 11px;
}

/* Status-specific emphasis (unique hues) */
.statusPill.status-considering {
  border-color: rgba(251, 191, 36, 0.50);
  background: rgba(251, 191, 36, 0.12);
}
.statusPill.status-shortlisted {
  border-color: rgba(52, 211, 153, 0.50);
  background: rgba(52, 211, 153, 0.12);
}
.statusPill.status-booked {
  border-color: rgba(96, 165, 250, 0.50);
  background: rgba(96, 165, 250, 0.12);
}
.statusPill.status-rejected {
  border-color: rgba(251, 113, 133, 0.50);
  background: rgba(251, 113, 133, 0.12);
}

.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pillLink {
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--chip);
  padding: 7px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pillLink:hover {
  border-color: rgba(96, 165, 250, 0.55);
}

.noteArea { display: grid; gap: 6px; }

.pcGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Differentiate via subtle label accents (not big boxes) */
.noteArea.pros .small,
.noteArea.cons .small,
.noteArea.notes .small {
  display: inline-flex;
  align-items: center;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.noteArea.pros .small { color: rgba(52, 211, 153, 0.95); }

.noteArea.cons .small { color: rgba(251, 191, 36, 0.95); }

.noteArea.notes { margin-top: 2px; }
.noteArea.notes .small { color: rgba(96, 165, 250, 0.95); }

/* Make rejection reason visually distinct */
.noteArea.rejection {
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.08);
  border-radius: 12px;
  padding: 10px;
}
.noteArea.rejection .small {
  color: rgba(251, 113, 133, 0.95);
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Booking details (distinct but calmer than rejection) */
.noteArea.booking {
  border: 1px solid rgba(96, 165, 250, 0.40);
  background: rgba(96, 165, 250, 0.06);
  border-radius: 12px;
  padding: 10px;
}
.noteArea.booking .small {
  color: rgba(96, 165, 250, 0.95);
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.bookingGrid {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.bookingLabel {
  color: var(--muted);
  font-size: 12px;
  margin-right: 6px;
}
.bookingValue {
  color: var(--text);
  font-size: 13px;
}

