.vtm-home {
  --home-cream: #fcf9f0;
  --home-moss: #edf0e3;
  --home-display: Georgia, "Times New Roman", serif;
  background: var(--home-cream);
  color: var(--vtm-forest);
  font-family: var(--vtm-font);
  line-height: 1.5;
}

.vtm-home :focus-visible {
  outline: 2px solid var(--vtm-focus);
  outline-offset: 4px;
}

.vtm-home :is(h1, h2, h3) {
  font-family: var(--home-display);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.vtm-home h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.vtm-home h3 { font-size: clamp(1.35rem, 2.35vw, 1.8rem); }

.vtm-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 46vw, 43rem);
  background: #193f35;
  color: #fff;
}

.vtm-home-hero > img,
.vtm-home__maps-cover > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vtm-home-hero::before,
.vtm-home__maps-cover::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(10 36 28 / .95), rgb(10 36 28 / .76) 42%, rgb(10 36 28 / .12) 85%);
}

.vtm-home-hero__inner { padding-block: var(--vtm-space-16); }
.vtm-home-hero h1 { max-width: 11ch; font-size: clamp(3.2rem, 7.6vw, 6.6rem); }
.vtm-home-hero__inner > p { margin-block: var(--vtm-space-4) var(--vtm-space-6); font-size: clamp(1.06rem, 2.15vw, 1.35rem); }

.vtm-home-hero form {
  display: flex;
  gap: var(--vtm-space-1);
  max-width: 39rem;
  padding: var(--vtm-space-1);
  border-radius: 13px;
  background: var(--home-cream);
}

.vtm-home-hero input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--vtm-forest);
  padding: 0 var(--vtm-space-3);
  font: inherit;
  font-size: 1rem;
}

.vtm-home-hero button,
.vtm-home__trip .vtm-button {
  --vtm-button-bg: #e3b76d;
  --vtm-button-hover: #f0cc8d;
  --vtm-button-text: #102d25;
}

.vtm-home-hero__links { display: flex; flex-wrap: wrap; gap: var(--vtm-space-4); margin-top: var(--vtm-space-4); }
.vtm-home-hero__links a { color: #fff; text-decoration-color: #e3b76d; text-underline-offset: 5px; }
.vtm-home-hero__credit {
  position: absolute;
  right: var(--vtm-space-3);
  bottom: var(--vtm-space-3);
  padding: 2px 8px;
  border-radius: 4px;
  background: #183d32;
  color: white;
  font-size: .75rem;
}

.vtm-home__section { padding-block: clamp(1.7rem, 4vw, 3.5rem); }
.vtm-home__section + .vtm-home__section { padding-top: 0; }
.vtm-home__heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--vtm-space-2); margin-bottom: var(--vtm-space-4); }
.vtm-home__heading a { color: inherit; font-weight: 700; text-underline-offset: 4px; }
.vtm-home__lead { margin-top: var(--vtm-space-2); }

.vtm-home__regions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--vtm-space-2);
  margin-block: var(--vtm-space-4);
}

.vtm-home__regions .vtm-button { justify-content: center; text-align: center; }

.vtm-home__places,
.vtm-home__cards,
.vtm-home__guides { display: grid; gap: var(--vtm-space-3); }
.vtm-home__places,
.vtm-home__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vtm-home__places--three { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-auto-rows: clamp(9.75rem, 14vw, 12.75rem); }
.vtm-home__places--three > :first-child { grid-row: span 2; }
.vtm-home__guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.vtm-home-card { border: 1px solid var(--vtm-line); border-radius: 15px; overflow: hidden; background: #fffdf8; }
.vtm-home-card > a { display: block; position: relative; height: 100%; color: inherit; text-decoration: none; }
.vtm-home-card > a:focus-visible { outline-offset: -4px; }
.vtm-home-card > a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.vtm-home-card__image { overflow: hidden; }
.vtm-home-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vtm-home-card__body { padding: var(--vtm-space-4); overflow-wrap: anywhere; }

.vtm-home-card--destination { min-height: 10rem; background: #294c3f; color: #fff; }
.vtm-home-card--destination .vtm-home-card__image { position: absolute; inset: 0; }
.vtm-home-card--destination > a { display: flex; align-items: end; isolation: isolate; }
.vtm-home-card--destination .vtm-home-card__image { z-index: -2; }
.vtm-home-card--destination > a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 25%, rgb(6 25 18 / .85)); }
.vtm-home-card--destination h3 { font-size: clamp(1.65rem, 3.1vw, 3.25rem); }

.vtm-home-card--itinerary .vtm-home-card__image { aspect-ratio: 16 / 8; }
.vtm-home-card__action { display: inline-block; margin-top: var(--vtm-space-3); text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.vtm-home-card--guide:not(.vtm-home-card--no-image) > a { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; }
.vtm-home-card--guide .vtm-home-card__image { min-height: 8.5rem; }
.vtm-home-card--guide .vtm-home-card__body { align-self: center; }

.vtm-home__directory,
.vtm-home__trip > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--vtm-space-4);
}

.vtm-home__directory { margin-top: var(--vtm-space-4); padding: var(--vtm-space-4); border: 1px solid var(--vtm-line); border-radius: 14px; background: var(--home-moss); }
.vtm-home__more { margin-top: var(--vtm-space-6); text-align: center; }
.vtm-home__more > a { padding-inline: var(--vtm-space-6); }

.vtm-home__maps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; border-radius: 16px; background: var(--home-moss); }
.vtm-home__maps-cover { display: grid; align-content: center; position: relative; isolation: isolate; min-height: 15rem; padding: var(--vtm-space-8); background: #183d32; color: #fff; }
.vtm-home__map-links { display: grid; align-content: center; gap: var(--vtm-space-2); padding: var(--vtm-space-4); }
.vtm-home__map-links a { display: flex; align-items: center; justify-content: space-between; color: inherit; text-decoration: none; padding: var(--vtm-space-2) var(--vtm-space-4); border-radius: 10px; background: #fffdf8; }
.vtm-home__map-links a:hover strong { text-decoration: underline; }
.vtm-home__map-links strong { display: block; font-size: 1.13rem; }
.vtm-home__map-links small { font-size: .9rem; }
.vtm-home__trip { background: var(--vtm-forest-dark); color: #fff; }
.vtm-home__trip > div { padding-block: var(--vtm-space-8); }

@media (max-width: 760px) {
  .vtm-home__regions { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtm-home__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtm-home__places:not(.vtm-home__places--three) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtm-home__guides { grid-template-columns: 1fr; }
}

@media (max-width: 525px) {
  .vtm-home-hero { min-height: 29rem; }
  .vtm-home-hero::before { background: linear-gradient(90deg, rgb(10 36 28 / .95), rgb(10 36 28 / .46)); }
  .vtm-home__places--three,
  .vtm-home__cards,
  .vtm-home__maps { grid-template-columns: 1fr; }
  .vtm-home__places--three > :first-child { grid-row: auto; min-height: 12rem; }
  .vtm-home__maps-cover { min-height: 11rem; }
  .vtm-home__trip a, .vtm-home__more a { width: 100%; justify-content: center; }
}

/* Starter cards share the published layout and remain readable without an image. */
.vtm-home-hero::before {
  background: linear-gradient(90deg, rgb(11 34 27 / .90), rgb(11 34 27 / .66) 43%, rgb(11 34 27 / .12) 78%, transparent);
}
.vtm-home-hero h1 { max-width: 15ch; }
.vtm-home-hero__inner > p { max-width: 48ch; }
.vtm-home-hero__links a {
  display: inline-flex;
  padding: 5px 13px;
  border: 1px solid rgb(255 255 255 / .66);
  border-radius: 99px;
  background: rgb(13 44 34 / .45);
  color: #fff;
  text-decoration: none;
}
.vtm-home-hero__links a:hover { background: #183d32; }

.vtm-home a.vtm-button:not(.vtm-button--primary) {
  padding-inline: var(--vtm-space-2);
  background: #fffdf8;
  color: var(--vtm-forest);
  border-color: #aebeb3;
}
.vtm-home a.vtm-button:not(.vtm-button--primary):hover { background: #edf0e3; }

.vtm-home-card--destination { background: #fffdf8; color: var(--vtm-forest); }
.vtm-home-card--destination > a { display: block; }
.vtm-home-card--destination > a::before { content: none; }
.vtm-home-card--destination .vtm-home-card__image { position: static; aspect-ratio: 16 / 9; }
.vtm-home-card--destination h3 { font-size: clamp(1.45rem, 2.65vw, 2.45rem); }
.vtm-home-card--itinerary { background: #edf0e3; }
.vtm-home-card--guide .vtm-home-card__image { min-height: 11rem; }
.vtm-home-card__label { margin-bottom: 6px; font-size: .85rem; font-weight: 750; color: #345447; }
.vtm-home-card__summary { margin-top: 9px; color: #314e43; font-size: .93rem; line-height: 1.52; }
.vtm-home-card__action { font-size: .9rem; }
.vtm-home__places,
.vtm-home__cards,
.vtm-home__guides { gap: var(--vtm-space-4); }
.vtm-directory-layout .vtm-home__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.vtm-sample-days { margin-block: var(--vtm-space-8); }
.vtm-sample-days details { padding: var(--vtm-space-4); margin-top: var(--vtm-space-2); border: 1px solid var(--vtm-line); border-radius: 10px; background: #fffdf8; }
.vtm-sample-days summary { cursor: pointer; font-weight: 750; }
.vtm-sample-days details > p { margin-top: var(--vtm-space-3); }
.vtm-sample-days dt { margin-top: var(--vtm-space-3); font-weight: 700; }
.vtm-sample-days dd { margin: 0; }

@media (max-width: 525px) {
  .vtm-home-hero::before { background: linear-gradient(90deg, rgb(11 34 27 / .92), rgb(11 34 27 / .58)); }
  .vtm-home__places:not(.vtm-home__places--three),
  .vtm-directory-layout .vtm-home__cards { grid-template-columns: 1fr; }
  .vtm-home-card--guide .vtm-home-card__image { min-height: 8.25rem; }
}
