html, body {
    overflow-x: hidden; /* */
    background: #eeebf0;
    background: linear-gradient(180deg, #eeebf0, #fff);
  }

  body#demo {
    background: 
        linear-gradient(
            to bottom, 
            rgba(64, 190, 182, 0.7),
            rgba(255, 255, 255, 1) 
        ),
        url('../images/auth/selva.jpg'); 
    background-size: cover; 
    background-position: center;
    margin:0px;
    height: 100vh;
}

.toDemo{
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border:1px solid red;
}
.login-box{
  z-index: 300;
}
/* */
.sidebar {
    background: linear-gradient(180deg, #eeebf0, #fff);
    }
.iq-navbar {
    background: linear-gradient(180deg, #eeebf0, #fff);
    } 
.card-body {
    /**/ background-color: #17939c; 
    border:1px solid #17939c;
    color:white;
    border-radius: 8px;
    }

  iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  .boxmap {
    height: calc(100vh - 70px);
    margin-top: 3px;
    padding: 0px;
  }

  .map{
    padding:0px 10px;
  }

.floating-filter {
    position: absolute;
    bottom: 0px; 
    left: 0px; 
    width: 100%;
     background-color: #ffffffc2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-decoration: none;
    color: rgb(255, 255, 255); 
    z-index: 10; 
    padding:2px 10px;
}

.floating-filter:hover {
     background-color: #ffffffc2;
}

.floating-link-dashboard {
    position: absolute;
    top: 30px; 
    right: 30px; 
    background-color: rgba(3,9,32,.8);
    padding:10px;
    border-radius: 5px;
    text-decoration: none;
    color: rgb(255, 255, 255); 
    z-index: 10; 
}

.floating-link-dashboard:hover {
    background-color: rgba(3,9,32,1);
}

.floating-data {
    position: absolute;
    top: 0px; 
    right: 0px; 
    background-color: rgba(3,9,32,.2);
    padding: 4px;
    border-radius: 5px;
    text-decoration: none;
    color: rgb(255, 255, 255); 
    z-index: 10;
    width: 100%; 
    padding:2px 10px;
}

.floating-data:hover {
    background-color: rgba(3,9,32,.4);
}

#menu-filters {
    display: none; 
    transition: transform 0.3s ease, opacity 0.3s ease; 
    transform: translateY(20px); 
    opacity: 0; 
}

#menu-filters.show {
    display: block; 
    transform: translateY(0); 
    opacity: 1; 
}

#items-menu-filters{
  max-height: 500px; 
  overflow-y: auto;
  overflow-x: hidden;
}

#dynamicSidePanel{
    position: fixed; 
    top: 80px; 
    right: 50px; 
    width: 300px; 
    height: 80%; 
    background-color: rgba(226, 226, 226, 0.8);
    color: white;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    border-radius: 4px;
}

#box-data {
    display: none; 
    transition: transform 0.3s ease, opacity 0.3s ease; 
    transform: translateY(-20px); 
    opacity: 0; 
}

#box-data.show {
    display: block; 
    transform: translateY(0); 
    opacity: 1; 
}

#btnFullscreen {
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
  }
  
  
  .fullscreen-icon::before {
    color:black;
    content: "⛶"; 
  }
  
  .exit-fullscreen-icon::before {
    color:black;
    content: "⛚";
  }

 #aigiscity > .card {
    /*-webkit-box-shadow: 0 10px 30px 0 rgba(17, 38, 146, .05);
    box-shadow: 0 10px 30px 0 rgba(17, 38, 146, .05);*/
     margin-bottom: 0rem;
     margin-right: 12px; 
}

.marquee-container {
    width: 100%;
    border:1px solid #2154878a;
    padding: 8px 0;
    margin:0px 10px;
    border-radius: 4px;
  }
 
  .marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
  }
 
  .marquee-item {
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 0.85rem;
    color: #7ce1f3;
  }
 
  @keyframes marquee {
    0% {
      transform: translateX(100%);
    }
 
    100% {
      transform: translateX(-100%);
    }
  }

  .marquee-container:hover .marquee-content {
    animation-play-state: paused;
  }

  .loginbgbox {
    transform: rotate(-15deg);
    opacity: 0.1;
    scale: 1.5;
    position:absolute;
    bottom:0%;
    right:30%;
    z-index: 0;
  }

  @media (max-width: 1199.98px) {
    .marquee-container {
        display: none;
    }

    .container-fluid.navbar-inner{
        justify-content: flex-end;
    }
}

.offcanvas-backdrop {
  display: none !important; /* Oculta completamente el fondo */
}

#menu {
  position: absolute;
  background: #efefef;
  padding: 3px;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000;
  border-radius: 8px;
}

.overlay {
  position: absolute;
  top: 10px;
  right: 100px;
  z-index: 1005;
}

.overlay button {
  font:
      600 12px/20px 'Helvetica Neue',
      Arial,
      Helvetica,
      sans-serif;
  background-color: #3386c0;
  color: #fff;
  display: inline-block;
  margin: 0;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}

.overlay button:hover {
  background-color: #4ea0da;
}

.overlay button:disabled {
  background: #f5f5f5;
  color: #c3c3c3;
}
#offcanvasRight  {
background-color: 222738f7;

}
#offcanvasRight .offcanvas-body-data {

  margin-bottom: 20px;
 }

 #offcanvasRight .offcanvas-body-data h5 {
  font-size: .85em;
  margin: 0px;
  color:#7ce1f3;
 }
#offcanvasRight .offcanvas-body-data p {
 font-size: .75em;
 margin: 0px;
}

#offcanvasRight .offcanvas-body .d-activity  {
  margin-top: 20px;
 }

#offcanvasRight .offcanvas-body .d-activity .apexcharts-title-text  {
  font-size: .85em;
  color:#7ce1f3;
 }

.popupsVideo .mapboxgl-popup-content {
  background:#222738f7;
  width: 340px;
 }

 /* ícono movil */
 .movil {
  background-image: url('../images/icons/police-car.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #e5f50d80;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.ambulancia {
  background-image: url('../images/icons/icon-medical.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #e5f50d80;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.alert {
  background-image: url('../images/icons/icon-alert.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #f50d0d80;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}

.alert-resuelto {
  background-image: url('../images/icons/icon-alert-resuelto.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  /* background-color: #f50d0d80; */
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}


.dron {
  background-image: url('../images/icons/icon-drone.svg');
  background-size: contain;
  background-position-x: 50%;
  background-repeat: no-repeat;
  background-color: #e5f50d80;
  border-radius: 70%; 
  cursor: pointer;
  width: 40px;
  height: 30px;
}
@keyframes hoverEffect {
  0%, 100% {
      transform: translateY(0px) rotateX(30deg);
  }
  50% {
      transform: translateY(-5px) rotateX(30deg);
  }
}

.flying {
  animation: hoverEffect 2s infinite ease-in-out; /* Movimiento suave */
}

.chat-movil {
  font-size: medium;
  color:white;
}

.popupAlert .mapboxgl-popup-content {
  background:#222738f7;
  width: 340px;
 }
.chatmovil .mapboxgl-popup-content {
  background:#222738f7;
  width: 340px;
 }

 .mapboxgl-popup-tip {
 /*  transform: translateY(-12px); */
 border-bottom-color:#222738f7 !important;
}
.action-movil{
  display:flex;
  width: 100%;
  align-items:center;
  justify-content: space-between;
}
a.linkPopup{
  border:1px solid #ffffffab;
  border-radius: 2px;
  padding:2px;
  display:block;
  width: 26px;
  height: 26px;
  margin:1px;
}
#offcanvasRight  {
  background: linear-gradient(180deg, #f0f3f9da 0%, #e1e0e0eb 100%);
    border-radius: 14px;
    border: 1px solid #019f80;
    margin: 2px;
  }
#offcanvasBottomAlerts{
  background: linear-gradient(180deg, #f0f3f9da 0%, #e1e0e0eb 100%);
    border-radius: 14px;
    border: 1px solid #019f80;
    margin: 2px;
  }

  .dropdown-item.active {
    color: rgb(15, 194, 200) !important;
    background-color: transparent !important;
    font-weight: bold;
}


.dropdown-item.inactive {
    color: gray !important;
}

.container-inner-alert{
  padding:4px;
  border-radius: 4px;
  border:1px solid #7ce1f397;
  margin:3px;
   background-color: rgba(217, 236, 236, 0.875);
}

.container-inner-alert .timer {
  font-size: 2em;
  color:#011519;
}


.mapboxgl-popup-close-button:hover {
  color: rgb(15, 206, 187) !important;
}
.mapboxgl-popup-close-button {
  color: rgb(255 255 255 / 100%) !important;
}

.table tbody tr td {
  color: #232D42;
  vertical-align: middle;
  background-color: rgba(217, 236, 236, 0.875);
}

.dropdown-fotos {
  display: block;
  width: 100%;
  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
  clear: both;
  font-weight: 400;
  color: var(--bs-dropdown-link-color);
  text-align: inherit;
  white-space:
nowrap;
  background-color: transparent;
  border:
0;
}

.dark .dropdown-menu .dropdown-fotos {
  color: #8A92A6;
}
.dark .dropdown-menu .dropdown-fotos:hover {
  color: #3a57e8;
  background-color: transparent;
}

.dropdown-fotos.active {
  color: rgb(15, 194, 200) !important;
  background-color: transparent !important;
  font-weight: bold;
}

.dropdown-fotos.inactive {
  color: gray !important;
}
#restoration-filters .offcanvas-body{
  margin: 0px;
}
#restoration-filters.offcanvas-sm.offcanvas-bottom {
  height: 30%;
  width: 98%;
  margin: 3px;
  border-radius: 12px;
  overflow-y: auto;
  text-align: center;
  cursor: pointer;
  padding: 0.2rem;
  position:fixed;
  bottom: 0;
  z-index: 1000;
  -webkit-border-radius: 0 1rem 1rem 0;
          border-radius: 0 1rem 1rem 0;
}
.container-fluid.bg-degrade {
    background: linear-gradient(180deg, #f0f3f9 0%, #e1e0e0 100%);
    border-radius: 14px;
    border: 1px solid #019f80;
}

#btn-marker-drone {
  --bs-btn-hover-color: #c11717;
}

.basemaps{
  position: absolute;
  padding: 1px;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  left: 2px;
  top: 2px;
}

.basemaps img {
  height: 40px;
  max-width: 40px;
  border-radius: 8px;
}

.basemaps button {
  background:#eeebf0;
  border-radius: 8px; 
  border: 2px solid #eeebf0;
  cursor: pointer;
  padding: 0;
}

.menu {
  display: none;
}

.basemaps:hover .menu { 
      display: block; 
}

input[type="image"] {
  width: 40px;
  height: 40px; 
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.486); 
  border-radius: 8px; 
}

input[type="image"]:hover {
  border: 1px solid #7ce1f3; 
}

.distance-container {
    position: absolute;
    top: 10px;
    right: 50px;
    z-index: 1;
}

.distance-container > * {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    display: block;
    margin: 0;
    padding: 5px 10px;
    border-radius: 3px;
}

#brujula-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: auto;
  }

  #brujula {
    position: absolute;
    top: 0; left: 0;
    width: 80px;
    height: 80px;
    z-index: 0;
  }

  #flecha {
    position: absolute;
    top: 10px; left: 10px;
    width: 60px;
    height: 60px;
    z-index: 1;
    transform-origin: center center;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
  }

  #cardinal {
    margin-top: 8px;
    font-weight: bold;
    font-size: 16px;
  }

  /* Overlay: oculto por defecto */
  #overlay {
    position: absolute;
    inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
    background: rgba(255,255,255,0.95);
    display: none;            /* se muestra cambiando a flex */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    z-index: 10;              /* sobre el mapa */
  }

  #overlay h2 {
    margin-top: 0;
  }

  /* Botón de cierre */
  #overlay .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  #cesiumContainer { width: 100%; height: 100%; }
  
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
  /*  margin-right: 20px; */
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip.top .tooltiptext {
    bottom: 100%;
    top: auto;
}

.tooltip.bottom .tooltiptext {
    top: 100%;
    bottom: auto;
}

.iq-media-group{
  display: flex !important;
  justify-content: center;
  align-items: center;
}


.logo-title {
    display: none;
}

.sidebar-hover:hover .logo-title {
    display: block;
    margin-left: 4px;
}

.search-box {
  background: white;
  padding: 6px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font-family: sans-serif;
  position: absolute;
  left: 50px;
}

.search-box input {
  width: 150px;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

  #basic-table2 {
      height: auto;
      overflow-y: auto;
      display:block;
      width: 100%;
      
  }
  #basic-table2 th, #basic-table2 td {
      width: 100%;
      padding: 0; 
  }

  .grid-container {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-gap: 10px;
  }
  .grid-item {
      position: relative;
  }
  .grid-item .zone-1 {
      background-color: #fff;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .grid-item .zone-2 iframe {
      width: 100%;
      height: 200px;
      border: none;
  }
  .video-checkbox {
      position: absolute;
      top: 10px;
      left: 10px;
      display: none; 
  }

  .grid-item:hover .video-checkbox {
      display: block; 
  }

  .video-thumb {
      max-height: 180px;
  }

  .grid-item {
      display: flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
  }
  .grid-item iframe {
      width: 180%;
      height: 180%;
  }
  #youtube-overlay {
      overflow: hidden;
      min-height: 22rem;
      align-items: center;
  }
  #youtube-overlay iframe {
      width: 100%;
      height: 180%;
  }
  @media screen and (max-width: 800px) {
      .grid-item {
          width: 100%;
      }
      .grid-container {
          display: flex;
          flex-wrap: wrap;
      }
  }

  #offcanvasRightDron{
    border-radius: 12px;
    margin: 10px;
  }

.legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  font-family: sans-serif;
  font-size: 13px;
}
.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.legend-color {
  width: 20px;
  height: 12px;
  margin-right: 6px;
  flex-shrink: 0;
}
.legend-line {
  width: 20px;
  height: 0;
  border-top: 3px solid black;
  margin-right: 6px;
  flex-shrink: 0;
}

.reference {
  position: absolute;
  padding: 5px;
  font-family: 'Open Sans', sans-serif;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  right: 5px;
  bottom: 25px;
  background-color: #1cb6c1;
}

.mapboxgl-popup-content {
  background: rgba(20, 184, 166, .8) !important;
  padding: 0;
  border-radius: 8px;
  overflow: hidden; /* para que bordes redondeados afecten contenido */
  width: fit-content;
}

/* contenedor interno del popup */
.my-popup {
  width: 260px; 
  max-width: 90vw;
  font-family: Inter, Arial, sans-serif;
  box-sizing: border-box;
}

/* header (texto fijo) */
.my-popup .popup-header {
  padding: 12px 14px;
/*  background: #ffffff; */
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #1f2937;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  width: 100%;
  box-sizing: border-box;
}

/* contenedor de botones */
.my-popup .popup-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
/*  background: #fafafa; */
}

/* estilo común de botones */
.my-popup .popup-actions .btn {
  flex: 1;                  /* ocupan el mismo ancho */
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform .08s ease, box-shadow .08s ease;
  color: #fff;
}

/* botón confirmar: color primario */
.my-popup .popup-actions .btn.confirm {
  background: #337272ea;   /* teal-500 */
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* botón cancelar: estilo neutro */
.my-popup .popup-actions .btn.cancel {
  background: #ffffff;
  color: #374151;
  border: 1px solid rgba(55,65,81,0.08);
}

.popup-body {
  border-top: 1px solid rgba(0,0,0,0.06);
  background-color: white;
}

/* estados hover/active */
.my-popup .popup-actions .btn:hover { transform: translateY(-1px); }
.my-popup .popup-actions .btn:active { transform: translateY(0); }