 .navbar-custom {
  background-color: white;
  border-radius: 0;
  border-bottom: 1px solid #ccc;
  color: #0063be;
  margin-bottom: 0px;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-text,
.navbar-custom .dropdown-toggle,
.navbar-custom .btn {
  color: #0063be;
}

.flag-icon {
  width: 20px;
  height: 14px;
  margin-right: 5px;
}

.language-toggle {
  height: 50px;
  display: flex;
  align-items: stretch;
}

.language-toggle .btn-group {
  display: flex;
  height: 100%;
}

.language-toggle .btn {
  border: none;
  border-radius: 0;
  color: #0063be;
  background: transparent;
  height: 100%;
  line-height: 50px;
  padding: 0 15px;
  border-bottom: 3px solid transparent;
}

.language-toggle .btn.active {
  border-bottom: 3px solid #0063be;
}

#map-container {
  height: 500px;
  background-color: #e0e0e0;
  position: relative;
}

.search-controls {
  width: fit-content;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 10;
  align-items: flex-start;  
  max-width: 50%;
}

.search-column {
  background: white;     
  padding: 5px;
  border-radius: 5px;
  box-sizing: border-box;
  display: block;
}

.search-results {
  position: relative;
  display: none;
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  padding: 10px;
  z-index: 999;
}

.search-box-icon {    
  background:#fff;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;  
}

.search-result-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f5f5f5;
}

.search-result-row{
  display:flex;
  align-items: center;
  padding: 10px 0;
}

.icon-container {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-container img{
  max-width: 100%;
  height: auto;
}

.text-container {
  flex: 1;
  padding-left: 10px;
  text-align: justify;
}

.text-container b{     
  font-weight: bold;     
}   

.search-input-wrapper {
  position:relative;
  width: 100%;
}

#search-box {
  width: 100%;
  padding-right: 35px;
  height: 40px;
  min-width: 300px;
}

.icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  cursor: default;
}


#search-icon {
  right: 10px;
}

#search-icon img {
  width: 16px;
  height: 16px;
  filter: grayscale(100%);
  opacity: 0.6;
}

.clear-button {
  right: 10px;
  font-size: 40px;
  display: none;
  top: 16px;
}


.clear-button:hover {
  color: #333;
}

.map-column.capa-column {
  flex: 1;  
}   

.dropdown-menu.checkbox-menu {
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  min-width: 200px;
  margin-top: 5px;
}

.checkbox-menu label {
  display: block;
  padding: 3px 20px;
  cursor: pointer;
}

.checkbox-menu label:hover {
  background-color: #f5f5f5;
}

.checkbox-menu input[type="checkbox"] {
  margin-right: 8px;
}

.tag-scroll-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.tag-scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tag-scroll-container::-webkit-scrollbar {
  display: none;
}

.tag-selector {
  display: inline-block;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #0063be;
  border-radius: 8px;
  cursor: pointer;
  color: #0063be;
  margin: 2px;
  white-space: nowrap;
  user-select: none;
  font-size: 13px;
}

.tag.active {
  background-color: #0063be;
  color: white;
}

.tag-arrow {
  background: none;
  border: none;
  font-size: 20px;
  color: #0063be;
  cursor: pointer;
  padding: 0 8px;
  height: 100%;
  user-select: none;
}

.dropdown-menu input[type="checkbox"] {
  width: 12px;
  height: 12px;
  transform: scale(1.5);
  margin-right: 5px;
  vertical-align: middle;
}    

@media (max-width: 768px) {
  .navbar-right {
    float: none !important;
    text-align: center;
    margin-top: 10px;
  }
  
  .map-controls {
    flex-direction: column;
  }
  
  .map-column.tags-column {
    max-width: 100% !important;
  }
  
  .map-column.capa-column{
    max-width: 100%;
  }
}

.layer-toggle-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9;
}
.layer-toggle-container.panel-open #toggleLayersBtn{
  display: none;
}

.layer-button,
.layer-button-toggle,
.basemap-button,
.vaca-muerta-button,
.cluster-button {
  background: white;
  border-radius: 14px;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;  
  transition: transform 0.3s, background 0.2s;
  margin-top: 10px;
}

.layer-button:not(.active), 
.basemap-button:not(.active),
.vaca-muerta-button:not(.active) {
    filter: grayscale(50%);
    opacity: 0.6;
}

.basemap-button,
.vaca-muerta-button,
.cluster-button {      
  margin: 0 auto;
  margin-bottom: 10px;      
}

.layer-button.active,
.basemap-button.active,
.vaca-muerta-button.active,
.cluster-button.active {
  background: white;
  border: 2px solid #004a9f
}

.layer-button:hover,
.basemap-button:hover,
.layer-button-toggle:hover,
.vaca-muerta-button:hover,
.cluster-button:hover {
  transform: scale(1.05);
  background: #f0f0f0;
}

.layer-buttons-group,
.basemap-buttons-group {
  display: block;
  flex-direction: row;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.basemap-buttons-group {
  padding-left:10px;
  padding-right:10px;
}

.layer-buttons-group.active {
  display: flex;
}

.layer-button img,
.cluster-button img {
  width: 45px;
  height: 45px; 
}

.layer-button-toggle img{
  width: 32px;
  height: 32px;  
}

.basemap-button img,
.vaca-muerta-button img {
  width: 56px;
  height: 56px;  
}

.layer-label,
.basemap-label {
  font-size: 11px;
  text-align: center;
  color: #004a9f;
  display:flex;
  line-height: 1.2;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.layer-label {
  margin-top: 5px;
  margin-left: 5px;
}

.basemap-label {
  font-size: 11px;
  padding-left:10px;
}

.layers-options-panel {
  display: none;
  position: absolute;
  bottom: 0px;
  background: white;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  width: 280px;
  max-height: 55vh;      
  overflow: hidden;
  z-index: 99999; 
}

.layers-scroll-content,
.info-scroll-content {      
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  margin-top: 32px;
}

.layers-scroll-content {   
  max-height: 45vh;
}

.info-scroll-content {   
  max-height: 35vh;
  margin-top: 25px;
}

.layer-scroll-content::-webkit-scrollbar,
.info-scroll-content::-webkit-scrollbar {
  width: 6px;
}

.layer-scroll-content::-webkit-scrollbar-track,
.info-scroll-content::-webkit-scrollbar-track {
  background: transparent;
}

.layer-scroll-content::-webkit-scrollbar-thumb,
.info-scroll-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 5px;
}

.close-btn {
  position: absolute;
  top: 0px;
  right: 10px;
  background:  transparent;
  border: none;
  font-size: 44px;
  color:#004a9f;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.2s;
}
.close-btn:hover {
  color:#000;
}

.layers-options-panel.active {
  display: block;
}

.layers-title {
  font-weight: bold;
  color:#004a9f;
  font-size: 14px;      
  line-height: 1.2;
}

/***************INFO PANEL***************************/ 
.floating-button, .reset-map-floating-button {
  position: absolute;  
  right: 10px;
  background: white;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reset-map-floating-button{
  bottom: 120px;
  z-index: 2;
}
.floating-button {
  top: 10px;
}

.floating-button img, .reset-map-floating-button img{
  width: 28px;
  height: 28px;
}

.floating-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 300px;
  max-height: 400px;  
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 15px;
  z-index: 1000;
  overflow-y: none;
  display: none;
}

.floating-panel .info-close-btn {
  position: absolute;
  top: 0px;
  right: 10px;
  background: none;
  border: none;
  font-size: 44px;
  cursor: pointer;
}

.floating-panel .layer-info .count {
  font-size: 12px;
  margin:5px; 
}

.floating-panel .layer-info .count b{
  font-size: 14px; 
  font-weight: bolder;
  color:#004a9f;
}

.floating-panel strong{
  color:#004a9f; 
  font-size: 16px;
  margin:5px;
  margin-top:4px;
  position: absolute;
}

/*************************************************/
.tramo-label{
  color:#ffffff;
  background-color:rgba(255, 255, 255, 0.6);
  padding: 8px;
  border-radius: 8px;
}  
.IWHeader {
  color:#606060;
  font-size: 14px;
  font-weight: bold;  
  display:flex;
  align-items:center;
  justify-content:space-between; 
}
.IWHeader span {
  margin-right: 15px;
}

.IWTitle {
  color:#0451DD;
  font-size: 16px;
  font-weight: bold;
  text-transform: capitalize;
  padding-top: 5px;
  padding-bottom: 5px;
}

.IWLine{
  color:#606060;
  padding-top: 5px;
  padding-bottom: 5px;
  max-width: 250px;
}

.IWHeader img{
  width:20px;
  height:20px;
  margin-right: 25px;
  cursor:pointer;
}

.IWLine-list-item {
  color: #000;  
  padding-top: 3px;
  padding-bottom: 3px;  
}

.IWBold-500{
  font-weight: 500;
}

.IWBold {
  color:#0451DD;
  font-size: 16px;
  font-weight: bold;
}

.gm-style-iw-d {
  width: 250px;
  margin-top: -34px;
}

/**********************************************/
@media (max-width: 767px) {
  .componente-mapa {
    margin-top: 0px !important;
  }
  .text-container{
    font-size:11px;
  }
  .search-result-item {
    padding: 0;
  }
}

@media (max-width: 374px) {
  #search-box {
    max-width: 250px;
    min-width: 220px;
  }
  .text-container{
    font-size:10px;
  }  
}

@media (max-width: 600px) {
  .floating-panel{
    max-height: 300px;
  }
  .info-scroll-content {
    max-height: 25vh;    
  }
}

/*******************/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
 
.preloader-content {
  text-align: center;
}
 
.spinner {
  width: 80px;
  height: 80px;
  /*animation: spin 2s linear infinite;*/
  /*animation: fade 2s ease-in-out infinite;*/
  /*animation: zoom 2s ease-in-out infinite;*/
  /*animation: bounce 2s ease-in-out infinite;*/
  
  /*animation: flip 2s ease-in-out infinite;
  transform-style: preserve-3d;*/

  animation: fade 2s ease-in-out infinite;
    
}
 
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fade {
  0%, 100% {opacity: 0;}
  50% {opacity: 1;}
}

@keyframes flip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }  
}

@keyframes zoom {
  0%, 100% {transform: scale(0.8); opacity: 0.5;}
  50% {transform: scale(1.2); opacity: 1;}
}

@keyframes bounce {
  0%, 100% {transform: translateY(0);}
  50% {transform: translateY(-20px);}
}

.map-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none; /* importante para no bloquear el mouse */
  z-index: 9999;
} 
