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;
}

.product-popup {
    padding: 0.5rem;
}

.product-popup .location {
    display: inline-block;
    color: #666;
    font-size: 0.9rem;
    margin: 0.3rem 0;
    background-color: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
}

/* Ensure popup content is properly spaced */
.product-popup br {
    display: block;
    content: "";
    margin: 0.3rem 0;
}

/* === Filtered Products Section Styling === */
#filtered-products-section {
    width: 100%;
    background-color: #f8f9fa;
    padding: 2rem 1rem;
}

/* Grid layout for product cards */
#filtered-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Individual product card */
.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #d9534f;
    text-decoration: none;
    color: inherit;
}

/* Product title */
.product-title {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Region & city pills */
.product-meta {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.product-meta span {
    background-color: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Tags inside product card */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.product-tags .tag {
    background-color: #f8f9fa;
    color: #2c3e50;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.product-tags .tag:hover {
    background-color: #d9534f;
    color: #fff;
    border-color: #d9534f;
}

/* View Details button alignment */
.product-card .btn {
    display: none;
}

@media (max-width: 768px) {
    #filtered-products-list {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 1rem;
    }
} 
