@charset "UTF-8";
/* ===========================
   TERRAIN360 DEV MAP STYLES
   Version 4.0 - Complete Rewrite
   =========================== */

/* ===========================
   BASE & LAYOUT
   =========================== */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
	font-family: colfax-web, sans-serif;
}

/* ===========================
   MAP CONTAINER
   =========================== */
#map {
    width: 100%;
    height: calc(100vh - 25px); /* Account for footer */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Adjust map when panel is open */
#trail-list-panel:not(.collapsed) ~ #map {
    margin-left: 300px;
}

/* ===========================
   LOADING INDICATOR
   =========================== */
#map-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 25px); /* Account for footer */
    background: rgba(0, 0, 0, 0.75); /* Darker, semi-transparent background like share modal */
    backdrop-filter: blur(4px); /* Add blur effect for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

#map-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.9); /* Brighter base for dark background */
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
  position: relative;
  height: 25px;
  width: 220px; /* a bit wider for longer text */
  text-align: center;
  overflow: hidden;
}

.loading-message {
    color: #fff; /* Ensure text is visible */
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 200ms ease, transform 200ms ease;
    will-change: opacity, transform;
}
/* The one currently shown */
.loading-message.show {
  opacity: 1;
  transform: translateY(0);
}
/* Panel open/collapsed state */
body.panel-open .updated-map-title {
  left: 310px;
}

body.panel-collapsed .updated-map-title {
  left: 40px;
}

/* Optional: keep sponsor logos aligned with title */
body.panel-open .map-sponsor-logo {
  left: 320px;
}

body.panel-open .map-sponsor-logo + .map-sponsor-logo-secondary {
   left: calc(320px + 230px);
}

body.panel-collapsed .map-sponsor-logo {
  left: 60px;
}

body.panel-collapsed .map-sponsor-logo + .map-sponsor-logo-secondary {
  left: calc(60px + 120px);
}

/* ===========================
   MAP TITLE
   =========================== */
.updated-map-title {
    position: absolute;
    top: 10px;
    left: 310px;
    background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px); /* Add blur effect for consistency */
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 2;
    transition: all 0.3s ease;
}

.updated-map-title h1 {
    margin: 0;
    font-size: 22px;
    color: #ffffff;
   
}

.updated-map-title h2 {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
	text-decoration: none;
	padding-bottom:4px;
   
}
.updated-map-title h3 {
    margin: 0; padding-left:15px;
    font-size: 14px;
    color: #ffffff;
	text-decoration: none;
   
}
.updated-map-title a { color: #ffffff;
	text-decoration: none;}
.updated-map-title a:hover { color: #ffffff;
	text-decoration: underline;}

/* Adjust when panel is collapsed */
#trail-list-panel.collapsed ~ .updated-map-title {
    left: 60px;
}

/* ===========================
   TRAIL LIST PANEL
   =========================== */
#trail-list-panel {
    position: fixed;
    left: 0;
    top: 64px;
    width: 300px;
    height: calc(100vh - 89px); /* Account for footer */
    background: rgba(20, 20, 20, 0.92);
		 backdrop-filter: blur(4px); /* Add blur effect for consistency */
    box-shadow: 2px 0 10px rgba(0,0,0,0.6);
    z-index: 100;
    overflow-y: auto;
    overflow-x: visible; /* Changed to visible to prevent clipping the toggle button */
    transition: transform 0.3s ease;
    color: #f0f0f0;
    box-sizing: border-box;
}

#trail-list-panel.collapsed {
    transform: translateX(-300px);
}

.panel-toggle {
    position: absolute;
    right: 10px; /* Inside the panel, 10px from the right edge */
    top: 10px; /* Top right corner, adjust if needed to avoid overlapping the header text */
    width: 30px; /* Slightly smaller for inside placement */
    height: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* Softer corners for inside */
    font-size: 18px; /* Slightly smaller font */
    transition: all 0.2s ease;
    z-index: 102; /* Higher than the panel-header's z-index:101 to ensure it's on top and clickable */
}
.panel-toggle:hover {
    background: white;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.panel-header {
    padding: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
   
    position: sticky;
    top: 0;
    z-index: 101;
    box-sizing: border-box;
}

.panel-header h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #fff;
}

#trail-search {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    background: rgba(40,40,40,0.9);
    color: #f0f0f0;
    transition: border-color 0.2s ease;
}

#trail-search:focus {
    outline: none;
    border-color: #2196F3;
}

#trail-search::placeholder {
    color: #aaa;
}

/* Trail List */
.trail-list {
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

.group-header {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    color: #ddd;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
}

.trail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
 
}

.trail-item:hover {
    background: rgba(255,255,255,0.08);
}

.trail-item.highlighted {
    background: rgba(33,150,243,0.25);
    border-left: 4px solid #2196F3;
    padding-left: 16px;
}

.trail-info {
    flex: 1;
}

.trail-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.trail-length {
    font-size: 12px;
    color: #bbb;
}

.trail-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 10px;
    background: #222;
}

.trail-thumb.no-thumb {
    background: #444;
}

/* ===========================
   PANO PREVIEW PANEL
   =========================== */
#pano-preview {
    position: fixed;
    bottom: 35px; /* Above footer */
    right: 20px;
    width: 400px;
    height: 250px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
     z-index: 9999 !important;
    
    pointer-events: auto !important;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#pano-slider {
    position: relative !important;
    z-index: 1 !important;
}

#pano-title {
    position: relative !important;
    z-index: 10 !important;
    background: rgba(0, 0, 0, 0.7);
	 backdrop-filter: blur(4px); /* Add blur effect for consistency */
    padding: 10px;
}

#pano-compass {
    position: absolute !important;
    z-index: 10 !important;
}
#pano-slider:active {
    cursor: grabbing !important;
}

/* Ensure map doesn't interfere */
.mapboxgl-canvas-container {
    z-index: 1 !important;
}

#pano-preview.hidden {
    transform: translateY(20px);
    pointer-events: none;
	display: none;
}

#pano-preview.visible {
    opacity: 1;
    display: block; /* or flex, depending on your layout */
}

.pano-container {
    width: 100%;
    height: 275px;
    overflow: hidden;
    position: relative;
}

.pano-slider {
    display: inline-block;
    white-space: nowrap;
    font-size: 0;
    line-height: 0;
}

.pano-slider img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    display: inline-block;
    vertical-align: top;
    margin-top: -25px;
}

.pano-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
   
}

#pano-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    line-height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
	backdrop-filter: blur(4px); /* Add blur effect for consistency */
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    transition: opacity 0.15s ease;
    z-index: 2;
}

#pano-close:hover {
    opacity: 0.8;
}

.compass {
    position: absolute;
    top: 8px;
    left: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
	backdrop-filter: blur(4px); /* Add blur effect for consistency */
    border: 1px solid rgba(0,0,0,0.35);
    z-index: 2;
}

.compass .north {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #fff;
    opacity: 0.9;
}

.compass .needle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform-origin: 50% 90%;
    transform: translate(-50%,-70%) rotate(0deg);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 16px solid #ff3b3b;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.4));
}

/* ===========================
   MAPBOX POPUP STYLES
   =========================== */
.mapboxgl-popup-content {
    padding: 0;
    margin: 0;
    position: relative;
    background: transparent;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.mapboxgl-popup-content.fade-in {
    opacity: 1;
}

/* Trail popup close button */
.trail-popup .mapboxgl-popup-close-button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s ease, transform 0.15s ease;
    padding: 0;
}

.trail-popup .mapboxgl-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.mapboxgl-popup img {
    width: 90%;
    height: auto;
    border-radius: 5px 5px 5px 5px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: 50% 0;
}

.mapboxgl-popup .popup-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px); /* Add blur effect for consistency */
    color: #fff;
    padding: 5px 10px;

    font-size: 14px;
    text-align: left;
    border-radius: 0px 0px 5px 5px;
}
.mapboxgl-popup .popup-text span{padding:0px; margin:0px;}
/* Popup tip/arrow styling */
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
    border-bottom-color: rgba(0, 0, 0, 0.8);
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* ===========================
   SPONSOR LOGOS
   =========================== */
.map-sponsor-logo,
.map-sponsor-logo-secondary {
    position: fixed;
    bottom: 35px; /* Above footer */
    left: 320px;
    z-index: 90;
    transition: all 0.3s ease;
}

.map-sponsor-logo img,
.map-sponsor-logo-secondary img {
    display: block;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}



#trail-list-panel.collapsed ~ .map-sponsor-logo {
    left: 20px;
}

#trail-list-panel.collapsed ~ .map-sponsor-logo ~ .map-sponsor-logo-secondary {
    left: calc(60px + 120px);
}

.map-sponsor-logo:hover img,
.map-sponsor-logo-secondary:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* ===========================
   TOP BAR (header)
   =========================== */
:root {
  --t360-topbar-h: 64px; /* adjust height easily */
}

/* Top App Bar (dark, like the trail-info-bar) */
.top-app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--t360-topbar-h);
  background: rgba(0, 0, 0, 0.9); /* same family as trail-info-bar */
	backdrop-filter: blur(4px); /* Add blur effect for consistency */
  color: #fff;
  z-index: 110; /* above map, panel header, and title */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-sizing: border-box;
  /* Optional subtle bottom border line (75% opacity) */
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

/* Left cluster: logo + menu */
.topbar-left { display: flex; align-items: center; gap: 14px; }

.topbar-brand img {
  display: block;
  height: calc(var(--t360-topbar-h) - 28px); /* keeps nice vertical padding */
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.topbar-nav { display: flex; gap: 12px; }
.topbar-nav a {
  color: #eaeaea;
  text-decoration: none;
  font-size:14px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.topbar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Right cluster: action buttons */
.topbar-right { display: flex; align-items: center; gap: 8px;   font-size:14px; }

.topbar-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
	text-decoration: none;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.topbar-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
}
.topbar-btn:active { transform: scale(0.98); }

/* Make existing title clear the top bar (map doesn't move) */
.updated-map-title {
  top: calc(var(--t360-topbar-h) + 10px);
}

/* Make highlights panel start under the top bar too */
#highlights-panel {
  top: calc(var(--t360-topbar-h) + 16px);
}
/* Move Mapbox controls down below top bar */
.mapboxgl-ctrl-top-left,
.mapboxgl-ctrl-top-right {
  top: calc(var(--t360-topbar-h) + 10px) !important;
}

/* Keep bottom controls where they are (above the footer) */
.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right {
  bottom: 35px; /* already accounts for trail-info-bar */
}

/* ===========================
   TRAIL INFO BAR (FOOTER)
   =========================== */
.trail-info-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 80;

}

.trail-info-bar .info-left,
.trail-info-bar .info-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.trail-info-bar span {
    line-height: 25px;
}

/* ===========================
   MAPBOX CONTROLS ADJUSTMENT
   =========================== */
.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right {
    bottom: 35px; /* Above footer */
}

.mapboxgl-ctrl-attrib {
    background: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}
/* ===========================
   HIGHLIGHTS PANEL - DARK THEME
   =========================== */
#highlights-panel {
    position: fixed;
    right: 10px;
    top: 190px; /* Below map controls */
    width: 280px;
    max-height: calc(100vh - 495px); /* Leave room for pano preview */
    background: rgba(20, 20, 20, 0.92); /* Match trail panel dark theme */
	backdrop-filter: blur(4px); /* Add blur effect for consistency */
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.6);
    z-index: 95;
    transition: all 0.3s ease;
	padding-bottom: 30px;
    
}

#highlights-panel.collapsed {
    width: 50px;
    height: 50px;
    max-height: 50px;
    background: rgba(20, 20, 20, 0.9);
}

.highlights-toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ff6b35;
    transition: all 0.2s ease;
    z-index: 2;
}

.highlights-toggle:hover {
    color: #ff8c35;
    transform: scale(1.1);
}

.highlights-toggle .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b35;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}

#highlights-panel.collapsed .highlights-header,
#highlights-panel.collapsed .highlights-list {
    display: none;
}

#highlights-panel .highlights-header {
    display: block; /* or flex, depending on your layout */
}

/* Force header and list to show when NOT collapsed */
#highlights-panel:not(.collapsed) .highlights-header,
#highlights-panel:not(.collapsed) .highlights-list {
    display: block !important;
}

.highlights-header {
    padding: 15px 15px 10px 60px;
	    border-radius: 8px 8px 0px 0px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0,0,0,0.6); /* Match trail panel header */
}

.highlights-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;

}

.highlights-list {
        max-height: calc(100vh - 550px);
    overflow-y: auto;
    padding: 10px;
}

.highlight-item {
    display: flex;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.highlight-item:hover {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: #ff6b35;
    transform: translateX(-2px);
}

.highlight-item.active {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.15);
}

.highlight-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #222;
}

.highlight-info {
    margin-left: 10px;
    flex: 1;
    min-width: 0;
}

.highlight-info h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff; /* White text for dark theme */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight-info p {
    margin: 0 0 5px 0;
    font-size: 11px;
    color: #bbb; /* Light gray for secondary text */
}

.highlight-link {
    font-size: 11px;
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.highlight-link:hover {
    text-decoration: underline;
    color: #42a5f5;
}

/* Scrollbar styling for dark theme */
.highlights-list::-webkit-scrollbar {
    width: 6px;
}

.highlights-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.highlights-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.highlights-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Highlight markers on map - always visible */
.highlight-marker {
    width: 14px !important;
    height: 14px !important;
    background: #ff6b35 !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 5 !important; /* Ensure always visible */
}

.highlight-marker:hover,
.highlight-marker.active {
    transform: scale(1.6) !important;
    background: #ff8c35 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.6) !important;
    z-index: 10 !important;
}

/* Connection line on map */
.highlight-connection {
    stroke: #ff6b35;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    fill: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: dash 20s linear infinite;
}

.highlight-connection.active {
    opacity: 0.8;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* ===========================
   SHARE MODAL
   =========================== */
.share-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    background: rgba(20, 20, 20, 0.95); /* Match trail panel */
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.share-modal-content h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.share-modal-content label {
    display: block;
    color: #ddd;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.close-modal:hover {
    opacity: 1;
}

.input-with-copy {
    position: relative;
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.input-with-copy input,
.input-with-copy textarea {
    flex: 1;
    padding: 10px;
    background: rgba(40, 40, 40, 0.9); /* Match search input */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #f0f0f0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: none;
}

.input-with-copy input:focus,
.input-with-copy textarea:focus {
    outline: none;
    border-color: #2196F3;
}

.copy-btn {
    padding: 10px 16px;
    background: #428bca;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 90px;
}

.copy-btn:hover {
    background: #3071a9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 139, 202, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}
/* ===========================
   MOBILE RESPONSIVE
   =========================== */
@media (max-width: 768px) {
	
	 .mapboxgl-ctrl-top-left,
  .mapboxgl-ctrl-top-right {
    top: calc(var(--t360-topbar-h) + 8px) !important;
  }
	  :root { --t360-topbar-h: 56px; }

  .topbar-nav { display: none; } /* optional: hide menu text on small screens */
  .topbar-brand img {
    height: calc(var(--t360-topbar-h) - 18px);
  }

  /* Title still clears the shorter bar */
  .updated-map-title {
    top: calc(var(--t360-topbar-h) + 8px);
  }

  #highlights-panel {
    right: 10px;
    top: calc(var(--t360-topbar-h) + 10px);
  }
	 #highlights-panel {
        right: 10px;
        top: 60px;
        width: 250px;
        max-height: 40vh;
    }
    
    .highlight-thumb {
        width: 60px;
        height: 45px;
    }
    /* Title */
    body.panel-open .updated-map-title {
        left: 60px;
        font-size: 18px;
        padding: 8px 15px;
    }
    
    /* Panel */
    #trail-list-panel {
        width: 250px;
    }
    
    #trail-list-panel.collapsed {
        transform: translateX(-250px);
    }
    
    /* Pano Preview */
    #pano-preview {
        width: 320px;
        height: 200px;
        right: 10px;
        bottom: 30px;
    }
    
    .pano-slider img {
        width: 320px;
        height: 240px;
    }
    
    /* Sponsor Logos */
    .map-sponsor-logo,
    .map-sponsor-logo-secondary {
        bottom: 30px;
        left: 10px !important;
    }
    
    .map-sponsor-logo img,
    .map-sponsor-logo-secondary img {
        max-height: 40px;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    }
    
    .map-sponsor-logo ~ .map-sponsor-logo-secondary {
        left: 10px !important;
        bottom: 75px;
    }
    
    /* Footer */
    .trail-info-bar {
        font-size: 11px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .updated-map-title h1 {
        font-size: 16px;
    }
    
    .map-sponsor-logo img,
    .map-sponsor-logo-secondary img {
        max-height: 35px;
    }
    
    #pano-preview {
        width: 280px;
        height: 180px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .map-sponsor-logo {
        bottom: 30px;
        right: 10px;
        left: auto !important;
    }
    
    .map-sponsor-logo ~ .map-sponsor-logo-secondary {
        bottom: 30px;
        right: 130px;
        left: auto !important;
    }
}

/* ===========================
   UTILITIES
   =========================== */
.trail-highlight {
    filter: brightness(1.5);
}

/* Scrollbar styling for panel */
#trail-list-panel::-webkit-scrollbar {
    width: 8px;
}

#trail-list-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

#trail-list-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#trail-list-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}