/* Outfit — match main site type (SIL OFL 1.1). */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../../../../assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../../../../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #e5e7eb;
  background: #020617;
}

.wpglobe-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.wpglobe-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  padding: 0.85rem 1.25rem;
  pointer-events: none;
}

.wpglobe-loading[hidden] {
  display: none !important;
}

.wpglobe-loading__text {
  margin: 0;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.wpglobe-globe {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wpglobe-globe .leaflet-container,
.wpglobe-globe.leaflet-container {
  width: 100%;
  height: 100%;
  background: #0f172a;
}

.wpglobe-globe .leaflet-control-container {
  z-index: 2;
}

.wpglobe-poi-marker {
  width: 18px !important;
  height: 18px !important;
  margin-left: -9px !important;
  margin-top: -9px !important;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fef08a;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.8);
  font-size: 0.72rem;
  line-height: 1;
}

.wpglobe-poi-popup__type {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wpglobe-poi-popup__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.wpglobe-poi-popup__link {
  color: #0369a1;
  font-weight: 600;
  text-decoration: none;
}

.wpglobe-poi-popup__link:hover {
  text-decoration: underline;
}

.wpglobe-glass {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
}

.wpglobe-top-actions {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 31;
}

.wpglobe-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.85rem;
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.wpglobe-home-link:hover {
  background: rgba(30, 41, 59, 0.72);
}

.wpglobe-tap-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(244, 114, 182, 0.16), transparent 50%),
    rgba(2, 6, 23, 0.72);
  cursor: pointer;
}

.wpglobe-tap-overlay--error {
  cursor: default;
}

.wpglobe-tap-card {
  max-width: min(520px, calc(100vw - 2rem));
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.wpglobe-tap-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.wpglobe-tap-sub {
  margin: 0;
  color: #cbd5f5;
  font-size: 0.95rem;
}

.wpglobe-panel {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: min(380px, calc(100vw - 2.5rem));
  max-height: min(72vh, 640px);
  z-index: 30;
  overflow: hidden;
  transition: transform 260ms ease, opacity 260ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .wpglobe-panel {
    transition: none;
  }
}

.wpglobe-panel.is-collapsed {
  transform: translateX(calc(-100% - 2rem));
  opacity: 0.35;
}

.wpglobe-panel__close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 10px;
}

.wpglobe-panel__close:hover {
  background: rgba(148, 163, 184, 0.18);
}

.wpglobe-panel__inner {
  padding: 1.1rem 1.1rem 1.25rem;
  overflow: auto;
  max-height: min(72vh, 640px);
}

.wpglobe-panel__eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #93c5fd;
}

.wpglobe-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.wpglobe-panel__meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.wpglobe-panel__thumb img {
  width: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.wpglobe-panel__excerpt {
  margin: 0.85rem 0;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.wpglobe-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.25), rgba(244, 114, 182, 0.25));
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.wpglobe-panel__link:hover {
  filter: brightness(1.06);
}

.wpglobe-bottom {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 30;
  width: min(960px, calc(100vw - 2.5rem));
  padding: 0.85rem 1rem 1rem;
}

.wpglobe-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.wpglobe-btn {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(2, 6, 23, 0.35);
  color: #e5e7eb;
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.wpglobe-btn:hover {
  background: rgba(15, 23, 42, 0.55);
}

.wpglobe-btn--primary {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.35), rgba(244, 114, 182, 0.35));
}

.wpglobe-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wpglobe-post-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wpglobe-music-widget {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 32;
  width: min(340px, calc(100vw - 1.5rem));
  border-radius: 14px;
  overflow: hidden;
}

.wpglobe-music-widget.is-collapsed .wpglobe-music-widget__body {
  display: none;
}

.wpglobe-music-widget__toggle {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 0.55rem 0.7rem;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.28), rgba(244, 114, 182, 0.28));
}

.wpglobe-music-widget__body {
  padding: 0.55rem 0.65rem 0.65rem;
}

.wpglobe-music__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #cbd5f5;
  font-weight: 650;
}

.wpglobe-music__select {
  margin-bottom: 0.35rem;
}

.wpglobe-music__audio {
  width: 100%;
  height: 30px;
}

.wpglobe-music__license {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #93c5fd;
  text-decoration: none;
}

.wpglobe-music__license:hover {
  text-decoration: underline;
}

.wpglobe-music-attribution {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 31;
  max-width: min(620px, calc(100vw - 360px));
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
  font-size: 0.69rem;
  color: #cbd5f5;
  line-height: 1.3;
}

.wpglobe-music-attribution a {
  color: #93c5fd;
}

.wpglobe-timeline {
  display: grid;
  gap: 0.35rem;
  padding: 0.1rem 0 0.2rem;
}

.wpglobe-timeline[hidden] {
  display: none !important;
}

.wpglobe-timeline__label,
.wpglobe-timeline__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #cbd5f5;
  font-size: 0.78rem;
}

.wpglobe-timeline__label {
  font-weight: 650;
}

.wpglobe-timeline__range {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.wpglobe-timeline__meta {
  color: #94a3b8;
}

.wpglobe-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.wpglobe-post-picker {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(2, 6, 23, 0.55);
  color: #f1f5f9;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 2rem;
}

.wpglobe-post-picker:hover {
  border-color: rgba(56, 189, 248, 0.55);
}

.wpglobe-post-picker:focus {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
}

.wpglobe-view-mode {
  font-weight: 600;
}

.wpglobe-filter-select {
  font-weight: 600;
}

.wpglobe-post-nav__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #cbd5f5;
}

.wpglobe-autoplay-label {
  flex-shrink: 0;
  text-align: right;
  color: #94a3b8;
}

@media (max-width: 780px) {
  .wpglobe-top-actions {
    top: 0.75rem;
    right: 0.75rem;
  }

  .wpglobe-home-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  .wpglobe-panel {
    top: auto;
    bottom: 7.5rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: 42vh;
    transform: translateY(0);
  }

  .wpglobe-panel.is-collapsed {
    transform: translateY(calc(100% + 4rem));
    opacity: 0.2;
  }

  .wpglobe-bottom {
    bottom: 0.75rem;
    width: calc(100vw - 1.25rem);
  }

  .wpglobe-music-widget {
    right: 0.625rem;
    bottom: 0.625rem;
    width: min(300px, calc(100vw - 1.25rem));
  }

  .wpglobe-music-attribution {
    left: 0.625rem;
    right: 0.625rem;
    bottom: 5.35rem;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .wpglobe-filter-row {
    grid-template-columns: 1fr;
  }
}

/* Embedded on /places/ (iframe) */
html:has(body.wpglobe-fs--embed),
body.wpglobe-fs--embed {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body.wpglobe-fs--embed .wpglobe-music-widget,
body.wpglobe-fs--embed .wpglobe-music-attribution {
  display: none !important;
}

body.wpglobe-fs--embed .wpglobe-bottom {
  max-width: min(96vw, 52rem);
}

body.wpglobe-fs--embed .wpglobe-panel {
  max-height: min(52vh, 28rem);
}
