/* Destination guide art & magazine layout */

.guide-hero {
  isolation: isolate;
  min-height: clamp(28rem, 72vh, 42rem);
  overflow: hidden;
}

.guide-hero.has-art .page-hero__image {
  display: none;
}

.guide-hero__art {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.guide-hero__sky {
  background:
    radial-gradient(ellipse 50% 42% at 82% 26%, rgba(220, 130, 64, .55), transparent 58%),
    radial-gradient(ellipse 28% 22% at 82% 26%, rgba(255, 210, 140, .35), transparent 50%),
    radial-gradient(ellipse 40% 35% at 12% 18%, rgba(243, 236, 221, .14), transparent 55%),
    linear-gradient(180deg, #081610 0%, #123028 38%, #1c4638 62%, #243820 100%);
  inset: 0;
  position: absolute;
}

.guide-hero__haze {
  animation: guide-haze 18s ease-in-out infinite alternate;
  background: linear-gradient(105deg, transparent 20%, rgba(243, 236, 221, .14) 48%, transparent 72%);
  inset: 0;
  position: absolute;
}

.guide-hero__land {
  bottom: -2%;
  height: 62%;
  left: 0;
  position: absolute;
  width: 100%;
}

.guide-hero__ridge--far { fill: #2a5a4a; opacity: .95; }
.guide-hero__ridge--mid { fill: #1a4034; }
.guide-hero__ridge--near { fill: #0d241c; }
.guide-hero__sun {
  fill: #e89245;
  filter: drop-shadow(0 0 36px rgba(232, 146, 69, .7));
  opacity: .95;
}

.guide-hero__tree path {
  fill: none;
  stroke: #071510;
  stroke-linecap: round;
  stroke-width: 3.5;
}

.guide-hero__grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: .28;
  pointer-events: none;
  position: absolute;
}

.guide-hero .page-hero__content {
  max-width: min(44rem, 100%);
  padding-bottom: 1rem;
}

.guide-hero.has-media::after {
  background:
    linear-gradient(90deg, rgba(10, 25, 19, .88) 0%, rgba(10, 25, 19, .45) 48%, rgba(10, 25, 19, .2) 100%),
    linear-gradient(180deg, rgba(10, 25, 19, .35) 0%, transparent 35%, rgba(10, 25, 19, .55) 100%);
}

.guide-hero.has-art::after {
  background: linear-gradient(180deg, rgba(10, 25, 19, .15) 0%, rgba(10, 25, 19, .55) 100%);
}

.guide-hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.guide-hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 38rem;
}

@keyframes guide-haze {
  from { transform: translateX(-4%); opacity: .7; }
  to { transform: translateX(6%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-hero__haze { animation: none; }
}

/* Gallery ribbon (legacy) */
.guide-gallery {
  background: var(--forest-950);
  margin: 0;
  overflow: hidden;
  padding: .65rem 0;
}

.guide-gallery__track {
  display: grid;
  gap: .65rem;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 22vw);
  overflow-x: auto;
  padding: 0 var(--gutter);
  scroll-snap-type: x mandatory;
}

.guide-gallery__item {
  border-radius: var(--radius-sm);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.guide-gallery__item img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  width: 100%;
}

.guide-gallery__item:hover img {
  transform: scale(1.04);
}

/* Dedicated overview: facts + gallery mosaic */
.guide-overview {
  background:
    linear-gradient(180deg, var(--sand-100), var(--ivory));
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.guide-overview__meta + .guide-overview__gallery {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.guide-facts--overview {
  background: var(--white);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  margin: 0;
}

.guide-facts--overview .guide-fact {
  border-bottom: 1px solid var(--sand-300);
  border-right: 1px solid var(--sand-300);
  min-height: 5.5rem;
  padding: 1.25rem 1.2rem;
}

.guide-facts--overview .guide-fact:nth-child(odd) {
  border-right: 1px solid var(--sand-300);
}

.guide-gallery-mosaic {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.guide-gallery-mosaic__item {
  background: rgba(28, 36, 33, .06);
  border-radius: var(--radius);
  height: 100%;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.guide-gallery-mosaic__item img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .7s ease;
  width: 100%;
}

.guide-gallery-mosaic__item:hover img {
  transform: scale(1.04);
}

.guide-gallery-mosaic[data-count="1"] {
  aspect-ratio: 21 / 9;
}

.guide-gallery-mosaic[data-count="1"] .guide-gallery-mosaic__item {
  grid-column: 1 / -1;
}

.guide-gallery-mosaic[data-count="2"] {
  aspect-ratio: 2 / 1;
}

.guide-gallery-mosaic[data-count="2"] .guide-gallery-mosaic__item {
  grid-column: span 6;
}

.guide-gallery-mosaic[data-count="3"] {
  aspect-ratio: 16 / 9;
  grid-template-areas:
    "lead lead a"
    "lead lead b";
  grid-template-columns: 1.15fr 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.guide-gallery-mosaic[data-count="3"] .is-lead {
  grid-area: lead;
}

.guide-gallery-mosaic[data-count="3"] .guide-gallery-mosaic__item:nth-child(2) {
  grid-area: a;
}

.guide-gallery-mosaic[data-count="3"] .guide-gallery-mosaic__item:nth-child(3) {
  grid-area: b;
}

.guide-gallery-mosaic[data-count="4"] {
  aspect-ratio: 16 / 10;
  grid-template-areas:
    "lead lead a"
    "lead lead b"
    "c c c";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1.1fr 1.1fr 1fr;
}

.guide-gallery-mosaic[data-count="4"] .is-lead { grid-area: lead; }
.guide-gallery-mosaic[data-count="4"] .guide-gallery-mosaic__item:nth-child(2) { grid-area: a; }
.guide-gallery-mosaic[data-count="4"] .guide-gallery-mosaic__item:nth-child(3) { grid-area: b; }
.guide-gallery-mosaic[data-count="4"] .guide-gallery-mosaic__item:nth-child(4) { grid-area: c; }

.guide-gallery-mosaic[data-count="5"] {
  aspect-ratio: 5 / 4;
  grid-template-areas:
    "lead lead a"
    "lead lead b"
    "c c d";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1.15fr 1.15fr 1fr;
}

.guide-gallery-mosaic[data-count="5"] .is-lead { grid-area: lead; }
.guide-gallery-mosaic[data-count="5"] .guide-gallery-mosaic__item:nth-child(2) { grid-area: a; }
.guide-gallery-mosaic[data-count="5"] .guide-gallery-mosaic__item:nth-child(3) { grid-area: b; }
.guide-gallery-mosaic[data-count="5"] .guide-gallery-mosaic__item:nth-child(4) { grid-area: c; }
.guide-gallery-mosaic[data-count="5"] .guide-gallery-mosaic__item:nth-child(5) { grid-area: d; }

.guide-gallery-mosaic[data-count="6"] {
  aspect-ratio: 5 / 4;
  grid-template-areas:
    "lead lead a"
    "lead lead b"
    "c d e";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}

.guide-gallery-mosaic[data-count="6"] .is-lead { grid-area: lead; }
.guide-gallery-mosaic[data-count="6"] .guide-gallery-mosaic__item:nth-child(2) { grid-area: a; }
.guide-gallery-mosaic[data-count="6"] .guide-gallery-mosaic__item:nth-child(3) { grid-area: b; }
.guide-gallery-mosaic[data-count="6"] .guide-gallery-mosaic__item:nth-child(4) { grid-area: c; }
.guide-gallery-mosaic[data-count="6"] .guide-gallery-mosaic__item:nth-child(5) { grid-area: d; }
.guide-gallery-mosaic[data-count="6"] .guide-gallery-mosaic__item:nth-child(6) { grid-area: e; }

@media (max-width: 700px) {
  .guide-gallery-mosaic,
  .guide-gallery-mosaic[data-count] {
    aspect-ratio: auto;
    grid-template-areas: none;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .guide-gallery-mosaic[data-count] .guide-gallery-mosaic__item,
  .guide-gallery-mosaic[data-count] .is-lead {
    aspect-ratio: 16 / 10;
    grid-area: auto;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    height: auto;
    min-height: 12rem;
    position: relative;
  }
}

/* Body atmosphere */
.guide-body-section {
  background:
    radial-gradient(ellipse 50% 30% at 100% 0%, rgba(198, 106, 43, .08), transparent 55%),
    radial-gradient(ellipse 40% 28% at 0% 18%, rgba(47, 102, 86, .08), transparent 50%),
    var(--ivory);
  position: relative;
}

.guide-toc__panel {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.1rem 1.25rem;
  backdrop-filter: blur(8px);
}

.guide-toc {
  border-left: 0;
  padding-left: 0;
}

.guide-editorial {
  background: var(--white);
  border: 1px solid rgba(217, 213, 202, .85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.guide-editorial > .eyebrow:first-child,
.guide-why > .eyebrow {
  display: inline-flex;
  margin-bottom: .85rem;
}

.guide-why > h2:first-of-type {
  margin-top: 0;
}

.guide-why > p:first-of-type {
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 38rem;
}

.guide-why p {
  color: var(--charcoal);
  line-height: 1.7;
}

.guide-why .guide-feature-card {
  background: linear-gradient(135deg, var(--sand-100), var(--white));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin: 1rem 0;
  padding: 1.1rem 1.25rem 1.2rem 1.4rem;
  position: relative;
}

.guide-why .guide-feature-card::before {
  background: linear-gradient(180deg, var(--ochre-500), var(--ochre-700));
  border-radius: 999px;
  content: "";
  height: calc(100% - 1.2rem);
  left: .45rem;
  position: absolute;
  top: .6rem;
  width: 3px;
}

.guide-why .guide-pull {
  color: var(--forest-900);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  margin: 2rem auto;
  max-width: 34rem;
  text-align: center;
}

.guide-why h2,
.guide-why h3 {
  position: relative;
}

.guide-why ul,
.guide-why ol {
  display: grid;
  gap: .85rem;
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
}

.guide-why li {
  background: linear-gradient(135deg, var(--sand-100), var(--white));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
  padding: 1rem 1.15rem 1rem 1.35rem;
  position: relative;
}

.guide-why li::before {
  background: var(--ochre-600);
  border-radius: 999px;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 3px;
}

.guide-why strong {
  color: var(--forest-900);
}

.guide-facts {
  background:
    linear-gradient(145deg, rgba(243, 236, 221, .95), rgba(255, 255, 255, .9)),
    var(--sand-100);
  border: 1px solid var(--sand-300);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
  margin-top: 0;
}

.guide-fact {
  transition: background var(--transition);
}

.guide-fact:hover {
  background: rgba(255, 255, 255, .55);
}

.guide-band {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2.5rem;
}

.attraction-card {
  background: var(--ivory);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.attraction-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.attraction-card img,
.attraction-card__art {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

.attraction-card__art {
  background:
    radial-gradient(circle at 70% 30%, rgba(220, 130, 64, .35), transparent 45%),
    linear-gradient(145deg, #214b3f, #102820 60%, #a94f21);
}

.attraction-card__body {
  padding: 1.25rem 1.35rem 1.45rem;
}

.activity-trigger {
  gap: .75rem 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.activity-trigger__index {
  color: var(--ochre-600);
  font-family: inherit;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  min-width: 2rem;
}

.activity-item {
  background: transparent;
  border-radius: 0;
  padding-inline: 0;
}

.advice-card {
  background: var(--sand-100);
  border-radius: var(--radius);
  border-top: 3px solid var(--ochre-500);
  padding: 1.25rem 1.2rem 1.4rem;
}

.guide-related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.guide-related-card {
  background: var(--forest-950);
  border-radius: var(--radius);
  color: var(--white);
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.guide-related-card:hover {
  box-shadow: var(--shadow);
  color: var(--white);
  transform: translateY(-4px);
}

.guide-related-card img,
.guide-related-card__art {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  transition: transform .7s ease;
  width: 100%;
}

.guide-related-card__art {
  background:
    radial-gradient(circle at 30% 20%, rgba(220, 130, 64, .4), transparent 42%),
    linear-gradient(160deg, #2f6656, #102820 55%, #17382e);
  min-height: 14rem;
}

.guide-related-card:hover img,
.guide-related-card:hover .guide-related-card__art {
  transform: scale(1.06);
}

.guide-related-card__body {
  background: linear-gradient(180deg, transparent, rgba(8, 18, 14, .92));
  bottom: 0;
  display: grid;
  gap: .35rem;
  left: 0;
  padding: 4rem 1.1rem 1.15rem;
  position: absolute;
  right: 0;
}

.guide-related-card__body .meta {
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-related-card__body strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
}

.guide-related-tours {
  margin-top: 2rem;
}

.guide-cta {
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(220, 130, 64, .28), transparent 55%),
    linear-gradient(145deg, #17382e, #102820 60%, #214b3f);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.guide-cta::before {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  content: "";
  inset: 0;
  opacity: .7;
  pointer-events: none;
  position: absolute;
}

.guide-cta > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .guide-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .guide-editorial {
    border-radius: var(--radius);
    padding: 1.25rem;
  }

  .guide-related-grid {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    min-height: 24rem;
  }

  .activity-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}
