/* Pàgines de mes (/when-to-travel/) i de vols (/flights/).
   Reutilitza les variables i la navbar de main.css; només afegeix el que
   aquestes dues capes necessiten i no existia. */

.sp-hero {
  padding: 7rem 1.5rem 2.5rem;
  background: radial-gradient(ellipse at 50% 0%, #2b1550 0%, #1a0a2e 60%, #150822 100%);
  color: #faf7f4;
  text-align: center;
}
.sp-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #e84d2b; margin: 0 0 .75rem;
}
.sp-hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.08; margin: 0; text-wrap: balance;
}
.sp-lede {
  max-width: 44rem; margin: 1.1rem auto 0; font-size: 1.02rem; line-height: 1.6;
  color: rgba(250, 247, 244, .72);
}
.sp-intro {
  max-width: 44rem; margin: 1.6rem auto 0; font-size: 1rem; line-height: 1.7;
  color: rgba(250, 247, 244, .9); text-align: left;
}

.sp-wrap { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.sp-sec { margin-top: 3rem; }
.sp-sec:first-child { margin-top: 0; }
.sp-sec h2 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: #1a0a2e; margin: 0;
}
.sp-sub { color: #6b7280; font-size: .94rem; margin: .35rem 0 0; line-height: 1.55; }

.sp-grid {
  display: grid; gap: .85rem; margin-top: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.scard {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid rgba(26, 10, 46, .1); border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.scard:hover {
  transform: translateY(-2px); border-color: rgba(232, 77, 43, .35);
  box-shadow: 0 8px 26px rgba(26, 10, 46, .09);
}
.scard-top { display: flex; align-items: center; gap: .5rem; }
.scard-flag { font-size: 1.4rem; line-height: 1; }
.scard-name { font-weight: 700; font-size: 1.02rem; color: #1a0a2e; letter-spacing: -.01em; }
.scard-why { margin: .6rem 0 0; font-size: .88rem; line-height: 1.55; color: #4b5563; }
.scard-facts {
  display: flex; align-items: baseline; gap: .9rem; margin-top: .75rem;
  font-variant-numeric: tabular-nums;
}
.scard-cost { font-size: 1.15rem; font-weight: 800; color: #e84d2b; letter-spacing: -.02em; }
.scard-cost small { font-size: .7rem; font-weight: 600; color: #9ca3af; margin-left: .1rem; }
.scard-safe { font-size: 1rem; font-weight: 700; margin-left: auto; }
.scard-safe small { font-size: .68rem; font-weight: 600; color: #9ca3af; }
.scard-safe--ok { color: #15803d; }
.scard-safe--mid { color: #a16207; }
.scard-safe--low { color: #b91c1c; }
.scard-season {
  margin-top: .55rem; padding-top: .55rem; border-top: 1px solid rgba(26, 10, 46, .07);
  font-size: .76rem; color: #9ca3af; letter-spacing: .01em;
}

/* Les tres tries editorials del mes: mateixa targeta, més aire i amb el perquè */
.sp-grid--picks { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.sp-grid--picks .scard { padding: 1.25rem 1.35rem; }

/* Navegació entre mesos */
.sp-months {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem;
}
.sp-months a {
  display: inline-block; padding: .5rem .9rem; border-radius: 100px;
  border: 1px solid rgba(26, 10, 46, .13); background: #fff;
  font-size: .88rem; font-weight: 600; color: #1a0a2e; text-decoration: none;
  transition: all .15s ease;
}
.sp-months a:hover { border-color: #e84d2b; color: #e84d2b; }
.sp-months a.on { background: #e84d2b; border-color: #e84d2b; color: #fff; }

/* Blocs de la pàgina de vols */
.sp-cards { display: grid; gap: .85rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.sp-card {
  background: #fff; border: 1px solid rgba(26, 10, 46, .1); border-radius: 14px; padding: 1.1rem 1.25rem;
}
.sp-card h3 { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e84d2b; }
.sp-card .sp-card-val { display: block; margin: .5rem 0 .35rem; font-size: 1.15rem; font-weight: 700; color: #1a0a2e; letter-spacing: -.01em; }
.sp-card p { margin: 0; font-size: .88rem; line-height: 1.55; color: #6b7280; }

.sp-list { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.sp-list li {
  position: relative; padding: .7rem 0 .7rem 1.6rem; font-size: .95rem; line-height: 1.6; color: #374151;
  border-bottom: 1px solid rgba(26, 10, 46, .07);
}
.sp-list li:last-child { border-bottom: 0; }
.sp-list li::before {
  content: ''; position: absolute; left: .35rem; top: 1.25rem;
  width: 6px; height: 6px; border-radius: 50%; background: #e84d2b;
}

.sp-widget { margin-top: 1.25rem; background: #fff; border: 1px solid rgba(26, 10, 46, .1); border-radius: 14px; padding: 1rem; min-height: 4rem; }

.sp-linkcard {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.25rem; padding: 1.1rem 1.25rem; text-decoration: none;
  background: #fff; border: 1px solid rgba(26, 10, 46, .1); border-radius: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.sp-linkcard:hover { border-color: rgba(232, 77, 43, .4); transform: translateY(-1px); }
.sp-linkcard strong { display: block; color: #1a0a2e; font-size: 1rem; }
.sp-linkcard span { display: block; color: #6b7280; font-size: .86rem; margin-top: .15rem; }
.sp-linkcard .sp-cta { color: #e84d2b; font-weight: 700; font-size: .9rem; white-space: nowrap; }

.sp-note {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(26, 10, 46, .08);
  font-size: .8rem; line-height: 1.6; color: #9ca3af;
}

@media (max-width: 640px) {
  .sp-hero { padding: 6rem 1.15rem 2rem; }
  .sp-wrap { padding: 2rem 1.15rem 3rem; }
  .sp-linkcard { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* /cheap-flights/: formulari i targetes de resultat */
.cf-form { display: grid; gap: .75rem; grid-template-columns: 1.2fr 1fr 1fr auto auto; align-items: end;
  background: #fff; border: 1px solid rgba(26,10,46,.1); border-radius: 14px; padding: 1rem 1.1rem; }
.cf-field { display: flex; flex-direction: column; gap: .3rem; }
.cf-field span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.cf-field input { min-width: 0; width: 100%; font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1px solid rgba(26,10,46,.18); border-radius: 10px; background: #fff; color: #1a0a2e; }
.cf-field--origin input { text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.cf-check { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: #374151; padding-bottom: .65rem; white-space: nowrap; }
.cf-submit { font: inherit; font-weight: 800; font-size: 1rem; padding: .7rem 1.3rem; border: 0; border-radius: 100px; background: #e84d2b; color: #fff; cursor: pointer; }
.cf-submit:hover { filter: brightness(1.06); }
.cf-list { display: grid; gap: .8rem; margin-top: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.cf-card { background: #fff; border: 1px solid rgba(26,10,46,.1); border-radius: 14px; padding: 1rem 1.1rem; }
.cf-head { display: flex; align-items: center; gap: .7rem; }
.cf-flag { font-size: 1.6rem; line-height: 1; }
.cf-city { font-weight: 800; color: #1a0a2e; font-size: 1.05rem; letter-spacing: -.01em; }
.cf-meta { font-size: .8rem; color: #6b7280; margin-top: .1rem; }
.cf-price { margin-left: auto; font-size: 1.5rem; font-weight: 900; color: #e84d2b; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cf-facts { display: flex; gap: 1rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid rgba(26,10,46,.07); font-size: .82rem; color: #6b7280; }
.cf-fact b { color: #1a0a2e; font-weight: 800; }
.cf-safe--ok b { color: #15803d; } .cf-safe--mid b { color: #a16207; } .cf-safe--low b { color: #b91c1c; }
.cf-actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; }
.cf-go { font-weight: 800; color: #e84d2b; text-decoration: none; font-size: .92rem; }
.cf-guide { font-size: .82rem; color: #6b7280; text-decoration: none; }
.cf-guide:hover, .cf-go:hover { text-decoration: underline; }
/* minmax(0,1fr) i no 1fr: els <input type=date> tenen una amplada mínima
   intrínseca (~173 px) que amb 1fr guanya i fa sortir el formulari per la
   dreta en mòbils de 360-390 px. */
@media (max-width: 780px) { .cf-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .cf-field input[type=date] { font-size: .92rem; padding-left: .5rem; padding-right: .3rem; letter-spacing: -.01em; } .cf-field--origin { grid-column: 1 / -1; } .cf-submit { grid-column: 1 / -1; } }

/* Capçalera amb foto (pàgina de vols barats): la foto sota el degradat de
   marca, com als reels, perquè el text segueixi llegint-se. */
.sp-hero--photo { background-size: cover; background-position: center; position: relative; }
.sp-hero--photo::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,10,46,.82) 0%, rgba(26,10,46,.62) 55%, rgba(26,10,46,.9) 100%); }
.sp-hero--photo > * { position: relative; }
.sp-hero--photo { padding-top: 8.5rem; padding-bottom: 3.5rem; }
.cf-card { animation: cf-in .35s ease both; }
@keyframes cf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
