html,
body {
    height: 100dvh;
    font-family: "Prompt", monospace;
}

a {
    text-decoration: none;

}

body {
    background-color: #101821;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: #2c394d;
    background: linear-gradient(180deg, rgba(44, 57, 77, 0.8) 0%, rgba(16, 24, 33, 1) 80%);
    padding: 10px 20px 0 20px;
    align-items: center;
}

.logo {
    height: 70px;
}

.menu {
    display: flex;
    flex-direction: row;
    column-gap: 25px;
    width: 30%;
    justify-content: flex-end;
}

.btnMenu {
    display: flex;
    align-items: center;
    flex-direction: row;
    background-color: transparent;
    border: none;
    column-gap: 10px;
    color: white;
    font-weight: bolder;
}

.menuIcon {
    height: 20px;
}

.navbar {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.filtros {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    column-gap: 10px;
    font-size: 12px;
    margin-left: 10%;
    width: 80%;
    justify-content: center;
}

.btnFiltro {
    background-color: transparent;
    color: #fff;
    padding: 5px 20px;
    border: 1px solid #edb85a;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.btnFiltro:hover {
    background-color: #f5c87b;
    color: #000000;
    font-weight: bold;
}

.btnFiltro.selected {
    background-color: #edb85a;
    color: #000000;
    font-weight: bold;
}

.mapRoot {
    position: relative;
    flex: 1;
    min-height: 0;
    margin: 13px;
    border-radius: 20px;
    overflow: clip;
}

.bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

.bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../svg/forest.webp");
    background-repeat: repeat;
    background-size: 300px auto;
    opacity: 0.25;
    pointer-events: none;
}

.bg>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.map svg {
    width: 100%;
    height: 100%;
    display: block;
}

.norteSvg {
    scale: 12%;
    translate: 30px 20px;
}

.cantidad {
    font-family: "DM mono", monospace;
    font-weight: 500;
}

.cls-1 {
    stroke: #80ff00;
    display: none;
}

#map-svg {
    cursor: auto !important;
    stroke-width: .7px;
    stroke-miterlimit: 1;
}

.cls-2 {
    stroke: none;
    fill: darkgray;
}

.cls-4 {
    stroke: transparent;
    fill: rgba(0, 0, 0, 0.30);
}

.cls-6 {
    stroke: #82eaaa;
    fill: #0080255e;
    stroke-width: 0.3px;
    background-color: rgba(0, 0, 0, 0.30);
    cursor: context-menu;
    stroke-linejoin: round;
    paint-order: stroke;
}

.cls-6:hover {
    opacity: 0.7;
    fill: #105123e8;
    transition: all 0.1s;
}

/* Estilos para los estados de los lotes */
.lote {
    stroke: #ffffff;
    stroke-width: 0.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0.0));
}

.lote-disponible {
    fill: #548963;
}

.lote-disponible:hover {
    fill: #16bd3b;
}

.lote-apartado {
    fill: #ffc1075e !important;
}

.lote-apartado:hover {
    fill: #e0a800 !important;
}

.lote-vendido {
    fill: #505050 !important;
}

.lote-vendido:hover {
    fill: #3f3f3f !important;
}

/* Custom Popover Styles */
.custom-popover {
    --bs-popover-bg: #1e2a3a;
    --bs-popover-border-color: #edb85a;
    --bs-popover-header-bg: #2c394d;
    --bs-popover-header-color: #edb85a;
    --bs-popover-body-color: #ffffff;
    --bs-popover-header-padding-y: 8px;
    --bs-popover-header-padding-x: 12px;
    --bs-popover-body-padding-y: 10px;
    --bs-popover-body-padding-x: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--bs-popover-border-color);
    color: white;
}

.custom-popover .precio {
    font-weight: 500;
    font-size: 20px;
    color: rgb(205, 231, 255);
    font-family: 'Prompt', sans-serif;
}

.custom-popover .cantidad {
    font-size: 15px;
}


.custom-popover .popover-header {
    font-weight: bold;
    border-bottom: 1px solid rgba(237, 184, 90, 0.2);
}

.popover-body-content {
    font-size: 0.9rem;
}

.offcanvas.offcanvas-end {
    height: 98dvh;
    right: 10px;
    top: 1dvh;
    background-color: rgb(0 0 0 / 60%);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: -3px 3px 10px 5px #0000006e;
    border: none;
}

.offcanvas-title {
    color: white;
    text-align: center;
    font-family: "DM mono", monospace;
    font-weight: 500;
    font-size: 32px;
    width: 100%;
}

.offcanvas-backdrop.show {
    opacity: 0.3;
}

.precio-total {
    background-color: rgba(0, 0, 0, 0.684);
    border-radius: 15px;
    padding: 4px 20px 2px 20px;
    text-align: center;
    color: white;
}

.list-group {
    background-color: rgba(0, 0, 0, 0.684);
    border-radius: 15px;
}

/* Estilos para SVG */
#averdes {
    fill: #2d563d;
    stroke: #297245;
    stroke-width: 0.4px;
}

#banquetas {
    stroke: gray;
    fill: gray;
    stroke-width: 0;
}

.selected-lote-public {
    /* fill: #ffd476 !important; */
    stroke: #ffffff !important;
    stroke-width: 0.5px !important;
    filter: drop-shadow(-2px 1px 1px rgba(0, 0, 0, 0.6));
    transition: all 0.3s ease;
    z-index: 1000;
}

.selected-lote-public.lote-disponible {
    fill: #16bd3b !important;
}

.selected-lote-public.lote-apartado {
    fill: #ffc107d3 !important;
}

.offcanvas-lote {
    fill: rgba(255, 255, 255, 0.1) !important;
    stroke: #fff !important;
    stroke-width: 0.2 !important;
}