/* GlidingLog — custom overrides */

/* Vue: hide elements with v-cloak until Vue mounts */
[v-cloak] { display: none !important; }

body {
  background-color: #f8f9fa;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
#sidebar {
  min-height: 100vh;
  width: 240px;
  background-color: #1a2e44;
  transition: width 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
}

#sidebar .nav-link {
  color: #adb5bd;
  border-radius: 6px;
  padding: .45rem .75rem;
  font-size: .9rem;
  white-space: nowrap;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, .1);
  color: #fff;
}

/* Compact sidebar — triggered by body.sidebar-compact */
body.sidebar-compact #sidebar {
  width: 58px;
}
body.sidebar-compact .sidebar-label,
body.sidebar-compact .sidebar-user {
  display: none !important;
}
body.sidebar-compact .sidebar-brand {
  justify-content: center;
  margin-bottom: 1.25rem !important;
}
body.sidebar-compact #sidebar .nav-link {
  padding: .5rem;
  justify-content: center;
  font-size: 1.1rem;
}
body.sidebar-compact #sidebar .nav-link .sidebar-icon {
  margin: 0;
}
body.sidebar-compact .sidebar-icon-only {
  display: inline !important;
}

/* Main area */
#main-content {
  min-height: 100vh;
}

/* Tables */
.table-hover tbody tr:hover { background-color: rgba(13, 110, 253, .04); }

/* Badge category */
.badge-glider    { background-color: #cfe2ff; color: #084298; }
.badge-motor     { background-color: #e2d9f3; color: #3d0a91; }
.badge-ultralight{ background-color: #fff3cd; color: #664d03; }

/* ── Flight detail — WeGlide-style layout ──────────────────────────────── */

/* On detail page the main-content has no padding */
body.sidebar-compact #main-content {
  padding: 0 !important;
  overflow: hidden;
}

/* Outer shell: detail sidebar + main panel */
#detail-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #111827;
}

/* Left info sidebar */
#detail-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #1a2336;
  border-right: 1px solid #2a3a50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a3a50 transparent;
}

#detail-sidebar::-webkit-scrollbar { width: 4px; }
#detail-sidebar::-webkit-scrollbar-thumb { background: #2a3a50; border-radius: 2px; }

.detail-sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid #2a3a50;
  flex-shrink: 0;
}

.detail-info-block {
  padding: .75rem 1rem;
  flex: 1;
}

.detail-dl {
  margin: 0;
  font-size: .8rem;
}
.detail-dl dt {
  color: #6b7a8d;
  font-weight: 500;
  margin-top: .6rem;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .04em;
}
.detail-dl dd {
  color: #d1d5e0;
  margin: .1rem 0 0 0;
}

.detail-sidebar-footer {
  padding: .75rem 1rem 1rem;
  border-top: 1px solid #2a3a50;
  flex-shrink: 0;
}

.detail-upload-section {
  padding: .75rem 1rem;
  border-top: 1px solid #2a3a50;
}

/* Right main panel: map + status bar + resizer + charts */
#detail-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Track color-mode selector */
#track-mode-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #0e1623;
  border-bottom: 1px solid #1e2d40;
  flex-shrink: 0;
}
.track-mode-btn {
  padding: 2px 9px;
  font-size: 11px;
  border: 1px solid #2a3a50;
  border-radius: 4px;
  background: transparent;
  color: #8a9ab0;
  cursor: pointer;
  line-height: 1.5;
  transition: background .15s, color .15s;
}
.track-mode-btn:hover { background: #1e2d40; color: #d0d8e8; }
.track-mode-btn.active { background: #0d6efd; border-color: #0d6efd; color: #fff; }

/* Leaflet map — fills remaining space above charts */
#flight-map {
  flex: 1;
  min-height: 120px;
  background: #0e1623;
}

/* Status bar (hover info) */
#status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 12px;
  background: rgba(10, 16, 28, 0.95);
  border-top: 1px solid #1e2d40;
  font-size: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cs-item { color: #d0d8e8; line-height: 1.4; }
.cs-dim   { color: #5a6a7e; }
.cs-blue  { color: #3498db; }
.cs-yellow{ color: #f1c40f; }

/* Drag handle */
#chart-resizer {
  height: 6px;
  background: #1a2336;
  border-top: 1px solid #2a3a50;
  cursor: ns-resize;
  flex-shrink: 0;
  position: relative;
}
#chart-resizer::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #2a3a50;
  border-radius: 1px;
  margin: 2px auto;
}
#chart-resizer:hover,
#chart-resizer.dragging {
  background: #1e2d40;
}
#chart-resizer.dragging::after { background: #0d6efd; }

/* Chart panel */
#chart-panel {
  height: 200px;
  min-height: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #0e1623;
  border-top: 1px solid #1e2d40;
}

/* uPlot chart wraps — stacked vertically in #chart-panel */
.uchart-wrap { display: block; background: #0e1623; overflow: hidden; }
.uchart-wrap .u-wrap { display: block !important; }

/* uPlot dark-theme cursor lines */
.uplc .u-cursor-x,
.uplc .u-cursor-y { border-color: rgba(255,255,255,0.2) !important; }

/* uPlot cursor dots */
.uplc .u-cursor-pt { border-width: 2px !important; }


/* Stat card */
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; }
.stat-card .stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; }

/* Offcanvas form */

/* ── Mobile responsive layout ──────────────────────────────────────────── */

/* Mobile top bar — hidden on desktop */
#mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: #1a2e44;
  z-index: 1040;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
#nav-toggle-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border: none; border-radius: 6px;
  color: #fff; font-size: 16px;
  cursor: pointer; flex-shrink: 0;
}

/* Backdrop */
#nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1045;
}
#nav-backdrop.mob-open { display: block; }

@media (max-width: 767px) {
  /* Show mobile topbar */
  #mobile-topbar { display: flex; }

  /* Sidebar becomes a fixed overlay */
  #sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    z-index: 1050;
    width: min(80vw, 280px) !important;
    transform: translateX(-100%);
    transition: transform .25s ease;
    min-height: unset;
  }
  #sidebar.mob-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,.5);
  }
  /* Always show full labels inside mobile overlay */
  #sidebar .sidebar-label { display: inline !important; }
  #sidebar .sidebar-user  { display: flex !important; }
  #sidebar .sidebar-brand { justify-content: flex-start !important; margin-bottom: 1rem !important; }
  #sidebar .nav-link { padding: .55rem .75rem; font-size: .9rem; justify-content: flex-start; }
  #sidebar .nav-link .sidebar-icon { margin: 0; }

  /* Main area: full width, padding to clear topbar */
  #main-content {
    padding: 4.5rem 1rem 1rem !important;
    width: 100% !important;
  }
  /* But pages with full-screen layouts (live, detail) handle their own offset */
  body.sidebar-compact #main-content { padding: 0 !important; }

  /* Detail page: shell offset by topbar; sidebar as overlay */
  body.sidebar-compact #detail-shell {
    padding-top: 48px;
    height: 100vh;
    box-sizing: border-box;
  }
  #detail-sidebar {
    position: fixed !important;
    top: 48px; left: 0; bottom: 0;
    z-index: 1200;
    width: min(85vw, 320px) !important;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  #detail-sidebar.mob-open { transform: translateX(0); box-shadow: 4px 0 16px rgba(0,0,0,.5); }

  /* Responsive tables: horizontal scroll */
  .table-responsive-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }

  /* Offcanvas: full width on mobile */
  .offcanvas.offcanvas-end { width: 100% !important; }

  /* Cards in dashboard: full width */
  .stat-card { margin-bottom: 1rem; }
}
.offcanvas-end { width: 480px !important; }

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
}

/* ── Detail sidebar: stats + thermals blocks ───────────────────────────── */
.detail-info-block + .detail-info-block {
  border-top: 1px solid #2a3a50;
}

.detail-section-title {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7a8d;
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.detail-section-badge {
  background: #1e3050;
  color: #7ec8e3;
  border-radius: 10px;
  padding: 0 6px;
  font-size: .65rem;
  font-weight: 600;
}
.detail-section-sub {
  color: #4a5a6e;
  font-size: .65rem;
  margin-left: auto;
}
.detail-dl-sm dt { margin-top: .4rem; }

/* Stats and thermals blocks should not flex-grow (sidebar scrolls) */
#flight-stats-block,
#thermals-block {
  flex: none;
}

/* Thermals list */
#thermals-list {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.thermal-row {
  background: #0e1e2e;
  border: 1px solid #1e3050;
  border-radius: 5px;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  transition: border-color .15s, background .15s;
}
.thermal-row:hover { border-color: #3a6090; background: #122030; }
.thermal-seq {
  color: #6b7a8d;
  min-width: 24px;
  font-size: .7rem;
  flex-shrink: 0;
}
.thermal-dir {
  font-size: .7rem;
  padding: 0 5px;
  border-radius: 3px;
  font-weight: 600;
  flex-shrink: 0;
}
.thermal-dir-l { background: #1a2e44; color: #7ec8e3; }
.thermal-dir-r { background: #2e1a44; color: #c87ef0; }
.thermal-gain  { font-weight: 600; }
.thermal-vario { margin-left: auto; color: #5a8; font-size: .75rem; flex-shrink: 0; }

/* On the dark detail page Bootstrap text-muted/text-secondary are unreadable — override */
body.sidebar-compact .text-muted,
body.sidebar-compact .text-secondary {
  color: #8a9ab0 !important;
}

/* ── RunwayLayer — airport labels & layer control ──────────────────────── */

/* Label marker anchored via transform (iconAnchor=[0,0] in JS) */
.rl-label {
  display: inline-block;             /* shrink-wrap to text width so background fits */
  transform: translate(-50%, 6px);   /* center horizontally, sit just below ARP */
  pointer-events: none;
  user-select: none;
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
  padding: 1px 5px 2px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.28);
}
.rl-code {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1a2e44;
}
.rl-name {
  display: block;
  font-size: 9px;
  color: #445566;
}

/* Layer control icons injected via HTML in L.control.layers labels */
.rl-ctrl-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 3px;
  vertical-align: middle;
  background: #505050;
  border-radius: 2px;
  font-size: 0;
}
.rl-ctrl-icon.rl-ctrl-label {
  background: rgba(255,255,255,.82);
  border: 1px solid #aaa;
  font-size: 8px;
  font-weight: 700;
  color: #1a2e44;
  text-align: center;
  line-height: 12px;
}

/* Compact layer control (no title bar, smaller padding) */
.leaflet-control-layers-expanded {
  padding: 4px 8px !important;
  font-size: 12px !important;
  background: rgba(255,255,255,.9) !important;
  border-radius: 6px !important;
}
.leaflet-control-layers label {
  margin-bottom: 2px !important;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* ── Flight gallery (photos) ─────────────────────────────────────────────── */

/* List layout (used in social/detail page) */
.gl-photo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gl-photo-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 8px;
}
.gl-photo-row-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  background: #1a1a2e;
  cursor: zoom-in;
  text-decoration: none;
  position: relative;
}
.gl-photo-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gl-photo-row-meta {
  flex: 1;
  min-width: 0;
}
.gl-pmeta-caption {
  font-size: .85rem;
  color: #d1d5e0;
  font-style: italic;
  margin-bottom: 6px;
}
.gl-pmeta-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 8px;
  margin: 0;
  font-size: .75rem;
}
.gl-pmeta-dl dt {
  color: #6b7a8d;
  white-space: nowrap;
  font-weight: 400;
  padding: 1px 0;
}
.gl-pmeta-dl dd {
  color: #b0bec5;
  margin: 0;
  padding: 1px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gl-pmeta-dl dd.text-success { color: #4caf82 !important; }
.gl-pmeta-dl dd.text-warning { color: #f0a040 !important; }
.gl-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #e9ecef;
  cursor: zoom-in;
  text-decoration: none;
}
.gl-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
  display: block;
}
.gl-photo-row-thumb:hover .gl-gallery-item img { transform: scale(1.04); }
.gl-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3px 6px;
  font-size: 11px;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55));
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gl-photo-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(220, 53, 69, .85);
  color: #fff;
  font-weight: 700;
  line-height: 18px;
  font-size: 16px;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
}
.gl-gallery-item:hover .gl-photo-del { opacity: 1; }
.gl-photo-row-thumb:hover .gl-photo-del { opacity: 1; }

/* Photo download icon (gallery thumb) */
.gl-photo-dl {
  position: absolute;
  top: 4px; left: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(40, 110, 180, .85);
  color: #fff;
  font-weight: 700;
  line-height: 22px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
  z-index: 2;
}
.gl-photo-dl:hover { background: rgba(40, 110, 180, 1); color: #fff; }
.gl-gallery-item:hover .gl-photo-dl { opacity: 1; }
.gl-photo-row-thumb:hover .gl-photo-dl { opacity: 1; }

/* Lightbox overlay */
.gl-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 22, .92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.gl-lightbox.hidden { display: none; }
.gl-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.gl-lightbox-caption {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 4px;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gl-lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 24px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}
.gl-lightbox-btn:hover { background: rgba(255,255,255,.22); }
.gl-lightbox-prev { left: 18px; }
.gl-lightbox-next { right: 18px; }
.gl-lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
}
.gl-lightbox-dl {
  position: absolute;
  top: 18px; right: 64px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.gl-lightbox-dl:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ── Geotagged photo pins on Leaflet map ────────────────────────────────── */

/* Leaflet DivIcon wrapper — reset defaults */
.gl-photo-pin-wrapper {
  background: transparent !important;
  border: none !important;
}

/* Circular thumbnail */
.gl-photo-pin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gl-photo-pin:hover {
  transform: scale(1.13);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .65);
}
.gl-photo-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Re-enable pointer events on markers (pane has pointer-events:none by Leaflet) */
.leaflet-photoPane > .leaflet-marker-pane,
.leaflet-pane.photoPane .leaflet-marker-icon {
  pointer-events: auto;
}

/* Photo popup content */
.gl-photo-popup-wrap .leaflet-popup-content-wrapper {
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .35);
}
.gl-photo-popup-wrap .leaflet-popup-content {
  margin: 0;
  width: auto !important;
}
.gl-photo-popup {
  width: 240px;
}
.gl-photo-popup a { display: block; }
.gl-photo-popup img {
  width: 100%;
  border-radius: 5px;
  display: block;
  cursor: zoom-in;
}
.gl-photo-popup-meta {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Video gallery (social page) ──────────────────────────────────────── */
.gl-video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gl-video-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 8px;
}
.gl-video-row-poster {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.gl-video-row-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gl-video-row-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.4);
  background: linear-gradient(135deg, #1a1a2e, #2c1a3e);
}
.gl-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.85);
  color: #1a1a2e;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: transform .15s ease, background .15s ease;
}
.gl-video-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}
.gl-video-dur {
  position: absolute;
  right: 6px; bottom: 6px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.gl-video-status-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  text-align: center;
  min-width: 120px;
}
.gl-video-status-badge.gl-video-failed { color: #ff6b6b; }
.gl-video-status-badge.gl-video-processing { color: #f0a040; }
.gl-video-status-pct { font-weight: bold; margin-left: 6px; }
.gl-video-del {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.gl-video-del:hover { background: rgba(220,53,69,.85); }
.gl-video-geotag {
  position: absolute;
  bottom: 4px; left: 4px;
  background: rgba(0,0,0,.6);
  color: #8ab4d4;
  border: 1px solid #2a3a50;
  border-radius: 4px;
  width: 22px; height: 22px;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity .15s, background .15s;
}
.gl-video-row-poster:hover .gl-video-geotag { opacity: 1; }
.gl-video-geotag:hover { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.gl-video-row-meta {
  flex: 1;
  min-width: 0;
}
@media (max-width: 720px) {
  .gl-video-row { flex-direction: column; }
  .gl-video-row-poster { width: 100%; }
}

/* ── Video map markers ─────────────────────────────────────────────── */
.gl-video-pin-wrapper {
  background: transparent !important;
  border: none !important;
}
.gl-video-pin {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  cursor: pointer;
  position: relative;
  background: #000;
  transition: transform .15s ease;
}
.gl-video-pin:hover { transform: scale(1.13); }
.gl-video-pin img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gl-video-pin-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255,255,255,.7);
}
.gl-video-pin-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  pointer-events: none;
}

/* ── HLS player modal ─────────────────────────────────────────────── */
.gl-vmodal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.gl-vmodal.hidden { display: none; }
.gl-vmodal-video {
  max-width: 100%;
  max-height: calc(100vh - 48px);
  width: auto;
  background: #000;
  outline: none;
  border-radius: 4px;
}
.gl-vmodal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 12px;
  z-index: 1;
}
.gl-vmodal-close:hover { color: #ff6b6b; }

.gl-vmodal-dl {
  position: absolute;
  top: 18px;
  right: 76px;
  background: rgba(255,255,255,.14);
  color: #fff;
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 20px;
  line-height: 38px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 1;
  transition: background .15s ease;
}
.gl-vmodal-dl:hover { background: rgba(255,255,255,.28); color: #fff; }

/* Video download button on gallery poster */
.gl-video-dl {
  position: absolute;
  top: 6px; left: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(40, 110, 180, .85);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
  transition: background .15s ease, transform .15s ease;
}
.gl-video-dl:hover {
  background: rgba(40, 110, 180, 1);
  color: #fff;
  transform: scale(1.08);
}

