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

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.9;
}

.attribution {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    font-style: italic;
}

/* Subtle contact link styling */
.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 400;
}

.contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* World Navigation */
.world-nav {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 1.5rem 0;
}

.world-nav h2 {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.world-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.world-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.world-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Main Content */
main {
    background: white;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.welcome-section {
    padding: 2rem;
    text-align: center;
}

.welcome-section h2 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome-section p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Map Grid */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.map-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e2e8f0;
}

.map-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.map-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.map-item img:hover {
    opacity: 0.9;
}

.map-info {
    padding: 1rem;
}

.map-info h3 {
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.map-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 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);
    overflow-y: auto;
    padding: 20px 0;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #a0aec0;
}

.modal-body {
    padding: 1rem;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

footer p {
    opacity: 0.8;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .world-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .world-btn {
        width: 200px;
    }
    
    .map-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}
