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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
}

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

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.country-info {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #3498db;
}

.country-info h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.info-item h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.info-item p {
    line-height: 1.4;
    color: #34495e;
}

.visa-status {
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.visa-free {
    background-color: #2ecc71;
    color: white;
}

.visa-required {
    background-color: #e74c3c;
    color: white;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background-color: #fde8e8;
    border-radius: 8px;
    border: 1px solid #fbd5d5;
}

.instruction {
    text-align: center;
    padding: 20px;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Improve marker hover effect */
.leaflet-marker-icon {
    transition: transform 0.2s;
}

.leaflet-marker-icon:hover {
    transform: scale(1.2);
}

/* Make the map container responsive */
@media (max-width: 768px) {
    #map {
        height: 400px;
    }
    
    .info-item {
        padding: 10px;
    }
}

/* Add smooth transitions */
.info-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.official-name {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

/* Improve info grid layout */
@media (min-width: 768px) {
    #info-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Add a subtle border to separate sections */
.country-info {
    border-top: 3px solid #3498db;
}

/* Improve typography */
.info-item h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.info-item p {
    line-height: 1.4;
    color: #34495e;
}

/* Country header with flag */
.country-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: white;
    padding: 20px;
    grid-column: 1 / -1;
    border-left: 4px solid #3498db;
}

.country-flag {
    width: 80px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-header h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
}

.country-header .official-name {
    margin-top: 0;
}

/* Improve grid layout for better flag display */
@media (min-width: 768px) {
    #info-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Responsive flag size */
@media (max-width: 480px) {
    .country-flag {
        width: 60px;
    }
    
    .country-header {
        padding: 15px;
        gap: 15px;
    }
}
