/* --- Travel Page --- */

.travel-header {
    padding: 140px 0 60px;
}

.travel-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.travel-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.travel-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.travel-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.travel-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.travel-stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Map */
.travel-map-section {
    padding: 0 24px 80px;
}

.travel-map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Dark map tiles override */
.leaflet-container {
    background: #1a1a2e;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-right: none;
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    font-size: 20px !important;
    padding: 6px 8px 0 0 !important;
}

.leaflet-popup-close-button:hover {
    color: var(--gold) !important;
}

/* Custom marker */
.custom-marker {
    background: var(--gold);
    border: 2px solid #0a0a0a;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 10px rgba(212, 168, 83, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.custom-marker:hover {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.8);
}

/* Popup content */
.trip-popup {
    padding: 4px 0;
    min-width: 200px;
}

.trip-popup-flag {
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1;
}

.trip-popup-country {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 4px;
}

.trip-popup-city {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trip-popup-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Trip Grid */
.trip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.trip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.trip-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.trip-card-flag {
    font-size: 1.8rem;
    line-height: 1;
}

.trip-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trip-card-country {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
}

.trip-card-city {
    font-size: 1rem;
    font-weight: 600;
}

.trip-card-cities {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Nav active link */
.nav-link-active {
    color: var(--gold) !important;
}

/* Leaflet zoom controls dark theme */
.leaflet-control-zoom a {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-card-hover) !important;
    color: var(--gold) !important;
}

.leaflet-control-attribution {
    background: rgba(10, 10, 10, 0.7) !important;
    color: var(--text-dim) !important;
    font-size: 0.65rem !important;
}

.leaflet-control-attribution a {
    color: var(--text-muted) !important;
}

/* Popup link */
.trip-popup-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold);
    transition: opacity 0.2s ease;
}

.trip-popup-link:hover {
    opacity: 0.8;
}

/* --- Trip Article Page --- */
.trip-article {
    padding: 140px 0 80px;
}

.trip-back {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    transition: color 0.3s ease;
}

.trip-back:hover {
    color: var(--gold);
}

.trip-article-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
}

.trip-article-flag {
    font-size: 3.5rem;
    line-height: 1;
}

.trip-article-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trip-article-country {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
}

.trip-article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.trip-article-body {
    max-width: 720px;
}

.trip-article-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.trip-article-body p:last-child {
    margin-bottom: 0;
}

.trip-article-body strong {
    color: var(--text);
}

.trip-article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text);
}

.trip-article-body img {
    width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    border: 1px solid var(--border);
}

.trip-article-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 24px;
    margin: 28px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.trip-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.trip-gallery img {
    margin: 0;
    height: 200px;
    object-fit: cover;
}

.trip-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 24px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.trip-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.trip-article-body video {
    width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    border: 1px solid var(--border);
}

/* City links in popup */
.trip-popup-city-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
}

.trip-popup-city-link:hover {
    opacity: 0.8;
}

/* City links in cards */
.trip-city-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--gold);
    padding: 4px 10px;
    margin: 3px 4px 3px 0;
    background: var(--gold-dim);
    border-radius: 100px;
    transition: all 0.2s ease;
}

.trip-city-link:hover {
    background: var(--gold);
    color: #0a0a0a;
}

.trip-city-text {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 10px;
    margin: 3px 4px 3px 0;
    background: var(--bg-card-hover);
    border-radius: 100px;
}

@media (max-width: 640px) {
    .travel-map {
        height: 350px;
    }

    .trip-grid {
        grid-template-columns: 1fr;
    }

    .travel-stats {
        gap: 24px;
    }
}
