/* ============================================================================
   TÜRKİYE LEGO BÖLGE HARİTASI & "BANA LEGO AL" SOSYAL HEDİYE AĞI
   Her Türkiye Bölgesi / İli Bir LEGO Seti Parselidir — Tıkla ve O LEGO Setine Git!
   Google / VeeGrid 2-Ton Monokrom Tasarım Standardı (--paper / --ink / --muted / --line)
   ============================================================================ */

#giftMapRoot {
  width: 100%;
  color: var(--ink);
  font-family: var(--font-sans, "Inter", sans-serif);
  padding-bottom: 56px;
}

/* 1. ÜST BAŞLIK & KPI ŞERİDİ */
.gm-top-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gm-top-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gm-title-block {
  max-width: 760px;
}

.gm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 7px;
}

.gm-main-title {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.18;
}

.gm-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.gm-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gm-btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.gm-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.gm-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.gm-btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.gm-btn-outline:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
}

.gm-btn-outline.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gm-kpi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gm-kpi-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.gm-kpi-val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-family: var(--font-mono, monospace);
}

.gm-kpi-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================================
   2. DEV İNTERAKTİF TÜRKİYE LEGO BÖLGE HARİTASI (#turkeyLegoBoard)
   Her İl / Bölge Doğrudan Tıklanabilir Bir LEGO Seti Karosudur!
   ============================================================================ */
.gm-map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gm-view-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.gm-view-tab {
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}

.gm-view-tab:hover {
  color: var(--ink);
}

.gm-view-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.gm-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gm-map-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 320px;
  max-width: 480px;
}

.gm-geo-region-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gm-geo-pill {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.gm-geo-pill:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
}

.gm-geo-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* TÜRKİYE LEGO BÖLGE HARİTASI SAHNESİ (GERÇEK 81 İL POLİGON HARİTASI) */
#turkeyLegoBoard {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
}

.tr-real-map-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tr-real-map-svg {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
}

.tr-prov-group {
  cursor: pointer;
}

.tr-prov-poly {
  fill: var(--prov-fill, #e4e5de);
  stroke: #ffffff;
  stroke-width: 1.3;
  stroke-linejoin: round;
  transition: fill 0.14s ease, stroke 0.14s ease;
}

html[data-theme="dark"] .tr-prov-poly {
  fill: #242824;
  stroke: #141614;
}

.tr-prov-group:hover .tr-prov-poly {
  fill: #c9cec0;
  stroke: var(--ink);
  stroke-width: 2;
}

.tr-prov-group.is-selected .tr-prov-poly {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 2.2;
}

.tr-prov-group.is-dimmed {
  opacity: 0.25;
}

.tr-prov-pill-bg {
  fill: rgba(255, 255, 255, 0.88);
  stroke: rgba(27, 29, 26, 0.22);
  stroke-width: 0.7;
}

.tr-prov-label-group.is-selected .tr-prov-pill-bg {
  fill: #ffffff;
  stroke: var(--ink);
  stroke-width: 1.3;
}

.tr-prov-label-name {
  font-size: 6.2px;
  font-weight: 700;
  fill: #1b1d1a;
}

.tr-prov-label-set {
  font-size: 5.8px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  fill: #525750;
}

.tr-map-floating-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tr-map-floating-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}

.tr-map-floating-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 220px;
}

.tr-map-floating-kicker {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.tr-map-floating-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.tr-map-floating-meta {
  font-size: 12px;
  color: var(--muted);
}

.tr-map-floating-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Arka Plan Türkiye Coğrafi Silüeti & LEGO Stud Dokusu */
.tr-board-svg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tr-board-silhouette {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.92;
}

.tr-board-grid-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.tr-board-sea-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.55;
}

.tr-board-region-watermark {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.35;
}

.tr-board-pins-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* HER İL = BİR LEGO SETİ BÖLGE KAROSU (.tr-lego-region-tile) */
.tr-lego-region-tile {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 3px 6px 3px 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  z-index: 10;
  max-width: 146px;
}

/* Üstte 3 küçük LEGO stud çıkıntısı efekti */
.tr-lego-region-tile::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 8px;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
  opacity: 0.32;
}

.tr-lego-region-tile:hover {
  transform: translate(-50%, -50%) scale(1.18);
  border-color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  z-index: 80 !important;
}

.tr-lego-region-tile.is-selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 70 !important;
}

.tr-lego-region-tile.is-major {
  border-color: var(--ink);
  z-index: 22;
}

.tr-lego-region-tile.is-dimmed {
  opacity: 0.22;
  pointer-events: none;
}

.tr-tile-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.tr-tile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.12;
  text-align: left;
}

.tr-tile-city-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tr-tile-plate {
  background: var(--surface-alt);
  color: var(--ink);
  border-radius: 4px;
  padding: 0 3.5px;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
}

.tr-lego-region-tile.is-selected .tr-tile-plate {
  background: var(--paper);
  color: var(--ink);
}

.tr-tile-set-row {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92px;
  font-weight: 600;
}

.tr-lego-region-tile.is-selected .tr-tile-set-row {
  color: var(--paper);
  opacity: 0.9;
}

.tr-tile-count-badge {
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.tr-lego-region-tile.is-selected .tr-tile-count-badge {
  color: var(--paper);
  opacity: 0.85;
}

/* Harita Alt Köşe Bilgi Bandı */
.tr-board-footer-hud {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 90;
  flex-wrap: wrap;
}

.tr-board-hud-pill {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

html[data-theme="dark"] .tr-board-hud-pill {
  background: rgba(28, 31, 28, 0.92);
}

/* 81 İL HIZLI SEÇİM ŞERİDİ */
.gm-province-quickbar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gm-province-quickbar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.gm-province-quickbar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gm-prov-pill {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.gm-prov-pill:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
}

.gm-prov-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gm-prov-pill .gm-prov-count {
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 5px;
  font-size: 9.5px;
  font-weight: 700;
}

/* ============================================================================
   3. SEÇİLEN BÖLGE & LEGO SETİ DETAY VİTRİNİ (#selectedRegionLegoSpotlight)
   + SEÇİLEN BÖLGEDEKİ ~353 LEGO PARSELİ (#regionParcelsGrid)
   ============================================================================ */
.gm-region-explorer-grid {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
  align-items: start;
}

#selectedRegionLegoSpotlight {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 72px;
}

.gm-spot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.gm-spot-parcel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

.gm-spot-region-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.gm-spot-hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  gap: 10px;
}

.gm-spot-img {
  width: 190px;
  height: 155px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}

.gm-spot-set-num {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--muted);
}

.gm-spot-set-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.22;
  margin: 0;
}

.gm-spot-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gm-spot-spec-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.gm-spot-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gm-spot-btn-go-set {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.14s ease, transform 0.12s ease;
}

.gm-spot-btn-go-set:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gm-spot-btn-gift {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.14s ease;
}

.gm-spot-btn-gift:hover {
  background: var(--surface-alt);
}

.gm-spot-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gm-spot-btn-sub {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.gm-spot-btn-sub:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
}

/* SAĞ SÜTUN: SEÇİLİ BÖLGEDEKİ TÜM ~353 LEGO PARSELLERİ */
.gm-parcels-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm-parcels-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gm-parcels-header h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
}

.gm-parcels-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.gm-parcels-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#regionParcelsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gm-parcel-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.12s ease, background-color 0.14s ease;
}

.gm-parcel-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.gm-parcel-card.active {
  border-color: var(--ink);
  background: var(--surface-alt);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.gm-parcel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gm-parcel-code {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ink);
}

.gm-parcel-year {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
}

.gm-parcel-body {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gm-parcel-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}

.gm-parcel-meta {
  min-width: 0;
  flex: 1;
}

.gm-parcel-setnum {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-family: var(--font-mono, monospace);
}

.gm-parcel-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gm-parcel-specs {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.gm-parcel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.gm-parcel-btn {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.gm-parcel-btn.alt {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.gm-parcel-btn.alt:hover {
  border-color: var(--ink);
}

.gm-parcels-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================================
   4. "BANA LEGO AL" SOSYAL DİLEK FİLTRESİ, KARTLARI VE DİLEK OLUŞTURMA FORMU
   ============================================================================ */
.gm-filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gm-filter-top-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.gm-input,
.gm-select,
.gm-textarea {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.14s ease;
}

.gm-input:focus,
.gm-select:focus,
.gm-textarea:focus {
  border-color: var(--ink);
}

.gm-textarea {
  resize: vertical;
  min-height: 74px;
  line-height: 1.45;
}

.gm-occasion-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.gm-occ-pill {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.gm-occ-pill:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
}

.gm-occ-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gm-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.gm-wishes-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.gm-wishes-section-header h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.gm-wishes-count-note {
  font-size: 12px;
  color: var(--muted);
}

#giftWishesGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gm-wish-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease;
}

.gm-wish-card:hover {
  border-color: var(--ink);
}

.gm-wish-card.completed {
  border-color: #15803d;
}

.gm-wish-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.gm-badge-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.gm-badge-dist {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 3px;
}

.gm-badge-occ {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.gm-wish-set-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.gm-wish-set-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
  flex-shrink: 0;
}

.gm-wish-set-info {
  flex: 1;
  min-width: 0;
}

.gm-wish-set-num {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--muted);
}

.gm-wish-set-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 2px 0 4px;
}

.gm-wish-set-specs {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gm-wish-requester-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gm-wish-requester-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.gm-wish-story {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.48;
}

.gm-progress-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gm-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  flex-wrap: wrap;
}

.gm-progress-bar-outer {
  width: 100%;
  height: 8px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}

.gm-progress-bar-inner {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.gm-wish-card.completed .gm-progress-bar-inner {
  background: #15803d;
}

.gm-supporters-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.gm-supporters-title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gm-supporter-chip {
  font-size: 11.5px;
  color: var(--ink);
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 5px 9px;
  line-height: 1.35;
}

.gm-supporter-chip small {
  color: var(--muted);
}

.gm-wish-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.gm-card-btn-gift {
  flex: 1 1 100%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gm-card-btn-secondary {
  flex: 1 1 calc(50% - 4px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  text-align: center;
}

.gm-card-btn-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
}

.gm-create-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gm-create-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.gm-create-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.gm-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.gm-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gm-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.gm-set-autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  max-height: 250px;
  overflow-y: auto;
  z-index: 80;
  padding: 5px;
}

.gm-set-ac-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.gm-set-ac-item:hover {
  background: var(--surface-alt);
}

.gm-set-ac-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
}

.gm-set-ac-item strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
}

.gm-set-ac-item small {
  font-size: 11px;
  color: var(--muted);
}

.gm-selected-set-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.gm-selected-set-pill-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gm-selected-set-pill-left img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* 5. INTERACTIVE GIFT MODAL (#giftContributeModal) */
.gm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 20, 0.62);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gm-modal-dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gm-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 3px;
}

.gm-modal-close {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gm-modal-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gm-mode-option {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gm-mode-option.active {
  border-color: var(--ink);
  background: var(--surface-alt);
}

.gm-mode-option strong {
  font-size: 12.5px;
  color: var(--ink);
}

.gm-mode-option small {
  font-size: 11px;
  color: var(--muted);
}

.gm-quick-amounts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gm-amt-chip {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.gm-amt-chip.active,
.gm-amt-chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gm-brick-calc-banner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gm-celebration-banner {
  background: var(--surface-alt);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.gm-empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .gm-region-explorer-grid {
    grid-template-columns: 1fr;
  }
  #selectedRegionLegoSpotlight {
    position: static;
  }
  #regionParcelsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gm-split-layout {
    grid-template-columns: 1fr;
  }
  .gm-create-card {
    position: static;
  }
}

@media (max-width: 820px) {
  #turkeyLegoBoard {
    overflow-x: auto;
    min-height: 520px;
  }
  .tr-board-pins-layer,
  .tr-board-svg-bg {
    min-width: 880px;
  }
  .gm-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gm-filter-top-row {
    grid-template-columns: 1fr;
  }
  #regionParcelsGrid,
  #giftWishesGrid {
    grid-template-columns: 1fr;
  }
  .gm-modal-mode-grid {
    grid-template-columns: 1fr;
  }
}
