/* ============================================================
   GTP Tournament List – Stylesheet v1.0
   Matches the Globetrotting Poker Lovable/Supabase design.
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
#gtp-app {
  --gtp-font:       'DM Sans', system-ui, -apple-system, sans-serif;
  --gtp-font-head:  'DM Sans', system-ui, -apple-system, sans-serif;
  --gtp-accent:     #e07b00;
  --gtp-accent-lt:  #fff4e5;
  --gtp-green:      #1a6b3c;
  --gtp-green-lt:   #eaf4ee;
  --gtp-red:        #b91c1c;
  --gtp-red-lt:     #fef2f2;
  --gtp-border:     #e5e7eb;
  --gtp-muted:      #6b7280;
  --gtp-bg:         #ffffff;
  --gtp-row-even:   #f9fafb;
  --gtp-row-hover:  #f0f4ff;
  --gtp-shadow:     0 1px 4px rgba(0,0,0,.07);
  --gtp-radius:     0;
  --gtp-th-bg:      #f3f4f6;
  --gtp-th-color:   #374151;
  font-family: var(--gtp-font);
}

/* ── DISCLAIMER ────────────────────────────────────────────── */
.gtp-disclaimer {
  background: #fffbf5;
  border: 1px solid #ffe0a0;
  border-radius: 0;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #4b3a1a;
  line-height: 1.6;
}
.gtp-disclaimer p { margin: 0 0 6px; }
.gtp-last-updated {
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: var(--gtp-accent);
  margin-top: 4px;
}

/* ── MAP ───────────────────────────────────────────────────── */
.gtp-map-wrap {
  width: 100%;
  height: 420px;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--gtp-shadow);
  background: #e8e8e8; /* light fallback while tiles load */
}
.gtp-map-fullwidth {
  border-radius: 0;
  width: 100%;
}
#gtp-map {
  width: 100%;
  height: 100%;
  min-height: 260px;
}
/* Leaflet popup override */
.gtp-map-popup .leaflet-popup-content-wrapper {
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--gtp-font);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.gtp-map-popup .leaflet-popup-content { margin: 0; }
.gtp-map-popup .leaflet-popup-tip-container { display: none; }

/* ── FILTERS ───────────────────────────────────────────────── */
.gtp-filters-wrap { margin-bottom: 16px; }

.gtp-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--gtp-accent);
  border-radius: 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gtp-accent);
  transition: background .15s, border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
.gtp-filters-toggle:hover,
.gtp-filters-toggle.active { background: var(--gtp-accent-lt); border-color: var(--gtp-accent); }
.gtp-toggle-chev { transition: transform .2s; }

.gtp-filters-grid {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid var(--gtp-border);
  border-radius: 0;
  padding: 16px;
}
.gtp-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.gtp-filter-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 140px;
  min-width: 120px;
}
.gtp-filter-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--gtp-muted);
  text-transform: uppercase;
}
.gtp-filter-select,
.gtp-filter-date {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--gtp-border);
  border-radius: 0;
  font-size: 17px;
  font-family: var(--gtp-font);
  background: #fff;
  color: #111;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.gtp-filter-select:focus,
.gtp-filter-date:focus { border-color: var(--gtp-accent); }

/* ── CHECKBOX DROPDOWN (multi-country) ─────────────────────── */
.gtp-checkbox-dropdown { position: relative; }
.gtp-cbd-trigger {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--gtp-border);
  border-radius: 0;
  font-size: 17px;
  font-family: var(--gtp-font);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #111;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
.gtp-cbd-trigger:focus { border-color: var(--gtp-accent); }
.gtp-cbd-panel {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 999;
  background: #fff; border: 1px solid #d1d5db; border-radius: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 180px; max-width: 240px;
  max-height: 240px; overflow-y: auto; padding: 6px 0;
}
.gtp-cbd-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; cursor: pointer; font-size: 12.5px; color: #374151;
  transition: background .1s;
}
.gtp-cbd-item:hover { background: #f3f4f6; }
.gtp-cbd-item input[type=checkbox] { cursor: pointer; accent-color: #6b7280; }

.gtp-filter-reset-wrap {
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
}
.gtp-btn-reset {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 0;
  background: #fff;
  font-size: 12px;
  font-family: var(--gtp-font);
  cursor: pointer;
  color: var(--gtp-red);
  font-weight: 600;
  transition: background .15s;
}
.gtp-btn-reset:hover { background: var(--gtp-red-lt); }

/* ── RESULTS BAR ───────────────────────────────────────────── */
.gtp-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.gtp-results-count {
  font-size: 17px;
  color: var(--gtp-muted);
}
.gtp-results-count strong { color: #111; }

.gtp-search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--gtp-border);
  border-radius: 0;
  padding: 0 10px;
  height: 38px;
  min-width: 220px;
}
.gtp-search-wrap svg { color: var(--gtp-muted); flex-shrink: 0; }
.gtp-search {
  border: none;
  outline: none;
  font-size: 17px;
  font-family: var(--gtp-font);
  width: 100%;
  color: #111;
  background: transparent;
}

/* ── SECTION HEADERS ───────────────────────────────────────── */
.gtp-section { margin-bottom: 6px; }
.gtp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gtp-th-bg);
  border: 1px solid var(--gtp-border);
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}
.gtp-section-header:hover { background: #e9ebee; }
.gtp-section-title {
  font-size: 25px;
  font-weight: 700;
  font-family: var(--gtp-font-head);
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gtp-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--gtp-accent);
  color: #fff;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
}
.gtp-section-chevron {
  flex-shrink: 0;
  transition: transform .22s;
  color: var(--gtp-muted);
}
.gtp-section-chevron.open { transform: rotate(180deg); }

/* ── TABLE ─────────────────────────────────────────────────── */
.gtp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gtp-border);
  border-top: none;
  border-radius: 0;
  margin-bottom: 14px;
}
.gtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-family: var(--gtp-font);
  min-width: 960px;
}
.gtp-table thead tr {
  background: var(--gtp-th-bg);
  border-bottom: 2px solid var(--gtp-border);
}
.gtp-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--gtp-font-head);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gtp-th-color);
  white-space: nowrap;
  cursor: default;
}
.gtp-table thead th[data-sort] { cursor: pointer; }
.gtp-table thead th[data-sort]:hover { color: var(--gtp-accent); }
.gtp-table thead th.sort-asc::after  { content: ' ↑'; color: var(--gtp-accent); }
.gtp-table thead th.sort-desc::after { content: ' ↓'; color: var(--gtp-accent); }

.gtp-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .1s; background: #fff; }
.gtp-table tbody tr:hover { background: var(--gtp-row-hover); }

.gtp-table td {
  padding: 9px 12px;
  vertical-align: middle;
  font-size: 18px;
  color: #374151;
}

/* ── TABLE COLUMN WIDTHS ───────────────────────────────────── */
.gtp-td-date    { white-space: nowrap; min-width: 80px; max-width: 110px; vertical-align: middle; }
.gtp-td-event   { min-width: 180px; max-width: 260px; font-weight: 600; color: #1f2937; }
.gtp-td-evname  { min-width: 160px; max-width: 220px; }
.gtp-td-buyin   { min-width: 90px; max-width: 140px; font-weight: 500; color: var(--gtp-green); }
.gtp-td-brand   { min-width: 140px; max-width: 220px; color: var(--gtp-muted); }

/* ── DATE CELL ─────────────────────────────────────────────── */
.gtp-date-inner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gtp-date-text { font-size: 16px; font-weight: 500; white-space: normal; }
.gtp-flag { width: 24px; height: 18px; border: 1px solid #e5e7eb; border-radius: 0; flex-shrink: 0; }
.gtp-emoji-flag { font-size: 17px; line-height: 1; }
.gtp-badge-ongoing {
  font-size: 10px; font-weight: 700;
  background: var(--gtp-green-lt); color: var(--gtp-green);
  padding: 2px 7px; border-radius: 0;
}
.gtp-badge-tba {
  font-size: 10px; font-weight: 700;
  background: #f3f4f6; color: var(--gtp-muted);
  padding: 2px 7px; border-radius: 0;
}
.gtp-sub-line {
  font-size: 14px; color: var(--gtp-muted);
  font-weight: 400; margin-top: 3px;
}
.gtp-sub-dates { font-size: 18px; color: var(--gtp-muted); font-weight: 400; margin-top: 2px; }
.gtp-sub-location { font-size: 18px; color: var(--gtp-muted); font-weight: 400; margin-top: 2px; }
.gtp-sub-location .gtp-link { font-size: 18px; font-weight: 400; }
.gtp-sub-info { font-size: 18px; color: var(--gtp-muted); font-weight: 400; margin-top: 3px; font-style: italic; }

/* More Info tooltip */
.gtp-tooltip-wrap { position: relative; cursor: help; }
.gtp-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  background: #1f2937;
  color: #f9fafb;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 0;
  width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  white-space: normal;
  pointer-events: none;
}
.gtp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 12px;
  border: 5px solid transparent;
  border-top-color: #1f2937;
}
.gtp-tooltip-wrap:hover .gtp-tooltip { display: block; }

/* NEW badge */
.gtp-badge-new {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 0;
  background: #e07b00;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-right: 4px;
}

/* Row highlight for newly added events */
.gtp-row-new td { background: #fffbf0; }

/* Award pill under Buy-in */
.gtp-award-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 0;
  background: var(--gtp-accent-lt);
  color: var(--gtp-accent);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #fcd34d;
}

/* ── LINKS ─────────────────────────────────────────────────── */
.gtp-link {
  color: var(--gtp-accent);
  text-decoration: none;
  font-weight: 500;
}
.gtp-link:hover { text-decoration: underline; }

/* ── TYPE BADGES ───────────────────────────────────────────── */
.gtp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 0;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.gtp-badge-tournament   { background:#e8eef7; color:#1a4b8c; }
.gtp-badge-cash         { background:#fef3c7; color:#92400e; }
.gtp-badge-online       { background:#e0e7ff; color:#3730a3; }
.gtp-badge-training     { background:#f3e8ff; color:#6f42c1; }
.gtp-badge-meetup       { background:#fce7f3; color:#9d174d; }
.gtp-badge-satellite    { background:#ecfdf5; color:#065f46; }
.gtp-badge-freeroll     { background:#f0fdf4; color:#15803d; }
.gtp-badge-cruise       { background:#e0f2fe; color:#0369a1; }
.gtp-badge-league       { background:#fef9c3; color:#854d0e; }
.gtp-badge-default      { background:#f3f4f6; color:#374151; }

/* ── EMPTY STATE ───────────────────────────────────────────── */
.gtp-empty {
  text-align: center;
  padding: 48px 20px !important;
}
.gtp-empty p {
  color: var(--gtp-muted);
  font-size: 13px;
  margin: 0;
}

/* ── TOAST ─────────────────────────────────────────────────── */
.gtp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  padding: 12px 20px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--gtp-font);
  color: #fff;
  background: #1f2937;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.gtp-toast.show { opacity: 1; transform: none; }
.gtp-toast.success { background: var(--gtp-green); }
.gtp-toast.error   { background: var(--gtp-red); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .gtp-map-wrap { height: 260px; min-height: 260px; }
  .gtp-filter-inline { flex: 1 1 100%; }
  .gtp-results-bar { flex-direction: column; align-items: flex-start; }
  .gtp-search-wrap { width: 100%; min-width: unset; }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ═══════════════════════════════════════════════════════════ */
#gtp-admin {
  --gtp-font:     Inter, 'Helvetica Neue', Arial, sans-serif;
  --gtp-accent:   #e07b00;
  --gtp-green:    #1a6b3c;
  --gtp-red:      #b91c1c;
  --gtp-red-lt:   #fef2f2;
  --gtp-border:   #e5e7eb;
  --gtp-muted:    #6b7280;
  --gtp-radius:   0;
  font-family: var(--gtp-font);
  max-width: 1400px;
}
.gtp-admin-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--gtp-border);
  margin-bottom: 20px;
}
.gtp-admin-hdr h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
.gtp-admin-hdr p { margin: 0; }
.gtp-admin-hdr-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.gtp-btn-secondary {
  height: 32px; padding: 0 14px;
  border: 1px solid var(--gtp-border);
  border-radius: 0;
  background: #fff;
  font-size: 12px; font-family: var(--gtp-font); cursor: pointer;
  color: #374151; font-weight: 500;
  transition: background .15s;
}
.gtp-btn-secondary:hover { background: #f3f4f6; }
.gtp-btn-primary {
  height: 32px; padding: 0 16px;
  border: none; border-radius: 0;
  background: var(--gtp-accent);
  font-size: 12px; font-weight: 700; font-family: var(--gtp-font);
  cursor: pointer; color: #fff;
  transition: opacity .15s;
}
.gtp-btn-primary:hover { opacity: .88; }

/* Admin panel wrapper */
.gtp-admin-panel {
  background: #fff;
  border: 1px solid var(--gtp-border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.gtp-admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gtp-border);
  background: #f9fafb;
}
.gtp-admin-count {
  font-size: 12px; color: var(--gtp-muted);
}
.gtp-admin-count strong { color: #111; }
.gtp-admin-topbar-right { display: flex; align-items: center; gap: 8px; }
.gtp-admin-filter-select {
  height: 30px; padding: 0 8px;
  border: 1px solid var(--gtp-border);
  border-radius: 0; font-size: 12px;
  font-family: var(--gtp-font); background: #fff;
}
.gtp-admin-search-wrap {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--gtp-border);
  border-radius: 0; padding: 0 8px; height: 30px;
}
.gtp-admin-search {
  border: none; outline: none;
  font-size: 12px; font-family: var(--gtp-font);
  width: 200px; background: transparent;
}

/* Admin table */
.gtp-admin-table-wrap { overflow-x: auto; }
.gtp-admin-table {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px; font-family: var(--gtp-font);
  min-width: 900px;
}
.gtp-admin-table thead th {
  padding: 9px 12px;
  text-align: left; background: #f3f4f6;
  border-bottom: 2px solid var(--gtp-border);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: #374151; white-space: nowrap; cursor: pointer;
}
.gtp-admin-table thead th:hover { color: var(--gtp-accent); }
.gtp-admin-table thead th.sort-asc::after  { content: ' ↑'; color: var(--gtp-accent); }
.gtp-admin-table thead th.sort-desc::after { content: ' ↓'; color: var(--gtp-accent); }
.gtp-admin-table thead th.no-sort { cursor: default; }
.gtp-admin-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .1s;
}
.gtp-admin-table tbody tr:nth-child(even) { background: #f9fafb; }
.gtp-admin-table tbody tr:hover { background: #f0f4ff; }
.gtp-admin-table td { padding: 8px 12px; vertical-align: middle; color: #374151; }

/* Row action buttons */
.gtp-row-btn {
  height: 26px; padding: 0 9px;
  border: 1px solid var(--gtp-border);
  border-radius: 0; background: #fff;
  font-size: 11px; font-family: var(--gtp-font);
  cursor: pointer; transition: background .12s;
}
.gtp-row-btn:hover { background: #f3f4f6; }
.gtp-row-btn-del {
  border-color: #fca5a5; color: var(--gtp-red);
}
.gtp-row-btn-del:hover { background: var(--gtp-red-lt); }

/* ── MODAL ─────────────────────────────────────────────────── */
.gtp-modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.gtp-modal-overlay.open { opacity: 1; pointer-events: all; }
.gtp-modal {
  background: #fff; border-radius: 0;
  width: 100%; max-width: 780px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  transform: translateY(10px);
  transition: transform .2s;
}
.gtp-modal-overlay.open .gtp-modal { transform: none; }
.gtp-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--gtp-border);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.gtp-modal-title { font-size: 16px; font-weight: 700; color: #1f2937; }
.gtp-modal-close {
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--gtp-muted); line-height: 1;
  padding: 2px 6px; border-radius: 0;
}
.gtp-modal-close:hover { background: #f3f4f6; }
.gtp-modal-body { padding: 18px 22px 22px; }

/* Form sections */
.gtp-form-section {
  border: 1px solid var(--gtp-border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 14px;
}
.gtp-form-section-title {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--gtp-muted); background: #f9fafb;
  padding: 7px 14px;
  border-bottom: 1px solid var(--gtp-border);
}
.gtp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}
.gtp-form-full { grid-column: 1 / -1; }
.gtp-form-group { display: flex; flex-direction: column; gap: 4px; }
.gtp-form-label {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--gtp-muted);
}
.gtp-form-label .gtp-req { color: var(--gtp-red); margin-left: 1px; }
.gtp-form-input,
.gtp-form-select {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--gtp-border);
  border-radius: 0; font-size: 13px;
  font-family: var(--gtp-font); background: #fff;
  outline: none; box-sizing: border-box; width: 100%;
  transition: border-color .15s;
}
.gtp-form-input:focus,
.gtp-form-select:focus { border-color: var(--gtp-accent); }
.gtp-form-textarea {
  padding: 8px 10px;
  border: 1px solid var(--gtp-border);
  border-radius: 0; font-size: 13px;
  font-family: var(--gtp-font); background: #fff;
  outline: none; box-sizing: border-box; width: 100%;
  resize: vertical; min-height: 72px;
  transition: border-color .15s;
}
.gtp-form-textarea:focus { border-color: var(--gtp-accent); }

/* Modal actions */
.gtp-form-actions {
  display: flex; align-items: center; gap: 10px;
  padding-top: 16px; margin-top: 4px;
  border-top: 1px solid var(--gtp-border);
}
.gtp-form-actions .gtp-btn-primary { height: 36px; font-size: 13px; padding: 0 20px; }
.gtp-form-actions .gtp-btn-secondary { height: 36px; font-size: 13px; }
.gtp-btn-modal-del {
  height: 36px; padding: 0 16px;
  background: transparent;
  border: 1px solid var(--gtp-red);
  border-radius: 0;
  color: var(--gtp-red); font-family: var(--gtp-font);
  font-size: 13px; cursor: pointer; margin-right: auto;
  transition: background .15s;
}
.gtp-btn-modal-del:hover { background: var(--gtp-red-lt); }

/* admin toast */
#gtp-admin .gtp-toast {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 999999; padding: 12px 20px;
  border-radius: 0; font-size: 13px; font-weight: 600;
  color: #fff; background: #1f2937;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s; pointer-events: none;
}
#gtp-admin .gtp-toast.show { opacity: 1; transform: none; }
#gtp-admin .gtp-toast.success { background: var(--gtp-green); }
#gtp-admin .gtp-toast.error   { background: var(--gtp-red); }

/* drag & drop row reordering */
#gtp-admin .gtp-admin-table tbody tr.gtp-dragging {
  opacity: 0.4;
}
#gtp-admin .gtp-admin-table tbody tr.gtp-drop-above {
  box-shadow: inset 0 2px 0 0 var(--gtp-blue, #4f8ef7);
}
#gtp-admin .gtp-admin-table tbody tr.gtp-drop-below {
  box-shadow: inset 0 -2px 0 0 var(--gtp-blue, #4f8ef7);
}

/* ── ADMIN TABS ─────────────────────────────────────────────── */
.gtp-admin-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0 0;
  border-bottom: 2px solid #e5e7eb;
  padding: 0 4px;
}
.gtp-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  font-family: var(--gtp-font);
}
.gtp-tab-btn:hover { color: #1f2937; }
.gtp-tab-btn.active { color: #4f8ef7; border-bottom-color: #4f8ef7; }

/* ============================================================
   GLOBETROTTING POKER BRAND LAYER (light touch)
   Keeps the Women's Poker Calendar layout; swaps in DM Sans and the
   Globetrotting Poker colours. Green #1C5439 · Gold #EAC653
   ============================================================ */
#gtp-app {
  --gtp-font:       'DM Sans', system-ui, -apple-system, sans-serif;
  --gtp-font-head:  'DM Sans', system-ui, -apple-system, sans-serif;
  --gtp-accent:     #0D0D0D;
  --gtp-accent-lt:  #F5F5F2;
  --gtp-green:      #0D0D0D;
  --gtp-green-lt:   #F5F5F2;
}
#gtp-app .gtp-disclaimer { background: #F7F5EC; border-color: #EAC653; color: #3A3A36; }
#gtp-app .gtp-badge-new { background: #EAC653; color: #000; }
#gtp-app .gtp-section-badge { background: #0D0D0D; color: #fff; }
#gtp-app .gtp-section-title { font-weight: 600; }

/* Partner Events section: pinned at the top, gold edge so it stands out */
#gtp-app .gtp-section-partner .gtp-section-header { background: #fff; border: 2px solid #EAC653; border-left-width: 6px; }
#gtp-app .gtp-section-partner .gtp-section-header:hover { background: #FBF6E4; }
#gtp-app .gtp-section-partner .gtp-section-title,
#gtp-app .gtp-section-partner .gtp-section-chevron { color: #0D0D0D; }
#gtp-app .gtp-section-partner .gtp-section-badge { background: #EAC653; color: #000; }
#gtp-app .gtp-section-partner .gtp-table-wrap { border-color: #EAC653; border-width: 0 2px 2px; }

/* Wider calendar, centred: break out of the theme's narrow text column (up to 1240px).
   Uses margins only (no transforms), so it stays centred whatever the theme does. */
#gtp-app {
  box-sizing: border-box;
  width: min(1240px, calc(100vw - 32px));
  max-width: none !important;
  margin-left: calc(50% - min(620px, calc(50vw - 16px))) !important;
  margin-right: 0 !important;
}

/* Globetrotting Poker table: fixed columns so nothing overlaps */
#gtp-app .gtp-table { min-width: 0; width: 100%; table-layout: fixed; }
#gtp-app .gtp-table thead th { font-size: 12px; padding: 8px 10px; letter-spacing: .08em; }
#gtp-app .gtp-table td { padding: 9px 10px; vertical-align: top; line-height: 1.35; overflow-wrap: break-word; }
#gtp-app .gtp-table th:nth-child(1), #gtp-app .gtp-td-flag     { width: 42px; padding-right: 0; }
#gtp-app .gtp-table th:nth-child(2), #gtp-app .gtp-td-date     { width: 215px; min-width: 0; max-width: none; white-space: nowrap; }
#gtp-app .gtp-table th:nth-child(3), #gtp-app .gtp-td-event    { width: 37%; min-width: 0; max-width: none; font-size: 15px; }
#gtp-app .gtp-table th:nth-child(4), #gtp-app .gtp-td-brand    { width: 15%; min-width: 0; max-width: none; font-size: 13px; }
#gtp-app .gtp-table th:nth-child(5), #gtp-app .gtp-td-packages { width: auto; font-size: 14px; color: #374151; }
#gtp-app .gtp-td-flag .gtp-flag { display: block; margin-top: 1px; }
#gtp-app .gtp-td-flag .gtp-emoji-flag { font-size: 16px; }
#gtp-app .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#gtp-app .gtp-td-brand .gtp-link { font-size: 13px; }
#gtp-app .gtp-sub-line, #gtp-app .gtp-sub-location, #gtp-app .gtp-sub-location .gtp-link { font-size: 13px; margin-top: 2px; }

/* Dates column: flat flag on its own line, then the dates on one line in a small font */
#gtp-app .gtp-date-inner { flex-direction: column; align-items: flex-start; gap: 4px; flex-wrap: nowrap; }
#gtp-app .gtp-flag { width: 24px; height: 16px; object-fit: cover; border: 1px solid #DCDCD6; border-radius: 0; }
#gtp-app .gtp-date-text { font-size: 12.5px; font-weight: 600; white-space: nowrap; line-height: 1.3; display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Filters: tidy grid that wraps nicely */
#gtp-app .gtp-filter-row { gap: 10px; }
#gtp-app .gtp-filter-inline { flex: 1 1 170px; min-width: 0; }
#gtp-app .gtp-filter-select, #gtp-app .gtp-filter-date, #gtp-app .gtp-cbd-trigger { width: 100%; font-size: 15px; box-sizing: border-box; }
#gtp-app .gtp-filter-label { font-size: 12px; }

/* Phones */
@media (max-width: 700px) {
  #gtp-app { width: calc(100vw - 24px); margin-left: calc(50% - (50vw - 12px)) !important; }
  #gtp-app .gtp-table td.gtp-td-flag, #gtp-app .gtp-table td.gtp-td-date { display: inline-block; width: auto !important; vertical-align: middle; }
  #gtp-app .gtp-table td.gtp-td-flag { padding-right: 0; }
  #gtp-app .gtp-map-wrap { height: 280px; min-height: 280px; }
  #gtp-app .gtp-filter-inline { flex: 1 1 calc(50% - 10px); }
  #gtp-app .gtp-results-bar { flex-direction: column; align-items: stretch; }
  #gtp-app .gtp-search-wrap { width: 100%; box-sizing: border-box; }
  #gtp-app .gtp-search { min-width: 0; }
  #gtp-app .gtp-section-title { font-size: 19px; }
  #gtp-app .gtp-table, #gtp-app .gtp-table tbody, #gtp-app .gtp-table tr, #gtp-app .gtp-table td { display: block; width: 100% !important; box-sizing: border-box; }
  #gtp-app .gtp-table thead { display: none; }
  #gtp-app .gtp-table tr { padding: 8px 0; border-bottom: 1px solid #E4E4DF; }
  #gtp-app .gtp-table td { padding: 2px 12px; border: 0; }
  #gtp-app .gtp-td-date .gtp-date-inner { flex-direction: row; align-items: center; gap: 8px; }
  #gtp-app .gtp-td-brand:empty, #gtp-app .gtp-td-packages:empty { display: none; }
}

/* Links in the table: plain black text, underline only on hover */
#gtp-app .gtp-link { color: #0D0D0D; }
#gtp-app .gtp-link:hover { color: #3A3A36; }
#gtp-app .gtp-last-updated { color: #3A3A36; }

/* 1.4.4: square corners everywhere (filters, buttons, badges, flags, map pins, popups, zoom buttons) */
#gtp-app, #gtp-app *, #gtp-app *::before, #gtp-app *::after,
.leaflet-container, .leaflet-container *, .leaflet-popup-content-wrapper, .leaflet-popup-tip, .leaflet-bar a { border-radius: 0 !important; }

/* 1.4.5: no underlines on calendar links (also overrides the site theme); underline only on hover. Map pins round. */
#gtp-app a, #gtp-app a:visited, .leaflet-popup-content a { text-decoration: none !important; }
#gtp-app a:hover, .leaflet-popup-content a:hover { text-decoration: underline !important; text-decoration-color: currentColor !important; text-decoration-thickness: 1px !important; }

/* 1.5.0: Highlights section — partner and recommended badges, intro line */
#gtp-app .gtp-section-intro { margin: 0; padding: 12px 20px 4px; font-size: 15px; color: #3A3A36; }
#gtp-app .gtp-badge-gp-partner { background: #1C5439 !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; }
#gtp-app .gtp-badge-gp-recommended { background: #EAC653 !important; color: #000 !important; border: 0 !important; border-radius: 0 !important; }

/* 1.5.2: highlight badges in front of the series name */
#gtp-app .gtp-badge-hl { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; margin: 0 6px 4px 0; vertical-align: 2px; letter-spacing: 0; text-transform: none; border-radius: 0 !important; white-space: nowrap; }
#gtp-app .gtp-badge-hl--partner { background: #1C5439; color: #fff; }
#gtp-app .gtp-badge-hl--recommended { background: #EAC653; color: #000; }

/* 1.5.3: Highlights intro line inside the header, under the title */
#gtp-app .gtp-section-titlewrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#gtp-app .gtp-section-titlewrap .gtp-section-intro { margin: 0; padding: 0; font-size: 15px; font-weight: 400; color: #3A3A36; }

/* 1.5.6-gp: DM Sans everywhere, also in the map, its pop-ups and the form fields */
#gtp-app, #gtp-app *, .gtp-map-wrap, .gtp-map-wrap *, #gtp-app .leaflet-container, .leaflet-popup-content { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; }
