.gta-map {
  color-scheme: dark;
  font: 15px/1.5 Manrope, system-ui, sans-serif;
  --ink: #f4f1eb;
  --muted: #aca9a4;
  --accent: #e5bb77;
  --background: #0f0f11;
  --surface: #19191d;
  --border: #303035;
}

.gta-map .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gta-map .map-page { padding-block: 29px 34px; }
.gta-map .map-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 21px;
}
.gta-map .map-heading h1 {
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 800;
}
.gta-map .map-heading p { margin-top: 11px; color: #c3c0bb; }
.gta-map .preview-label { color: var(--muted); font-size: .79rem; padding-bottom: 3px; }
.gta-map .map-app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: clamp(505px, calc(100svh - 236px), 762px);
  border: 1px solid #36363a;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.gta-map .map-layer-presets {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  background: #19191d;
}
.gta-map .map-layer-preset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid #414147;
  border-radius: 7px;
  background: #222226;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 750;
}
.gta-map .map-layer-preset:hover, .gta-map .map-layer-preset[aria-pressed="true"] {
  border-color: var(--layer-color, var(--accent));
  background: color-mix(in srgb, var(--layer-color, var(--accent)) 13%, #202024);
}
.gta-map .map-layer-preset .marker-symbol { width: 21px; height: 21px; flex: 0 0 21px; }
.gta-map .map-app.map-expanded, .gta-map .map-app:fullscreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  border: 0;
  border-radius: 0;
}
.gta-map .map-note { margin-top: 12px; color: var(--muted); font-size: .8rem; }

.gta-map .map-sidebar { background: #19191d; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid #333337; }
.gta-map .sidebar-search { padding: 15px 15px 13px; }
.gta-map .search-field {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding-inline: 13px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #202024;
}
.gta-map .search-field:focus-within { border-color: var(--accent); }
.gta-map .search-field input {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-width: 0;
  width: 100%;
  outline: 0;
  padding-block: 8px;
}
.gta-map .search-field input::placeholder { color: var(--muted); opacity: 1; }
.gta-map .search-icon {
  position: relative;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 1.5px solid #aaa7a0;
  border-radius: 50%;
  margin-right: 2px;
}
.gta-map .search-icon::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 1.5px;
  bottom: -2px;
  right: -4px;
  background: #aaa7a0;
  transform: rotate(45deg);
}
.gta-map .mobile-layers { display: none !important; }
.gta-map .layer-controls { min-height: 0; overflow-y: auto; scrollbar-color: #48484c #19191d; }
.gta-map .sidebar-section { padding: 13px 15px; border-top: 1px solid var(--border); }
.gta-map .sidebar-heading { display: flex; align-items: center; gap: 6px; justify-content: space-between; margin-bottom: 7px; }
.gta-map .sidebar-heading h2 { font-size: .94rem; font-weight: 800; }
.gta-map .text-button { border: 0; padding: 3px 0; background: transparent; color: var(--accent); font-size: .77rem; }
.gta-map .text-button:hover { text-decoration: underline; }
.gta-map .layer-row {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto 16px;
  gap: 8px;
  min-height: 37px;
  align-items: center;
  border-radius: 6px;
  padding-inline: 3px;
  cursor: pointer;
  color: #e6e2dc;
  font-size: .83rem;
}
.gta-map .layer-row:hover { background: #242429; }
.gta-map .layer-row:has(input:not(:checked)) { color: var(--muted); }
.gta-map .layer-row input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; cursor: pointer; }
.gta-map .layer-count, .gta-map .result-count { color: var(--muted); white-space: nowrap; font-size: .79rem; font-variant-numeric: tabular-nums; }
.gta-map .places-list { list-style: none; padding: 0; margin: 0; }
.gta-map .place-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 7px 5px;
  font-size: .83rem;
}
.gta-map .place-choice:hover, .gta-map .place-choice[aria-current="true"] { background: #313036; }
.gta-map .place-choice .marker-symbol { width: 19px; height: 19px; flex: 0 0 19px; }
.gta-map .empty-places { padding: 7px 0; color: var(--muted); font-size: .8rem; }

.gta-map .map-view {
  overflow: hidden;
  position: relative;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  background: #2b649b;
  cursor: grab;
  touch-action: none;
}
.gta-map .map-view.is-dragging { cursor: grabbing; }
.gta-map .map-image {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
  transform-origin: 0 0;
}
.gta-map .markers { position: absolute; inset: 0; pointer-events: none; }
.gta-map .map-zone {
  position: absolute;
  border: 1px dashed var(--layer-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, var(--layer-color) 27%, transparent);
}
.gta-map .map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--layer-color) 92%, white);
  box-shadow: 0 0 0 1px #17202b, 0 2px 6px #11181bbb;
  pointer-events: auto;
}
.gta-map .map-marker:hover, .gta-map .map-marker[aria-pressed="true"] {
  z-index: 2;
  box-shadow: 0 0 0 2px #18171b, 0 0 0 5px #f8e7d1c2, 0 4px 8px #17202b66;
}
.gta-map .marker-symbol {
  display: inline-grid;
  width: 23px;
  height: 23px;
  position: relative;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--layer-color) 16%, #232326);
  color: var(--layer-color);
}
.gta-map .map-marker .marker-symbol { background: transparent; color: #1a1a1d; }
.gta-map .marker-symbol::before { content: ""; display: block; }
.gta-map .marker-symbol.place::before { width: 9px; height: 9px; background: currentColor; border-radius: 50% 50% 50% 1px; transform: rotate(-45deg); }
.gta-map .marker-symbol.shop::before { width: 10px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; }
.gta-map .marker-symbol.shop::after { content: ""; position: absolute; width: 5px; border-top: 1px solid currentColor; top: 8px; }
.gta-map .marker-symbol.animal::before { width: 7px; height: 5px; margin-top: 5px; border-radius: 50%; background: currentColor; }
.gta-map .marker-symbol.animal::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: -4px 2px currentColor, 4px 2px currentColor; position: absolute; top: 6px; }
.gta-map .marker-symbol.fish::before { width: 8px; height: 6px; border-radius: 55% 45% 45% 55%; margin-left: -3px; background: currentColor; }
.gta-map .marker-symbol.fish::after { content: ""; width: 4px; height: 6px; background: currentColor; clip-path: polygon(0 50%, 100% 0, 100% 100%); position: absolute; left: 56%; }
.gta-map .marker-symbol.event::before { width: 8px; height: 8px; border: 1.5px solid currentColor; transform: rotate(45deg); }

.gta-map .map-tools { position: absolute; left: 15px; top: 15px; display: grid; gap: 5px; }
.gta-map .map-tools button, .gta-map .close-button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid #48474b;
  border-radius: 7px;
  background: #19191eee;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}
.gta-map .map-tools button:hover, .gta-map .close-button:hover { background: #343238; color: var(--accent); }
.gta-map .map-tools button:disabled { opacity: .55; cursor: default; }
.gta-map .reset-icon { width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.gta-map .reset-icon::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.gta-map .expand-icon { width: 15px; height: 15px; border: 1px solid currentColor; mask: conic-gradient(at 4px 4px, transparent 25%, black 0) 0 0 / 11px 11px; }
.gta-map .map-credit {
  position: absolute;
  bottom: 9px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: .7rem;
  text-decoration: none;
  background: #161b25e8;
  color: #f4f1eb;
}
.gta-map .map-credit:hover { text-decoration: underline; }
.gta-map .point-card {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  width: min(255px, 39%);
  max-height: calc(100% - 48px);
  overflow: auto;
  cursor: default;
  touch-action: pan-y;
  color: var(--ink);
  background: #19191e;
  border: 1px solid #44444d;
  border-radius: 10px;
  box-shadow: 0 10px 26px #0006;
}
.gta-map .point-card > img { display: block; aspect-ratio: 16 / 8.2; width: 100%; object-fit: cover; }
.gta-map .point-body { padding: 13px; }
.gta-map .point-area { font-size: .74rem; color: var(--layer-color); font-weight: 800; margin: 0 28px 3px 0; }
.gta-map .point-card h2 { font-size: 1.24rem; line-height: 1.16; letter-spacing: -.035em; margin-right: 18px; }
.gta-map .point-text { margin-top: 8px; font-size: .81rem; color: #d1cec9; }
.gta-map .point-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gta-map .point-card .close-button { width: 31px; height: 31px; position: absolute; top: 7px; right: 7px; }
.gta-map .point-actions .button { font-size: .75rem; padding-inline: 8px; min-height: 34px; }
.gta-map .point-link { width: 100%; min-width: 0; min-height: 34px; }
.gta-map .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 41px;
  padding: 7px 12px;
  border: 1px solid #46444a;
  border-radius: 6px;
  background: #27262b;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.gta-map .button:hover { border-color: var(--accent); }
.gta-map .button-primary { background: var(--accent); border-color: var(--accent); color: #211912; }
.gta-map .button-primary:hover { background: #f3cd90; }

@media (max-width: 900px) {
  .gta-map .map-app { grid-template-columns: 219px minmax(0, 1fr); }
  .gta-map .point-card { width: min(240px, 48%); }
}

@media (max-width: 650px) {
  .gta-map .map-page { padding-block: 19px 26px; }
  .gta-map .map-heading { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 12px; }
  .gta-map .map-heading p { margin-top: 6px; font-size: .85rem; }
  .gta-map .preview-label { padding: 0; }
  .gta-map .map-app { display: flex; flex-direction: column; height: clamp(455px, calc(100svh - 200px), 720px); }
  .gta-map .map-layer-presets { gap: 5px; padding: 7px 8px; }
  .gta-map .map-layer-preset { padding-inline: 7px; font-size: .76rem; }
  .gta-map .map-sidebar { position: relative; z-index: 5; border: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .gta-map .sidebar-search { display: grid; padding: 8px; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .gta-map .search-field { height: 43px; }
  .gta-map .mobile-layers { display: inline-flex !important; }
  .gta-map .layer-controls { display: none; position: absolute; inset: 100% 0 auto; max-height: min(410px, 56svh); background: #1b1b20; box-shadow: 0 8px 14px #0005; }
  .gta-map .map-sidebar.filters-open .layer-controls { display: block; }
  .gta-map .map-view { flex: 1; }
  .gta-map .map-tools { top: 8px; left: 8px; }
  .gta-map .map-tools button { width: 38px; height: 38px; }
  .gta-map .map-marker { width: 25px; height: 25px; }
  .gta-map .point-card { width: auto; inset: auto 8px 27px; max-height: 47%; }
  .gta-map .point-card:has(> img) { display: grid; grid-template-columns: 80px minmax(0, 1fr); }
  .gta-map .point-card > img { height: 100%; aspect-ratio: auto; }
  .gta-map .point-body { padding: 9px 12px; }
  .gta-map .point-text { margin-top: 4px; }
  .gta-map .point-actions { margin-top: 7px; }
  .gta-map .catalog-toolbar .search-field { grid-column: 1 / -1; }
}

.gta-map [hidden] { display: none !important; }

.gta-map button, .gta-map input { font: inherit; }

.gta-map button { cursor: pointer; }

.gta-map :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gta-map .map-page { padding-block: 0; }
