/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Controls section */
.controls-section {
    margin-bottom: 40px;
}

.day-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.day-filter {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.day-filter:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.day-filter.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Map container */
.map-container {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Attraction points */
.attraction-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.attraction-point {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transform: translate(-50%, -50%);
}

.attraction-point::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.attraction-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.attraction-point.filtered {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
}

.day-1 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.day-2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.day-3 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.day-4 { background: linear-gradient(135deg, #10b981, #059669); }

/* Legend */
.legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend h4 {
    margin-bottom: 15px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Itinerary details */
.itinerary-details {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.itinerary-details h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.day-section {
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.day-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.day-section.day-1 { 
    border-left-color: #ef4444; 
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
}
.day-section.day-2 { 
    border-left-color: #06b6d4; 
    background: linear-gradient(135deg, #f0fdff 0%, #f0f9ff 100%);
}
.day-section.day-3 { 
    border-left-color: #3b82f6; 
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}
.day-section.day-4 { 
    border-left-color: #10b981; 
    background: linear-gradient(135deg, #f0fdf4 0%, #f0fff4 100%);
}

.day-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.attraction-list {
    list-style: none;
}

.attraction-item {
    margin-bottom: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.attraction-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.attraction-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.attraction-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Attraction details sidebar */
.attraction-details {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 20px;
}

.attraction-details h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.attraction-details p {
    color: #64748b;
    line-height: 1.6;
}

.attraction-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.close {
    color: #64748b;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 0 30px 30px 30px;
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .attraction-details {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .itinerary-details {
        padding: 25px;
    }
    
    .legend {
        position: static;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .attraction-point {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .day-filters {
        justify-content: center;
    }
    
    .day-filter {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .attraction-point {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

