﻿/* Hero section subtitle with gradient */
.hero-subtitle {
    font-weight: bold;
    font-style: italic;
    color: #5F9F63;
}

#home-content-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
}

#legendContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 20px;
    font-weight: bold;
}

#legendContainer div {
    display: inline-flex;
    justify-items: center;
    align-items: center;
    gap:25px;
    margin: 20px;
}

#legendContainer div img {
    max-width: 70px;
}

/* ========== Map Popup Styling ========== */

/* Popup container */
.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Rainfall section - compact horizontal layout */
.rainfall-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.rainfall-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-blue);
    white-space: nowrap;
    line-height: 1.3;
}

.rainfall-data {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.rainfall-data strong {
    color: var(--brand-navy);
}

.rainfall-offline {
    font-size: 0.875rem;
    color: var(--brand-gray);
    font-style: italic;
    margin: 0.5rem 0;
}

/* Recommendation message */
#recommendation {
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    color: var(--brand-white);
    background-color: var(--brand-blue);
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    line-height: 1.3;
}

/* Sprinkler cards grid */
#popupImagesCollection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.popupImageContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popupImage {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--brand-gray-light);
    border-radius: 4px;
}

.popupImageLabel {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    width: 100%;
    background-color: var(--brand-green-light);
    color: var(--brand-navy);
    text-align: center;
    border-radius: 0 0 4px 4px;
}

table th {
    color: inherit;
}

/* Responsive layout adjustments */
@media (max-width: 768px) {
    .image {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0px;
    }
}

/*figure p {
    width: 10px;
}*/