.gd-google-map-card {
  --gd-gmap-bg: #fff8ed;
  --gd-gmap-bg-2: #f4eadc;
  --gd-gmap-text: #2a211b;
  --gd-gmap-muted: rgba(42, 33, 27, .72);
  --gd-gmap-border: rgba(166, 95, 36, .28);
  --gd-gmap-link: #a65f24;
  box-sizing: border-box;
  margin: 2rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--gd-gmap-border);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--gd-gmap-bg), var(--gd-gmap-bg-2));
  color: var(--gd-gmap-text);
  box-shadow: 0 18px 50px rgba(36, 27, 20, .10);
}

.gd-google-map-card *,
.gd-google-map-card *::before,
.gd-google-map-card *::after { box-sizing: border-box; }

.gd-google-map-title,
.gd-google-map-card h2,
.gd-google-map-card h3 {
  margin-top: 0;
  color: var(--gd-gmap-text);
}

.gd-google-map-description {
  color: var(--gd-gmap-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  margin: 0 0 1.2rem;
}

.gd-google-map-description p { margin: 0 0 .75rem; }
.gd-google-map-description p:last-child { margin-bottom: 0; }

.gd-google-map-frame {
  width: 100%;
  min-height: var(--gd-gmap-height, 420px) !important;
  height: var(--gd-gmap-height, 420px) !important;
  max-height: none !important;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--gd-gmap-border);
  background: rgba(0,0,0,.08);
}

.gd-google-map-frame iframe {
  display: block;
  width: 100%;
  height: var(--gd-gmap-height, 420px) !important;
  min-height: var(--gd-gmap-height, 420px) !important;
  max-height: none !important;
  border: 0;
}

.gd-google-map-placeholder,
.gd-google-map-editor-preview {
  border: 1px dashed var(--gd-gmap-border);
  border-radius: 18px;
  padding: 1.25rem;
  background: rgba(255,255,255,.35);
  color: var(--gd-gmap-muted);
}

.gd-google-map-note {
  margin: .85rem 0 0;
  font-size: .92rem;
  color: var(--gd-gmap-muted);
}

.gd-google-map-link-wrap { margin: 1rem 0 0; }
.gd-google-map-link {
  color: var(--gd-gmap-link);
  font-weight: 800;
  text-decoration: none;
}
.gd-google-map-link:hover { text-decoration: underline; }

.gd-google-map-editor-label {
  display: inline-block;
  margin-bottom: .65rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(166,95,36,.14);
  color: var(--gd-gmap-link);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.gd-google-map-muted,
.gd-google-map-status { color: var(--gd-gmap-muted); }
.gd-google-map-status { font-weight: 700; }
.gd-google-map-status-empty { opacity: .75; }

.gd-google-map-theme-dark,
html.gd-theme-dark .gd-google-map-theme-auto,
body.gd-theme-dark .gd-google-map-theme-auto,
html[data-theme="dark"] .gd-google-map-theme-auto,
body[data-theme="dark"] .gd-google-map-theme-auto {
  --gd-gmap-bg: #17100c;
  --gd-gmap-bg-2: #241912;
  --gd-gmap-text: #fff7ec;
  --gd-gmap-muted: rgba(255, 247, 236, .82);
  --gd-gmap-border: rgba(222, 167, 100, .34);
  --gd-gmap-link: #f0bd74;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .42);
}

.gd-google-map-theme-dark .gd-google-map-placeholder,
.gd-google-map-theme-dark .gd-google-map-editor-preview,
html.gd-theme-dark .gd-google-map-theme-auto .gd-google-map-placeholder,
html.gd-theme-dark .gd-google-map-theme-auto .gd-google-map-editor-preview,
body.gd-theme-dark .gd-google-map-theme-auto .gd-google-map-placeholder,
body.gd-theme-dark .gd-google-map-theme-auto .gd-google-map-editor-preview,
html[data-theme="dark"] .gd-google-map-theme-auto .gd-google-map-placeholder,
html[data-theme="dark"] .gd-google-map-theme-auto .gd-google-map-editor-preview,
body[data-theme="dark"] .gd-google-map-theme-auto .gd-google-map-placeholder,
body[data-theme="dark"] .gd-google-map-theme-auto .gd-google-map-editor-preview {
  background: rgba(255,255,255,.045);
}

@media (max-width: 700px) {
  .gd-google-map-card {
    border-radius: 20px;
    padding: 1rem;
  }
  .gd-google-map-frame {
    border-radius: 16px;
    height: var(--gd-gmap-height, 420px) !important;
    min-height: var(--gd-gmap-height, 420px) !important;
  }
}


/* Version 0.1.3: isolate this block from the legacy trip-map-card rules in the theme. */
.gd-google-maps-embed-card.gd-google-map-card {
  width: 100%;
}

.gd-google-maps-embed-card .gd-google-map-frame,
.japan-trip-page .gd-google-maps-embed-card .gd-google-map-frame {
  height: var(--gd-gmap-height, 420px) !important;
  min-height: var(--gd-gmap-height, 420px) !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}

.gd-google-maps-embed-card .gd-google-map-frame iframe,
.japan-trip-page .gd-google-maps-embed-card .gd-google-map-frame iframe,
.japan-trip-page .gd-google-maps-embed-card iframe {
  display: block !important;
  width: 100% !important;
  height: var(--gd-gmap-height, 420px) !important;
  min-height: var(--gd-gmap-height, 420px) !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}
