.weather-form {
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.weather-form input,
.weather-form select {
    padding: 0.5rem;
    font-size: 1rem;
}

.weather-form button {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    background-color: #003366;
    color: white;
    border: none;
    cursor: pointer;
}

.weather-form button:hover {
    background-color: #002244;
}

.weather-result {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
}

.weather-result .error {
    color: #b00000;
    font-weight: bold;
}
#weather-container {
    display: grid;
    grid-template-columns: 350px 1fr; /* current + hourly side by side */
    grid-template-rows: auto auto;    /* two rows: top and bottom */
    gap: 20px;
}

.weather-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.weather-box .icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 8px;
}

.weather-box .content p {
    margin: 4px 0;
}
.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.weekly-day {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85em;
}
.hourly-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.hourly-cell {
    background: #f0f0f0;
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.8em;
}
/* Lock CURRENT in place */
#current-content {
    grid-column: 1;
    grid-row: 1;
    width: 350px;
    flex: 0 0 350px;
    box-sizing: border-box;
}
/* Weekly always stays to the right */
#weekly-content {
    grid-column: 2;
    grid-row: 1;
}

/* Hourly always spans both columns */
#hourly-content {
    grid-column: 1 / span 2;
    grid-row: 2;

    justify-self: center;   /* centers the box inside the grid area */
    width: fit-content;      /* shrink to content width */
}

.wx-icon {
    width: 48px;
    height: 48px;
/*    filter: invert(70%) sepia(80%) saturate(300%) hue-rotate(10deg); */
}
#current-icon {
    display: flex;
    justify-content: center;  /* centers horizontally */
    align-items: center;      /* centers vertically if needed */
    margin-bottom: 8px;       /* adds spacing below the icon */
    font-size: 48px;          /* optional: adjust icon size */
}
