/* ---------- Reset & base ---------- */

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

body {
  background-color: #1b1f2a;
  color: #f2f2f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ---------- Home page ---------- */

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  width: 100%;
}

.home-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.home-photo--left {
  justify-self: end;
  max-width: 420px;
}

.home-photo--right {
  justify-self: start;
  max-width: 340px;
}

.home-center {
  text-align: center;
  min-width: 260px;
}

.home-center h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  white-space: nowrap;
}

.pill-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: 9999px;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pill:hover {
  background-color: rgba(242, 242, 242, 0.08);
  border-color: rgba(242, 242, 242, 0.6);
}

.pill:focus-visible {
  outline: 2px solid #f2f2f2;
  outline-offset: 2px;
}

/* ---------- Mobile: stack vertically ---------- */

@media (max-width: 720px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .home-photo--left,
  .home-photo--right {
    justify-self: center;
    max-width: 340px;
  }

  .home-center h1 {
    white-space: normal;
  }
}

/* ---------- Shared inner pages (travel index, trip landing, location pages) ---------- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(242, 242, 242, 0.6);
  margin-bottom: 32px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #f2f2f2;
}

.page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

/* ---------- Card grid (travel index + trip landing) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.trip-card,
.location-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.trip-card img,
.location-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
  transition: opacity 0.15s ease;
}

.trip-card:hover img,
.location-card:hover img {
  opacity: 0.85;
}

.trip-card-label,
.location-card-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.trip-card--soon {
  cursor: default;
}

.trip-card--soon img {
  opacity: 0.375;
}

.trip-card--soon:hover img {
  opacity: 0.375;
}

.trip-card--soon .trip-card-label {
  color: rgba(242, 242, 242, 0.5);
}

.trip-card-soon {
  font-size: 0.8rem;
  color: rgba(242, 242, 242, 0.45);
  text-align: center;
  margin-top: 4px;
}

/* ---------- Location page intro ---------- */

.location-intro {
  max-width: 680px;
  line-height: 1.7;
  color: rgba(242, 242, 242, 0.85);
  margin-bottom: 88px;
}

/* ---------- Gallery + photo block (photo / hairline / caption) ---------- */

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.photo-block img {
  max-height: 640px;
  width: auto;
  max-width: 100%;
  border-radius: 2px;
}

.photo-block .hairline {
  width: 40%;
  border: none;
  border-top: 1px solid rgba(242, 242, 242, 0.25);
  margin: 18px 0 12px;
}

.gallery + .back-link {
  margin-top: 24px;
  padding: 10px 28px;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: 9999px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.gallery + .back-link:hover {
  background-color: rgba(242, 242, 242, 0.08);
  border-color: rgba(242, 242, 242, 0.6);
}

.photo-block .caption {
  font-size: 0.95rem;
  color: rgba(242, 242, 242, 0.75);
  text-align: center;
  max-width: 480px;
}
