/* ============================================
   SHARE PAGE STYLES
   ============================================
   Smallest Device: 240x360  — design base
   Perfect Mobile:  360x540+ — from here, perfect
   Tablet:          768px+   — layout shifts
   Desktop:         1280px+  — wider layout
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--brand-bg);
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  text-decoration: none;
}

/* ── Banner ── */
.share-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-banner-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-banner-logo img {
  height: 34px;
  width: auto;
}

.share-banner-logo span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5em;
  color: white;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Hidden on <360px */
.share-banner-cta {
  display: none;
  font-size: 0.75em;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 5px 12px;
  white-space: nowrap;
  transition: background 0.2s;
}

.share-banner-cta:hover {
  background: rgba(255, 255, 255, 0.35);
}

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

/* Card — bleeds edge-to-edge on <360px */
.share-card {
  width: 100%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  background: white;
}

/* Card image */
.share-card-image {
  width: 100%;
  height: min(52svh, 360px);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Date / city bar */
.share-card-date {
  color: white;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  width: 100%;
  font-size: small;
  gap: 8px;
}

.share-card-date .destination-city-country-flag {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.share-card-date .city-name {
  font-size: 1.5em;
  line-height: 1;
}

.share-card-date .destination-country-flag {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 4px;
  font-size: 1.1em;
  font-family: "Dosis", sans-serif;
}

.share-card-date .destination-country-flag svg {
  width: 22px;
  height: 16px;
}

.price-explainer {
  font-size: x-small;
}

/* Weather icons */
.card-svg-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* ── Card body ── */
.share-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Trip meta pills */
.share-trip-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.share-meta-pill {
  font-size: 0.72em;
  font-weight: 600;
  background: var(--brand-bg);
  color: var(--brand-accent);
  border-radius: 20px;
  padding: 3px 10px;
  display: none;
}

/* Price pills */
.share-price-row {
  display: flex;
  gap: 8px;
}

.share-price-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: var(--brand-bg);
  border-radius: 10px;
  padding: 4px 2px;
  text-align: center;
  justify-content: center;
}

.share-price-pill .card-date-range {
  font-size: small;
}

.share-price-pill.total {
  background: var(--brand-accent);
  display: none;
}

.pill-label {
  font-size: 0.63em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-accent);
}

.share-price-pill.total .pill-label {
  color: rgba(255, 255, 255, 0.75);
}

.pill-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.9em;
  color: var(--brand-accent);
  line-height: 1;
}

.share-price-pill.total .pill-value {
  color: white;
}

.pill-sub {
  font-size: 0.6em;
  color: var(--brand-accent);
  opacity: 0.6;
}

.share-price-pill.total .pill-sub {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

/* Book buttons */
.share-book-buttons {
  display: flex;
  gap: 8px;
}

.share-book-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85em;
  transition: transform 0.15s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.share-book-btn:active {
  transform: scale(0.97);
}
.share-book-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-book-btn.flights {
  background: var(--brand-primary);
  color: white;
}
.share-book-btn.flights svg {
  fill: white;
}

.share-book-btn.hotels {
  background: var(--brand-accent);
  color: white;
}
.share-book-btn.hotels svg {
  fill: white;
}

.share-book-btn.cars {
  flex: 0 0 auto;
  background: var(--brand-bg);
  color: var(--brand-accent);
  padding: 12px 14px;
  display: none;
}
.share-book-btn.cars svg {
  fill: var(--brand-accent);
}

/* Divider */
.share-divider {
  border: none;
  border-top: 1px solid var(--brand-bg-dark);
}

/* Explore links */
.share-explore {
  display: flex;
  justify-content: space-around;
}

.share-explore a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--brand-accent);
  font-size: 0.68em;
  font-weight: 600;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.share-explore a:hover {
  opacity: 1;
}
.share-explore svg {
  width: 22px;
  height: 22px;
  fill: var(--brand-accent);
}

/* Acquisition strip */
.share-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);
}

.acq-headline {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7em;
  color: white;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.acq-sub {
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.4;
}

.acq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.9em;
  padding: 10px 20px;
  border-radius: 30px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s;
}

.acq-btn:hover {
  transform: translateY(-1px);
}

/* Footer */
.share-footer {
  font-size: 0.68em;
  color: var(--brand-accent);
  opacity: 0.45;
  text-align: center;
  padding-bottom: 8px;
}

.share-footer a {
  color: inherit;
}

.forecast-14-day-section {
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto 1rem;
  /* padding: 0 1rem; */
  padding: 0 10px;
  display: none;
}

.forecast-heading {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--brand-primary, #e4754d);
}

.forecast-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on smallest screens */
  gap: 0.375rem;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 8px;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  justify-items: center;
}

.forecast-grid-wrapper .weather-icon {
  padding: 6px;
}
/* ============================================
   PERFECT MOBILE (360px+)
   ============================================ */
@media only screen and (min-width: 360px) {
  .share-banner-cta {
    display: block;
  }
  .share-card {
    border-radius: 14px;
  }
  .share-acquisition {
    border-radius: 14px;
  }
  .share-page {
    padding: 0 12px 80px;
  }
  .forecast-grid-wrapper {
    grid-template-columns: repeat(7, 1fr);
    /* gap: 0; */
    gap: 18px 0px;
    padding: 18px 0px;
  }
  .forecast-grid-wrapper .weather-icon {
    padding: 7px;
  }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media only screen and (min-width: 768px) {
  .share-card-image {
    height: min(55svh, 420px);
    border-radius: 14px 14px 0 0;
  }
  .share-card-date {
    font-size: inherit;
    border-radius: 14px 14px 0 0;
  }
  .pill-value {
    font-size: 2.1em;
  }
  .share-book-btn {
    font-size: 0.95em;
    padding: 13px 12px;
  }
  .acq-headline {
    font-size: 2em;
  }
  .share-page {
    top: 80px;
  }
  .forecast-14-day-section {
    padding: 0 2rem;
  }

  .forecast-heading {
    font-size: 1.75rem;
    margin: 0 0 2rem;
  }

  .forecast-grid-wrapper {
    grid-template-columns: repeat(7, 1fr); /* 7 columns = 2 rows of 7 days */
    gap: 0.75rem;
    padding: 12px;
  }
}

/* ============================================
   DESKTOP (1280px+)
   ============================================ */
@media only screen and (min-width: 1280px) {
  .forecast-14-day-section {
    padding: 0 3rem;
  }

  .forecast-heading {
    font-size: 1.6rem;
  }

  .forecast-grid-wrapper {
    gap: 1rem;
    padding: 14px;
  }
}
