.mieum-location-map {
  --location-map-ink: #24231f;
  --location-map-muted: #706c64;
  --location-map-paper: #fbfaf7;
  --location-map-soft: #f1eee7;
  --location-map-line: #d7d1c5;
  --location-map-gold: #a68243;
  --location-map-gold-soft: #c9b07b;
  position: relative;
  z-index: 2;
  overflow: visible;
  border: 1px solid var(--location-map-line);
  background: var(--location-map-paper);
  color: var(--location-map-ink);
  box-shadow: 0 18px 46px rgba(34, 31, 25, 0.08);
}

.mieum-location-map__viewport {
  position: relative;
  z-index: 2;
  height: clamp(540px, 56vw, 640px);
  min-height: 540px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(166, 130, 67, 0.08), transparent 38%), #e9e6df;
}

.mieum-location-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  transition: opacity 180ms ease;
}

.mieum-location-map__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(166, 130, 67, 0.1), transparent 42%), #e9e6df;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.mieum-location-map__fallback-picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mieum-location-map__fallback-image {
  position: absolute;
  top: var(--mieum-fallback-image-top, 0%);
  left: var(--mieum-fallback-image-left, 0%);
  display: block;
  width: var(--mieum-fallback-image-width, 100%);
  max-width: none;
  height: auto;
  margin: 0;
}

.mieum-location-map__fallback-card {
  position: absolute;
  top: 61%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 220px;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(133, 102, 48, 0.68);
  border-radius: 4px;
  background: rgba(253, 251, 246, 0.98);
  color: #27251f;
  box-shadow:
    0 12px 30px rgba(29, 27, 23, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.64);
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.mieum-location-map__fallback-card > img {
  display: block;
  width: 78px;
  aspect-ratio: 650 / 549;
  border: 1px solid rgba(83, 78, 68, 0.2);
  border-radius: 2px;
  object-fit: cover;
}

.mieum-location-map__fallback-card > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.mieum-location-map__fallback-card small {
  color: #8a682f;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.mieum-location-map__fallback-card strong {
  overflow: hidden;
  color: #292721;
  font-size: 0.73rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mieum-location-map.has-map-fallback:not(.is-ready)
  .mieum-location-map__canvas {
  opacity: 0;
  pointer-events: none;
}

.mieum-location-map.has-map-fallback.is-ready .mieum-location-map__fallback {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.mieum-location-map__status {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 28px;
  background: rgba(244, 241, 234, 0.94);
  color: #555149;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  transition: opacity 180ms ease;
}

.mieum-location-map.is-ready .mieum-location-map__status {
  opacity: 0;
  pointer-events: none;
}

.mieum-location-map.has-map-fallback .mieum-location-map__status,
.mieum-location-map.is-unavailable .mieum-location-map__status {
  inset: auto 16px 16px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(98, 93, 84, 0.2);
  border-radius: 2px;
  background: rgba(250, 248, 243, 0.92);
  color: #625d54;
  box-shadow: 0 7px 22px rgba(28, 27, 24, 0.12);
  pointer-events: none;
}

.mieum-location-map__summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 26px 20px;
  border-top: 1px solid var(--location-map-line);
  background: var(--location-map-paper);
}

.mieum-location-map__address {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.mieum-location-map__address > span {
  color: var(--location-map-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.mieum-location-map__address > strong {
  color: var(--location-map-ink);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.35;
}

.mieum-location-map__address p {
  margin: 1px 0 0;
  color: #514e47;
  font-size: 0.8rem;
  line-height: 1.65;
}

.mieum-location-map__address small {
  color: #6f6a62;
  font-size: 0.72rem;
}

.mieum-location-map__reset {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid #bdb6aa;
  border-radius: 2px;
  background: #fff;
  color: #34322d;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.mieum-location-map__reset:not(:disabled):hover,
.mieum-location-map__reset:not(:disabled):focus-visible {
  border-color: var(--location-map-gold);
  background: #f7f3e9;
  color: #6e5326;
}

.mieum-location-map__reset:focus-visible {
  outline: 2px solid rgba(166, 130, 67, 0.42);
  outline-offset: 3px;
}

.mieum-location-map__reset:disabled {
  opacity: 0.55;
  cursor: wait;
}

.mieum-location-map__hint {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 26px;
  border-top: 1px solid #e6e1d8;
  background: var(--location-map-soft);
  color: #68635b;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.65;
}

.mieum-location-map__hint span {
  margin-right: 5px;
  color: var(--location-map-gold);
  font-weight: 900;
}

.mieum-location-map__attribution {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 7px 26px 8px;
  border-top: 1px solid #e9e4db;
  background: #ece9e2;
  color: #68635b;
  font-size: 0.65rem;
  line-height: 1.5;
  text-align: right;
}

.mieum-location-map__attribution a {
  color: #555149;
  text-decoration: underline;
  text-decoration-color: #aaa398;
  text-underline-offset: 2px;
}

.mieum-location-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #e9e6df;
  color: var(--location-map-ink);
  font-family: inherit;
}

.mieum-location-map .leaflet-container:focus-visible {
  outline: 3px solid rgba(166, 130, 67, 0.52);
  outline-offset: -3px;
}

.mieum-location-map .leaflet-top.leaflet-right {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.mieum-location-map .leaflet-top.leaflet-right .leaflet-control {
  margin: 0;
}

.mieum-location-map .leaflet-control-zoom.leaflet-bar {
  overflow: hidden;
  border: 1px solid rgba(74, 70, 61, 0.22);
  border-radius: 2px;
  background: rgba(253, 252, 249, 0.96);
  box-shadow: 0 7px 22px rgba(28, 27, 24, 0.13);
}

.mieum-location-map .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  border: 0;
  color: #34322d;
  font:
    700 22px/38px Arial,
    sans-serif;
  background: rgba(253, 252, 249, 0.96);
}

.mieum-location-map .leaflet-control-zoom a + a {
  border-top-color: rgba(74, 70, 61, 0.15);
}

.mieum-location-map .leaflet-control-zoom a:hover,
.mieum-location-map .leaflet-control-zoom a:focus {
  color: #6e5326;
  background: #f7f3e9;
}

.mieum-location-map .leaflet-control-zoom a:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(166, 130, 67, 0.6);
}

.mieum-location-map .leaflet-tile-pane {
  filter: saturate(0.86) contrast(0.98);
}

.mieum-location-map .leaflet-bottom.leaflet-right {
  right: 10px;
  bottom: 8px;
}

.mieum-location-map .leaflet-control-attribution {
  margin: 0;
  padding: 3px 6px;
  border: 1px solid rgba(74, 70, 61, 0.14);
  border-radius: 2px;
  background: rgba(253, 252, 249, 0.9);
  color: #676158;
  font-size: 9px;
  line-height: 1.35;
}

.mieum-location-map .leaflet-control-attribution a {
  color: #555149;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.mieum-plan-marker-host {
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.mieum-plan-marker-host .mieum-plan-marker {
  position: absolute;
  bottom: 11px;
  left: 0;
  transform: translateX(-50%);
}

.mieum-location-map__focus-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(68, 59, 43, 0.2);
  border-radius: 2px;
  background: rgba(252, 250, 245, 0.95);
  color: #3c382f;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(36, 33, 28, 0.13);
}

.mieum-location-map__focus-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--location-map-gold);
  box-shadow: 0 0 0 4px rgba(166, 130, 67, 0.17);
  content: '';
}

.mieum-plan-marker {
  --mieum-plan-image-width: 221.42%;
  --mieum-plan-image-left: -118.03%;
  --mieum-plan-image-top: -74.68%;
  position: relative;
  z-index: 2;
  display: grid;
  width: 220px;
  min-width: 0;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(133, 102, 48, 0.68);
  border-radius: 4px;
  background: rgba(253, 251, 246, 0.98);
  color: #27251f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(29, 27, 23, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.64);
  transform-origin: 50% 100%;
  transition:
    width 210ms ease,
    padding 210ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.mieum-plan-marker::before,
.mieum-plan-marker::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  content: '';
  transform: translateX(-50%);
}

.mieum-plan-marker::before {
  border-width: 11px 9px 0;
  border-color: rgba(133, 102, 48, 0.72) transparent transparent;
}

.mieum-plan-marker::after {
  margin-top: -2px;
  border-width: 9px 7px 0;
  border-color: #fdfbf6 transparent transparent;
}

.mieum-plan-marker:hover,
.mieum-plan-marker:focus-visible,
.mieum-plan-marker.is-expanded {
  z-index: 8;
  border-color: var(--location-map-gold);
  box-shadow:
    0 20px 48px rgba(29, 27, 23, 0.24),
    0 0 0 4px rgba(255, 255, 255, 0.72);
}

.mieum-plan-marker:focus-visible {
  outline: 3px solid rgba(166, 130, 67, 0.44);
  outline-offset: 4px;
}

.mieum-plan-marker__media {
  position: relative;
  width: 78px;
  aspect-ratio: var(--mieum-plan-media-aspect-ratio, 650 / 549);
  overflow: hidden;
  border: 1px solid rgba(83, 78, 68, 0.2);
  border-radius: 2px;
  background: #d8d5ce;
  transition: width 210ms ease;
}

.mieum-plan-marker__media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  content: '';
  pointer-events: none;
}

.mieum-plan-marker__crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mieum-plan-marker__crop img {
  position: absolute;
  top: var(--mieum-plan-image-top);
  left: var(--mieum-plan-image-left);
  width: var(--mieum-plan-image-width) !important;
  max-width: none !important;
  height: auto !important;
  margin: 0;
  user-select: none;
  pointer-events: none;
}

.mieum-plan-marker__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mieum-plan-marker__eyebrow {
  color: #8a682f;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.mieum-plan-marker__title {
  overflow: hidden;
  color: #292721;
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mieum-plan-marker__hint {
  color: #777168;
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.45;
}

.mieum-plan-marker__hint--expanded {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .mieum-plan-marker:hover {
    width: 360px;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }

  .mieum-plan-marker:hover .mieum-plan-marker__media {
    width: 100%;
  }

  .mieum-plan-marker:hover .mieum-plan-marker__title {
    white-space: normal;
  }

  .mieum-plan-marker:hover .mieum-plan-marker__hint--compact {
    display: none;
  }

  .mieum-plan-marker:hover .mieum-plan-marker__hint--expanded {
    display: block;
  }
}

.mieum-plan-marker.is-expanded,
.mieum-plan-marker:focus-visible {
  width: 360px;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 10px;
}

.mieum-plan-marker.is-expanded .mieum-plan-marker__media,
.mieum-plan-marker:focus-visible .mieum-plan-marker__media {
  width: 100%;
}

.mieum-plan-marker.is-expanded .mieum-plan-marker__title,
.mieum-plan-marker:focus-visible .mieum-plan-marker__title {
  white-space: normal;
}

.mieum-plan-marker.is-expanded .mieum-plan-marker__hint--compact,
.mieum-plan-marker:focus-visible .mieum-plan-marker__hint--compact {
  display: none;
}

.mieum-plan-marker.is-expanded .mieum-plan-marker__hint--expanded,
.mieum-plan-marker:focus-visible .mieum-plan-marker__hint--expanded {
  display: block;
}

@media (max-width: 767px) {
  .mieum-location-map__viewport {
    height: 520px;
    min-height: 520px;
  }

  .mieum-location-map__summary {
    align-items: flex-start;
    gap: 16px;
    padding: 19px 18px 17px;
  }

  .mieum-location-map__reset {
    min-height: 44px;
    padding: 0 11px;
    font-size: 0.69rem;
  }

  .mieum-location-map__hint {
    padding: 11px 18px;
  }

  .mieum-location-map__attribution {
    padding: 7px 18px 8px;
    text-align: left;
  }

  .mieum-location-map .leaflet-top.leaflet-right {
    top: 50%;
    right: 10px;
  }

  .mieum-location-map__fallback-image {
    top: var(
      --mieum-fallback-image-mobile-top,
      var(--mieum-fallback-image-top, 0%)
    );
    left: var(
      --mieum-fallback-image-mobile-left,
      var(--mieum-fallback-image-left, 0%)
    );
    width: var(
      --mieum-fallback-image-mobile-width,
      var(--mieum-fallback-image-width, 100%)
    );
  }

  .mieum-location-map__fallback-card {
    top: 60%;
    width: 184px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
  }

  .mieum-location-map__fallback-card > img {
    width: 62px;
  }

  .mieum-location-map__fallback-card strong {
    font-size: 0.67rem;
  }

  .mieum-plan-marker {
    width: 184px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
  }

  .mieum-plan-marker__media {
    width: 62px;
  }

  .mieum-plan-marker__title {
    font-size: 0.67rem;
  }

  .mieum-plan-marker.is-expanded,
  .mieum-plan-marker:focus-visible {
    width: min(290px, calc(100vw - 42px));
    padding: 8px;
  }

  .mieum-plan-marker.is-expanded .mieum-plan-marker__media,
  .mieum-plan-marker:focus-visible .mieum-plan-marker__media {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .mieum-location-map__summary {
    display: grid;
  }

  .mieum-location-map__reset {
    width: 100%;
  }

  .mieum-location-map__address p br {
    display: none;
  }
}

@media (max-width: 380px) {
  .mieum-location-map__viewport {
    height: 500px;
    min-height: 500px;
  }

  .mieum-plan-marker.is-expanded,
  .mieum-plan-marker:focus-visible {
    width: min(260px, calc(100vw - 34px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mieum-location-map__status,
  .mieum-location-map__reset,
  .mieum-plan-marker,
  .mieum-plan-marker__media {
    transition: none;
  }
}
