/*DESKTOP RESPPONSE*/

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Times;
}

h1{
    background-color: #004E5C;
    color: white;
    padding: 15px;
    margin: 0;
}

#app-header {
    position: absolute;
    top: 0.5px;
    right: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 1000;
}

#logo {
    height: 55px;
    width: auto;
}

#map {
    width: 100%;
    height: 100vh; /*100% of the visible screen height*/
    background-color: lightgray;
}

/*styling the coordinate bar*/

#coordinate-bar {
        position: absolute;
        bottom: 70px;
        left: 10px;
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
        padding: 6px 12px;
        border-radius: 6px;
        display: flex;
        gap: 15px;
        font-size: 12px;
        font-family: monospace;
        z-index: 1000;
}

.coord-item {
    display: flex;
    gap: 4px;
}

.ol-popup {
    position:absolute;
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    bottom: 12px;
    left: -50px;
    min-width: 200px;
}

#popup-closer {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
}

#toggle-layers {
    display: none;
}

.layer-panel {
   position: absolute;
    top: 80px;
    left: 10px;
    width: 220px;
    max-height: 500px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
 
.group-title {
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
    
}

.group-content {
    display: none;
    margin-left: 10px;
    margin-top: 5px;
}
.group-content label {
    display: block;
    margin-bottom: 4px;
    cursor: pointer;
}


#search-tool {
    position: absolute;
    top: 80px;
    right: 10px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 13px;
    z-index: 1000;
    width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/*Labels*/
#search-tool label {
    display: block;
    margin-top: 8px;
    margin-bottom: 6px;
    font-weight: 600;

}

/* Dropdown */
#search-tool select {
    width: 100%;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

/* Row for input + button */
.search-row {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

/* Input */
#parcel-input {
    flex: 1;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Button */
#search-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;

    background: #00677C;
    color: white;

    cursor: pointer;
}

/* Hover effect */
#search-btn:hover {
    background: #004E5C;
}

#footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #004E5C;
    color: #ddd;
    font-weight: bold;
    text-align: center;
    font-size: 11px;
    padding: 3px 5px;
    line-height: 1.2;
    z-index: 1000;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 20px;
    height: 20px;

    transform: translate(-50%, -50%);
    pointer-events: none;

    z-index: 2000;
    display: none; /*hides in desktop mode*/
}

/*cross hair shape*/
#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background: red;
}

#crosshair::before {
    width: 2px;
    height: 20px;
    left: 9px;
}

#crosshair::after {
    width: 20px;
    height: 2px;
    top: 9px;
}

/*TABLET RESPONSE*/
@media (max-width: 1024px) {

    h1{
        font-size: 30px;
    }

    /*Layer Panel*/
    .layer-panel {
        width: 200px;
        max-height: 400px;
        font-size: 11px;
    }

/*Search Tool*/
#search-tool {
    width: 240px;
    font-size: 12px;
}

/*Header*/
#logo {
    height: 45px;
}

/*coordinate bar*/
#coordinate-bar {
    font-size: 11px;
}

#toggle-layers {
    display: none;
}

#crosshair {
        display: block;
    }
    
}


/*MOBILE RESPONSE*/

@media (max-width: 768px) {
    h1 {
    font-size: 25px;
}

#logo {
    height: 40px;
}

#map {
    height: calc(100vh - 50px);
}

.layer-panel {
    display: none;
    
    width: 75%;
    right: 7.5%;
    top: 190px;
    max-height: 70%;
    z-index: 1001;
}

#search-tool {
    width: 90%; 
    right: 5%;
    top: 65px;
    left: 5px;
}

#coordinate-bar {
    font-size: 10px;
    bottom: 65px;
    left: 5px;
}

#footer {
        font-size: 8px;
    }

#toggle-layers {
    display: block;

    position: absolute;
    top: 160px;
    right: 10px;

    padding: 8px 12px;
    background: #00677C;
    color: white;
    border: none;
    border-radius: 4px;

    z-index: 1000;
}

 #crosshair {
        display: block;
    }

}

