:root {
    --bg: #FAF8F4;
    --cardcolour1:#EAE6DD;
    --cardcolour2:#EEF1EF;
    --navbar:#6B7F8C;
    --Green:#4A5A52;
    --text:#2E2C28;
}

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

body{
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.6;
}

h1,h2,h3{
    font-family: "Playfair", serif;
    font-weight: 500;
}

a{
    color:inherit;
    text-decoration: none;
}

.navbar {
  background: var(--navbar);
  color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .logo{
  font-family: "Playfair", serif;
  font-size: 26px;
}

.nav-links{
    display: flex;
    gap: 40px;
}

.nav-links a{
      font-family: "Playfair", serif;
      font-size: 23px;
      padding-bottom: 3px;
      border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom: 2px solid var(--bg);
}

.menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--bg);
  font-size: 24px;
  cursor: pointer;
}

.map-section {
  position: relative;
  padding: 24px 28px;
}
.map {
  position: relative;
  width: 100%;
  max-width: min(1760px, 142vh);
  margin: 0 auto;
  aspect-ratio: 2000 / 1125;
  background: url("map.jpg") center / cover no-repeat;
  border-radius: 16px;
  overflow: hidden;
  cursor: none;
}
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: none;
  z-index: 3;
}
.pin svg { width: 34px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.pin:hover svg { transform: scale(1.15); }

.pin .card {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
}
.pin:hover .card { opacity: 1; visibility: visible; }
.pin.card-below .card { bottom: auto; top: 130%; }
.pin.card-left .card { left: auto; right: 0; transform: none; }

.pin::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 45px;
  bottom: 100%;
}
.pin.card-below::after {
  bottom: auto;
  top: 100%;
}
.pin.card-left::after {
  left: auto;
  right: 0;
  transform: none;
}

.card-photo {
  height: 110px;
  background-size: cover;
  background-position: center;
  background-color: var(--cardcolour1);
}
.card .card-text { padding: 12px 14px 16px; }
.card .day  { font-size: 12px; letter-spacing: 2px; color: var(--Green); }
.card h3    { font-size: 21px; margin: 2px 0 8px; }
.card .more { font-family: "Playfair", serif; font-size: 14px; border-bottom: 1px solid var(--text); }

#car {
  position: fixed;
  width: 34px;
  pointer-events: none;
  z-index: 20;
  display: none;
  transform: translate(-50%, -50%);
  transition: transform .3s ease-out;
}
.smoke {
  position: fixed;
  pointer-events: none;
  z-index: 19;
  transform: translate(-50%, -50%);
  animation: puff 0.7s ease-out forwards;
}
@keyframes puff {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.7); }
}
.locations {
  max-width: min(1760px, 142vh);
  margin: 0 auto;
  padding: 40px 28px 70px;
}
.loc-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 22px 5px;
  border-top: 1px solid #2e2c2840;
}
.locations .loc-item:last-child { border-bottom: 1px solid #2e2c2840; }
.loc-item .num   { font-family: "Playfair", serif; font-size: 22px; color: var(--Green); }
.loc-item .place { font-family: "Playfair", serif; font-size: 28px; flex: 1; }
.loc-item .arrow { font-size: 20px; transition: transform .25s; }
.loc-item:hover .arrow { transform: translateX(10px); }

.footer {
  background: var(--text);      
  color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
}

.footer .name {
  letter-spacing: 3px;
  font-size: 14px;
}

.footer .icons {
  display: flex;
  gap: 16px;
}

.footer .icons a {
  border: 1px solid var(--bg);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .icons a:hover {
  background: var(--bg);
  color: var(--text);
}


/*Location page*/ 

.hero-photo {
  position: relative;
  height: 60vh;
}
.hero-photo h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 72px;
  text-shadow: 0 4px 25px rgba(0,0,0,.5);
}
.photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.caption-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}
.body-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px;
}
.body-text .subhead {
  text-align: center;
  font-weight: bold;
  margin-bottom: 26px;
}
.column {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}
.column p {
  flex: 1;
}
.location-button {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 24px;
  padding-bottom: 60px;
}
.back-button {
  font-family: "Playfair", serif;
  font-size: 19px;
  padding: 12px 28px;
  border: 1px solid var(--text);
  border-radius: 6px;
  background: var(--cardcolour1);
  cursor: pointer;
}
.back-button:hover {
  background: var(--text);
  color: var(--bg);
}

/* ===== About page ===== */
.about-hero {
  position: relative;
  height: 45vh;
}
.about-hero h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 72px;
  text-shadow: 0 4px 25px rgba(0,0,0,.5);
}

.about-intro {
  display: flex;
  min-height: 55vh;
}
.about-intro .text {
  flex: 1;
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-intro .text b {
  display: block;
  margin-bottom: 12px;
}
.about-intro .side-img {
  flex: 1;
}

.why {
  position: relative;
  height: 45vh;
}
.why h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 48px;
  text-shadow: 0 4px 25px rgba(0,0,0,.5);
}

.quote {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 50px 30px;
}
.quote-tint {
  position: absolute;
  inset: 0;
  background: rgba(8,12,28,.55);
}
.quote p {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .menu-button { display: block; }

  .nav-links {
    display: none;                      
    position: absolute;
    top: 100%;                             
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navbar);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }       
  .nav-links a { padding: 14px 40px; font-size: 20px; }
}


@media (max-width: 768px) {
  .map-section { padding: 10px 0; }
  .map {
    border-radius: 0;
    background-image: url("map-mobile.jpg");
    aspect-ratio: 1414 / 2000;
  }
  a.pin[href="Queenstown.html"]   { left: 39% !important; top: 85% !important; }
  a.pin[href="Laketekapo.html"]   { left: 47% !important; top: 44% !important; }
  a.pin[href="Christchurch.html"] { left: 74% !important; top: 14% !important; }
  a.pin[href="Foxglacier.html"]   { left: 31% !important; top: 26% !important; }
  a.pin[href="Wanaka.html"]       { left: 34% !important; top: 75% !important; }
  
  .about-intro { flex-direction: column; }
  .about-hero h1 { font-size: 46px; }
}