.map-level-back {
  padding: 7px 11px;
  border: 1px solid #66543e;
  background: #0d0b09df;
  color: #c9baa2;
  font: 600 9px Cinzel, serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s;
}

.map-level-back:hover {
  border-color: #9f483f;
  color: #f0d7c4;
  background: #2a1210e8;
}

.map-stage.world-level .map-image {
  background-position: center;
  filter: saturate(.78) brightness(.72) contrast(1.1);
  transform: scale(1.01);
}

.map-stage.world-level .map-shade {
  background:
    linear-gradient(90deg, #070605aa, transparent 16%, transparent 84%, #070605aa),
    linear-gradient(0deg, #070605b8, transparent 24%, #07060533);
}

.map-stage.world-level .marker b {
  width: 19px;
  height: 19px;
  border-color: #f0dfbd;
  background: #8d2824;
  box-shadow: 0 0 0 6px #0d0b09a8, 0 0 20px #b2383299;
}

.map-stage.world-level .marker span {
  margin-top: 11px;
  padding: 5px 9px;
  font-size: 10px;
}

.entry-actions .gazetteer-link.world-map-link {
  position: relative;
  width: 100%;
  min-height: 66px;
  margin-top: 20px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #8f493f;
  outline: 1px solid #4b2923;
  outline-offset: 4px;
  color: #f1d9bc;
  background:
    linear-gradient(90deg, #1b0d0b 0%, #3b1714 48%, #1b0d0b 100%);
  box-shadow: inset 0 0 28px #0008, 0 9px 25px #0008;
  font-size: 11px;
  letter-spacing: .19em;
  text-align: left;
  transition: .25s ease;
}
.entry-actions .gazetteer-link.world-map-link::before {
  content: "◆";
  color: #9e4b41;
  font-size: 9px;
  margin-right: 13px;
}
.entry-actions .gazetteer-link.world-map-link span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-left: 1px solid #814239;
  color: #d66659;
  font-size: 21px;
}
.entry-actions .gazetteer-link.world-map-link:hover {
  border-color: #c36a5c;
  outline-color: #754039;
  color: #fff0d8;
  background: linear-gradient(90deg, #26100d 0%, #51201b 48%, #26100d 100%);
  box-shadow: inset 0 0 30px #0006, 0 0 22px #8f302344;
}

.location-selector[hidden] { display: none; }

.location-selector {
  grid-column: 2 / 4;
  min-width: 0;
  min-height: 0;
  height: 100vh;
  padding: 22px 40px 16px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  color: #d8c8af;
  background:
    linear-gradient(90deg, #080706f4, #12100de5 18%, #12100de5 82%, #080706f4),
    radial-gradient(circle at 50% 30%, #5a39252b, transparent 46%);
}

.location-selector-header {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  border-bottom: 1px solid #66543e80;
  padding-bottom: 11px;
}

.location-selector-header div { text-align: center; }
.location-selector-header small,
.location-selector-footer small {
  color: #987d62;
  font: 600 9px Cinzel, serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.location-selector-header h2 {
  margin: 4px 0 0;
  color: #e7d8bc;
  font: 500 clamp(24px, 2.3vw, 38px) Cinzel, serif;
  letter-spacing: .08em;
}

.location-selector-world,
.location-selector-map,
.location-open {
  border: 1px solid #66543e;
  background: #0d0b09d9;
  color: #c9baa2;
  padding: 10px 13px;
  font: 600 9px Cinzel, serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.location-selector-world:hover,
.location-selector-map:hover,
.location-open:hover { border-color: #9f483f; color: #f0d7c4; }

.location-selector-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.location-selector-tabs button {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 8px 4px 10px;
  background: none;
  color: #776c5d;
  font: 600 13px Cinzel, serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}
.location-selector-tabs button.active,
.location-selector-tabs button:hover { color: #dec8a5; border-bottom-color: #9f483f; }

.location-selector-frame {
  min-height: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
}
.location-gallery {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px calc(50% - 245px) 6px;
  scrollbar-width: thin;
  scrollbar-color: #76563b #0b0907;
  scroll-snap-type: x mandatory;
}
.location-gallery-arrow {
  width: 36px;
  height: 68px;
  border: 0;
  background: transparent;
  color: #8e7b62;
  font: 36px Crimson Pro, serif;
  cursor: pointer;
}
.location-gallery-arrow:hover { color: #e2cda9; }

.location-card {
  position: relative;
  flex: 0 0 430px;
  height: min(76vh, 770px);
  overflow: hidden;
  border: 1px solid #665b48;
  background: #14110e;
  color: #c8b89d;
  cursor: pointer;
  scroll-snap-align: center;
  filter: brightness(.48) saturate(.65);
  transform: scale(.93);
  transition: transform .32s ease, filter .32s ease, border-color .32s ease, box-shadow .32s ease;
}
.location-card.active {
  border-color: #d2bb91;
  filter: brightness(.96) saturate(.88);
  transform: scale(1);
  box-shadow: 0 0 0 1px #d2bb9144, 0 18px 38px #000b;
}
.location-card-art,
.location-card-shade { position: absolute; inset: 0; }
.location-card-art {
  background-position: center;
  background-size: cover;
  transition: transform .5s ease;
}
.location-card:hover .location-card-art { transform: scale(1.035); }
.location-card-shade { background: linear-gradient(0deg, #080706f5 0%, #0807068a 25%, transparent 63%); }
.location-card small,
.location-card strong { position: absolute; z-index: 2; left: 17px; right: 17px; text-align: center; }
.location-card small { bottom: 50px; color: #9a876d; font: 500 8px Cinzel, serif; letter-spacing: .12em; text-transform: uppercase; }
.location-card strong { bottom: 18px; color: #e6d4b7; font: 500 18px Cinzel, serif; letter-spacing: .04em; }

.location-selector-footer {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid #66543e80;
  padding-top: 10px;
}
.location-selector-footer strong { display: block; margin-top: 3px; color: #ead9ba; font: 500 18px Cinzel, serif; }
.location-selector-footer p { max-width: 740px; margin: 4px 0 0; color: #9d907d; font: italic 15px Crimson Pro, serif; }
.location-open { min-width: 170px; border-color: #8f493f; background: linear-gradient(90deg, #321411, #1b0f0d); color: #efd5bf; }

@media (max-width: 1050px) {
  .location-selector { padding: 18px 24px 14px; }
  .location-selector-tabs { gap: 14px; }
  .location-card { flex-basis: 340px; height: min(71vh, 680px); }
}

@media (max-width: 760px) {
  .map-level-back {
    max-width: 110px;
    padding: 6px 8px;
  }
  .location-selector { grid-column: 1; padding: 18px 12px; height: auto; min-height: 100vh; }
  .location-selector-header { grid-template-columns: 96px 1fr 96px; }
  .location-selector-tabs { overflow-x: auto; justify-content: flex-start; }
  .location-card { flex-basis: 175px; height: 410px; }
  .location-selector-footer { grid-template-columns: 1fr; }
}
