/* Sets background color for custom navbar */
.custom-navbar {
    background-color: #E1E0E3;
}

/* Sets color for nav links within custom navbar */
.custom-navbar .nav-link {
    color: black;
}

/* Sets background color for navbar toggler */
.navbar-toggler {
    background-color: #353A40;
}

/* Sets background color for custom buttons */
.custom-button {
    background-color: #353A40;
}

/* Sets background color for custom footer */
.custom-footer {
    background-color: #1560BD;
}

/* Sets background color for main section */
#main {
    background-color: cadetblue;
}

/* Sets background color for jumbotron */
.jumbotron {
    background-color: cadetblue;
}

/* Background image for navbar toggler icon (smaller screens) */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* Border and margin for result items */
.result-item {
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

/* Adjusted width for result items on larger screens */
@media (min-width: 768px) {
    .results-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .result-item {
        width: calc(50% - 10px);
    }
}

/* Width and height for fluid images */
.img-fluid {
    width: 35%;
    height: 35%;
}

/* Alignment for labels and inputs in modal */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

/* Bottom margin for labels */
label {
    margin-bottom: 5px;
}

/* Full width and padding for inputs */
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 8px;
}

/* Alignment and styling for modal body content */
.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Height for map container */
#map {
    height: 360px;
}

/* Styles for livesearch */
#livesearch {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 50%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Styles for livesearch result items */
#livesearch div {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* Removes border from last livesearch result item */
#livesearch div:last-child {
    border-bottom: none;
}

/* Styles for livesearch links */
#livesearch a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* Background color on livesearch link hover */
#livesearch a:hover {
    background-color: #f0f0f0;
}

/* Margin reset for livesearch p tags */
#livesearch p {
    margin: 0;
}

/* Background color for buttons within card footer */
.card-footer button {
    background-color: #bd6f15;
}

/* Size for centre map on location button */
.leaflet-control-locate {
    height: 25px;
    width: 25px;
}

/* Styles for error messages */
.error-message {
    color: red;
    font-style: oblique;
    font-weight: bold;
}

/* Styles for parcel info */
#parcelInfo {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    background-color: #fff;
    border: 2px solid #007bff;
    width: 50%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Styles for parcel info result items */
#parcelInfo div {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* Removes border from last parcel info result item */
#parcelInfo div:last-child {
    border-bottom: none;
}

/* Styles for parcel info links */
#parcelInfo a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* Background color on parcel info link hover */
#parcelInfo a:hover {
    background-color: #f0f0f0;
}

/* Margin reset for parcel info paragraphs */
#parcelInfo p {
    margin: 0;
}