/* ===== Where Is Hot Hub Page (month-level, no origin) ===== */
/* Extends where-is-hot.css. Mobile-first: 240px base. */

/* ===== Hero search bar ===== */
.wih-hub-search-wrapper {
  max-width: 28rem;
  margin: 1.25rem auto 0;
  text-align: left;
}

.wih-hub-search-wrapper {
background: var(--doc-bg);
color: var(--sliderPrimary);
padding: 9px;
border-radius: 5px;
}

.wih-hub-search-label {

  font-size: 1.15rem;
color: var(--textPrimary);
font-weight: 600;
  margin: 0 0 0.4rem;
  text-align: center;
}

.wih-hub-search-field {
  position: relative;
  width: 100%;
}

.wih-hub-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0b5259;
  pointer-events: none;
  z-index: 1;
}

.wih-hub-input {
  width: 100%;
  padding: 0.7rem 0.75rem 0.7rem 2.4rem;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: #fff;
  color: #2e2e2e;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
  box-shadow: 3px 3px var(--sliderPrimary);
}

.wih-hub-input::placeholder {
  color: #999;
}



/* ===== Autocomplete dropdown ===== */
.wih-hub-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(11, 82, 89, 0.2);
  border-radius: 0 0 8px 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.wih-hub-suggestion {
  padding: 0.55rem 0.75rem;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.88rem;
  color: #2e2e2e;
  cursor: pointer;
  transition: background 0.1s;
}

.wih-hub-suggestion:hover {
  background: #ffefda;
}

/* ===== Highlight sub line ===== */
.wih-highlight-sub {
  font-size: 0.72rem;
  color: #666;
  line-height: 1.2;
}

/* ===== "Direct from" column ===== */
.wih-col-connect {
  white-space: nowrap;
  text-align: center;
}

/* ===== Popular origins section ===== */
.wih-hub-origins-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

.wih-hub-origins-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--colourD, #0b5259);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.wih-hub-origins-desc {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.88rem;
  color: var(--colourB, #2e2e2e);
  max-width: 32rem;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.wih-hub-origins-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.wih-hub-origin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: "Dosis", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border: 2px solid var(--colourD, #0b5259);
  border-radius: 20px;
  text-decoration: none;
  color: var(--colourD, #0b5259);
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
background-color: white;
}

.wih-hub-origin-chip:hover {
  background: var(--colourD, #0b5259);
  color: #fff;
}

.wih-hub-origin-flag {
  font-size: 0.9em;
}

.wih-hub-origin-count {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.9em;
}



/* Inline flag icons */
.wih-flag-svg {
  width: 1.4em;
  height: 1em;
  vertical-align: -0.1em;
  display: inline-block;
}

.wih-hub-origin-flag .wih-flag-svg {
  width: 1.2em;
  height: 0.85em;
}

.wih-paa-card-city .wih-flag-svg {
  width: 1.3em;
  height: 0.9em;
  vertical-align: -0.15em;
}
.wih-highlights {
  overflow: visible;
}

.wih-highlight-stat,
.wih-highlight-sub {
  overflow-wrap: break-word;
  word-break: break-word;
}


.wih-highlights {
  max-width: 900px;
}

.wih-highlight-card {
  min-width: 0;
  overflow: hidden;
}

.wih-highlight-stat {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wih-highlight-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Override the 4-column highlight layout from where-is-hot.css.
   Hub cards have longer text ("Most Connected", "41 cities") 
   so they need more room. 2x2 until 1024px. */
.wih-hub-page .wih-highlights {
  grid-template-columns: 1fr 1fr;
  max-width: 600px;
}


.wih-related-link--no-data {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}


.wih-related-link {
  position: relative; /* needed to anchor you-are-here */
}

.wih-related-link--current {
  background: var(--backgroundPrimary);
  color: #fff;
  box-shadow: 2px 2px var(--backgroundSecondary);
  padding-bottom: 1.4rem; /* room for the badge below */
  cursor: default;
}

.wih-related-link--current .wih-related-count {
  opacity: 0.7;
}

.wih-related-you-are-here {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.8;
  font-family: "Caveat", "Comic Sans MS", cursive;
  line-height: 1;
  gap: 0.05rem;
  white-space: nowrap;
}

.wih-related-you-are-here svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: #fff;
}

.wih-related-you-are-here small {
  font-size: 0.6rem;
  color: #fff;
}

.wih-related-link--no-data {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ===== Related months: current page indicator ===== */
.wih-related-link {
  position: relative;
}

.wih-related-link--current {
  background: var(--backgroundPrimary);
  color: #fff;
  box-shadow: 2px 2px var(--backgroundSecondary);
  cursor: default;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.1rem;
  padding: 0.28rem 0.75rem 0.35rem;
}

.wih-related-link--current .wih-related-count {
  opacity: 0.7;
}

.wih-related-you-are-here {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  opacity: 0.8;
  font-family: "Caveat", "Comic Sans MS", cursive;
  line-height: 1;
}

.wih-related-you-are-here svg {
  width: 0.65rem;
  height: 0.65rem;
  fill: #fff;
}

.wih-related-you-are-here small {
  font-size: 0.65rem;
  color: #fff;
}









/* ===== 360px+ ===== */
@media (min-width: 360px) {
  .wih-hub-input {
    font-size: 0.8rem;
  }
  .wih-hub-origin-chip {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
  }
}

/* ===== 768px tablet ===== */
@media (min-width: 768px) {
  .wih-hub-search-wrapper {
    max-width: 32rem;
  }
  .wih-hub-origins-section {
    max-width: 900px;
    padding: 2rem 1.5rem;
  }
  .wih-hub-origin-chip {
    font-size: 0.88rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (min-width: 1024px) {
  .wih-hub-page .wih-highlights {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
  }
}

/* ===== 1280px desktop ===== */
@media (min-width: 1280px) {
  .wih-hub-search-wrapper {
    max-width: 36rem;
  }
  .wih-hub-origins-section {
    max-width: 1100px;
  }
}



/* ===== Hub table: column alignment fix ===== */
/* The hub has 4 columns (dest, temp, hotel, connect) vs the origin page's 6.
   table-layout: fixed + explicit widths on both tables keep head and body aligned. */

.wih-hub-page .wih-table {
  table-layout: fixed;
}

/* Force hotel column visible on hub — base CSS hides it on mobile */
.wih-hub-page .wih-col-hotel {
  display: table-cell;
}

/* Mobile column widths */
.wih-hub-page .wih-col-dest    { width: auto; }
.wih-hub-page .wih-col-temp    { width: 62px; }
.wih-hub-page .wih-col-hotel   { width: 90px; }
.wih-hub-page .wih-col-connect { width: 72px; }

/* Right-align data columns to match base table style */
.wih-hub-page .wih-table th.wih-col-hotel,
.wih-hub-page .wih-table th.wih-col-connect,
.wih-hub-page .wih-table td.wih-col-hotel,
.wih-hub-page .wih-table td.wih-col-connect {
  text-align: right;
}

@media (min-width: 768px) {
  .wih-hub-page .wih-col-dest    { width: auto; }
  .wih-hub-page .wih-col-temp    { width: 90px; }
  .wih-hub-page .wih-col-hotel   { width: 120px; }
  .wih-hub-page .wih-col-connect { width: 110px; }
}

@media (min-width: 1280px) {
  .wih-hub-page .wih-col-temp    { width: 100px; }
  .wih-hub-page .wih-col-hotel   { width: 140px; }
  .wih-hub-page .wih-col-connect { width: 130px; }
}
