@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Light.otf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Book.otf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Medium.otf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Bold.otf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Black.otf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

p,
h5 {
    margin-bottom: 0 !important;
}

* {
    font-family: Gotham;
}

a {
    text-decoration: none !important;
}

/* Borrar, es para representar el mapa */
.main {
    background: transparent;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

#content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: relative;
}

html, body {
    margin: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#map {
    display: flex;
    justify-content: center; /* Horizontally center the card */
    align-items: center; /* Vertically center the card */
    width: 100%;
    height: 100%;
    position: relative;
}

#tile-layer-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: transparent;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

#mouse-coordinates {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 12px;
  }


/* ---- Textos ---- */
.card-text {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    /* 19.6px */
}

.card-title {
    color: var(--Body-text-primary, #55212E);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 19.6px */
}

.tooltip-title {
    color: var(--Foundation-Grey-grey-500, #1A1A1A);
    font-family: Gotham;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.tooltip-text {
    color: var(--Body-Text-Body-Color, #212529);
    font-family: Gotham;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

/* ---- Botones ---- */
.btn-primary {
    background-color: #55212E !important;
    border-color: #55212E !important;
}

.btn-primary:hover {
    background-color: #af4a64 !important;
    border-color: #4D1E2A !important;
}

.btn-secondary {
    background-color: #215549!important;
    border-color: #55212E !important;
}

.btn-secondary:hover {
    background-color: #31806d!important;
    border-color: #4D1E2A !important;
}

.btn-link {
    color: #55212E !important;
    text-decoration: none !important;
}

.btn-outline-primary {
    color: #55212E !important;
    border-color: #55212E !important;
}

.btn-outline-primary:hover {
    background-color: #4D1E2A !important;
    color: white !important;
}

.btn:hover svg path {
    fill: white;
}

/* ---- Cards ---- */
.card-text {
    padding: 10px 0;
}

.card {
    z-index: 1000000;
    width: 367px;
    padding: 16px;
    position: relative; /* or absolute, depending on your layout */
    top: 0vh;  /* Adjust this value to move the card higher */
}


.card-img-top {
    border-radius: var(--Spacing-8, 8px);
}

.close{
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .card {
        width: 100%;
    }

    #content {
        padding: 20px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-img-top {
        height: 207px;
        align-self: stretch;
        object-fit: cover;
    }
}


/* ---- Menu  ----*/
#menu-container {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

.menu {
    margin: 0 auto;
    width: 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0px 0px;
    border: 1px solid var(--Foundation-Grey-White, #FFF);
    background: transparent;
    backdrop-filter: blur(50px);
    padding: 16px 24px;
    position: relative;
}

.menu-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.menu-item::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 110%; /* Move slightly to the right */
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.menu-item:hover::after {
    opacity: 1;
}

.menu-item::after {
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
.menu-item:hover::after {
    opacity: 1;
}

.menu-selected svg path {
    fill: #81172C;
}

.menu-collapse {
    border-radius: 4px;
    background: var(--Body-text-white, #E8E8E8);
    display: flex;
    width: 60px;
    height: 20px;
    padding: 2px 0px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    top: -10px;
    left: calc(50% - 30px);
}

#chide-item {
    display: none !important;
}

@media (max-width: 1024px) {
    .menu {
        width: 100%;
    }

    .hide-sidebar-container {
        width: 0px !important;
    }
    
    #side-menu-container {
        display: none !important;
    }

    #side-menu-container.show-mobile-menu {
        display: flex !important;
        width: 300%;
        margin-top: 10px;
        max-height: 80vh;
        overflow:auto;
        padding-top: 200px;
    }

    #side-menu-container .side-menu-dropdown-header svg {
        display: none;
    }

    #side-menu-container .side-menu-header-title {
        background-color: #ffffff;
        border-radius: 20px;
    }

    #side-menu-container .side-menu {
        border-radius: 20px;
    }

    #side-menu-container .side-menu-header-title-text {
        color: #55212E;
    }

    #side-menu-container .side-menu-dropdown-header h5 {
        font-size: 16px;
    }
    
    #content.show-mobile-menu {
        width: 0%;
        padding: 0px;
    }

    #zoom-icons.show-mobile-menu,
    #popover.show-mobile-menu,
    #menu-container.show-mobile-menu,
    #sidemenu-collapse.show-mobile-menu {
        display: none !important;
    }
    
    .side-menu-header-title {
        width: 100% !important;
        display: flex;
        justify-content: space-between;
    }

    .side-menu{
        width: 100% !important;
    }
}


/* ---- Tooltip  ----*/
.tooltip-container {
    background-color: white;
    width: 348px;
    height: fit-content;
    border-radius: 4.8px;
    border: 1px solid var(--Components-Popover-Border, rgba(0, 0, 0, 0.20));
    position: absolute;
    bottom: 120px;
    z-index: 1000;
}

.tooltip-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
    z-index: 1;
}

.tooltip {
    width: 348px;
}

.tooltip-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--Components-Popover-Border, rgba(0, 0, 0, 0.20));
    padding: var(--Spacing-8, 8px) 16px;
}

.tooltip-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.tooltip-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: var(--Spacing-8, 8px) 16px;
}

.tooltip-content {
    padding: 16px 0;
    padding: 16px;
}

/* ---- Popover  ----*/
.popover-container {
    background-color: white;
    display: flex;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    width: 276px;
    border-radius: 4.8px;
    border: 1px solid var(--Components-Popover-Border, rgba(0, 0, 0, 0.20));
}

.popover-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
    z-index: 1;
}

.popover-icon {
    width: 44px;
    height: 44px;
    background-color: #B5203E;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popover-text {
    color: var(--Body-Text-Body-Color, #212529);
    font-family: Gotham;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.popover-text-span {
    color: var(--Body-text-primary, #55212E);
    font-family: Gotham;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

/* ----  Zooms/Icons  ----*/
.zoom-container {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1000;
    padding: 16px;
}

.zoom {
    background: white;
    border-radius: 10px;
    padding: 10px;
    gap: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.zoom-1 {
    bottom: 110px;
}

.zoom-2, .zoom-stack {
    bottom: 180px;
}

.zoom-0, .zoom-mobile {
    display: none;
}

.zoom-message {
    right: 70px;
    display: inline-flex;
    align-items: center;
}

.message-icon {
    display: flex;
    padding: 14px 0px;
    align-items: center;
    align-self: stretch;
}

.message-content {
    display: flex;
    padding: 4px 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-radius: 4px;
    background: var(--Foundation-Grey-grey-500, #1A1A1A);
}

.message-content p {
    color: var(--Gray-White, #FFF);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 21px */
}

@media (max-width: 1024px) {
    .zoom-container {
        position: fixed;
    }

    .zoom-3,
    .zoom-2 {
        display: none;
    }

    .zoom-1 {
        bottom: 90px;
    }

    .zoom-0 {
        bottom: 170px;
        display: flex;
    }

    .zoom-stack {
        bottom: 155px;
    }

    .zoom-mobile {
        bottom: 220px;
        display: flex;
    }

    .zoom-message {
        display: none;
    }
}

/* ---- Options  ----*/
.options-container {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 16px;
}

.options {
    background: rgba(255, 255, 255, 0.80);
    border-radius: 10px;
    padding: 9px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.options-info {
    border-radius: 8px;
    background: var(--Neutral-White, #FFF);
    box-shadow: -2px 4px 13.3px 0px rgba(0, 0, 0, 0.20);
    display: flex;
    width: 207px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: fixed;
    top: 75px;
    left: 20px;
    z-index: 9999999999;
}

.options-info-link {
    color: var(--Body-text-medium, #484848);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.options-info-link-help {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    color: var(--Body-text-medium, #484848);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.options-info-separator {
    border-bottom: 1px solid var(--Components-Popover-Border, rgba(0, 0, 0, 0.20));
    width: 100%;
    margin: 8px 0;
}

/* ---- Options help  ----*/
.help-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 16px;
}

.help {
    background: white;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 433px;
    max-height: 437px;
    /* Limita la altura del contenedor */
    overflow-y: auto;/
}

.help-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.help-title h1 {
    color: var(--Body-text-primary, #55212E);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 22.4px */
}

.help-content-item h1 {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 22.4px */
}

.help-content-item p {
    color: #000;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    /* 16.8px */
}

@media (max-width: 1024px) {
    .help {
        width: 90vw;
    }
}

/* ---- Navigation  ----*/
.navigation-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
}

.back {
    background: white;
    border-radius: 10px;
    padding: 9px;
    cursor: pointer;
    display: flex;
    width: 48px;
    height: 48px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    margin: 16px;
}

.search {
    margin: 16px 16px 16px 0;
}

.search-input {
    border-radius: 4px;
    border: 1px solid var(--Foundation-Grey-grey-50, #E8E8E8);
    background: var(--Neutral-White, #FFF);
    padding: 12px;
    display: flex;
    padding: 12px;
    align-items: center;
    gap: 4px;
    align-self: stretch;
    padding-left: 45px;
    padding-right: 40px;
}

input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: var(--Body-text-medium-light, #666);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.search-input:focus {
    border: 1px solid var(--Foundation-primary-primary-400, #774D58);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.search-mobile {
    display: none;
}

.search-result {
    display: none;
    width: 328px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-radius: var(--Spacing-2, 2px);
    background: var(--Neutral-White, #FFF);
    box-shadow: -2px 4px 13.3px 0px rgba(0, 0, 0, 0.20);
    position: fixed;
    top: 70px;
    left: 80px;
    z-index: 1000;
}

/* Default style for search result items */
.search-result p {
    color: var(--Body-text-medium, #484848);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    padding: 8px;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px; /* Adds a bit of rounding for a softer look */
}

/* Hover effect for search result items */
.search-result p:hover {
    background-color: #b1d7f7; /* Light gray background */
    color: #333; /* Darker text color */
}


@media (max-width: 1024px) {
    .search {
        display: none;
        margin: 10px;
    }

    .navigation-container {
        justify-content: space-between;
        width: 100%;
    }

    .search-mobile {
        display: flex;
    }

    .search-result {
        left: 0;
        margin: 10px;
        width: 100%;
    }
}

/* ---- Side Menu  ----*/
#side-menu-container {
    display: flex;
    width: 375px;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.side-menu {
    display: flex;
    background-color: white;
    height: 100vh;
    width: 350px;
    flex-direction: column;
}

.side-menu-header {
    display: flex;
    gap: 16px;
}

.side-menu-header-title-text {
    color: var(--Foundation-Grey-White, #FFF);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
}

.side-menu-header-title {
    background: var(--Foundation-primary-primary-500, #55212E);
    padding: var(--Spacing-12, 12px) 24px;
    height: fit-content;
    width: 350px;

}

.side-menu-content {
    padding: 0px var(--Spacing-16, 16px);
    display: flex;
    padding: 0px var(--Spacing-16, 16px);
    flex-direction: column;
    align-items: flex-start;
    flex: 1 0 0;
    align-self: stretch;
    overflow: auto;
    max-height: 100vh;
}

.side-menu-item {
    border-bottom: 1px solid var(--Foundation-primary-primary-50, #EEE9EA);
    background: #FAFAFC;
    display: flex;
    padding: var(--Spacing-1, 1px) 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    align-self: stretch;
}

.side-menu-item-title {
    display: flex;
    padding: 2px 0px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.side-menu-item-title-icon {
    display: flex;
    align-items: center;
    gap: 2px;
}

.side-menu-item-title-icon-right {
    border-radius: 3.2px;
    border: 1px solid var(--Foundation-primary-primary-500, #55212E);
    background: var(--Foundation-primary-primary-500, #55212E);
    display: flex;
    padding: 2px 4px;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.side-menu-item-title-icon h5 {
    color: var(--Body-Text-Body-Color, #212529);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.side-menu-item-content-text {
    color: var(--Body-text-medium, #484848);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.rainbow-slider {
    border-radius: 20px;
    background: linear-gradient(90deg, #41EB32 0%, #FFE313 55%, #FA6508 75%, #F70202 100%);
    height: 8.148px;
    align-self: stretch;
    width: 100%;
}

.sizes-item-2 {
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

.sizes-item-2 p {
    padding: 8px 0;
}

.side-menu-item-content {
    width: 100%;

}

.raimbow-container {
    align-self: stretch;
}

.raimbow-stats {
    display: flex;
    padding: 4px 0px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.ranbow-color {
    display: flex;
    width: 188px;
    align-items: center;
    gap: 8px;
}

.raimbow-stats p {
    color: var(--Body-text-medium, #484848);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    /* 19.6px */
}

.square-red {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
    background: #F70202;
}

#sidemenu-collapse {
    border-radius: 4px;
    background: var(--Body-text-white, #E8E8E8);
    cursor: pointer;
    display: flex;
    width: 103px;
    height: 20px;
    transform: rotate(-90deg);
    padding: 2px 0px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    left: -50px;
}

.hide-sidebar {
    display: none !important;
    visibility: hidden !important;
}

.hide-sidebar-container {
    width: 10px !important;
}

.simbology-item {
    display: flex;
    width: 188px;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
}

.simbology-item p {
    color: var(--Body-text-medium, #484848);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 16.8px */
}

.simblogy-content {
    display: flex;
    width: 188px;
    align-items: center;
    gap: 8px;
}

.red-square {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
    background: #F70202;
}

.green-square {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--Foundation-Sucess-success-500, #488711);
}

.blue-square {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--Foundation-Info-info-400, #338EBF);
}

.simbology-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--Foundation-gray-gray-300, #545454);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 16.8px */
}


/* Tooltip styling */
.tooltipageb {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltipageb .tooltipageb-text {
    visibility: hidden;
    width: 200px;
    background-color: #484848;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    z-index: 9999; /* Ensures it appears above all other elements */
    top: 180%; /* Moves it further below the element */
    left: 100%; /* Moves it slightly to the right */
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltipageb:hover .tooltipageb-text {
    visibility: visible;
    opacity: 1;
}

.instructions-tooltip {
    position: fixed; /* Use fixed to follow the cursor */
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px; /* Adjust the text size here */
    pointer-events: none; /* Prevent interference with mouse events */
    display: none; /* Initially hidden */
    z-index: 1000;
  }
  
.message-icon {
    position: relative;
    display: inline-block;
}

.message-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.message-icon:hover::after {
    visibility: visible;
    opacity: 1;
}


.zoom-container[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 35%; /* position above the element */
    left: -210%; /* move to the left of the element */
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 3px;
    white-space: nowrap;
    font-size: 14px;
    z-index: 999;
}

.zoom-container.zoom-1[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 35%; /* position above the element */
    left: -110%; /* move to the left of the element */
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 3px;
    white-space: nowrap;
    font-size: 14px;
    z-index: 999;
}