/* Guide — Emerald + OpenStreetMap */
.page-guide {
  background: var(--ivory);
}

.page-guide .site-main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.guide-page {
  overflow: hidden;
  color: var(--green);
}

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

.guide-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 300px;
  max-height: 300px;
  padding: 48px 24px;
  text-align: center;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 18% 0, #205a4c, transparent 55%),
    linear-gradient(135deg, #103a32, #0b2b25);
  overflow: hidden;
}

.guide-hero-veil,
.guide-hero-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.guide-hero-frame {
  inset: 16px;
  border: 1px solid rgba(197, 164, 107, .35);
}

.guide-hero-frame::before,
.guide-hero-frame::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border: 2px solid var(--gold);
}

.guide-hero-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.guide-hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.guide-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.guide-kicker {
  margin: 0 0 12px;
  color: #dec494;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
}

.guide-hero h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-family: "Cormorant Garamond", Cairo, serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 600;
}

.guide-lead {
  margin: 0 auto;
  max-width: 36rem;
  line-height: 1.85;
  color: rgba(247, 243, 233, .86);
  font-weight: 600;
  font-size: .95rem;
}

.guide-stream {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.guide-map-head {
  max-width: 640px;
  margin: 0 auto 22px;
  text-align: center;
}

.guide-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #896a38;
  font-size: .72rem;
  font-weight: 800;
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
}

.guide-eyebrow::before,
.guide-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.guide-map-head h2,
.guide-list-panel .guide-map-head h2 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Cormorant Garamond", Cairo, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 600;
}

.guide-text {
  margin: 0;
  color: #4e645b;
  line-height: 1.85;
  font-weight: 600;
  font-size: .94rem;
}

.guide-map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197, 164, 107, .4);
  background: #e8efeB;
  box-shadow: 0 16px 36px rgba(16, 58, 50, .08);
}

.guide-map {
  position: relative;
  height: 460px;
  width: 100%;
  z-index: 1;
  background: #d7e4df;
}

/* Theme OpenStreetMap tiles (keep OSM, soften colors toward Emerald). */
.guide-map .leaflet-tile-pane {
  filter:
    saturate(.78)
    contrast(1.04)
    brightness(1.03)
    sepia(.12)
    hue-rotate(55deg);
}

.guide-map .leaflet-overlay-pane,
.guide-map .leaflet-marker-pane,
.guide-map .leaflet-tooltip-pane,
.guide-map .leaflet-popup-pane,
.guide-map .leaflet-control {
  filter: none;
}

.guide-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(16, 58, 50, .08), transparent 55%),
    linear-gradient(180deg, rgba(247, 243, 233, .08), transparent 30%, rgba(16, 58, 50, .06));
}

.guide-map .leaflet-control-attribution {
  display: none;
}

.guide-map .leaflet-control-zoom {
  border: none !important;
  margin: 12px !important;
  box-shadow: 0 8px 20px rgba(16, 58, 50, .16) !important;
}

.guide-map .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  border: 1px solid rgba(197, 164, 107, .45) !important;
  background: rgba(255, 253, 248, .96) !important;
  color: #103a32 !important;
  font-weight: 700 !important;
}

.guide-map .leaflet-control-zoom a:hover {
  background: #c5a46b !important;
  color: #103a32 !important;
}

.guide-map .leaflet-bar {
  border: none !important;
}

.guide-map-legend {
  position: absolute;
  z-index: 500;
  top: 12px;
  inset-inline-start: 12px;
  max-width: min(220px, calc(100% - 24px));
  padding: 12px 12px 10px;
  background: rgba(255, 253, 248, .94);
  border: 1px solid rgba(197, 164, 107, .4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  color: var(--green);
  backdrop-filter: blur(8px);
}

.guide-map-legend strong {
  display: block;
  margin-bottom: 8px;
  font-size: .78rem;
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
}

.guide-map-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
}

.guide-map-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
}

.guide-legend-pin {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pin, #205A4C);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.guide-legend-pin.hotel {
  background: linear-gradient(135deg, #ddc28f, #c5a46b);
  border-color: #103a32;
}

.guide-legend-pin svg {
  width: 14px;
  height: 14px;
}

.guide-hotel-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 253, 248, .98);
  border-top: 1px solid rgba(197, 164, 107, .28);
  color: var(--green);
}

.guide-hotel-bar-id {
  display: flex;
  gap: 12px;
  align-items: center;
}

.guide-hotel-bar strong {
  display: block;
  font-size: 1.05rem;
}

.guide-hotel-bar span {
  display: block;
  margin-top: 3px;
  color: rgba(16, 58, 50, .7);
  font-weight: 600;
  font-size: .88rem;
}

.guide-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-share-btn {
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 800;
  font-size: .8rem;
  border: 1px solid transparent;
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
}

.guide-share-btn.maps {
  background: #103a32;
  color: #f7f3e9;
}

.guide-share-btn.waze {
  background: #33ccff;
  color: #083048;
}

.guide-share-btn.dir {
  background: rgba(197, 164, 107, .22);
  color: #103a32;
  border-color: rgba(197, 164, 107, .45);
}

.guide-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  justify-content: center;
}

.guide-filter {
  min-height: 40px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(197, 164, 107, .4);
  background: #fffefb;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  font-size: .84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
  transition: background .15s, border-color .15s, transform .15s;
}

.guide-filter:hover {
  transform: translateY(-1px);
  border-color: var(--cat, var(--gold));
}

.guide-filter.is-active {
  background: var(--cat, #c5a46b);
  border-color: var(--cat, #c5a46b);
  color: #fff;
}

.guide-filter.is-active[data-filter="all"] {
  background: #c5a46b;
  color: #103a32;
}

.guide-filter-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cat, #103a32);
  color: #fff;
  font-size: .75rem;
}

.guide-filter-ico.all {
  background: #103a32;
}

.guide-filter-ico svg {
  width: 13px;
  height: 13px;
}

.guide-filter.is-active .guide-filter-ico {
  background: rgba(255, 255, 255, .22);
}

.guide-places {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-place {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  overflow: hidden;
  background: #fffefb;
  border: 1px solid rgba(197, 164, 107, .35);
  color: var(--green);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.guide-place[hidden] {
  display: none !important;
}

.guide-place:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 58, 50, .1);
}

.guide-place-media {
  position: relative;
  min-height: 170px;
  height: 100%;
  background: #d9d2c4;
  overflow: hidden;
}

.guide-place-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-place-media-ph {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cat, #205a4c), #103a32);
}

.guide-place-media-ph svg {
  width: 42px;
  height: 42px;
  opacity: .9;
}

.guide-place-copy {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.guide-place-copy h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--green);
  font-family: "Cormorant Garamond", Cairo, serif;
  font-weight: 600;
}

.guide-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  background: var(--cat, #103a32);
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
}

.guide-cat-ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
}

.guide-cat-ico svg {
  width: 11px;
  height: 11px;
}

.guide-distance {
  display: inline-flex;
  padding: 5px 10px;
  background: rgba(16, 58, 50, .07);
  color: var(--green-2);
  font-size: .78rem;
  font-weight: 800;
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
}

.guide-place-copy p {
  margin: 0;
  color: rgba(16, 58, 50, .75);
  line-height: 1.7;
  font-weight: 600;
  font-size: .92rem;
}

.guide-empty {
  padding: 40px 24px;
  border: 1px dashed rgba(197, 164, 107, .5);
  background: rgba(255, 255, 254, .9);
  text-align: center;
  color: rgba(16, 58, 50, .7);
  font-weight: 700;
}

/* Leaflet markers */
.guide-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.guide-marker {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin, #205a4c);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
  display: grid;
  place-items: center;
}

.guide-marker.is-hotel {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ddc28f, #c5a46b);
  border-color: #103a32;
}

.guide-marker svg {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
}

.guide-marker.is-hotel svg {
  width: 18px;
  height: 18px;
}

.guide-popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
}

.guide-popup strong {
  color: #103a32;
  font-size: .95rem;
}

.guide-popup em {
  font-style: normal;
  font-size: .78rem;
  font-weight: 800;
}

.guide-popup span {
  color: rgba(16, 58, 50, .7);
  font-size: .8rem;
  font-weight: 600;
}

.leaflet-container {
  font: inherit;
  background: #dfe8e4;
}

.leaflet-popup-content-wrapper {
  border-radius: 4px;
  border: 1px solid rgba(197, 164, 107, .35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.guide-page .reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.guide-page .reveal-ready.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .guide-map {
    height: 360px;
  }

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

  .guide-place-media {
    min-height: 160px;
    height: 160px;
  }

  .guide-map-legend {
    max-width: min(180px, 46vw);
    font-size: .72rem;
  }

  .guide-stream {
    width: calc(100% - 28px);
    padding: 36px 0 48px;
  }
}

@media (max-width: 560px) {
  .guide-hero {
    height: 260px;
    max-height: 260px;
  }

  .guide-map {
    height: 300px;
  }

  .guide-map-legend {
    position: static;
    max-width: none;
    border: 0;
    border-bottom: 1px solid rgba(197, 164, 107, .28);
    box-shadow: none;
  }

  .guide-map-legend ul {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-page .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
