/* Geo Trails – Frontend Map Styles */

.geo-trail-map-wrap {
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.geo-trail-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    background: #e8e0d8;
}

/* Stats bar */
.gt-stats {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    flex-wrap: wrap;
    align-items: center;
}

.geo-trail-map-wrap .geo-trail-map {
    border-radius: 0 0 10px 10px;
}

.geo-trail-map-wrap .gt-stats + .geo-trail-map {
    border-radius: 0 0 10px 10px;
}

.gt-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gt-stat strong {
    font-weight: 700;
    font-size: 15px;
}

/* Controls */
.gt-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 4px 0;
    flex-wrap: wrap;
}

.gt-buttons {
    display: flex;
    gap: 8px;
}

.gt-btn {
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.gt-btn:active { transform: scale(0.97); }

.gt-btn-center {
    background: #f0f0f0;
    color: #333;
}
.gt-btn-center:hover { background: #e0e0e0; }

.gt-btn-animate {
    background: #e8433a;
    color: #fff;
}
.gt-btn-animate:hover { background: #c0312a; }
.gt-btn-animate.running { background: #888; }

/* No data */
.gt-no-data {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #777;
    font-style: italic;
    text-align: center;
}

/* Overview popup list */
.gt-popup-list {
    margin-top: 12px;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.25) !important;
}

.gt-leaflet-popup h4 {
    margin: 0 0 4px;
    font-size: 14px;
}
.gt-leaflet-popup a {
    color: #e8433a;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}
.gt-leaflet-popup .gt-popup-meta {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

/* Animation dot */
.gt-anim-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e8433a;
    box-shadow: 0 0 6px rgba(232,67,58,.6);
}

/* ── Journey / Category map extras ────────────────────────── */
.gt-map-title {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 100%);
    color: #fff;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: 8px 8px 0 0;
}

.gt-map-title + .geo-trail-map {
    border-radius: 0 0 10px 10px;
}

/* Popup extras */
.gt-popup-num {
    display: inline-block;
    background: #e8433a;
    color: #fff;
    border-radius: 50%;
    width: 22px; height: 22px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 5px;
}

.gt-popup-stats {
    display: flex;
    gap: 8px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.gt-popup-stat {
    font-size: 11px;
    color: #555;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ── Rich Popups (Meks-style) ──────────────────────────────── */
.gt-leaflet-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-width: 200px;
    max-width: 280px;
}

.gt-popup-thumb {
    margin: -14px -20px 10px;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    max-height: 140px;
}

.gt-popup-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.gt-popup-body {
    padding: 0;
}

.gt-popup-cats {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.gt-popup-cats a {
    color: #e8433a;
    text-decoration: none;
}

.gt-leaflet-popup h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.gt-leaflet-popup h4 a {
    color: #1a1a2e;
    text-decoration: none;
}

.gt-leaflet-popup h4 a:hover { color: #e8433a; }

.gt-popup-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
}

.gt-popup-excerpt {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

.gt-popup-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gt-popup-stat {
    font-size: 11px;
    background: #f5f5f5;
    padding: 2px 7px;
    border-radius: 10px;
    color: #555;
}

.gt-popup-read {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #e8433a;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    width: 100%;
}

.gt-popup-num {
    float: right;
    background: #e8433a;
    color: #fff;
    border-radius: 50%;
    width: 22px; height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

/* Leaflet popup sizing override */
.leaflet-popup-content {
    margin: 14px 20px !important;
}
