/* ============================================
   DESTINATION PAGE STYLES
   Extends share-common.css — load after it.
   ============================================
   Smallest Device: 240x360  — design base
   Perfect Mobile:  360x540+ — from here, perfect
   Tablet:          768px+   — layout shifts
   Desktop:         1280px+  — wider layout
   ============================================ */

/* ── Destination-specific weather strip ──
   All icons visible (no date-range filtering),
   up to 5 days shown via :nth-child CSS cap. */
.dest-weather-strip {
  display: flex;
  gap: 0;
  justify-content: center;
  width: 100%;
  background-color: white;
  border-radius: 10px;
  color: var(--svgText);
}

/* Cap at 5 icons — extras hidden via JS */
.dest-weather-strip .weather-icon {
  flex: 1;
  min-width: 0;
  padding: 4px 2px;

}

/* ── Hotel-only price row ── */
.dest-price-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.dest-hotel-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--brand-bg);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

/* ── Flights CTA pill ── */
.dest-flights-cta {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--brand-primary);
  color: white;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  transition: filter 0.2s;
  text-decoration: none;
}

.dest-flights-cta:hover {
  filter: brightness(1.1);
}

.dest-flights-cta .cta-label {
  font-size: 0.62em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.dest-flights-cta .cta-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45em;
  line-height: 1;
  letter-spacing: 0.03em;
}

.dest-flights-cta .cta-sub {
  font-size: 0.6em;
  opacity: 0.75;
}

/* ── Google Maps embed ── */
.dest-map-section {
  width: 100%;
  background: white;
  overflow: hidden;
}

.dest-map-section iframe {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
}

/* ── 14-day forecast ── */
/* Override share-common default (display:none) */
.forecast-14-day-section {
  display: block;
  width: 100%;
  padding: 0 10px;
  margin: 0;
}

/* ── About strip (climate summary) ── */
.dest-about {
  width: 100%;
  background: white;
  border-radius: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dest-about-heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3em;
  color: var(--brand-primary);
  letter-spacing: 0.03em;
}

.dest-about-body {
  font-size: 0.82em;
  color: #444;
  line-height: 1.55;
}

/* ── Acquisition strip (destination variant) ── */
.dest-acquisition {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-light) 100%
  );
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ── Page wrapper — mirrors share-page ── */
.dest-page {
  position: absolute;
  top: 50px;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 80px;
  gap: 16px;
}

.howie-banner {
  color: white;
  display: flex;
}

.howie-banner h2 {
  font-size: 1.1em;
}

.share-banner-cta {
  background: white;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 3px 3px #ffca9c;
}
.share-banner-cta:hover {
  background: #c8eaff;
  color: #0b5259;
  box-shadow: 3px 3px #ffefda;
}

.card-date-range {
  padding: 0px;
}

.forecast-heading {
  margin: 0;
}

.share-card {
  width: 100vw;
}


.weather-icon:hover{

  text-decoration: none;
}

/* ─────────────────────────────────────────────
   Nearby Destinations
   ───────────────────────────────────────────── */

.nearby-destinations-section {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  padding: 0 0.75rem;
}

.nearby-heading {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0 0 0.75rem;
}

/* Horizontal scroll on narrow screens, wrap on wide */
.nearby-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}



/* ── Card ── */
.nearby-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.nearby-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  text-decoration: none;
}

.nearby-card-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  background-size: cover;
  background-position: center;
  background-color: var(--brand-bg-dark, #e8e8e8);
}

.nearby-card-body {
  padding: 0.55rem 0.65rem 0.6rem;
}

.nearby-card-title {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.nearby-city {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-flag {
  width: 1.1rem;
  height: auto;
  flex-shrink: 0;
}

.nearby-wpi {
  font-size: 0.72rem;
  color: #888;
  margin-bottom: 0.4rem;
}

/* ── 14-day strip (scrollable) ── */
.nearby-weather-strip {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.nearby-weather-strip::-webkit-scrollbar {
  display: none;
}

.nearby-wx-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 2.3rem;
}

.nearby-wx-day {
  font-size: 0.58rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nearby-wx-svg {
  width: 1.3rem;
  height: 1.3rem;
}

.nearby-wx-temp {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand-primary);
}


.nearby-weather-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  width: 100%;
}

/* no scrollbar needed anymore */
.nearby-weather-strip::-webkit-scrollbar { display: none; }

.nearby-wx-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: unset;
  width: 100%;
  padding: 2px 0;
  background: #f1f2f0;
}

.nearby-wx-day {
  font-size: 0.55rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-height: 0.9em; /* keeps second row aligned even with empty label */
}

.nearby-wx-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nearby-wx-temp {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.nearby-wx-icon.nearby-wx-sunny-warm {
  background-color: var(--calendarSecondaryMonth);
}

.nearby-wx-date {
  font-size: 0.55rem;
  color: #999;
  white-space: nowrap;
  min-height: 0.9em;
}

/* ============================================
   PERFECT MOBILE (360px+)
   ============================================ */
@media only screen and (min-width: 360px) {
  .dest-page {
    padding: 0 12px 80px;
  }

  .dest-map-section {
    border-radius: 14px;
    overflow: hidden;
  }

  .dest-map-section iframe {
    height: 260px;
  }

  .dest-about {
    border-radius: 14px;
  }

  .dest-acquisition {
    border-radius: 14px;
  }
}

@media only screen and (min-width: 480px) {
  .share-card {
    width: clamp(80%, 1vw, 100%);
  }
}
/* ============================================
   TABLET (768px+)
   ============================================ */
@media only screen and (min-width: 768px) {
  .dest-page {
    top: 80px;
  }

  .dest-map-section iframe {
    height: 340px;
  }

  .dest-flights-cta .cta-value {
    font-size: 1.65em;
  }

  .forecast-14-day-section {
    padding: 0 2rem;
  }
}

/* ============================================
   DESKTOP (1280px+)
   ============================================ */
@media only screen and (min-width: 1280px) {
  .dest-map-section iframe {
    height: 380px;
  }

  .forecast-14-day-section {
    padding: 0 3rem;
  }
}
