footer,
#footer,
.site-footer {
  display: none !important;
}

button,
a,
input,
.leaflet-control-zoom a {
  touch-action: manipulation;
}

#mainNavbar {
  position: absolute !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 95% !important;
  max-width: 1200px !important;
  border-radius: 50px !important;
  background: rgba(11, 13, 15, 0.85) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(21, 93, 59, 0.6) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  padding: 10px 25px !important;
  z-index: 1000 !important;
}

#mainNavbar .nav-link,
#mainNavbar .contact-info,
#mainNavbar .navbar-brand {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: none !important;
  transition: color 0.2s ease;
}

#mainNavbar .nav-link:hover {
  color: #198754 !important;
}

#mainNavbar .btn-glass {
  background: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

#mainNavbar .btn-glass:hover {
  background: #155d3b !important;
  border-color: #198754 !important;
}

#mobileMenuIcon {
  color: #ffffff !important;
}

@media (max-width: 991px) {
  #mainNavbar {
    border-radius: 25px !important;
  }

  #navbarNav {
    background: rgba(11, 13, 15, 0.95) !important;
    border-radius: 15px !important;
    padding: 15px !important;
    margin-top: 15px !important;
    border: 1px solid rgba(21, 93, 59, 0.4) !important;
  }
}

.leaflet-container {
  background: #f8f9fa !important;
}

.shadow-inset {
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.hover-scale:hover {
  transform: scale(1.1);
}

.transition-all {
  transition: all 0.2s ease;
}

.glass-panel-dark {
  background: rgba(11, 13, 15, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(21, 93, 59, 0.6);
  box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.7);
}

.property-panel {
  position: absolute;
  top: 205px;
  left: 20px;
  bottom: 30px;
  width: 420px;
  border-radius: 24px;
  transform: translateX(-120%) scale(0.95);
  opacity: 0;
  transition: all 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.property-panel.active {
  transform: translateX(0) scale(1);
  opacity: 1;
}

@media (max-width: 768px) {
  .property-panel {
    top: auto;
    left: 10px;
    bottom: 10px;
    right: 10px;
    width: auto;
    max-height: 80vh;
    border-radius: 24px;
    transform: translateY(120%) scale(0.95);
  }

  .property-panel.active {
    transform: translateY(0) scale(1);
  }
}

.leaflet-left .leaflet-control {
  margin-left: 20px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 40px;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background-color: #0b0d0f !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  width: 45px !important;
  height: 45px !important;
  line-height: 45px !important;
  font-size: 1.4rem !important;
  transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
  background-color: #155d3b !important;
  color: white !important;
}

.rento-marker-wrapper {
  background: transparent;
  border: none;
}

.rento-marker-inner {
  width: 100%;
  height: 100%;
  background-color: #155d3b;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(21, 93, 59, 0.8);
  transition: transform 0.2s, background-color 0.2s;
  animation: markerPulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.rento-marker-wrapper:hover .rento-marker-inner {
  transform: scale(1.3);
  background-color: #003366;
  animation: none;
  box-shadow: 0 5px 15px rgba(0, 51, 102, 0.8);
}

@keyframes markerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 93, 59, 0.8);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(21, 93, 59, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(21, 93, 59, 0);
  }
}

.user-pin {
  background-color: #0d6efd;
  border: 3px solid white;
  border-radius: 50%;
}

.carousel-item {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-item img {
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#carouselDepto .carousel-control-prev,
#carouselDepto .carousel-control-next {
  opacity: 0.8;
  transition: opacity 0.2s;
}

#carouselDepto .carousel-control-prev:hover,
#carouselDepto .carousel-control-next:hover {
  opacity: 1;
}

#carouselDepto .carousel-indicators {
  margin-bottom: 0.5rem;
}

#carouselDepto .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
}

.price-card-dark {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(21, 93, 59, 0.3);
  border-left: 5px solid #198754;
  border-radius: 16px;
}

.inner-card-dark {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(21, 93, 59, 0.2);
}

.glass-button {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

#mapFilterToggle {
  display: none !important;
  background: rgba(11, 13, 15, 0.9) !important;
  border: 1px solid rgba(21, 93, 59, 0.6) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  width: min(100%, 540px);
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.map-filter-toggle-icon {
  transition: transform 0.2s ease;
}

.glass-pill {
  border-radius: 50px !important;
  background-color: rgba(11, 13, 15, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(21, 93, 59, 0.5) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  width: auto !important;
  padding: 6px 14px !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  min-width: 90px;
}

.glass-pill::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

#filter-precio-min,
#filter-precio-max {
  appearance: textfield;
  -moz-appearance: textfield;
}

#filter-precio-min::-webkit-outer-spin-button,
#filter-precio-min::-webkit-inner-spin-button,
#filter-precio-max::-webkit-outer-spin-button,
#filter-precio-max::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.glass-pill:hover {
  background-color: rgba(21, 93, 59, 0.8) !important;
  border-color: #198754 !important;
}

.glass-pill:focus,
.glass-pill:focus-within {
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.5) !important;
  border-color: #198754 !important;
  background-color: rgba(11, 13, 15, 0.95) !important;
  outline: none;
}

#filter-destacado:checked ~ label {
  color: white !important;
}

#filter-destacado:checked ~ label .bi-star-fill {
  animation: starPulse 0.5s ease;
  color: #ffc107 !important;
}

#filter-destacado:checked + label {
  color: white !important;
}

#destacado-pill:has(#filter-destacado:checked) {
  background-color: rgba(21, 93, 59, 0.95) !important;
  border-color: #198754 !important;
  box-shadow: 0 0 20px rgba(21, 93, 59, 0.6), 0 4px 12px rgba(25, 135, 84, 0.4) !important;
}

@keyframes starPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.glass-pill-btn {
  font-size: 0.8rem !important;
  padding: 6px 16px !important;
  font-weight: 600 !important;
}

#btnApplyFilters:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(21, 93, 59, 0.8) !important;
}

.select2-container {
  flex-shrink: 0 !important;
  min-width: 110px !important;
  max-width: 150px !important;
}

@media (max-width: 768px) {
  #mapFilterToggle {
    display: flex !important;
  }

  #mapFilterForm {
    display: none !important;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: min(100%, 540px);
    margin: 10px auto 0 !important;
    padding: 10px !important;
    border-radius: 18px;
    background: rgba(11, 13, 15, 0.94);
    border: 1px solid rgba(21, 93, 59, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden !important;
  }

  .map-filters-open #mapFilterForm {
    display: flex !important;
  }

  .map-filters-open .map-filter-toggle-icon {
    transform: rotate(180deg);
  }

  #mapFilterForm > * {
    width: 100%;
  }

  #mapFilterForm .select2-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #filter-precio-min,
  #filter-precio-max {
    max-width: none !important;
    width: 100%;
  }

  #destacado-pill,
  #btnToggleMetro,
  #btnApplyFilters,
  #btnClearFilters {
    width: 100%;
    justify-content: center;
  }

  #destacado-pill {
    padding: 8px 14px !important;
  }

  .glass-pill {
    min-width: 85px;
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
  }

  .select2-container {
    min-width: 100px !important;
    max-width: 130px !important;
  }

  .glass-pill-btn {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
  }
}

@media (min-width: 1400px) {
  .glass-pill {
    min-width: 100px;
    padding: 6px 16px !important;
  }

  .select2-container {
    min-width: 120px !important;
    max-width: 160px !important;
  }
}

.select2-container--default .select2-selection--multiple {
  border-radius: 50px !important;
  background-color: rgba(11, 13, 15, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(21, 93, 59, 0.5) !important;
  min-height: 34px !important;
  padding: 1px 10px !important;
  cursor: pointer;
  font-size: 0.8rem !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.5) !important;
  border-color: #198754 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: rgba(21, 93, 59, 0.5) !important;
  border: 1px solid rgba(25, 135, 84, 0.5) !important;
  color: white !important;
  border-radius: 50px !important;
  padding: 1px 8px !important;
  font-size: 0.75rem !important;
  margin-top: 3px !important;
  margin-right: 3px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: rgba(255, 255, 255, 0.7) !important;
  margin-right: 5px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #fff !important;
}

.select2-search__field {
  color: white !important;
  margin-top: 4px !important;
  font-size: 0.8rem !important;
}

.select2-search__field::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.select2-dropdown {
  background-color: #0b0d0f !important;
  border: 1px solid rgba(21, 93, 59, 0.6) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  color: white !important;
}

.select2-container--default .select2-results__option {
  color: rgba(255, 255, 255, 0.7) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #155d3b !important;
  color: white !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(255, 255, 255, 0.1) !important;
}
