body {
      --map-text: #0f172a;
      --map-muted: #64748b;
      --map-border: rgba(15, 23, 42, 0.14);
      --map-yellow: #facc15;
      --map-purple: #6d28d9;
      --map-green: #16a34a;
      --floating-ui-top: 16px;
      --floating-ui-bottom: 18px;
      margin: 0;
      padding: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .seo-content {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    #map {
      width: 100%;
      height: 100vh;
    }

    .top-panel {
      position: absolute;
      top: var(--floating-ui-top);
      left: 50%;
      transform: translateX(-50%);
      z-index: 1000;
      background: rgba(255, 255, 255, 0.88);
      padding: 10px;
      border: 1px solid rgba(15, 23, 42, 0.14);
      border-radius: 18px;
      box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
      width: calc(100% - 40px);
      max-width: 420px;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .app-title {
      display: flex;
      width: 100%;
      padding: 0;
      border: 0;
      background: transparent;
      font: inherit;
      justify-content: center;
      align-items: center;
      gap: 8px;
      text-align: center;
      color: #0f172a;
      cursor: pointer;
      user-select: none;
    }

    .app-title-copy {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      line-height: 1.05;
    }

    .app-title-name {
      font-weight: 900;
      font-size: 16px;
      letter-spacing: 0.3px;
    }

    .app-title-filter-label {
      margin-top: 3px;
      color: #475569;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.02em;
    }

    .app-logo {
      width: 28px;
      height: 28px;
      object-fit: contain;
      filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.25));
    }

    .menu-toggle {
      position: absolute;
      top: var(--floating-ui-top);
      left: 15px;
      z-index: 1004;
      width: 42px;
      height: 42px;
      border: 2px solid #0f172a;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.96);
      color: #0f172a;
      font-size: 21px;
      font-weight: 900;
      cursor: pointer;
      line-height: 1;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .site-menu {
      position: absolute;
      top: calc(var(--floating-ui-top) + 72px);
      left: 15px;
      z-index: 1003;
      width: min(264px, calc(100% - 30px));
      overflow: hidden;
      border: 2px solid #0f172a;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.97);
      color: #0f172a;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .site-menu.hidden {
      display: none;
    }

    .site-menu-header {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 9px 12px 8px;
      border-bottom: 1px solid #e2e8f0;
      background: rgba(248, 250, 252, 0.72);
      color: #334155;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: -0.01em;
    }

    .site-menu-links {
      display: grid;
      gap: 1px;
      padding: 6px;
    }

    .site-menu-link {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 34px;
      padding: 6px 10px;
      border-radius: 10px;
      color: #0f172a;
      text-decoration: none;
      font-size: 13px;
      font-weight: 850;
      line-height: 1.15;
      letter-spacing: -0.01em;
    }

    .site-menu-link:hover {
      background: #f1f5f9;
    }

    .site-menu-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 21px;
      min-width: 21px;
      font-size: 14px;
      line-height: 1;
      text-align: center;
    }

    .site-menu-label {
      display: inline-block;
      min-width: 0;
    }

    .site-menu-separator {
      height: 1px;
      margin: 5px 8px;
      background: #e2e8f0;
    }

    .site-menu-copyright {
      padding: 7px 10px 8px;
      color: #64748b;
      font-size: 11px;
      font-weight: 850;
      text-align: center;
    }

    .language-toggle {
      position: absolute;
      top: var(--floating-ui-top);
      right: 15px;
      z-index: 1002;
      min-height: 40px;
      box-sizing: border-box;
      border: 2px solid #0f172a;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.96);
      color: #0f172a;
      padding: 8px 11px;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      line-height: 1;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    }

    .panel-content {
      margin-top: 8px;
    }

    .top-panel.collapsed {
      width: auto;
      min-width: 190px;
      min-height: 40px;
      box-sizing: border-box;
      border-radius: 999px;
      padding: 8px 16px;
    }

    .top-panel.collapsed .panel-content {
      display: none;
    }

    .search-box,
    .tcg-select {
      width: 100%;
      box-sizing: border-box;
      padding: 9px;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      margin-bottom: 8px;
      background: white;
      color: #0f172a;
    }

    .search-box:focus,
    .tcg-select:focus {
      outline: none;
      border-color: #facc15;
      box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
    }

    .search-wrapper {
      position: relative;
    }

    .search-wrapper .search-box {
      padding-right: 34px;
    }

    .clear-search-button {
      display: none;
      position: absolute;
      right: 8px;
      top: 9px;
      width: 22px;
      height: 22px;
      border: none;
      border-radius: 50%;
      background: #ddd;
      color: #333;
      font-weight: bold;
      cursor: pointer;
      line-height: 22px;
      padding: 0;
    }

    .clear-search-button.visible {
      display: block;
    }

    .filters {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
    }

    .filter-button {
      flex: 1;
      border: 1px solid #e2e8f0;
      padding: 8px;
      border-radius: 10px;
      background: #f8fafc;
      color: #0f172a;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
    }

    .filter-button:hover {
      transform: translateY(-1px);
    }

    .filter-button.active {
      background: #0f172a;
      color: #facc15;
      border-color: #0f172a;
    }

    .utility-row {
      display: flex;
      gap: 6px;
      margin-top: 6px;
    }

    .eshop-button,
    .location-button,
    .submit-button {
      width: 100%;
      border: none;
      padding: 10px;
      border-radius: 10px;
      color: white;
      font-weight: bold;
      cursor: pointer;
    }

    .eshop-button {
      background: #6d28d9;
    }

    .eshop-button.active {
      background: #4c1d95;
      box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.45);
    }

    .location-button {
      background: #4b5563;
    }

    .submit-button {
      background: #16a34a;
      margin-top: 6px;
      box-shadow: 0 3px 10px rgba(22, 163, 74, 0.22);
    }


    .floating-location-button {
      position: absolute;
      right: 15px;
      bottom: var(--floating-ui-bottom);
      z-index: 1001;
      width: 56px;
      height: 56px;
      border: 2px solid #0f172a;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
      font-size: 24px;
      cursor: pointer;
    }

    .leaflet-control-zoom {
      margin-bottom: 86px !important;
    }

    .leaflet-control-attribution {
      margin-bottom: 0 !important;
    }

    .legend {
      position: absolute;
      bottom: var(--floating-ui-bottom);
      left: 15px;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.96);
      padding: 10px 12px;
      border: 2px solid #0f172a;
      border-radius: 12px;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
      color: #0f172a;
      font-size: 14px;
      cursor: pointer;
      user-select: none;
    }

    .legend-header {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0;
      border: 0;
      background: transparent;
      font: inherit;
      font-weight: 800;
      color: #0f172a;
      cursor: pointer;
    }

    .legend-toggle {
      color: #64748b;
      font-size: 12px;
      font-weight: 900;
    }

    .legend-content {
      margin-top: 8px;
      line-height: 1.45;
    }

    .legend.collapsed {
      border-radius: 12px;
      padding: 8px 12px;
    }

    .legend.collapsed .legend-content {
      display: none;
    }

    .popup-title {
      color: #0f172a;
      font-size: 17px;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .popup-meta {
      color: #555;
      margin-bottom: 10px;
    }

    .popup-location-details {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-left: 4px solid #3b82f6;
      border-radius: 10px;
      padding: 8px 10px;
      margin: 0 0 10px;
      color: #0f172a;
      font-size: 13px;
      line-height: 1.35;
    }

    .popup-location-title {
      display: block;
      color: #475569;
      font-size: 11px;
      font-weight: 900;
      margin-bottom: 4px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .popup-event {
      background: #fef3c7;
      border: 1px solid #facc15;
      border-radius: 8px;
      padding: 8px;
      margin-bottom: 10px;
      font-size: 14px;
    }

    .popup-recurring-event {
      background: #f5f3ff;
      border: 1px solid #c4b5fd;
      border-radius: 8px;
      padding: 8px;
      margin-bottom: 10px;
      font-size: 14px;
      color: #4c1d95;
      font-weight: 700;
    }

    .popup-tournaments {
      color: #15803d;
      font-weight: bold;
      margin-bottom: 10px;
    }

    .eshop-list {
      margin-top: 8px;
      max-height: min(52vh, 520px);
      overflow-y: auto;
      padding-right: 6px;
      scrollbar-gutter: stable;
      overscroll-behavior: contain;
    }

    .eshop-item {
      border-top: 1px solid #ddd;
      padding-top: 8px;
      margin-top: 8px;
    }

    .eshop-item:first-child {
      border-top: 0;
      padding-top: 0;
      margin-top: 0;
    }

    .eshop-name {
      color: #0f172a;
      font-weight: 800;
      margin-bottom: 7px;
    }

    .eshop-item .popup-button {
      margin-top: 7px;
    }

    .popup-button {
      display: block;
      text-align: center;
      background: #0f172a;
      color: white !important;
      padding: 8px 10px;
      border-radius: 999px;
      text-decoration: none;
      margin-top: 0;
      font-weight: 800;
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    }

    .popup-button.secondary {
      background: #dc2626;
    }

    .popup-button.eshop {
      background: #7c3aed;
    }

    .popup-button.extra {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      color: #334155 !important;
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    }

    .event-date-tooltip {
      background: #111827;
      color: white;
      border: none;
      border-radius: 999px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.22);
      font-size: 12px;
      font-weight: bold;
      padding: 5px 9px;
      white-space: nowrap;
    }

    .event-date-tooltip::before {
      border-top-color: #111827;
    }

    .custom-marker {
      width: 36px;
      height: 36px;
      border: 3px solid rgba(255, 255, 255, 0.96);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 17px;
      line-height: 1;
      box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }

    .tienda-marker {
      background: linear-gradient(145deg, #ef4444, #b91c1c);
    }

    .vending-marker {
      background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    }

    .event-marker {
      background: linear-gradient(145deg, #facc15, #d97706);
      color: #111827;
    }

    .eshop-marker {
      background: linear-gradient(145deg, #a855f7, #6d28d9);
    }

    .user-marker {
      background: linear-gradient(145deg, #64748b, #0f172a);
    }

    .marker-cluster-small,
    .marker-cluster-medium,
    .marker-cluster-large {
      background: rgba(15, 23, 42, 0.18);
    }

    .marker-cluster-small div,
    .marker-cluster-medium div,
    .marker-cluster-large div {
      width: 36px;
      height: 36px;
      margin-left: 5px;
      margin-top: 5px;
      border: 3px solid rgba(255, 255, 255, 0.96);
      border-radius: 50%;
      background: linear-gradient(145deg, #0f172a, #334155);
      color: #facc15;
      font-weight: 900;
      line-height: 30px;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.34);
    }

    .leaflet-popup-content-wrapper {
      border-radius: 18px;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
      border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .leaflet-popup-content {
      margin: 14px;
      min-width: 220px;
    }

    .popup-type-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 8px;
      border-radius: 999px;
      background: #f1f5f9;
      color: #0f172a;
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .popup-logo {
      width: 100%;
      max-height: 92px;
      object-fit: contain;
      margin: 2px 0 10px;
      padding: 10px;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      background: #f8fafc;
    }

    .popup-tcg-section {
      margin: 8px 0 10px;
    }

    .popup-tcg-title {
      color: #475569;
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .popup-tcg-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .popup-tcg-chip {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      color: #0f172a;
      padding: 4px 7px;
      font-size: 11px;
      font-weight: 700;
    }

    .popup-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 7px;
      margin-top: 8px;
    }


    .popup-button.as-button {
      width: 100%;
      border: none;
      font: inherit;
      cursor: pointer;
    }

    .popup-button.info {
      background: #facc15;
      color: #111827 !important;
    }

    .popup-share-row {
      display: flex;
      justify-content: center;
      margin-top: 10px;
    }

    .popup-share-button {
      appearance: none;
      padding: 5px 9px;
      border: 1px solid #cbd5e1;
      border-radius: 9px;
      background: #f8fafc;
      color: #475569;
      cursor: pointer;
      font: inherit;
      font-size: 0.78rem;
      font-weight: 700;
    }

    .popup-share-button:hover {
      background: #f1f5f9;
      color: #1e293b;
    }

    .popup-report-row {
      display: flex;
      justify-content: center;
      margin-top: 6px;
      text-align: center;
    }

    .popup-report-link {
      color: #64748b !important;
      font-size: 0.72rem;
      font-weight: 700;
      line-height: 1.35;
      text-decoration: underline;
      text-decoration-color: #cbd5e1;
      text-underline-offset: 2px;
    }

    .popup-report-link:hover {
      color: #334155 !important;
      text-decoration-color: #64748b;
    }

    .popup-card {
      position: relative;
      perspective: 1000px;
    }

    .popup-card-face {
      backface-visibility: hidden;
      transform-style: preserve-3d;
      transition: transform 0.24s ease, opacity 0.18s ease;
    }

    .popup-card-back {
      display: none;
      transform: rotateY(180deg);
      opacity: 0;
    }

    .popup-card.is-flipped .popup-card-front {
      display: none;
      transform: rotateY(-180deg);
      opacity: 0;
    }

    .popup-card.is-flipped .popup-card-back {
      display: block;
      transform: rotateY(0deg);
      opacity: 1;
      animation: popupFlipIn 0.24s ease;
    }

    @keyframes popupFlipIn {
      from {
        transform: rotateY(180deg);
        opacity: 0;
      }

      to {
        transform: rotateY(0deg);
        opacity: 1;
      }
    }

    .popup-more-info-title {
      color: #0f172a;
      font-size: 16px;
      font-weight: 900;
      margin-bottom: 8px;
    }

    .popup-more-info-body {
      max-height: min(42vh, 340px);
      overflow-y: auto;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 10px;
      color: #0f172a;
      font-size: 13px;
      line-height: 1.45;
      white-space: pre-line;
    }

    .nearby-panel {
      position: absolute;
      left: 50%;
      bottom: calc(var(--floating-ui-bottom) + 78px);
      transform: translateX(-50%);
      z-index: 1001;
      width: calc(100% - 32px);
      max-width: 420px;
      max-height: min(58vh, 520px);
      overflow-y: auto;
      background: rgba(255, 255, 255, 0.96);
      border: 2px solid #0f172a;
      border-radius: 18px;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
      color: #0f172a;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .nearby-panel.hidden {
      display: none;
    }

    .nearby-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px 8px;
      border-bottom: 1px solid #e2e8f0;
    }

    .nearby-title {
      font-size: 16px;
      font-weight: 900;
      margin-bottom: 3px;
    }

    .nearby-subtitle {
      color: #64748b;
      font-size: 12px;
      line-height: 1.35;
    }

    .nearby-close {
      width: 28px;
      height: 28px;
      border: none;
      border-radius: 999px;
      background: #e2e8f0;
      color: #0f172a;
      font-size: 18px;
      font-weight: 900;
      cursor: pointer;
      line-height: 28px;
      padding: 0;
      flex: 0 0 auto;
    }

    .nearby-content {
      padding: 10px 14px 14px;
    }

    .nearby-section + .nearby-section {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #e2e8f0;
    }

    .nearby-section-title {
      color: #475569;
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .nearby-item {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      background: #f8fafc;
      color: #0f172a;
      padding: 9px 10px;
      margin-top: 7px;
      text-align: left;
      cursor: pointer;
      box-sizing: border-box;
    }

    .nearby-item:hover {
      background: #f1f5f9;
    }

    .nearby-icon {
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: #0f172a;
      color: #facc15;
      flex: 0 0 auto;
      font-size: 16px;
    }

    .nearby-main {
      min-width: 0;
      flex: 1;
    }

    .nearby-name {
      font-weight: 900;
      font-size: 13px;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .nearby-meta {
      color: #64748b;
      font-size: 12px;
      line-height: 1.3;
      margin-top: 2px;
    }

    .nearby-distance {
      color: #0f172a;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
      flex: 0 0 auto;
    }

    .nearby-empty {
      color: #64748b;
      font-size: 13px;
      line-height: 1.35;
      padding: 8px 0 2px;
    }

    .menu-toggle,
    .language-toggle,
    .top-panel,
    .legend,
    .nearby-panel,
    .site-menu {
      border-color: var(--map-border);
      box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    .menu-toggle,
    .language-toggle {
      border-width: 1px;
      background: rgba(255, 255, 255, 0.92);
      color: var(--map-text);
    }

    .top-panel {
      border-radius: 22px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.90));
    }

    .app-title-name {
      color: var(--map-text);
      letter-spacing: -0.03em;
    }

    .app-title-filter-label,
    .nearby-subtitle,
    .nearby-meta,
    .nearby-empty {
      color: var(--map-muted);
    }

    .search-box,
    .tcg-select {
      border-color: rgba(15, 23, 42, 0.12);
      border-radius: 13px;
      background: rgba(255, 255, 255, 0.96);
    }

    .filter-button,
    .eshop-button,
    .submit-button,
    .popup-button {
      border-radius: 13px;
      font-weight: 900;
      transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    }

    .filter-button {
      border-color: rgba(15, 23, 42, 0.10);
      background: #ffffff;
      color: var(--map-text);
    }

    .filter-button.active {
      background: #111827;
      color: var(--map-yellow);
      box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
    }

    .eshop-button {
      background: var(--map-purple);
      box-shadow: 0 10px 24px rgba(109, 40, 217, 0.20);
    }

    .submit-button {
      background: var(--map-green);
      box-shadow: 0 10px 24px rgba(22, 163, 74, 0.20);
    }

    .legend,
    .nearby-panel,
    .site-menu {
      overflow: hidden;
      border-width: 1px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    }

    .legend {
      border-radius: 18px;
    }

    .legend-header,
    .nearby-title,
    .nearby-section-title {
      color: var(--map-text);
      letter-spacing: -0.025em;
    }

    .legend-content {
      color: #334155;
    }

    .nearby-panel {
      border-radius: 22px;
    }

    .nearby-item {
      border-radius: 14px;
    }

    .popup-button {
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    }

    .popup-button.secondary {
      background: #ef4444;
    }

    .popup-button.eshop {
      background: var(--map-purple);
    }

    .popup-button.extra {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      color: #334155 !important;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .popup-button.info {
      background: var(--map-yellow);
    }

    .leaflet-popup-content-wrapper {
      border-radius: 22px;
      border-color: rgba(15, 23, 42, 0.10);
    }

    .custom-marker {
      box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }

    .leaflet-popup-content-wrapper {
      overflow: hidden;
      border-radius: 24px;
      border: 1px solid rgba(15, 23, 42, 0.10);
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 24px 54px rgba(15, 23, 42, 0.26);
    }

    .leaflet-popup-content {
      margin: 16px;
      min-width: 236px;
    }

    .leaflet-container a.leaflet-popup-close-button {
      top: 10px;
      right: 10px;
      width: 24px;
      height: 24px;
      border-radius: 999px;
      color: #64748b;
      font-size: 18px;
      line-height: 22px;
      text-align: center;
      background: rgba(248, 250, 252, 0.88);
      box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
    }

    .leaflet-container a.leaflet-popup-close-button:hover {
      color: #0f172a;
      background: #ffffff;
    }

    .popup-card {
      color: #0f172a;
    }

    .popup-title {
      margin-bottom: 7px;
      color: #0f172a;
      font-size: 19px;
      font-weight: 950;
      line-height: 1.1;
      letter-spacing: -0.04em;
    }

    .popup-meta {
      margin-bottom: 12px;
      color: #64748b;
      font-size: 13px;
      font-weight: 750;
      line-height: 1.35;
    }

    .popup-address {
      margin-top: 4px;
      color: #475569;
      font-size: 13px;
      line-height: 1.45;
    }

    .popup-type-badge {
      margin-bottom: 10px;
      padding: 5px 9px;
      border: 1px solid #fde68a;
      border-radius: 999px;
      background: #fffbeb;
      color: #0f172a;
      font-size: 12px;
      font-weight: 900;
    }

    .popup-location-details,
    .popup-more-info-body {
      border: 1px solid #dbeafe;
      border-radius: 18px;
      background: #eff6ff;
      color: #1e3a8a;
      font-weight: 700;
      line-height: 1.45;
    }

    .popup-location-details {
      padding: 10px 12px;
      margin-bottom: 12px;
    }

    .popup-more-info-body {
      padding: 12px;
    }

    .popup-location-title,
    .popup-tcg-title {
      color: #475569;
      font-weight: 900;
      letter-spacing: 0.04em;
    }

    .popup-event {
      margin-bottom: 12px;
      padding: 10px 12px;
      border: 1px solid #fde68a;
      border-radius: 16px;
      background: #fffbeb;
      color: #92400e;
      line-height: 1.42;
    }

    .popup-linked-event {
      display: grid;
      gap: 4px;
      margin-bottom: 12px;
      padding: 10px 12px;
      border: 1px solid #fde68a;
      border-left: 4px solid #facc15;
      border-radius: 16px;
      background: #fffbeb;
      color: #92400e;
      line-height: 1.42;
    }

    .popup-linked-event-title {
      color: #a16207;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.04em;
    }

    .popup-linked-event-name {
      color: #78350f;
      font-size: 14px;
    }

    .popup-linked-event-date {
      font-size: 13px;
    }

    .popup-recurring-event {
      margin-bottom: 12px;
      padding: 10px 12px;
      border-radius: 16px;
      line-height: 1.42;
    }

    .popup-logo {
      margin: 2px 0 12px;
      border-radius: 18px;
    }

    .popup-tcg-chip {
      padding: 5px 8px;
      font-weight: 850;
    }

    .popup-actions {
      gap: 8px;
      margin-top: 10px;
    }

    .popup-button {
      padding: 10px 12px;
      border-radius: 13px;
      font-weight: 900;
      letter-spacing: -0.01em;
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    }

    .popup-button:hover {
      filter: brightness(1.04);
      transform: translateY(-1px);
    }

    .popup-button.secondary {
      background: #ef4444;
    }

    .popup-button.extra {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      color: #334155 !important;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .popup-button.info {
      background: #facc15;
      color: #111827 !important;
    }

    .popup-header {
      --popup-header-accent: 250, 204, 21;
      position: relative;
      margin: -4px -4px 14px;
      padding: 14px 38px 14px 14px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 20px;
      background:
        radial-gradient(circle at top right, rgba(var(--popup-header-accent), 0.20), transparent 8rem),
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.88));
    }

    .popup-type-tienda {
      --popup-header-accent: 239, 68, 68;
    }

    .popup-type-vending {
      --popup-header-accent: 59, 130, 246;
    }

    .popup-type-evento {
      --popup-header-accent: 250, 204, 21;
    }

    .popup-type-eshop {
      --popup-header-accent: 168, 85, 247;
    }

    .popup-header .popup-type-badge {
      box-shadow: 0 8px 18px rgba(var(--popup-header-accent), 0.12);
    }

    .popup-header .popup-logo {
      background: rgba(255, 255, 255, 0.72);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
    }

    .popup-header .popup-title {
      margin-bottom: 5px;
    }

    .popup-tcg-section {
      padding: 11px 0 0;
      margin-top: 12px;
      border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .popup-actions:first-of-type {
      margin-top: 14px;
    }

    .popup-button.website,
    .popup-button.maps {
      background: #111827;
      color: #ffffff !important;
    }

    .popup-button.website {
      box-shadow: 0 12px 26px rgba(17, 24, 39, 0.22);
    }

    .popup-button.maps {
      background: #1e293b;
    }

    .popup-button.instagram {
      background: #ef4444;
      color: #ffffff !important;
      box-shadow: 0 12px 26px rgba(239, 68, 68, 0.22);
    }

    .popup-button.info {
      background: #fffbeb;
      border: 1px solid #fde68a;
      color: #78350f !important;
      box-shadow: none;
    }

    .popup-button.extra {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      color: #334155 !important;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .popup-card-back .popup-button {
      background: #111827;
      color: #ffffff !important;
    }

@media (max-width: 768px) {
      .leaflet-popup-content-wrapper {
        max-width: 88vw;
        border-radius: 18px;
      }

      .leaflet-popup-content {
        width: min(72vw, 280px) !important;
        min-width: 0;
        max-width: calc(88vw - 20px);
        margin: 10px;
        max-height: min(50vh, calc(100vh - var(--popup-top-overlay, 90px) - 90px));
        max-height: min(50dvh, calc(100dvh - var(--popup-top-overlay, 90px) - 90px));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        scrollbar-gutter: auto;
        padding: 0 0 4px;
      }

      .leaflet-container a.leaflet-popup-close-button {
        top: 7px;
        right: 7px;
        width: 22px;
        height: 22px;
        font-size: 17px;
        line-height: 20px;
      }

      .popup-card {
        padding-bottom: 3px;
      }

      .popup-header {
        margin: -2px -2px 9px;
        padding: 10px 32px 10px 10px;
        border-radius: 15px;
      }

      .popup-title {
        margin-bottom: 4px;
        font-size: 16px;
        line-height: 1.15;
        letter-spacing: -0.025em;
      }

      .popup-meta,
      .popup-address {
        font-size: 12px;
        line-height: 1.35;
      }

      .popup-meta {
        margin-bottom: 7px;
      }

      .popup-type-badge {
        margin-bottom: 7px;
        padding: 3px 7px;
        font-size: 10px;
      }

      .popup-logo {
        max-height: 70px;
        margin: 1px 0 8px;
        padding: 7px;
        border-radius: 13px;
      }

      .popup-location-details {
        margin-bottom: 8px;
        padding: 7px 9px;
        border-radius: 13px;
        font-size: 12px;
        line-height: 1.35;
      }

      .popup-location-title,
      .popup-tcg-title {
        margin-bottom: 4px;
        font-size: 10px;
      }

      .popup-event,
      .popup-linked-event,
      .popup-recurring-event {
        margin-bottom: 8px;
        padding: 7px 9px;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.35;
      }

      .popup-tcg-section {
        margin: 8px 0 7px;
        padding-top: 7px;
      }

      .popup-tcg-chips {
        gap: 4px;
      }

      .popup-tcg-chip {
        padding: 3px 6px;
        font-size: 10px;
      }

      .popup-actions,
      .popup-actions:first-of-type {
        gap: 5px;
        margin-top: 7px;
      }

      .popup-button {
        padding: 7px 9px;
        border-radius: 10px;
        font-size: 12px;
        line-height: 1.25;
      }

      .popup-share-row {
        margin-top: 8px;
      }

      .popup-share-button {
        padding: 4px 8px;
        font-size: 0.7rem;
      }

      .popup-report-row {
        margin-top: 5px;
        padding: 0 4px 5px;
      }

      .popup-report-link {
        font-size: 0.66rem;
      }

      .popup-more-info-title {
        margin-bottom: 6px;
        font-size: 14px;
      }

      .popup-more-info-body {
        max-height: none;
        padding: 9px;
        border-radius: 13px;
        font-size: 12px;
        line-height: 1.4;
      }

      .eshop-list {
        max-height: none;
        padding-right: 2px;
      }

      .eshop-item {
        margin-top: 6px;
        padding-top: 6px;
      }

      .eshop-name {
        margin-bottom: 5px;
        font-size: 13px;
      }

}

@media (max-width: 640px) {
      .top-panel {
        top: var(--floating-ui-top);
        width: calc(100% - 24px);
        max-width: none;
        padding: 8px;
        border-radius: 14px;
      }

      .top-panel.collapsed {
        min-width: 170px;
        min-height: 38px;
        padding: 7px 14px;
        border-radius: 999px;
      }

      .app-title-name {
        font-size: 15px;
      }

      .app-title-filter-label {
        font-size: 11px;
      }

      .app-logo {
        width: 24px;
        height: 24px;
      }

      .menu-toggle {
        left: 10px;
        width: 38px;
        height: 38px;
        font-size: 19px;
      }

      .site-menu {
        top: calc(var(--floating-ui-top) + 68px);
        left: 10px;
        width: min(264px, calc(100% - 20px));
        border-radius: 16px;
      }

      .site-menu-header {
        padding: 8px 12px 7px;
        font-size: 12px;
      }

      .site-menu-links {
        gap: 1px;
        padding: 6px;
      }

      .site-menu-link {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 13px;
      }

      .site-menu-icon {
        width: 21px;
        min-width: 21px;
        font-size: 14px;
      }

      .language-toggle {
        top: var(--floating-ui-top);
        right: 10px;
        min-height: 38px;
        padding: 7px 9px;
        font-size: 11px;
      }

      .panel-content {
        margin-top: 6px;
      }

      .search-box,
      .tcg-select {
        padding: 8px;
        font-size: 14px;
        margin-bottom: 6px;
      }

      .filters {
        gap: 5px;
        margin-bottom: 6px;
      }

      .filter-button {
        padding: 7px 5px;
        font-size: 12px;
      }

      .utility-row {
        margin-top: 4px;
      }

      .eshop-button,
      .submit-button {
        padding: 8px;
        font-size: 13px;
      }

      .legend {
        left: 10px;
        bottom: var(--floating-ui-bottom);
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.4;
        max-width: 190px;
      }

      .legend-content {
        margin-top: 6px;
      }

      .nearby-panel {
        left: 10px;
        right: 10px;
        bottom: calc(var(--floating-ui-bottom) + 72px);
        transform: none;
        width: auto;
        max-width: none;
        max-height: 48vh;
        border-radius: 16px;
      }

      .nearby-header {
        padding: 10px 12px 7px;
      }

      .nearby-content {
        padding: 9px 12px 12px;
      }

      .nearby-name {
        font-size: 12px;
      }

      .nearby-meta,
      .nearby-distance {
        font-size: 11px;
      }

}
