@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
body{
    font-family: Helvetica, Arial, sans-serif;
}
#map {
    width: 100vw;
    height: 86vh;
    padding: 0;
    margin: 0;
    position: relative;
}
#map-control-container{
    bottom:0;
    left:0;
    width:100vw;
    margin:0;padding:0;
    min-height:4vh;
}
#map-control-container > button{
    border-radius:0!important;
    background-color: #236192;
    color:white;
    font-family: "Roboto Condensed", sans-serif;
}
#map-control-container > button:hover{
    border-width:2px;
    font-weight: bolder;
}
#control-container{
    bottom: 8vh;
    width:80vw;
    left:10vw;
    background-color: #236292d3;
    color:white;
    border-radius:5px;
    display:none;
}
#toggle-measure-controls{
    display:none;
}
#navbarResponsive{
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: bold;
}
.nav-link{
    color:white!important;
}
.nav-link .active{
    font-weight: 800;
}
.custom-header{
    height:10vh;
    background-color: #236192;
}
/* Responsive popup container */
#popup-container {
    position: absolute;
    z-index: 12;
    top: 1.35em;
    left: 1vw;
    width: 90vw;
    max-width: 400px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
}
.control-input-corenest{
    background-color:#236192;
    color:white;
}
/* Responsive typology popup */
#tab-products {
    z-index: 1055;
    height: 90vh;
    overflow-y: scroll;
    display: none;
    flex-direction: column;
}

#typology-popup-body {
    /* max-height: 85vh; */
    padding-bottom: 10px;
}

#typology-side-bar .table td {
    padding: 0.25rem 0.5rem;
}

#filter-container {
    position: absolute;
    z-index: 12;
    bottom: 1.35em;
    left: 1vw;
    width: 90vw;
    max-width: 300px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
}

#lots-id {
    font-size: 1.6em;
}

.typology-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.card-img-optimized {
    height: auto;
    display: block;
    margin: 0 auto;
}

.btn-close-white {
    filter: invert(1);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-footer a {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.2s ease-in-out;
}

.info-item:hover {
    transform: scale(1.05);
}

.info-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.info-item p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-fix {
    font-size: 0.85rem;
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

#popup-container .accordion-item {
    border: none;
}

#popup-container .accordion-button {
    border: none;
    box-shadow: none;
}
#search-box-container{
    width: 30vw; 
    max-width: 400px;
    color:white;
}
#search-box {
    background-color: #2b2e4a69;
    border-radius: 30px;
    padding-left: 40px;
    height: 45px;
    color:white;
}

.input-group-text {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
}

#clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color:white;
}

#search-results {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#toggle-filter {
    background-color: white;
    border-color: black;
}

.maplibregl-measures {
    display: none;
    margin-right: 55px !important;
}

/* .maplibregl-popup {
    max-width: 20rem !important;
} */
.product-item:hover{
    cursor:pointer;
    background-color: #c4e5ff;
}
#toggle-filter-container {
    bottom: 1.35em;
    left: 1vw;
    display: none;
}


#typology-list {
    overflow-y: auto;
}

.typology-card {
    border-radius: 13px;
    border-color: black;
    width: 100% !important;
    min-width: 130px;
    min-height: 165px;
    border-width: .64px;
    margin-right: 4px;
    margin-left: 4px;
}

.typology-name {
    font-size: 14px;
}

.typology-desc {
    font-size: 8px;
}

.typology-btn {
    cursor: pointer;
}

#typology-map {
    height: 400px;
    /* width:98%; */
    /* margin-left:1%; */
    border-radius: 10px;
    overflow: hidden;
}

#typology-side-bar {
    overflow-y: auto;
    height: 100%;
}
#popup-header-buttons-container > .btn{
    border-bottom-left-radius:0px!important;
    border-bottom-right-radius:0px!important;
}
#lot-popup-container {
    position: fixed; /* fixed to viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(65, 65, 65, 0.4); /* semi-transparent dark background */
    z-index: 9900;
    display: none;
    align-items: center;
    justify-content: center;
}

#lot-popup {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-width: 95vw;
    max-height:70vh;
    overflow-y: auto;
}

/* Close button styling */
#lot-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

@media (max-width: 500px) {
    #map {
        height: 80vh;
    }
    .custom-header{
        height:auto;
        min-height:20vh;
    }
    #search-box-container{
        width: 80vw; 
        max-width: auto;
    }
}

/* Responsive adjustments for small devices */
@media (max-width: 768px) {
    #popup-container {
        width: 95vw;
        left: 2.5vw;
        top: 4.5em;
    }
    #tab-products {
        left: 2.5vw;
        height: 92vh;
    }
    .info-item {
        width: 100px;
        padding: 8px;
    }
}
