#map {
    height: 600px;
    width: 100%;
}

/* Search Bar and Message */
#searchbar {
    margin: 20px 0;
    position: relative; /* for autocomplete dropdown */
}
#msg {
    margin: 10px 0;
    color: blue;
}

/* Autocomplete Dropdown Styles */
.autocomplete-items {
    position: absolute;
    top: 36px; /* adjust if input height changes */
    left: 0;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 9999;
    min-width: 340px; /* match input or set to desired width */
    max-width: 100%;
    max-height: 210px;
    overflow-y: auto;
    box-shadow: 0 6px 10px rgba(0,0,0,0.12);
    border-radius: 0 0 4px 4px;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 1px solid #f3f3f3;
    background: #fff;
    transition: background 0.2s;
}
.autocomplete-items div:last-child {
    border-bottom: none;
}
.autocomplete-items div:hover, .autocomplete-items .autocomplete-active {
    background-color: #e9e9e9;
}

/* Modal Styles */
#signup-modal {
    display: none;
    position: fixed;
    z-index: 9001;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
#signup-modal .modal-content {
    background: #fff;
    margin: 4% auto;
    padding: 30px 20px 15px 20px;
    border-radius: 8px;
    max-width: 480px;
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
    position: relative;
    max-height: 90vh;        /* set max height relative to viewport */
    overflow-y: auto;        /* allow vertical scrolling if needed */
    box-sizing: border-box;  /* ensures padding is included in height */
}
#signup-modal .close {
    position: absolute;
    right: 12px;
    top: 6px;
    font-size: 20px;
    cursor: pointer;
}

/* Form Styles */
#signup-form label {
    display: block;
    margin-top: 16px;
    font-weight: bold;
    font-size: 1.08em;
}
#signup-form input[type="text"],
#signup-form input[type="email"],
#signup-form input[type="password"],
#signup-form input[type="number"],
#signup-form select {
    width: 100%;
    padding: 10px 8px;
    border: 2px solid #222;
    border-radius: 4px;
    font-size: 1em;
    margin-top: 5px;
    margin-bottom: 2px;
    box-sizing: border-box;
}
#signup-form input[type="text"]::placeholder,
#signup-form input[type="email"]::placeholder,
#signup-form input[type="password"]::placeholder,
#signup-form input[type="number"]::placeholder {
    color: #888;
    font-weight: 400;
    font-size: 1em;
}
#signup-form select {
    background: #fff;
}
#signup-form button[type="submit"] {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.10em;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
#signup-form button[type="submit"]:hover {
    background: #444;
}
#signup-form input[type="radio"], #signup-form input[type="checkbox"] {
    margin-right: 6px;
}
#signup-form .radio-row {
    margin: 7px 0 0 0;
}
#signup-form .checkbox-row {
    margin: 14px 0 0 0;
    font-weight: normal;
}
#signup-success {
    color: green;
    margin-top: 10px;
    text-align: center;
    font-size: 1.1em;
}