* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.logo-container {
    flex-shrink: 0;
}

.tour-logo {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 3px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.title-container {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

header h1 {
    font-size: 3rem;
    color: #5a67d8;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.1;
}

header p {
    font-size: 1.2rem;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.controls {
    margin-bottom: 20px;
}

.day-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.day-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 100px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.day-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.day-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.day-btn.no-quizzes {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.day-btn.no-quizzes:hover {
    background: #e2e8f0;
    transform: none;
    box-shadow: none;
    color: #a0aec0;
}

.day-btn.no-quizzes::after {
    content: "\A Ei visoja";
    white-space: pre;
    font-size: 0.6rem;
    color: #a0aec0;
    display: block;
    margin-top: 2px;
    line-height: 1;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    height: 70vh;
    min-height: 500px;
}

.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 20px;
}

.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.pub-list h3 {
    color: #5a67d8;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.pub-item {
    background: #f7fafc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pub-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pub-name {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.pub-address {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.pub-time {
    color: #5a67d8;
    font-weight: 600;
    font-size: 0.9rem;
}

.pub-day {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.pub-source {
    margin-top: 8px;
}

.pub-source a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
    display: inline-block;
}

.pub-source a:hover {
    color: white;
    background: #667eea;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Today's pub highlighting */
.today-pub {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border-left: 4px solid #FF6347 !important;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3) !important;
    animation: todayGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.today-pub:hover {
    background: linear-gradient(135deg, #FFE55C 0%, #FFB347 100%) !important;
    transform: translateX(8px) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4) !important;
}

.today-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 99, 71, 0.4);
    animation: badgeBounce 2s ease-in-out infinite;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255,215,0,0.6), 0 2px 8px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255,215,0,0.8), 0 4px 12px rgba(0,0,0,0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255,215,0,0.6), 0 2px 8px rgba(0,0,0,0.3);
    }
}

@keyframes todayGlow {
    0% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    }
    100% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: #666;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Custom Leaflet popup styles */
.custom-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.custom-popup .leaflet-popup-content {
    margin: 15px;
    line-height: 1.4;
}

.popup-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.popup-address {
    color: #718096;
    margin-bottom: 8px;
}

.popup-time {
    color: #5a67d8;
    font-weight: 600;
}

.popup-source {
    margin-top: 8px;
}

.popup-source a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.popup-source a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .title-container {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .map-container {
        height: 50vh;
        min-height: 400px;
    }
    
    .day-selector {
        gap: 8px;
    }
    
    .day-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .tour-logo {
        max-width: 100px;
        max-height: 100px;
    }
    
    header h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .title-container {
        min-width: 150px;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .day-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .day-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .tour-logo {
        max-width: 80px;
        max-height: 80px;
    }
    
    header h1 {
        font-size: 1.4rem;
        line-height: 1.1;
    }
    
    header p {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .title-container {
        min-width: 120px;
    }
    
    .day-btn.no-quizzes::after {
        font-size: 0.5rem;
        margin-top: 1px;
    }
}

@media (max-width: 350px) {
    header h1 {
        font-size: 1.2rem;
        line-height: 1.1;
    }
    
    header p {
        font-size: 0.8rem;
    }
    
    .title-container {
        min-width: 100px;
    }
    
    .header-content {
        gap: 15px;
    }
} 