body {
    font-family: 'Roboto', sans-serif;
}

h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #d9534f;
    margin-bottom: 1rem;
}

label {
    color: #666;
    font-weight: 400;
}

select {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        height: auto; /* Allow natural height */
    }

    #map-container {
        height: 100vh; /* Full viewport height */
        width: 100%;
        position: relative;
    }

    #map {
        height: 100%;
        width: 100%;
    }

    #filters-container {
        width: 100%;
        background-color: #f8f9fa;
        padding: 1.5rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        min-height: 50vh; /* Give enough space for filters */
    }

    /* Compact spacing for filter elements */
    #filters-container > div {
        margin-bottom: 1rem;
    }

    /* Adjust tag container */
    #tags-container {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0.5rem 0;
    }

    .tag {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
} 

.info-icon {
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
    color: #007bff; /* Bootstrap primary color */
    position: relative;
}

.tooltip-up::after,
.tooltip-down::after {
    content: attr(data-description);
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 10;
    font-size: 0.7rem;
    max-width: 600px; /* Increase width */
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tooltip-up::after {
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
}

.tooltip-down::after {
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
}

.info-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

.info-icon:hover {
    text-decoration: underline;
} 
