/* Travel Page Styles */

#map {
    height: 600px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.travel-stats {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
}

.total-countries {
    text-align: center;
    margin-bottom: 25px;
}

.total-countries h4 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.country-count {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2em;
}

.countries-by-continent {
    display: grid;
    gap: 20px;
}

.continent-group {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.continent-group h5 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #FFD700;
}

.country-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.country-item {
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-block;
}

.country-item:hover {
    transform: scale(1.2);
}

#map-controls {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-filter-button {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.map-filter-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.map-filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-info-window {
    padding: 5px;
    max-width: 250px;
}

.info-location-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-continent {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 5px;
    color: white;
}

.wishlist-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.wishlist-title {
    color: #FFD700;
    margin-bottom: 15px;
}

.wishlist-item {
    position: relative;
    display: inline-block;
    margin: 2px;
}

.wishlist-item .wish-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8em;
    background: white;
    border-radius: 50%;
    padding: 1px;
}

.world-progress-section {
    margin-top: 20px;
}

.progress-title {
    color: #FFD700;
    margin-bottom: 15px;
}

.progress-bar {
    background-color: rgba(255, 255, 255, 0.3);
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 10px 0;
}

.progress-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    height: 100%;
    width: 0%;
    transition: width 1.5s ease-in-out;
    border-radius: 15px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.progress-details {
    font-size: 1.1em;
    margin-top: 5px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .modal-content {
    background-color: #2a2a2a;
    border-color: #555;
    color: #fff;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #555;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

[data-theme="dark"] .modal-header h2 {
    color: #fff;
}

.close-modal {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #FFD700;
}

.country-flag-large {
    font-size: 64px;
    margin-bottom: 20px;
    text-align: center;
}

.country-info {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

[data-theme="dark"] .info-item {
    background-color: #3a3a3a;
    color: #fff;
}

.info-item strong {
    font-weight: 600;
    color: #333;
}

[data-theme="dark"] .info-item strong {
    color: #FFD700;
}

#modal-highlights div {
    margin: 5px 0;
    padding-left: 10px;
}

/* City highlights with social icons */
.highlights-with-social {
    margin-top: 10px;
}

.city-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .city-highlight {
    background: rgba(255, 255, 255, 0.05);
}

.city-highlight:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .city-highlight:hover {
    background: rgba(255, 255, 255, 0.1);
}

.city-name {
    font-weight: 500;
    color: #333;
}

[data-theme="dark"] .city-name {
    color: #fff;
}

.city-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 400px;
}

.city-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.city-social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.city-social-icon.facebook {
    background: #1877f2;
    color: white;
}

.city-social-icon:hover {
    transform: scale(1.1);
}

.city-social-icon::before {
    font-size: 10px;
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: bold;
}

.city-social-icon.instagram::before {
    content: "IG";
}

.city-social-icon.facebook::before {
    content: "FB";
}

/* Journey Animation Styles */
.journey-controls {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
}

.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.journey-title {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0;
}

.journey-buttons {
    display: flex;
    gap: 10px;
}

.journey-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.journey-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.journey-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.journey-btn.active {
    background: #FFD700;
    color: #333;
}

.journey-timeline {
    margin-bottom: 20px;
}

.timeline-container {
    position: relative;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 20px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.timeline-progress::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.journey-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.current-country {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.country-flag-large {
    font-size: 2em;
}

.journey-stats {
    text-align: right;
    font-size: 0.9em;
    opacity: 0.9;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.speed-slider {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
}

.speed-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.animated-marker {
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.journey-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s ease-in-out forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Featured Video Section */
.video-section {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
}

.video-title {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .travel-stats {
        padding: 15px;
        margin-bottom: 20px;
    }

    .total-countries h4 {
        font-size: 1.3em;
    }

    .continent-group h5 {
        font-size: 1.1em;
    }

    .country-item {
        font-size: 1.8em;
    }

    .countries-by-continent {
        gap: 15px;
    }

    .journey-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .journey-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .journey-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .journey-stats {
        text-align: center;
    }
}
