/* ─────────────────────────────────────────
   COMPONENT — CARDS
   Outlined info card (used in Where to Stay).
   .stay-card--featured = the filled green "our pick" version, with the
   discount-code block and key facts.
───────────────────────────────────────── */

.stay-card {
  border: 1px dashed var(--border);
  border-radius: 24px;
}

.stay-card-inner {
  padding: 40px 32px;
}

.stay-card-label {
  color: var(--inverse);
  margin-bottom: 12px;
}

.stay-card-title {
  margin-bottom: 6px;
  color: var(--text-primary);
}

.stay-card-location {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stay-card-body {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.stay-card-link {
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 200ms var(--ease);
}

.stay-card-link:hover {
  color: var(--text-muted);
}


.stay-card-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.stay-card-note {
  color: var(--text-muted);
  text-align: left;
}

/* short one-line labels shouldn't be justified like body paragraphs */
.stay-card-label,
.stay-card-location {
  text-align: left;
  hyphens: none;
}

/* ── featured (filled green) ── */
.stay-card--featured {
  background: var(--inverse);
  border-color: var(--inverse);
  color: var(--cream-50);
}

.stay-card--featured .stay-card-label { color: var(--cream-200); }
.stay-card--featured .stay-card-title { color: var(--cream-50); }
.stay-card--featured .stay-card-location,
.stay-card--featured .stay-card-note { color: var(--on-inverse-muted); }
.stay-card--featured .stay-card-body { color: rgba(253, 250, 244, 0.85); }

/* discount code: dashed "coupon" box with a copy button */
.stay-code {
  margin: 4px 0 20px;
}

.stay-code-label {
  color: var(--on-inverse-muted);
  margin-bottom: 8px;
  text-align: left;
}

.stay-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed rgba(253, 250, 244, 0.5);
  padding: 12px 12px 12px 20px;
  position: relative;
}

.stay-code-value {
  color: var(--cream-50);
  user-select: all;   /* one tap selects the whole code */
}

.stay-code-copy {
  color: var(--cream-50);
  border: 1px solid rgba(253, 250, 244, 0.5);
  border-radius: 999px;
  padding: 7px 16px;
  min-height: 36px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.stay-code-copy:hover,
.stay-code-copy.is-copied {
  background: var(--cream-50);
  color: var(--inverse);
}

.stay-code-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* key facts: three small label/value pairs */
.stay-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stay-fact dt {
  color: var(--on-inverse-muted);
  margin-bottom: 4px;
}

.stay-fact dd {
  color: var(--cream-50);
}


@media (min-width: 1025px) {
  .stay-card-inner {
    padding: 32px 32px;
  }
}

/* responsive — mobile */
@media (max-width: 640px) {
  .stay-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stay-code-row {
    padding-left: 16px;
  }

  .stay-card-note {
    width: 100%;
    text-align: center;
  }
}
