
/* THE WEEKENDER — HOMEPAGE STYLESHEET */

:root {
  color-scheme: dark;
  --gold: #e9b66a;
  --night: #020b19;
  --white: #f7f3f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }


/* =========================================
   MAIN CINEMATIC STAGE
   ========================================= */

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(295px, 1fr) auto;
  width: 100%;
  max-width: 1920px;
  min-height: max(750px, 100svh);
  margin: 0 auto;
  padding-bottom: 54px;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 61% 46%,
    #0a3458,
    #041629 48%,
    var(--night) 79%
  );
}

.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .43;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 6% 12%, #5fb7ff 85%, transparent),
    radial-gradient(1px 1px at 18% 20%, #9bdbff 85%, transparent),
    radial-gradient(2px 2px at 24% 6%, #89c8ff 65%, transparent),
    radial-gradient(1px 1px at 70% 3%, #a5cbfc 85%, transparent),
    radial-gradient(2px 2px at 92% 15%, #9edfff 65%, transparent);
  background-size: 210px 170px;
}


/* =========================================
   EARTH IMAGE AND SOFT HORIZON
   ========================================= */

.earth-image {
  position: absolute;
  z-index: -2;
  top: 10%;
  right: 0;
  width: 72%;
  height: 70%;

  background-image: url("assets/weekender-europe-raised.webp");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;

  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 12%,
      black 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      black 22%,
      black 88%,
      transparent 100%
    );

  -webkit-mask-composite: source-in;

  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      black 12%,
      black 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      black 22%,
      black 88%,
      transparent 100%
    );

  mask-composite: intersect;
  pointer-events: none;
}

.earth-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      var(--night) 0%,
      rgba(2,11,25,.85) 17%,
      rgba(2,11,25,.13) 38%,
      transparent 70%
    ),
    linear-gradient(
      0deg,
      var(--night) 0%,
      transparent 30%
    );
}


/* =========================================
   EARTH MAP MARKER
   ========================================= */

.earth-city-overlay {
  position: absolute;
  z-index: 3;
  top: 10%;
  right: 0;
  width: 72%;
  height: 70%;
  pointer-events: none;
  transition: opacity .2s ease;
}

.earth-city-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.earth-city-link {
  position: absolute;
  top: 55%;
  left: 48%;
  transform: translate(-9px, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  pointer-events: auto;
}

.earth-city-link::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  background: #efa735;
  box-shadow:
    0 0 0 5px rgba(255,165,55,.18),
    0 0 18px #ffb84d;
}

.earth-city-link span {
  padding: 6px 11px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: rgba(2,11,25,.88);
  font-size: 14px;
}

.earth-city-link:hover span,
.earth-city-link:focus-visible span {
  color: var(--night);
  background: var(--gold);
}


/* =========================================
   HEADER AND NAVIGATION
   ========================================= */

.site-header {
  position: relative;
  z-index: 4;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 2.1% 5.2% 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 2.45vw, 44px);
  letter-spacing: .12em;
  line-height: 1.02;
  white-space: nowrap;
}

.brand-tag {
  color: var(--gold);
  font-size: clamp(7px, .6vw, 11px);
  letter-spacing: .35em;
  white-space: nowrap;
}

.navigation {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.9vw, 35px);
  margin: 3px 0 0 auto;
}

.navigation a,
.navigation button {
  border: 0;
  padding: 8px 0;
  color: var(--white);
  background: none;
  font-size: clamp(12px, .75vw, 15px);
  white-space: nowrap;
}

.navigation :is(a, button):hover {
  color: var(--gold);
}

.navigation .nav-icon {
  margin-left: 2px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.45);
}

.nav-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}


/* =========================================
   FEATURED DESTINATION TEXT
   ========================================= */

.feature {
  position: relative;
  z-index: 2;
  grid-row: 2;
  align-self: center;
  width: 37%;
  max-width: 550px;
  margin-left: 5.2%;
  padding-bottom: 16px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: clamp(11px, .75vw, 14px);
  font-weight: 600;
  letter-spacing: .45em;
}

.feature h1 {
  margin: 0 0 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(41px, 3.9vw, 78px);
  font-weight: normal;
  line-height: .99;
  letter-spacing: -.035em;
  text-shadow: 0 3px 9px rgba(0,0,0,.5);
}

.feature-summary {
  max-width: 480px;
  margin: 0 0 26px;
  font-size: clamp(13px, 1.22vw, 22px);
  line-height: 1.38;
  text-shadow: 0 1px 5px #020b19;
}

.feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 27px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: rgba(0,3,10,.64);
  font-size: clamp(11px, .72vw, 14px);
  letter-spacing: .22em;
  white-space: nowrap;
}

.feature-button:hover {
  background: var(--gold);
  color: var(--night);
}


/* =========================================
   ENDLESS DESTINATION CAROUSEL
   ========================================= */

.destinations {
  position: relative;
  z-index: 2;
  isolation: isolate;
  grid-row: 3;
  height: clamp(185px, 22vh, 265px);
  margin: 0 5.9%;
  overflow: visible;
}

.carousel-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.destination-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 13px;
  width: 100%;
  height: 100%;
  padding: 8px 9px;
  overflow: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.destination-grid::-webkit-scrollbar {
  display: none;
}

.destination-grid > .destination-card {
  flex: 0 0 calc((100% - 39px) / 4);
  height: auto;
  min-width: 0;
  min-height: 0;
}


/* =========================================
   DESTINATION CARD APPEARANCE
   ========================================= */

.destination-card {
  display: block;
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  text-align: left;
  background: #05172c;
  border: 1px solid rgba(183,204,225,.32);
  border-radius: 7px;
  transform-origin: center;
  transition:
    scale .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.destination-card img {
  display: block;
  width: 100%;
  height: 78%;
  object-fit: cover;
  filter: saturate(1.08);
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 32% 0 0;
  background: linear-gradient(
    0deg,
    #02101e 0%,
    rgba(2,10,20,.48) 35%,
    transparent 83%
  );
  pointer-events: none;
}


/* Selected card — stronger gold border */

.destination-card.selected {
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(233,182,106,.8),
    0 0 18px rgba(233,182,106,.35);
}


/* Enlarge the entire card on hover */

.destination-card:hover {
  scale: 1.025;
  z-index: 5;
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 18px rgba(233,182,106,.45);
}

.destination-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}


/* Card text and circular arrow */

.card-details {
  position: absolute;
  z-index: 1;
  left: 6%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.city {
  font-family: Georgia, serif;
  font-size: clamp(20px, 1.55vw, 29px);
  line-height: 1;
}

.meta {
  font-size: clamp(8px, .62vw, 12px);
  letter-spacing: .2em;
  white-space: nowrap;
}

.featured {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 5px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .74em;
}

.card-circle {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  font-size: 21px;
}


/* =========================================
   CAROUSEL LEFT AND RIGHT BUTTONS
   ========================================= */

.carousel-arrow {
  position: absolute;
  z-index: 100;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: white;
  background: rgba(0,10,24,.78);
  cursor: pointer;
}

.carousel-arrow:hover {
  background: #33445e;
}

.carousel-arrow.previous {
  left: -4.1%;
  right: auto;
}

.carousel-arrow.next {
  right: -4.1%;
  left: auto;
}


/* Navigation dots */

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: -34px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 13px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #dfdce3;
  border-radius: 50%;
  background: transparent;
}

.carousel-dots button.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 9px rgba(233,182,106,.65);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* =========================================
   POP-UP DIALOGS
   ========================================= */

dialog {
  max-width: 440px;
  width: calc(100% - 32px);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: #07192c;
  padding: 32px;
  box-shadow: 0 18px 70px #000;
}

dialog::backdrop {
  background: rgba(0,0,0,.72);
}

dialog h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: normal;
}

dialog p { line-height: 1.6; }

.dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: none;
  color: white;
  font-size: 28px;
}

.dialog-button {
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 10px 22px;
  background: transparent;
  color: white;
}


/* =========================================
   LAPTOP AND TABLET
   ========================================= */

@media (max-width: 1050px) {
  .navigation { gap: 11px; }

  .brand-name { font-size: 29px; }

  .feature { width: 41%; }

  .feature h1 {
    font-size: clamp(38px, 4.5vw, 52px);
  }

  .earth-image,
  .earth-city-overlay {
    width: 77%;
  }
}


/* =========================================
   PHONE LAYOUT
   ========================================= */

@media (max-width: 730px) {
  .landing {
    display: block;
    min-height: 100svh;
    overflow: hidden;
    padding-bottom: 70px;
  }

  .site-header {
    padding: 22px 6%;
    flex-wrap: wrap;
    gap: 16px;
  }

  .brand-name { font-size: 27px; }

  .brand-tag {
    font-size: 8px;
    letter-spacing: .2em;
  }

  .navigation {
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
  }

  .navigation .nav-icon { display: none; }

  .earth-image {
    top: 114px;
    right: -15%;
    width: 110%;
    height: 340px;
    opacity: .8;
  }

  .earth-city-overlay { display: none; }

  .earth-glow {
    background:
      linear-gradient(
        0deg,
        var(--night) 36%,
        rgba(2,11,25,.1) 72%
      ),
      linear-gradient(
        90deg,
        var(--night) 0%,
        transparent 86%
      );
  }

  .feature {
    width: 88%;
    max-width: none;
    margin: 170px 6% 38px;
    padding: 0;
  }

  .feature h1 {
    font-size: clamp(38px, 9vw, 62px);
  }

  .feature-summary { font-size: 16px; }

  .destinations {
    height: 210px;
    margin: 0 6%;
  }

  .destination-grid { gap: 12px; }

  .destination-grid > .destination-card {
    flex-basis: calc((100% - 12px) / 2);
  }

  .city { font-size: 22px; }

  .card-details { left: 5%; }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .carousel-arrow.previous { left: -5%; }

  .carousel-arrow.next { right: -5%; }
}

@media (max-width: 460px) {
  .destinations { height: 225px; }

  .destination-grid > .destination-card {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .destination-card { transition: none; }
}

/* =====================================
   THE WEEKENDER — TRIPS DROPDOWN
   ===================================== */

.nav-dropdown {
  position: relative;
}

.navigation .trips-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
}

.dropdown-chevron {
  color: var(--gold);
  font-size: 17px;
  transition: transform .2s ease;
}

.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.trips-menu {
  position: absolute;
  z-index: 100;
  top: 100%;
  right: 0;
  width: 190px;
  padding: 8px 0;
  border: 1px solid rgba(233,182,106,.55);
  border-radius: 7px;
  background: rgba(3,16,32,.97);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s;
}

.nav-dropdown.open .trips-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navigation .trips-menu a {
  display: block;
  padding: 11px 17px;
  color: var(--white);
  font-size: 13px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.navigation .trips-menu a:hover,
.navigation .trips-menu a:focus-visible {
  color: var(--gold);
  background: rgba(233,182,106,.09);
}
/* ==========================================
   THE WEEKENDERS — FLIGHT VISIBILITY
   ========================================== */

/* Bright white aircraft with dark outline */
#weekender-route-layer > g:last-child path {
    fill: #ffffff;
    stroke: #061525;
    stroke-width: 3;
    paint-order: stroke fill;

    filter:
        drop-shadow(0 0 3px #020b19)
        drop-shadow(0 0 6px rgba(100, 210, 255, 0.8));
}

/* Soft blue light around aircraft */
#weekender-route-layer > g:last-child circle {
    fill: #8ddfff;
    opacity: 0.65;
}

/* Bright flight path */
#weekender-route-layer.route-running .route-core {
    stroke: #f0fbff;
    stroke-width: 3.7;
}

/* Blue glow underneath the flight path */
#weekender-route-layer.route-running .route-glow {
    stroke: #40bfff;
    stroke-width: 13;
    opacity: 0.55;
}