#header-outer-container {
    background-image: url('/images/common/header_background.png');
    width: 100%;
    height: 600px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#header-navbar-container {
    width: 100%;
    height: 125px;
    background: rgba(255, 255, 255, 0.75);
    display: grid;
    grid-template-columns: repeat(10, auto);
    align-items: center;
    justify-items: center;
}

#header-navbar-container a {
    text-decoration: none;
    color: inherit;
}

#header-navbar-container .nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

#header-navbar-container .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    height: 100%;
}

#header-navbar-container .nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
}

#header-navbar-container .nav-dropdown:hover .nav-dropdown-menu,
#header-navbar-container .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

#header-navbar-container .nav-dropdown-menu a {
    width: 100%;
    padding: 12px 22px;
    font-family: Roboto, sans-serif;
    font-size: 14pt;
    color: var(--dark-green);
    text-align: left;
    white-space: nowrap;
}

#header-navbar-container .nav-dropdown-menu a:hover {
    background: rgba(120, 160, 120, 0.12);
    color: var(--middle-green);
}

#header-navbar-container h1 {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 26pt;
    color: var(--dark-green);
}

#header-navbar-container h1:hover {
    color: var(--middle-green);
}

#header-navbar-container .nav-dropdown-toggle:hover h1,
#header-navbar-container .nav-dropdown-toggle:focus h1 {
    color: var(--middle-green);
}

#header-navbar-container .vertical-divider {
    height: 35%;
    background: var(--dark-green);
}

#header-navbar-container img:first-of-type {
    justify-self: right;
}

.mobile-about-link {
    display: none;
}

#searchables-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
}

#find-your-home-container {
    width: 65%;
    background: rgba(255, 255, 255, 0.75);
    justify-self: center;
    margin-top: 7.5%;
    border-radius: 25px;
}

#find-your-home-container > h1 {
    font-family: Roboto, sans-serif;
    font-size: 24pt;
    font-weight: 400;
    color: var(--middle-green);
    margin-left: 5%;
}

#mortgage-calculator-container {
    width: 65%;
    background: rgba(255, 255, 255, 0.75);
    justify-self: center;
    margin-top: 7.5%;
    border-radius: 25px;
}

#mortgage-calculator-container > h1 {
    font-family: Roboto, sans-serif;
    font-size: 24pt;
    font-weight: 400;
    color: var(--middle-green);
    margin-left: 5%;
}

.single-input-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.triple-input-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    box-sizing: border-box;
}

.triple-input-row-search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    box-sizing: border-box;
}

input::placeholder {
    color: #ffffff;
    opacity: 1;
}

.triple-input-row .custom-dropdown {
    position: relative;
    width: 250px;
}

.triple-input-row .custom-dropdown-toggle,
.triple-input-row input,
.single-input-row input,
.triple-input-row-search input,
.triple-input-row-search button {
    width: 100%;
    background-color: #2a3136;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: Roboto, sans-serif;
    font-size: 14pt;
    text-align: left;
    cursor: pointer;
}

.single-input-row input {
    width: 75%;
    justify-self: center;
}

.triple-input-row input {
    width: 100px;
}

.triple-input-row-search input {
    width: 100px;
}

.triple-input-row-search button {
    background-color: var(--middle-green);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mortgage-calculate-button {
    width: 50%;
    margin: 0 auto;
    background-color: var(--middle-green);
    color: white;
    text-align: center;
}

.triple-input-row .custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #2a3136;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 100;
}


.triple-input-row .custom-dropdown-option {
    padding: 14px 16px;
    color: white;
    font-family: Roboto, sans-serif;
    font-size: 14pt;
    cursor: pointer;
}

.triple-input-row .custom-dropdown-option:hover {
    background-color: #3a444a;
}

#mortgage-calculator-container .triple-input-row input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1100px) {
    #header-navbar-container {
        grid-template-columns: auto;
        grid-template-rows: repeat(10, auto);
        align-items: center;
        justify-items: center;
        height: max-content;
    }

    #searchables-container {
        grid-template-columns: 1fr;
    }

    #home-icon {
        justify-self: center !important;
    }

    .nav-dropdown-menu {
        display: none !important;
    }

    .mobile-about-link {
        display: block !important;
    }
}
