/* GTA6Playthrough Custom Interactive Map Skin */

#gtab-map {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 480px;
  background: #21598f;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: 14px/1.45 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #E9EBEF;
  text-align: left;
  border-radius: 0;
}

#gtab-map .gtab-view {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  background: #21598f;
}

#gtab-map .leaflet-container {
  background: #21598f !important;
}

#gtab-map .gtab-edge,
#gtab-map .leaflet-pane.leaflet-gtab-edge-pane {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Sidebar Custom Styling */
#gtab-map .gtab-sidebar {
  display: none;
  order: -1;
  position: relative;
  flex: 0 0 340px;
  width: 340px;
  height: 100%;
  flex-direction: column;
  box-sizing: border-box;
  background: #111419;
  color: #E9EBEF;
  border-right: 1px solid #292F37;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.45);
  z-index: 200000;
  backdrop-filter: blur(8px);
}

#gtab-map.gtab-sidebar-open .gtab-sidebar {
  display: flex;
}

#gtab-map.gtab-narrow .gtab-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: calc(100% - 44px);
  box-shadow: 12px 0 32px rgba(0, 0, 0, 0.7);
}

@media (min-width: 700px) {
  #gtab-map.gtab-preload:not(.gtab-preload-closed) .gtab-sidebar {
    display: flex;
  }
}

/* Sidebar Header */
#gtab-map .gtab-sidebar-head {
  position: relative;
  flex: none;
  padding: 22px 44px 18px 20px;
  min-height: 90px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.8) 0%, rgba(17, 20, 25, 0.95) 100%),
              url('/images/crops/cat_walkthrough.jpg') center/cover no-repeat;
  border-bottom: 1px solid #292F37;
  color: #E9EBEF;
}

#gtab-map .gtab-sidebar-head h1,
#gtab-map .gtab-sidebar-head h2 {
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 4px;
  padding: 0;
  color: #FFFFFF;
  text-transform: none;
  letter-spacing: -0.02em;
  font-family: 'Inter', -apple-system, sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

#gtab-map .gtab-sidebar-head h1 {
  display: inline-block;
  background: linear-gradient(90deg, #FFFFFF 0%, #B8A1E3 60%, #83A9BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}

#gtab-map .gtab-sidebar-head p {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 0;
  color: #A0A7B2;
  text-shadow: none;
}

#gtab-map .gtab-sidebar-head p.gtab-guest-line {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #7D8693;
}

#gtab-map .gtab-guest-line a,
#gtab-map .gtab-guest-line a:visited {
  color: #B8A1E3;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#gtab-map .gtab-sidebar button.gtab-sidebar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #292F37;
  border-radius: 6px;
  background: #1B2027;
  color: #A0A7B2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

#gtab-map .gtab-sidebar button.gtab-sidebar-close:hover {
  background: #292F37;
  color: #FFFFFF;
}

/* Search Box */
#gtab-map .gtab-search {
  flex: none;
  padding: 12px 16px;
  border-bottom: 1px solid #292F37;
  background: #15191F;
}

#gtab-map .gtab-search-field {
  position: relative;
}

#gtab-map .gtab-search-field > svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7D8693;
  pointer-events: none;
}

#gtab-map .gtab-search input.gtab-search-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 12px 9px 36px;
  min-height: 0;
  height: auto;
  font: inherit;
  font-size: 13px;
  color: #E9EBEF;
  background: #111419;
  border: 1px solid #292F37;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#gtab-map .gtab-search input.gtab-search-input:focus {
  outline: none;
  border-color: #B8A1E3;
  box-shadow: 0 0 0 2px rgba(184, 161, 227, 0.2);
}

#gtab-map .gtab-search-results {
  list-style: none;
  margin: 8px 0 0;
  padding: 4px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #292F37;
  border-radius: 6px;
  background: #1B2027;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: none;
}

#gtab-map .gtab-search-results li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  font-size: 13px;
  color: #E9EBEF;
  transition: background 0.15s ease;
}

#gtab-map .gtab-search-results li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

#gtab-map .gtab-search-results li:hover,
#gtab-map .gtab-search-results li.gtab-active {
  background: #292F37;
  color: #FFFFFF;
}

#gtab-map .gtab-search-hit-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#gtab-map .gtab-search-hit-cat {
  flex: 0 1 auto;
  max-width: 45%;
  font-size: 11px;
  color: #7D8693;
  white-space: nowrap;
}

#gtab-map .gtab-search-empty {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
  color: #A0A7B2;
}

/* Category Filter List */
#gtab-map .gtab-filter {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  background: #111419;
}

#gtab-map .gtab-filter-buttons {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

#gtab-map .gtab-filter-buttons .gtab-filter-all {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  background: #15191F;
  border: 1px solid #292F37;
  color: #E9EBEF;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

#gtab-map .gtab-filter-buttons .gtab-filter-all:hover {
  background: #1B2027;
  border-color: #3E4754;
  color: #FFFFFF;
}

#gtab-map .gtab-filter-group {
  margin: 0 0 12px;
  background: #15191F;
  border: 1px solid #292F37;
  border-radius: 8px;
  overflow: hidden;
}

#gtab-map .gtab-filter-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1B2027;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

#gtab-map .gtab-filter-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #E9EBEF;
  cursor: pointer;
}

#gtab-map .gtab-filter button.gtab-filter-group-fold {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #7D8693;
  cursor: pointer;
  transition: color 0.15s ease;
}

#gtab-map .gtab-filter button.gtab-filter-group-fold:hover {
  color: #E9EBEF;
  background: rgba(255, 255, 255, 0.05);
}

#gtab-map .gtab-filter-group-fold svg {
  display: block;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

#gtab-map .gtab-filter-group-fold.gtab-open svg {
  transform: rotate(180deg);
}

#gtab-map .gtab-filter-group-body {
  padding: 4px 6px;
}

#gtab-map .gtab-filter-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 12.5px;
  color: #A0A7B2;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
}

#gtab-map .gtab-filter-row:hover {
  background: #1B2027;
  color: #FFFFFF;
}

#gtab-map .gtab-filter-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  column-gap: 8px;
}

#gtab-map .gtab-filter-row-title {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

#gtab-map .gtab-filter-counter {
  flex: none;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #7D8693;
}

#gtab-map button.gtab-filter-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #7D8693;
  cursor: pointer;
  transition: all 0.15s ease;
}

#gtab-map button.gtab-filter-next:hover {
  background: #292F37;
  color: #B8A1E3;
}

#gtab-map .gtab-filter-reset {
  display: inline-block;
  margin: 14px 0 6px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #7D8693;
  background: #15191F;
  border: 1px solid #292F37;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

#gtab-map .gtab-filter-reset:hover {
  color: #E9EBEF;
  border-color: #3E4754;
}

/* Checkbox styling */
#gtab-map input[type="checkbox"] {
  accent-color: #B8A1E3;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Map Blips / Markers */
#gtab-map .gtab-blip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #0B0D10;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.15s ease;
}

#gtab-map .gtab-blip:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(184, 161, 227, 0.8);
}

#gtab-map .gtab-blip-found .gtab-blip {
  opacity: 0.35;
  filter: grayscale(80%);
}

#gtab-map .gtab-blip-found-badge .gtab-blip {
  box-shadow: 0 0 0 2px #5EEAD4, 0 2px 6px rgba(0, 0, 0, 0.6);
}

#gtab-map .gtab-blip-num {
  position: absolute;
  left: -7px;
  top: -7px;
  z-index: 1;
  box-sizing: border-box;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #1B2027;
  color: #B8A1E3;
  font: 800 10px/16px 'Inter', sans-serif;
  text-align: center;
  border: 1px solid #B8A1E3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Map Controls (Zoom, Fullscreen, Filters toggle) */
#gtab-map .leaflet-bar {
  border: 1px solid #292F37;
  border-radius: 8px;
  background: #15191F;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

#gtab-map .leaflet-bar a,
#gtab-map .leaflet-bar a:hover,
#gtab-map .leaflet-bar a:focus {
  width: 38px;
  height: 38px;
  line-height: 38px;
  background: #15191F;
  color: #E9EBEF;
  border: 0;
  border-bottom: 1px solid #292F37;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

#gtab-map .leaflet-bar a:last-child {
  border-bottom: 0;
}

#gtab-map .leaflet-bar a:hover,
#gtab-map .leaflet-bar a:focus {
  background: #1B2027;
  color: #B8A1E3;
}

#gtab-map .leaflet-bar a.leaflet-disabled {
  background: #111419;
  color: #7D8693;
}

/* Sidebar Toggle Button */
#gtab-map .leaflet-bar a.gtab-sidebar-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 0 16px 0 12px;
  font: 600 13px/38px 'Inter', sans-serif;
  letter-spacing: 0.02em;
  background: #15191F;
  color: #E9EBEF;
}

#gtab-map .leaflet-bar a.gtab-sidebar-toggle-button:hover {
  background: #1B2027;
  color: #FFFFFF;
}

#gtab-map .gtab-sidebar-toggle-button svg.gtab-filter-icon {
  color: #B8A1E3;
}

#gtab-map .gtab-vc-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Countdown Overlay */
#gtab-map .gtab-countdown {
  margin: 14px 14px 0 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(17, 20, 25, 0.92);
  border: 1px solid #292F37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  text-align: center;
}

#gtab-map .gtab-countdown-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B8A1E3;
  margin-bottom: 6px;
  background: none;
  -webkit-background-clip: unset;
}

#gtab-map .gtab-countdown-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  background: none;
  -webkit-background-clip: unset;
}

#gtab-map .gtab-countdown-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

#gtab-map .gtab-countdown-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7D8693;
}

#gtab-map .gtab-countdown-note {
  font-size: 10px;
  line-height: 1.35;
  color: #7D8693;
  margin-top: 6px;
  max-width: 220px;
}

/* Leaflet Popups */
#gtab-map .leaflet-popup-content-wrapper {
  background: #15191F;
  color: #E9EBEF;
  border: 1px solid #292F37;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

#gtab-map .leaflet-popup-tip {
  background: #15191F;
  border: 1px solid #292F37;
  box-shadow: none;
}

#gtab-map .leaflet-popup-content {
  margin: 0;
}

#gtab-map .leaflet-popup-close-button {
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(11, 13, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #A0A7B2;
  font: 16px/26px Arial, sans-serif;
  text-align: center;
  transition: all 0.15s ease;
}

#gtab-map .leaflet-popup-close-button:hover {
  background: #B8A1E3;
  color: #0B0D10;
  border-color: #B8A1E3;
}

#gtab-map .gtab-popup {
  box-sizing: border-box;
  padding: 16px;
  color: #E9EBEF;
  font-family: 'Inter', -apple-system, sans-serif;
}

#gtab-map .gtab-popup-image {
  display: block;
  width: calc(100% + 32px);
  height: 125px;
  max-width: none;
  object-fit: cover;
  border: 0;
  margin: -16px -16px 10px -16px;
  background: #0B0D10;
}

#gtab-map .gtab-popup-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  background: none;
  -webkit-background-clip: unset;
}

#gtab-map .gtab-popup-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #B8A1E3;
}

#gtab-map .gtab-popup-desc {
  margin: 0 0 10px;
  color: #A0A7B2;
  font-size: 13px;
  line-height: 1.5;
}

#gtab-map .gtab-popup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #292F37;
}

#gtab-map .gtab-popup-found {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
  padding: 4px 10px;
  border-radius: 4px;
  background: #1B2027;
  border: 1px solid #292F37;
  font-weight: 600;
  font-size: 12px;
  color: #E9EBEF;
}

#gtab-map .gtab-popup a.gtab-popup-link {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: #B8A1E3;
  color: #0B0D10;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

#gtab-map .gtab-popup a.gtab-popup-link:hover {
  background: #c9b7ec;
}

#gtab-map .gtab-popup-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

#gtab-map .gtab-popup button.gtab-popup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #1B2027;
  border: 1px solid #292F37;
  color: #A0A7B2;
  cursor: pointer;
  transition: all 0.15s ease;
}

#gtab-map .gtab-popup button.gtab-popup-icon:hover {
  background: #292F37;
  color: #FFFFFF;
}

#gtab-map .gtab-popup-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px -4px -4px;
  padding: 10px 0 0;
  border-top: 1px solid #292F37;
}

#gtab-map .gtab-popup button.gtab-popup-step {
  color: #E9EBEF;
  background: #1B2027;
  border: 1px solid #292F37;
  border-radius: 4px;
  transition: all 0.15s ease;
}

#gtab-map .gtab-popup button.gtab-popup-step:hover {
  background: #292F37;
  color: #B8A1E3;
}

#gtab-map .gtab-popup button.gtab-popup-report {
  color: #7D8693;
  font-size: 11px;
}

#gtab-map .gtab-popup button.gtab-popup-report:hover {
  color: #A0A7B2;
}

/* Info Panel Overlay & Dialogs */
#gtab-map .gtab-info-overlay {
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(4px);
}

#gtab-map .gtab-info-panel {
  background: #15191F;
  color: #E9EBEF;
  border: 1px solid #292F37;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  padding: 24px;
}

#gtab-map .gtab-info-panel h3 {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  background: none;
  -webkit-background-clip: unset;
}

#gtab-map .gtab-info-panel p {
  color: #A0A7B2;
  font-size: 13.5px;
  line-height: 1.6;
}

#gtab-map .gtab-info-panel a {
  color: #B8A1E3;
}

#gtab-map .gtab-info-panel button.gtab-info-close {
  background: #1B2027;
  border: 1px solid #292F37;
  border-radius: 6px;
  color: #A0A7B2;
}

#gtab-map .gtab-info-panel button.gtab-info-close:hover {
  background: #292F37;
  color: #FFFFFF;
}

/* Submit bar */
#gtab-map .gtab-submit-bar {
  padding: 10px 16px;
  border-top: 1px solid #292F37;
  background: #15191F;
}

#gtab-map .gtab-sidebar button.gtab-submit-open {
  background: #1B2027;
  border: 1px solid #292F37;
  color: #E9EBEF;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s ease;
}

#gtab-map .gtab-sidebar button.gtab-submit-open:hover {
  background: #292F37;
  border-color: #3E4754;
  color: #FFFFFF;
}

#gtab-map .gtab-edge {
  color: #07090c;
}
