/* styles.css */

/* General resets */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; /* Sleek, modern font */
    height: 100%;
    background-color: #fafafa; /* Light, neutral background */
    color: #333; /* Dark text for contrast */
}

/* Header */
#header {
    background-color: #000; /* Dark, professional header */
    color: white;
    padding: 20px 0; /* Increased padding for a more spacious feel */
    text-align: center;
    font-size: 32px; /* Larger font for a bold header */
    font-weight: 600; /* Slightly lighter font weight for readability */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    letter-spacing: 0.5px; /* Spacing for better legibility */
}

/* Map container */
#map {
    height: calc(100vh - 80px); /* Adjust height for header */
    margin-top: 80px; /* Increased margin for header spacing */
}

/* Information box */
#info {
    position: absolute;
    top: 90px; /* Adjust for header */
    right: 20px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px; /* Soft, rounded corners */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow for a modern look */
    max-width: 380px;
    overflow-y: auto;
    max-height: 80vh;
    z-index: 1000; /* Ensure the info box is above the map layers */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transitions */
    opacity: 1;
}

#info h2 {
    margin-top: 0;
    font-size: 24px;
    color: #e63946; /* Accent color for headings */
    font-weight: 700; /* Bold headings */
}

#info p {
    margin: 10px 0;
    line-height: 1.7;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    #info {
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 90%;
        height: auto;
        max-height: 70vh;
    }

    #map {
        height: calc(100vh - 80px); /* Adjust height for header */
        margin-top: 80px; /* Space for header */
    }
}

/* Scrollbar styling */
#info::-webkit-scrollbar {
    width: 8px;
}

#info::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#info::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Additional styling for a modern, sleek look */
body {
    background: #fafafa; /* Soft light background */
    color: #333; /* Dark text for high contrast */
}

a {
    color: #1d3557;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color transition for links */
}

a:hover {
    color: #e63946; /* Accent color on hover */
    text-decoration: underline;
}

/* Box-shadow utility */
.box-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Transition effect for smooth interactions */
.transition {
    transition: all 0.3s ease-in-out;
}

/* Header shadow effect */
#header::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}
