/*
 * Last-minute landing — page-specific overrides.
 *
 * Structural bits (filter sidebar, product cards, pagination, USP block,
 * mobile drawer) come from pages/search.css. This file layers on:
 *   - .lm-hero      : landing hero with embedded CMS title + description
 *   - .lm-copy      : CMS body block with an expandable "show more" toggle
 *   - .lm-type-card : the two promo cards shown when no product type is scoped
 *   - .lm-wrap      : the page container
 *   - .result-badge--lm : the "Last minute" ribbon on each product card
 */

.lm-wrap {
  max-width: var(--pdp-container-width, 1440px);
  margin: 0 auto;
  padding: 24px 32px 80px;
}

/* ── HERO ─────────────────────────────────────────────── */
.lm-hero {
  position: relative;
  overflow: hidden;
  background: #f6efe4;
  padding: 46px 32px 56px;
}
.lm-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}
.lm-hero-bg picture,
.lm-hero-bg img { display: none; }
.lm-hero::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -48px;
  height: 96px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 62% 62% 0 0;
  z-index: 1;
}
.lm-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.lm-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.lm-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.lm-hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 24px;
}
.lm-hero-search {
  margin-top: 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 12px 32px rgba(26, 26, 24, 0.1);
}

/* ── CMS COPY ────────────────────────────────────────── */
.lm-copy {
  margin: 26px 0 32px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 15px;
  position: relative;
}
.lm-copy-body :first-child { margin-top: 0; }
.lm-copy-body :last-child  { margin-bottom: 0; }
.lm-copy-body h2, .lm-copy-body h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 400;
  margin: 20px 0 10px;
}
.lm-copy-body p { margin: 0 0 12px; }
.lm-copy-body a { color: var(--purple); text-decoration: underline; }
.lm-copy.is-clipped .lm-copy-body {
  max-height: 130px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.lm-copy-toggle {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lm-copy-toggle:hover { border-color: var(--purple); background: #f7f4fd; }
.lm-copy-toggle svg { transition: transform 0.18s; }
.lm-copy:not(.is-clipped) .lm-copy-toggle svg { transform: rotate(180deg); }

/* ── TYPE CARDS ──────────────────────────────────────── */
.lm-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 32px;
}
.lm-type-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lm-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 24, 0.14);
}
.lm-type-card-img {
  position: absolute;
  inset: 0;
}
.lm-type-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lm-type-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.7));
}
.lm-type-card-body {
  position: relative;
  z-index: 1;
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}
.lm-type-card-eyebrow {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: auto;
}
.lm-type-card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  margin: 12px 0 6px;
  line-height: 1.15;
}
.lm-type-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.lm-type-card-price-from {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.lm-type-card-price-val {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #fff;
}
.lm-type-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
}

/* ── LAST-MINUTE BADGE ON PRODUCT CARDS ─────────────── */
.result-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.result-badge--lm {
  background: #ff5a5a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 90, 90, 0.35);
}
.result-badge--lm svg { flex-shrink: 0; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .lm-wrap { padding: 20px 20px 60px; }
  .lm-hero { padding: 36px 20px 46px; }
}
@media (max-width: 768px) {
  .lm-types { grid-template-columns: 1fr; }
  .lm-type-card { min-height: 180px; }
  .lm-type-card-body { min-height: 180px; padding: 18px 20px 18px; }
  .lm-type-card-title { font-size: 22px; }
  .lm-hero-search { padding: 8px; }
}
