/**
 * /flights hub page — modern destination & hub layout
 */

.fm-flights-hub-page .fm-seo-hero--photo {
  background-position: center 35%;
  background-size: cover;
}

.fm-flights-hub-page .fm-seo-hero__overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(30, 58, 138, 0.72) 45%,
    rgba(37, 99, 235, 0.55) 100%
  );
}

.fm-flights-hub-page .fm-seo-body {
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .fm-flights-hub-page .fm-seo-body {
    padding-top: 2.25rem;
  }
}

.fm-flights-hub-page .fm-seo-prose > .fm-flights-hub {
  margin-top: -1.25rem;
}

.fm-flights-hub {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Trust feature bar ── */
.fm-flights-hub__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
  .fm-flights-hub__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.15rem 1.35rem;
  }
}

.fm-flights-hub__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.fm-flights-hub__trust-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
}

.fm-flights-hub__trust-icon .material-icons {
  font-size: 18px;
}

.fm-flights-hub__trust-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 0.1rem;
}

.fm-flights-hub__trust-text {
  display: block;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
}

@media (min-width: 768px) {
  .fm-flights-hub__trust-title {
    font-size: 0.88rem;
  }

  .fm-flights-hub__trust-text {
    font-size: 0.78rem;
  }
}

/* ── Lead copy ── */
.fm-flights-hub__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

@media (min-width: 768px) {
  .fm-flights-hub__lead {
    font-size: 1.05rem;
  }
}

/* ── Promo tool cards ── */
.fm-flights-hub__tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .fm-flights-hub__tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.fm-flights-hub__tool {
  display: flex;
  align-items: stretch;
  min-height: 8.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.fm-flights-hub__tool:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.fm-flights-hub__tool-body {
  flex: 1;
  min-width: 0;
  padding: 1rem 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fm-flights-hub__tool-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
}

.fm-flights-hub__tool-icon .material-icons {
  font-size: 18px;
}

.fm-flights-hub__tool-icon--blue {
  background: #eff6ff;
  color: #2563eb;
}

.fm-flights-hub__tool-icon--green {
  background: #ecfdf5;
  color: #059669;
}

.fm-flights-hub__tool-icon--purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.fm-flights-hub__tool-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.fm-flights-hub__tool-text {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 0.55rem;
}

.fm-flights-hub__tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
}

.fm-flights-hub__tool-link .material-icons {
  font-size: 15px;
}

.fm-flights-hub__tool-media {
  flex-shrink: 0;
  width: 38%;
  max-width: 9rem;
  position: relative;
  overflow: hidden;
}

.fm-flights-hub__tool-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section headers ── */
.fm-flights-hub__section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.fm-flights-hub__section-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fm-flights-hub__section-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 36rem;
}

.fm-flights-hub__section-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.fm-flights-hub__section-link .material-icons {
  font-size: 16px;
}

.fm-flights-hub__section-link:hover {
  color: #1d4ed8;
}

/* ── Destination grid ── */
.fm-flights-hub__dest-grid,
.fm-flights-hub__hub-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-flights-hub__dest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .fm-flights-hub__dest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .fm-flights-hub__dest-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.fm-flights-hub-dest-card {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-flights-hub-dest-card__btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.fm-flights-hub-dest-card__btn:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.fm-flights-hub-dest-card__btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.fm-flights-hub-dest-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.fm-flights-hub-dest-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.fm-flights-hub-dest-card__btn:hover .fm-flights-hub-dest-card__media img {
  transform: scale(1.05);
}

.fm-flights-hub-dest-card__body {
  padding: 0.65rem 0.7rem 0.75rem;
}

.fm-flights-hub-dest-card__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.fm-flights-hub-dest-card__region {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

/* ── Hub cards ── */
.fm-flights-hub__hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 480px) {
  .fm-flights-hub__hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .fm-flights-hub__hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .fm-flights-hub__hub-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.fm-flights-hub-hub-card {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-flights-hub-hub-card__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 13.5rem;
  padding: 1rem;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fm-flights-hub-hub-card__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.fm-flights-hub-hub-card__btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.fm-flights-hub-hub-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.fm-flights-hub-hub-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.15) 0%,
    rgba(15, 23, 42, 0.55) 55%,
    rgba(15, 23, 42, 0.88) 100%
  );
}

.fm-flights-hub-hub-card__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-right: 2.5rem;
}

.fm-flights-hub-hub-card__code {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.fm-flights-hub-hub-card__airport {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.92;
  line-height: 1.3;
}

.fm-flights-hub-hub-card__city {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  opacity: 0.78;
}

.fm-flights-hub-hub-card__fly {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
  pointer-events: none;
}

.fm-flights-hub-hub-card__fly .material-icons {
  font-size: 17px;
}

/* ── Featured guides ── */
.fm-flights-hub__guides {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.fm-flights-hub__guides .fm-seo-info-section {
  margin-bottom: 0;
}

.fm-flights-hub__guides .fm-seo-info-section__title {
  font-size: 1.05rem !important;
}

.fm-flights-hub__guides-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 0.35rem;
}

/* ── Content sections below hub (tips, FAQ) ── */
.fm-flights-hub-page .fm-seo-prose h2 {
  scroll-margin-top: 5rem;
}

@media (max-width: 639px) {
  .fm-flights-hub__section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fm-flights-hub__tool {
    min-height: auto;
  }

  .fm-flights-hub__tool-media {
    width: 32%;
    min-height: 7rem;
  }
}
