/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('ressources/split-skyline-sea.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Hero Header Styles */
.hero-header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Countdown Timer Styles */
.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.countdown-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 3;
    background: transparent;
    min-height: 100vh;
}

.timeline-container {
    padding: 4rem 1rem 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Timeline Styles */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-tile {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    min-height: 100px;
    display: flex;
    align-items: stretch;
    max-width: 800px;
    width: 100%;
}

.timeline-tile::after {
    display: none;
}

.timeline-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.timeline-tile:not(.expanded) {
    flex-direction: row;
    align-items: stretch;
}

.timeline-tile.expanded {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
}

.timeline-tile.expanded .tile-content {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    flex-direction: column;
}

.timeline-tile.expanded .tile-image {
    width: 100%;
    height: 140px;
    min-width: 100%;
    margin: 0;
    align-self: stretch;
    border-radius: 20px 20px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-tile.expanded .tile-details {
    position: relative;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    padding-top: 0.5rem;
}

.tile-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    margin: 1rem;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.5rem 1.5rem 0;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0rem;
    gap: 0.5rem;
}

.tile-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    width: 100%;
}

.tile-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    align-self: flex-start;
    width: 120px;
    min-width: 120px;
}

.tile-date {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.tile-hours {
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 500;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.tile-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.timeline-tile.expanded .tile-details {
    opacity: 1;
    max-height: 500px;
    margin-top: 0.5rem;
    padding-left: 0;
}

/* Day Separator Styles */
.day-separator {
    position: relative;
    text-align: center;
    margin: 1rem 0;
    z-index: 3;
}

.day-separator:first-child {
    margin-top: 6rem;
}

.day-separator-text {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-shadow: none;
}

.tile-location {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

.tile-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.tile-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(15px);
    text-shadow: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 180px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tile-link:hover {
    background: rgba(255, 255, 255, 1);
    color: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 1);
}

.tile-link.location-link {
    background: rgba(0, 128, 128, 0.9);
    border-color: rgba(0, 128, 128, 0.95);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tile-link.location-link:hover {
    background: rgba(0, 128, 128, 1);
    border-color: rgba(0, 128, 128, 1);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 128, 128, 0.4);
}

.tile-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Background Images for tile images */
.tile-image[data-background*="drive.jpg"] {
    background-image: url('ressources/drive.jpg');
}

.tile-image[data-background*="flight.jpg"] {
    background-image: url('ressources/flight.jpg');
}

.tile-image[data-background*="laura.jpg"] {
    background-image: url('ressources/laura.jpg');
}

.tile-image[data-background*="blue-cave.jpg"] {
    background-image: url('ressources/blue-cave.jpg');
}

.tile-image[data-background*="city.jpg"] {
    background-image: url('ressources/city.jpg');
}

.tile-image[data-background*="krka.avif"] {
    background-image: url('ressources/krka.avif');
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .countdown-timer {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
        margin-top: 1.5rem;
    }
    
    .countdown-item {
        padding: 0.6rem 0.7rem;
        border-radius: 12px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .hero-content {
        padding: 1.5rem;
        max-width: 320px;
        width: auto;
    }
    
    /* Timeline Mobile Styles */
    .timeline-container {
        padding: 4rem 0.5rem 1rem 0.5rem;
    }
    
    .timeline-tile:not(.expanded) {
        flex-direction: row;
        align-items: stretch;
    }
    
    .timeline-tile.expanded {
        flex-direction: column;
    }
    
    .tile-image {
        width: 100px;
        height: 100px;
        min-width: 100px;
        margin: 0.75rem;
        align-self: flex-start;
    }
    
    .timeline-tile.expanded .tile-image {
        width: 100%;
        height: 120px;
        min-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .tile-content {
        padding: 0.75rem 0.75rem 0.75rem 0;
    }
    
    .timeline-tile.expanded .tile-content {
        padding: 1rem 1rem 1rem 1rem;
    }
    
    .tile-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tile-time {
        align-items: flex-start;
        text-align: left;
    }
    
    .tile-title {
        font-size: 1.1rem;
    }
    
    .tile-link {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        margin-right: 0.3rem;
        margin-bottom: 0.3rem;
        min-width: 150px;
    }
    
    .tile-links-container {
        gap: 0.3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .countdown-timer {
        gap: 1.5rem;
    }
    
    .countdown-item {
        padding: 1.5rem 1.5rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .hero-content {
        max-width: 500px;
        padding: 3rem;
    }
    
    /* Timeline Tablet Styles */
    .timeline-container {
        padding: 4rem 1rem 2rem 1rem;
    }
    
    .timeline {
        gap: 2rem;
    }
    
    .timeline-tile:not(.expanded) {
        flex-direction: row;
        align-items: stretch;
    }
    
    .timeline-tile.expanded {
        flex-direction: column;
    }
    
    .tile-image {
        width: 120px;
        height: 120px;
        min-width: 120px;
        margin: 1.5rem;
    }
    
    .timeline-tile.expanded .tile-image {
        width: 100%;
        height: 140px;
        min-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .tile-content {
        padding: 1.5rem 2rem 1.5rem 0;
    }
    
    .timeline-tile.expanded .tile-content {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    }
    
    .tile-title {
        font-size: 1.3rem;
    }
    
    .tile-description {
        font-size: 1rem;
    }
    
    .tile-link {
        padding: 1rem 1.5rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        min-width: 200px;
    }
    
    .tile-links-container {
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 600px;
    }
    
    .timeline-container {
        padding: 5rem 2rem 3rem 2rem;
    }
    
    /* Timeline Desktop Styles */
    .timeline {
        gap: 2.5rem;
    }
    
    .timeline-tile {
        transition: all 0.3s ease, transform 0.3s ease;
    }
    
    .timeline-tile:hover {
        transform: translateY(-6px);
    }
    
    .timeline-tile:not(.expanded) {
        flex-direction: row;
        align-items: stretch;
    }
    
    .timeline-tile.expanded {
        flex-direction: column;
    }
    
    .tile-image {
        width: 140px;
        height: 140px;
        min-width: 140px;
        margin: 2rem;
    }
    
    .timeline-tile.expanded .tile-image {
        width: 100%;
        height: 160px;
        min-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .tile-content {
        padding: 2rem 2.5rem 2rem 0;
    }
    
    .timeline-tile.expanded .tile-content {
        padding: 2rem 2rem 2rem 2rem;
    }
    
    .tile-title {
        font-size: 1.4rem;
    }
    
    .tile-header {
        gap: 1rem;
    }
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Touch-friendly interaction */
@media (pointer: coarse) {
    .countdown-item,
    .timeline-tile {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .tile-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Timeline entrance animations */
.timeline-tile {
    transition: all 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}

.timeline-tile:nth-child(1) { animation-delay: 0.1s; }
.timeline-tile:nth-child(2) { animation-delay: 0.2s; }
.timeline-tile:nth-child(3) { animation-delay: 0.3s; }
.timeline-tile:nth-child(4) { animation-delay: 0.4s; }
.timeline-tile:nth-child(5) { animation-delay: 0.5s; }
.timeline-tile:nth-child(6) { animation-delay: 0.6s; }
.timeline-tile:nth-child(7) { animation-delay: 0.7s; }
.timeline-tile:nth-child(8) { animation-delay: 0.8s; }

/* Focus styles for accessibility */
.timeline-tile:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Active/pressed state for tiles */
.timeline-tile:active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

.tile-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

/* Loading states */
.timeline-tile.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Enhanced glass effect for active tiles */
.timeline-tile.expanded {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(25px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Preload optimization */
.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

/* View Container and Navigation */
.view-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.timeline-container {
    transform: translateX(0);
}

.timeline-container.slide-left {
    transform: translateX(-100%);
}

.map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.map-container.active {
    transform: translateX(0);
}

/* Map Header */
.map-header {
    position: relative;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.back-to-timeline-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-to-timeline-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.back-icon {
    font-size: 1.2rem;
}

.map-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Map Content */
.map-content {
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
}

.legend-marker {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.legend-text {
    white-space: nowrap;
}

/* Custom Leaflet Styles */
.leaflet-container {
    background: rgba(0, 0, 0, 0.1) !important;
}

.leaflet-tile-pane {
    opacity: 0.8;
}

.leaflet-control-zoom {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
}

.leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
}

.leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-popup-content {
    margin: 1rem;
    font-size: 0.9rem;
}

.leaflet-popup-close-button {
    color: white !important;
    font-size: 1.2rem !important;
    padding: 0rem !important;
}

/* Popup Content Styles */
.popup-content {
    min-width: 200px;
    max-width: 280px;
}

.popup-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.popup-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.popup-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.popup-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.popup-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.popup-btn.primary {
    background: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
}

.popup-btn.primary:hover {
    background: rgba(0, 123, 255, 0.5);
}

/* Custom Marker Styles */
.custom-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: markerPulse 3s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.custom-marker:hover {
    transform: scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: none;
}

.custom-marker.airport {
    background: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
}

.custom-marker.accommodation {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

.custom-marker.activity {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
}

.custom-marker.city {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

/* Responsive Design for Map */
@media (max-width: 768px) {
    .map-header {
        padding: 0.75rem;
    }
    
    .map-title {
        font-size: 1.1rem;
    }
    
    .back-to-timeline-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .map-legend {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .popup-content {
        min-width: 180px;
        max-width: 250px;
    }
    
    .custom-marker {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .swipe-indicator {
        bottom: 1.5rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Loading Animation for Map */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Swipe Indicator */
.swipe-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.swipe-indicator.show {
    opacity: 1;
    transform: translateY(0);
    animation: swipePulse 2s ease-in-out infinite;
}

@keyframes swipePulse {
    0%, 100% { 
        opacity: 0.8; 
        transform: translateY(0) translateX(0); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(0) translateX(-5px); 
    }
}
