/* ===== Where Is Hot Programmatic Page ===== */
/* Mobile-first: 240px base, 360px mobile, 768px tablet, 1280px desktop    */
/* Colour palette: --colourD #0b5259, --colourA #ffca9c, --doc-bg #ffefda  */
/* No invented colours -- everything from fairfarefinder.css variables      */

.wih-page {
  padding-top: 0;
  background: var(--colourA-light);
}

/* ===== Hero ===== */
.wih-hero {
  background: var(--backgroundPrimary);
  color: #fff;
  padding: 0.75rem 1rem 2.5rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.wih-breadcrumb {
  display: none;
}

.wih-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.wih-breadcrumb a:hover {
  text-decoration: underline;
}

.wih-h1 {
  /* font-family: "Playfair Display", serif; */
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.wih-year {
  font-size: 0.8em;
  opacity: 0.55;
  font-weight: 400;
  /* font-family: */
  /*   "Inter", */
  /*   -apple-system, */
  /*   BlinkMacSystemFont, */
  /*   sans-serif; */
}

.wih-lead {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.92rem;
  max-width: 38rem;
  margin: 0.5rem auto 0;
  opacity: 0.88;
  line-height: 1.55;
}

/* ===== Centred content wrapper ===== */
.wih-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

/* ===== Highlight cards ===== */
.wih-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1.1rem 0 0.25rem;
}

.wih-highlight-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wih-highlight-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.wih-highlight-body {
  padding: 0.6rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

@media (min-width: 768px) {
  .wih-highlight-body {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.1rem 0.5rem;
  }

  .wih-highlight-label {
    width: 100%;
    flex-shrink: 0;
  }

  .wih-highlight-city {
    flex: 1;
    min-width: 0;
  }

  .wih-highlight-stat {
    flex-shrink: 0;
    text-align: right;
  }

  .wih-highlight-sub {
    width: 100%;
    text-align: right;
  }
}

.wih-highlight-label {
  font-family: "Dosis", sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--colourD);
  font-weight: 700;
}

.wih-highlight-city {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--colourB);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.25;
}

.wih-highlight-stat {
  font-family: "Dosis", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--colourD);
  line-height: 1.1;
}

/* Stat with inline weather icon */
.wih-highlight-stat--icon {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
}

.wih-weather-icon {
  flex-shrink: 0;
  width: 21px;
  height: auto;
}

/* Secondary line below stat (e.g. "from €85") */
.wih-highlight-sub {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.78rem;
  color: var(--colourD);
  opacity: 0.65;
  margin-top: 0.05rem;
  text-align: left;
}

/* Secondary line with inline icon (conditions on cheapest card) */
.wih-highlight-sub--icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.wih-weather-icon-sm {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* ===== Filter panel ===== */
.wih-filter-panel {
  background: var(--sidebarPrimary);
  margin-top: 20px;
  padding: 20px 16px;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  align-items: flex-start;
  justify-content: center;
}

.wih-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
  max-width: 220px;
}

.wih-filter-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wih-filter-label {
  font-family: "Dosis", sans-serif;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--colourD);
  opacity: 0.7;
  font-weight: 700;
}

.wih-filter-btn {
  font-family: "Dosis", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.2rem;
  border: 1.5px solid var(--colourD);
  border-radius: 4px;
  background: #fff;
  box-shadow: 2px 2px var(--backgroundPrimary);
  color: var(--colourD);
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s,
    box-shadow 0.12s;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wih-filter-btn.wih-filter-active {
  background: var(--backgroundPrimary);
  color: #fff;
  box-shadow: 3px 3px var(--sliderPrimary);
}

.wih-filter-btn:hover:not(.wih-filter-active) {
  box-shadow: 3px 3px var(--svgPrimary);
  transform: scale(1.1);
}

/* ===== Table ===== */
.wih-table-section {
  padding-bottom: 0;
}

.wih-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow:
    0 1px 3px rgba(11, 82, 89, 0.15),
    0 0 0 1px rgba(11, 82, 89, 0.09);
}

.wih-table-body-wrap {
  overflow-y: auto;
  height: 285px;
}

.wih-table {
  width: 100%;
  border-collapse: collapse;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.78rem;
  background: var(--doc-bg);
}

.wih-table thead tr {
  background: var(--backgroundPrimary);
  color: #fff;
}

.wih-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  opacity: 1;
}

.wih-table th {
  padding: 0.55rem 0.5rem;
  text-align: left;
  font-family: "Dosis", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: none;
}

.wih-table th.wih-col-temp,
.wih-table th.wih-col-flight,
.wih-table th.wih-col-price,
.wih-table th.wih-col-hotel,
.wih-table th.wih-col-options {
  text-align: left;
}

.wih-sortable {
  cursor: pointer;
  user-select: none;
}
.wih-sortable:hover {
  background: var(--dropdownPrimary);
}

.wih-sort-arrow::after {
  content: " \2195";
  opacity: 0.4;
  font-size: 0.65em;
}
[aria-sort="ascending"] .wih-sort-arrow::after {
  content: " \2191";
  opacity: 1;
}
[aria-sort="descending"] .wih-sort-arrow::after {
  content: " \2193";
  opacity: 1;
}

.wih-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(11, 82, 89, 0.08);
  vertical-align: middle;
  color: var(--colourB);
}

.wih-table td.wih-col-temp,
.wih-table td.wih-col-flight,
.wih-table td.wih-col-price,
.wih-table td.wih-col-hotel,
.wih-table td.wih-col-options {
  text-align: right;
}

.wih-table tbody tr:last-child td {
  border-bottom: none;
}

.wih-table tbody tr:nth-child(even) td {
  background: rgba(255, 202, 156, 0.15);
}

.wih-table tbody tr:hover td {
  background: rgba(255, 202, 156, 0.45);
  transition: background 0.08s;
}

/* Column widths -- mobile */
.wih-col-dest {
  width: auto;
}
.wih-col-temp {
  width: 56px;
}
.wih-col-flight {
  width: 70px;
}
.wih-col-price {
  width: 72px;
}
.wih-col-hotel {
  width: 110px;
}
.wih-col-options {
  width: 55px;
}

/* Hide hotel and trips on mobile -- too cramped */
.wih-col-hotel,
.wih-col-trips,
.wih-col-options {
  display: none;
}

/* Destination cell: flag + text side by side */
.wih-dest-inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wih-dest-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wih-flag-icon {
  display: inline-block;
  width: 21px;
  height: auto;
  flex-shrink: 0;
  vertical-align: middle;
  margin-bottom: 0;
}

.wih-highlight-city .wih-flag-icon,
.wih-paa-card-city .wih-flag-icon {
  width: 21px;
}

.wih-city {
  font-weight: 600;
  display: block;
  line-height: 1.2;
  color: var(--colourD);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.wih-country {
  font-size: 0.71rem;
  color: var(--colourD);
  opacity: 0.5;
  display: block;
  text-align: left;
}

/* ===== Visual hierarchy ===== */
/* Primary: temp value */
.wih-temp-num {
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--colourD);
}

/* Primary: price value */
.wih-price-val {
  font-family: "Dosis", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--colourD);
  display: block;
}

/* Secondary: flight duration */
.wih-flight-dur {
  display: block;
  color: var(--colourB);
}

/* Secondary: hotel */
.wih-hotel-val {
  color: var(--colourB);
  opacity: 0.8;
}

/* Tertiary: trip count */
.wih-col-trips {
  opacity: 0.5;
  font-size: 0.8rem;
}

.wih-no-data {
  color: var(--colourD);
  opacity: 0.25;
}

.wih-data-note {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.71rem;
  color: var(--colourD);
  opacity: 0.55;
  padding: 0.45rem 0.1rem;
  text-align: right;
  font-style: italic;
}

/* ===== Section dividers ===== */
.wih-section-rule {
  border: none;
  border-top: 1px solid rgba(11, 82, 89, 0.1);
  margin: 1.75rem 0 0;
}

/* ===== PAA sections ===== */
.wih-paa-section {
  padding: 1.25rem 0 0.25rem;
}

.wih-paa-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--colourD);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.wih-paa-section p {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--colourB);
  opacity: 0.8;
  margin: 0 0 0.5rem;
}

.wih-paa-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.wih-paa-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 2px 2px var(--backgroundSecondary);
}

.wih-paa-img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  display: block;
}

.wih-paa-card-body {
  padding: 0.5rem 0.65rem 0.55rem;
}

.wih-paa-card-city {
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
  color: var(--colourD);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.wih-paa-card-temp,
.wih-paa-card-flight {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.77rem;
  margin: 0;
  color: var(--colourB);
  opacity: 0.75;
  line-height: 1.4;
}

.wih-paa-card-price {
  font-family: "Dosis", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.1rem 0 0;
  color: var(--colourD);
}

.wih-paa-card-trips {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.75rem;
  margin: 0.15rem 0 0;
  color: var(--colourD);
  opacity: 0.55;
}

/* ===== CTA ===== */
.wih-cta-section {
  background: var(--backgroundPrimary);
  color: #fff;
  text-align: center;
  padding: 2.25rem 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2rem;
}

.wih-cta-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.wih-cta-desc {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.88rem;
  opacity: 0.85;
  max-width: 32rem;
  margin: 0 auto 1.1rem;
  line-height: 1.55;
}

.wih-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--colourD);
  font-family: "Dosis", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 3px 3px var(--backgroundSecondary);
  transition: box-shadow 0.12s;
  letter-spacing: 0.02em;
}

.wih-cta-btn:hover {
  box-shadow: 1px 1px var(--backgroundSecondary);
}

.wih-cta-hint {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.72rem;
  opacity: 0.5;
  margin-top: 0.65rem;
}

/* ===== Related months ===== */
.wih-related {
  padding: 1.25rem 0 0.5rem;
}

.wih-related-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: var(--colourD);
  margin: 0 0 0.6rem;
}

.wih-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wih-related-link {
  display: inline-block;
  font-family: "Dosis", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border: 1.5px solid var(--colourD);
  border-radius: 4px;
  text-decoration: none;
  color: var(--colourD);
  background: #fff;
  box-shadow: 3px 3px var(--backgroundPrimary);
  transition:
    background 0.12s,
    color 0.12s,
    box-shadow 0.12s;
}

.wih-related-link:hover {
  background: var(--backgroundPrimary);
  color: #fff;
  box-shadow: 2px 2px var(--backgroundSecondary);
}

.wih-related-count {
  font-weight: 400;
  opacity: 0.6;
}

/* ===== FAQ ===== */
.wih-faq {
  padding: 1.25rem 0 2.5rem;
}

.wih-faq h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: var(--colourD);
  margin: 0 0 0.5rem;
}

.wih-faq-item {
  border-bottom: 1px solid rgba(11, 82, 89, 0.1);
}

.wih-faq-item:last-child {
  border-bottom: none;
}

.wih-faq-q {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--colourD);
  cursor: pointer;
  list-style: none;
  padding: 0.6rem 0;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.wih-faq-q::-webkit-details-marker {
  display: none;
}

.wih-faq-q::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.5;
  flex-shrink: 0;
}

details[open] .wih-faq-q::after {
  content: "\2212";
}

.wih-faq-a {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--colourB);
  opacity: 0.8;
  margin: 0 0 0.75rem;
}

/* ===== 360px+ ===== */
@media (min-width: 360px) {
  .wih-h1 {
    font-size: 1.7rem;
  }
  .wih-paa-img {
    height: 110px;
  }
}

/* ===== 768px tablet ===== */
@media (min-width: 768px) {
  .wih-col-hotel,
  .wih-col-trips,
  .wih-col-options {
    display: table-cell;
  }
  .wih-highlights {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin: 20px;
  }
  .wih-hero {
    padding: 1.75rem 2rem 3rem;
  }
  .wih-h1 {
    font-size: 2.1rem;
  }
  .wih-content {
    padding: 0 1.5rem;
  }
  .wih-paa-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .wih-paa-img {
    height: 130px;
  }
  .wih-table {
    font-size: 0.88rem;
    min-width: 520px;
  }
  .wih-table th,
  .wih-table td {
    padding: 0.75rem 1.1rem;
  }
  .wih-col-dest {
    min-width: 120px;
    width: 160px;
  }
  .wih-col-temp {
    width: 90px;
  }
  .wih-col-flight {
    width: 100px;
  }
  .wih-col-price {
    width: 110px;
  }
  .wih-highlight-img {
    height: 140px;
  }
}

/* ===== 1280px desktop ===== */
@media (min-width: 1280px) {
  .wih-hero {
    padding: 2rem 3rem 3.5rem;
  }
  .wih-h1 {
    font-size: 2.3rem;
  }
  .wih-content {
    max-width: 1200px;
    padding: 0 2rem;
  }
  .wih-paa-cards {
    grid-template-columns: repeat(5, 1fr);
  }
  .wih-paa-img {
    height: 150px;
  }
  .wih-table {
    font-size: 0.92rem;
  }
  .wih-filter-panel {
    flex-direction: row;
    align-items: stretch;
    gap: 3.6rem;
    padding: 20px;
  }
  .wih-filter-group {
    max-width: none;
    flex-direction: column;
    gap: 0.2rem;
  }
  .wih-filter-col {
    flex-direction: row;
    gap: 0.4rem;
  }
  .wih-filter-btn {
    flex: 1;
    width: auto;
    padding: 0.15rem 0.2rem;
  }
  .wih-table-body-wrap {
    height: 525px;
  }
  .wih-row-detail-inner {
    justify-content: space-between;
    gap: 0.75rem;
  }
  .wih-table th {
    white-space: nowrap;
  }
  .wih-table th.wih-col-temp,
  .wih-table th.wih-col-flight,
  .wih-table th.wih-col-price,
  .wih-table th.wih-col-hotel,
  .wih-table th.wih-col-options {
    text-align: right;
  }
}

/* ===== Expandable row detail ===== */
.wih-row {
  cursor: pointer;
}

.wih-row-detail {
  display: none;
}

.wih-row-detail.wih-row-detail--open {
  display: table-row;
}

.wih-row-detail td {
  padding: 0.6rem 0.75rem 0.75rem;
  background: rgba(255, 202, 156, 0.25);
  border-bottom: 2px solid rgba(11, 82, 89, 0.12);
}

.wih-row-detail-inner {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wih-explore-btn {
  display: inline-block;
  font-family: "Dosis", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  background: var(--backgroundPrimary);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 2px 2px var(--sliderPrimary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: box-shadow 0.12s;
}

.wih-explore-btn:hover {
  box-shadow: 1px 1px var(--sliderPrimary);
}

/* Highlight the open data row */
.wih-row--open td {
  background: rgba(255, 202, 156, 0.35);
}

.wih-row-detail-btns {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wih-explore-btn--secondary {
  background: #fff;
  color: var(--colourD);
  border: 1.5px solid var(--colourD);
  box-shadow: 2px 2px var(--colourD);
}

.wih-explore-btn--secondary:hover {
  box-shadow: 1px 1px var(--colourD);
}

/* Highlight cards as links */
a.wih-highlight-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    box-shadow 0.12s,
    transform 0.12s;
}

a.wih-highlight-card:hover {
  box-shadow: 0 3px 10px rgba(11, 82, 89, 0.18);
  transform: translateY(-1px);
}
