﻿/*This is the container that holds the search and filter controls.*/
div.esri-ui-top-left.esri-ui-corner, div.arcgis-placement__container.esri-component {
    width: 100%;
}

/*Brings controls closer to the edges of the map by default on smaller screens.*/
div.esri-ui-inner-container.esri-ui-corner-container {
    inset: 5px 5px 20px !important;
}

.map-view {
    width: 100%;
    height: calc(100vh - 210px);
    position: static;
}

/*Gives more room for map on default mobile views.*/
div.fixed-page-header {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

/*#region Search */
form#search {
    max-width: unset;
}

/* Ensure input has room for buttons on the right */
#search-box {
    padding-right: 70px; 
}

.search-button-container,
.clear-search-button-container {
    position: absolute;
}

.search-button-container {
    right: 32px;
}

.clear-search-button-container {
    right: 6px;
}
/*#endregion */

/*#region Search Results */

#search-results-container {
    position: fixed;
    height: calc(100% - 97px);
    left: 0;
    display: flex;
}

#search-results {
    height: 100%;
    width: 0;
    background-color: #fff;
    transition: 0.5s;
    z-index: 2;
}

#search-results.show {
    width: 100%;
}

#toggle-button-container {
    position: relative;
    display: block;
    z-index: 1;
}

#search-result-toggle {
    border-radius: 0 8px 8px 0;
    background-color: white;
    border: 0;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3),0 2px 6px 2px rgba(60,64,67,0.15);
    cursor: pointer;
    width: 25px;
    height: 50px;
}

.search-result:hover, .search-result:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 4px;
}

/*#endregion */

/*#region filter menus */
.map-filter-button {
    font-weight: 500;
    line-height: 1.25rem;
}

.filter-menu-list {
    display: none;
    transition: 0.5s;
    z-index: 1001;
}

.filter-menu-list.show {
    display: block;
}

.bg-primary-light {
    background-color: #e8f0fe;
}

/* Visible keyboard focus for filter checkbox options (align with global focus indicator styling in app.css) */
.map-filter .custom-control-input:focus-visible ~ .custom-control-label {
    /* inner indicator */
    outline: 2px #D9D8D6 solid !important;
    outline-offset: 0 !important;
    /* outer indicator */
    box-shadow: 0 0 0 4px #2D2A26, 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    /* match global rule intent (avoid bootstrap focus/border artifacts) */
    border: none !important;
    /* label needs to be a box for shadow/outline to look correct */
    display: inline-block;
    border-radius: 4px;
}

/*#endregion */

/* 
     Extra small devices (portrait phones, less than 576px)
     No media query for `xs` since this is the default in Bootstrap
*/
/*
    Small devices (landscape phones, 576px and up)
*/
@media all (min-width: 576px) {
}

/*
    Medium devices (tablets, 768px and up)
*/
@media (min-width: 768px) {
    #search-results-container {
        height: calc(100% - 65px);
    }
}

/*
    Large devices (desktops, 992px and up)
*/
@media (min-width: 992px) {
}

/*
    Extra large devices (large desktops, 1200px and up)
*/
@media (min-width: 1200px) {
}
