body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
    color: #000;
}

h1 {
    text-align: center;
    margin: 20px 0;
}

#map {
    height: 300px;
    width: calc(100vw - 20px);
    margin-bottom: 10px;
    margin-left: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    max-width: 800px;

}

#location-info {
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.day-card {
    margin: 10px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    outline: 0 solid transparent; /* invisible by default */
}

.day-card:hover {
    outline: 5px solid red; /* visible on hover */
}

.day-header {
    background: #ef5350;
    color: #eee;
    padding: 12px 15px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    font-size: 1.1em;
}

.day-content {
    display: none;
    padding: 10px;
    background-color: #eee;
}

.best-range {
    padding: 12px;
    margin: 10px auto 8px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    color: #000;
    max-width: 800px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.weather-card {
    border-radius: 6px;
    padding: 10px;
    margin: 6px 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
    /* default */
    transition: all 0.3s ease;
    font-weight: bolder;
}

.weather-card.best {
    border-width: 3px;
}

/* optional for best range highlighting */

.weather-card div {
    border: 2px solid transparent;
    margin: 0 6px;
    font-size: 0.85em;
}

.search-box {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    position: relative;
    z-index: 9999;
}

.search-box input {
    padding: 8px;
    width: 220px;
    border-radius: 8px;
    border: 1px solid #ccc;
    z-index: 2;
}

.search-box button {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #0077cc;
    color: #fff;
    cursor: pointer;
    margin-left: 5px;
    z-index: 2;
}

.search-box button:hover {
    background: #005fa3;
}

#suggestions {
    position: absolute;
    margin-left: calc((100vw - 310px) / 2);
    width: 310px;
    margin-top: 5px;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#suggestions div {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 6px;
    margin: 4px;
}

#suggestions div:hover {
    background: #f1f1f1;
}

.no-fly {
    background: #ef5350;
    color: #fff;
}

@media (min-width: 820px) {
    #map {
        margin-left: calc((100vw - 800px) / 2);
    }
}