.gd-mymaps-block {
  --gd-mymaps-surface: rgba(255, 250, 242, 0.88);
  --gd-mymaps-border: rgba(166, 95, 36, 0.28);
  --gd-mymaps-text: #241b14;
  --gd-mymaps-muted: rgba(36, 27, 20, 0.72);
  --gd-mymaps-link: #a65f24;
  margin: clamp(1.6rem, 4vw, 3rem) 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--gd-mymaps-border);
  border-radius: 28px;
  background: var(--gd-mymaps-surface);
  color: var(--gd-mymaps-text);
  box-shadow: 0 18px 44px rgba(36, 27, 20, 0.12);
  box-sizing: border-box;
}

.gd-mymaps-block * {
  box-sizing: border-box;
}

.gd-mymaps-block__title {
  margin-top: 0;
  margin-bottom: 1rem;
  color: inherit;
}

.gd-mymaps-block__frame {
  width: 100%;
  min-height: var(--gd-mymaps-height, 460px);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(36, 27, 20, 0.08);
  border: 1px solid rgba(36, 27, 20, 0.12);
}

.gd-mymaps-block__frame iframe {
  display: block;
  width: 100%;
  height: var(--gd-mymaps-height, 460px);
  border: 0;
}

.gd-mymaps-block__caption {
  margin-top: 1rem;
  color: var(--gd-mymaps-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.gd-mymaps-block__caption > :first-child {
  margin-top: 0;
}

.gd-mymaps-block__caption > :last-child {
  margin-bottom: 0;
}

.gd-mymaps-block__link {
  margin: 1rem 0 0;
}

.gd-mymaps-block__link a {
  color: var(--gd-mymaps-link);
  font-weight: 800;
  text-decoration: none;
}

.gd-mymaps-block__link a:hover,
.gd-mymaps-block__link a:focus {
  text-decoration: underline;
}

.gd-mymaps-block__notice {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(166, 95, 36, 0.10);
  border: 1px dashed rgba(166, 95, 36, 0.40);
  color: var(--gd-mymaps-text);
}

.gd-mymaps-block__notice p {
  margin-bottom: 0;
}

html.gd-theme-dark .gd-mymaps-block,
body.gd-theme-dark .gd-mymaps-block,
body.trip-theme-dark .gd-mymaps-block,
.gd-theme-dark .gd-mymaps-block {
  --gd-mymaps-surface: linear-gradient(145deg, rgba(31, 22, 15, 0.96), rgba(16, 12, 9, 0.98));
  --gd-mymaps-border: rgba(217, 150, 91, 0.34);
  --gd-mymaps-text: rgba(255, 250, 242, 0.94);
  --gd-mymaps-muted: rgba(255, 250, 242, 0.76);
  --gd-mymaps-link: #f0b36f;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

html.gd-theme-dark .gd-mymaps-block__frame,
body.gd-theme-dark .gd-mymaps-block__frame,
body.trip-theme-dark .gd-mymaps-block__frame,
.gd-theme-dark .gd-mymaps-block__frame {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(217, 150, 91, 0.24);
}

@media (max-width: 720px) {
  .gd-mymaps-block {
    border-radius: 22px;
    padding: 1rem;
  }

  .gd-mymaps-block__frame,
  .gd-mymaps-block__frame iframe {
    min-height: 320px;
    height: min(var(--gd-mymaps-height, 420px), 420px);
  }
}

/* Version 0.1.2: dark-mode override for legacy trip-map-card containers. */
:where(html.gd-theme-dark, html.trip-theme-dark, body.gd-theme-dark, body.trip-theme-dark) .trip-map-card,
:where(.gd-theme-dark, .trip-theme-dark) .trip-map-card,
.editor-styles-wrapper .trip-map-card {
  background: linear-gradient(145deg, rgba(31, 22, 15, 0.96), rgba(16, 12, 9, 0.98)) !important;
  color: rgba(255, 250, 242, 0.94) !important;
  border-color: rgba(217, 150, 91, 0.30) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34) !important;
}

:where(html.gd-theme-dark, html.trip-theme-dark, body.gd-theme-dark, body.trip-theme-dark) .trip-map-card :where(h1,h2,h3,h4,p,li,figcaption),
:where(.gd-theme-dark, .trip-theme-dark) .trip-map-card :where(h1,h2,h3,h4,p,li,figcaption) {
  color: inherit !important;
}

:where(html.gd-theme-dark, html.trip-theme-dark, body.gd-theme-dark, body.trip-theme-dark) .trip-map-card :where(.trip-map, iframe, .trip-map-frame),
:where(.gd-theme-dark, .trip-theme-dark) .trip-map-card :where(.trip-map, iframe, .trip-map-frame) {
  background: rgba(0, 0, 0, 0.34) !important;
  border: 1px solid rgba(217, 150, 91, 0.22) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32) !important;
}

:where(html.gd-theme-dark, html.trip-theme-dark, body.gd-theme-dark, body.trip-theme-dark) .trip-map-card a,
:where(.gd-theme-dark, .trip-theme-dark) .trip-map-card a {
  color: #f0b36f !important;
}
