:root {
  --bg-dark: #2b2d27;
  --bg-olive: #3e4136;
  --btn: #3a4034;
  --gold: #c5a04d;
  --text: #ffffff;
  --text-dark: #1a1a1a;
  --muted: rgba(255, 255, 255, 0.72);
  --map-bg: #2b2d27;
  --section-pad: clamp(2.5rem, 6vw, 4rem);
  --page-max: 480px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-dark);
  background: #111;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
a {
  font: inherit;
}

main {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--text);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 18, 0.15) 0%, rgba(20, 22, 18, 0.55) 45%, rgba(20, 22, 18, 0.82) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.35rem 3rem;
  width: 100%;
  animation: rise 0.9s ease both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 17rem;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--btn);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  border: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: #4a5244;
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: var(--section-pad) 1.35rem;
}

.section--light {
  background: #fff;
  color: var(--text-dark);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text);
}

.section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 6vw, 2.15rem);
  line-height: 1.15;
  text-align: left;
}

.section__title--center {
  text-align: center;
}

.section__title--light {
  color: #fff;
}

/* Map */
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95;
  background: var(--map-bg);
  overflow: hidden;
  z-index: 0;
}

.map .leaflet-container {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  font-family: var(--font-sans);
}

.map .leaflet-control-attribution {
  display: none;
}

.map .leaflet-bar a {
  color: #2b2d27;
}

.map-pin {
  background: transparent;
  border: 0;
}

.map-pin span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c5a04d;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Trips */
.trips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.trip-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #111;
  color: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  min-height: 17.5rem;
  transition: transform 0.3s ease;
}

.trip-card:hover {
  transform: translateY(-3px);
}

.trip-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trip-card:hover img {
  transform: scale(1.05);
}

.trip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
}

.trip-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.9rem 0.75rem 1rem;
}

.trip-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
}

.trip-card p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.feature {
  padding: 0 0.65rem;
  text-align: left;
}

.feature:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.feature__icon {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.feature p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  font-weight: 300;
  color: var(--muted);
}

/* Home */
.section--home {
  padding-top: 0.5rem;
}

.home-grid {
  display: grid;
  gap: 1.5rem;
}

.home-grid__text p {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 300;
  color: var(--muted);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
}

.checklist li::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.4px solid var(--gold);
  background:
    no-repeat center / 0.55rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23c5a04d' d='M4.7 9.2 1.8 6.3l1-1 1.9 1.9 4-4.1 1 1z'/%3E%3C/svg%3E");
}

.home-grid__photos {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  width: 100%;
  transition: transform 0.3s ease;
}

.home-grid__photos:hover {
  transform: translateY(-2px);
}

.home-grid__photos:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.home-grid__main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-grid__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.home-grid__row img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

.home-grid__hint {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  z-index: 1;
  padding: 0.4rem 0.7rem;
  background: rgba(20, 22, 18, 0.72);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.home-grid__photos::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact__item {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.85rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact__item:hover {
  opacity: 0.85;
}

.contact__item:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 0;
}

.contact__item:last-child {
  padding-right: 0;
}

.contact__item svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact__label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
}

.contact__value {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  word-break: break-word;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  animation: fade 0.25s ease;
}

.modal[hidden] {
  display: none;
}

.modal__panel {
  position: relative;
  width: min(100%, var(--page-max));
  max-height: min(92svh, 820px);
  overflow: hidden;
  background: #12140f;
  color: #fff;
  padding: 1.35rem 1.2rem 1.1rem;
  animation: rise 0.35s ease;
  display: flex;
  flex-direction: column;
}

.modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal__title {
  margin: 0.4rem 2rem 1.1rem 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.85rem;
  flex-shrink: 0;
}

.modal__slider {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  touch-action: pan-y;
}

.modal__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
  pointer-events: none;
}

.place {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding-right: 0.1rem;
  overflow: auto;
  pointer-events: auto;
}

.place img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.85rem;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.place h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.place p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  font-weight: 300;
  color: var(--muted);
}

.modal__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.modal__nav--prev {
  left: 0;
}

.modal__nav--next {
  right: 0;
}

.modal__nav:active {
  background: rgba(255, 255, 255, 0.04);
}

.modal__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.35rem 0 0.15rem;
  flex-shrink: 0;
  pointer-events: none;
}

.modal__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal__dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Desktop: keep composition, widen slightly */
@media (min-width: 768px) {
  :root {
    --page-max: 720px;
  }

  .hero__content {
    padding: 3.5rem 2.5rem 4rem;
  }

  .section {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .home-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
    gap: 1.75rem;
  }

  .trip-card {
    min-height: 22rem;
  }

  .trip-card h3 {
    font-size: 1.25rem;
  }

  .trip-card p {
    font-size: 0.78rem;
  }
}

@media (min-width: 1100px) {
  :root {
    --page-max: 860px;
  }

  .features {
    gap: 0.5rem;
  }

  .feature {
    padding: 0 1rem;
  }
}
