* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #111111;
}

header {
    width: 100%;
    padding: 28px 40px;
    border-bottom: 1px solid #eeeeee;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

main {
    min-height: calc(100vh - 77px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    width: 100%;
    max-width: 720px;
    padding: 70px 24px;
}

h1 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-weight: 600;
    margin-bottom: 28px;
}

.search-box {
    position: relative;
    display: flex;
    width: 100%;
    gap: 10px;
}

input {
    flex: 1;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #111111;
}

button {
    height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    background: #111111;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

button:hover {
    background: #333333;
}

button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.result {
    margin-top: 28px;
    font-size: 16px;
}

/* Address autocomplete suggestions */

.suggestions {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.suggestion-item {
    display: block;
    width: 100%;
    height: auto;
    padding: 13px 16px;
    border: none;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    text-align: left;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

/* Address result */

.address-result {
    line-height: 1.5;
}

.matched-address {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 12px;
}

.coordinates {
    color: #555555;
    font-size: 15px;
    line-height: 1.8;
}

/* FEMA flood information */

.flood-result {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.flood-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #666666;
}

#flood-status {
    font-size: 16px;
    line-height: 1.6;
}

.flood-description {
    color: #555555;
    font-size: 15px;
}

.flood-subtype {
    margin-top: 4px;
    color: #666666;
    font-size: 14px;
}

.flood-unavailable {
    color: #666666;
}

.coordinates div {
    margin-bottom: 2px;
}

/* Map */

#map {
    width: 100%;
    height: 400px;
    margin-top: 24px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
}

/* Leaflet popup */

.leaflet-popup-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

/* Mobile */

@media (max-width: 600px) {
    header {
        padding: 22px 20px;
    }

    .container {
        padding: 80px 20px;
    }

    h1 {
        font-size: 34px;
    }

    .search-box {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .suggestions {
        top: 64px;
        left: 0;
        right: 0;
    }

    #map {
        height: 320px;
    }
}
