body {
  font-family: 'Montserrat', Sans-serif;
}

.button-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.button-form {
  background-color: rgba(254, 166, 34, 1);
}

.button-form:hover {
  background-color: rgb(241, 156, 29);
}

#map {
  height: 90vh;
}

#map-ficha-producto {
  height: 50vh;
}

.card-header-market img {
  width: 100%;
  height: 128px;
  overflow: hidden;
  object-fit: cover;
}

.card-header-market .status-market {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(236, 253, 243, 1);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
}

.status-open {
  color: rgba(2, 122, 72, 1);
  background-color: rgba(236, 253, 243, 1) !important;
  # light-green
}

.status-developing {
  color: rgba(102, 77, 3, 1);
  background-color: rgba(255, 243, 205, 1) !important;
  # light-yellow
}

.status-complete {
  color: #283f76ff;
  background-color: #a4abbbff !important;
}

.subtitle {
  color: rgba(254, 166, 34, 1);
  font-size: 0.9rem;
}

.card {
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-body h2 {
  font-size: 18px;
  margin: 10px 0;
  line-height: 0.6;
}

.card-body p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.price,
.location {
  font-size: 14px;
  display: inline-block;
}

.location {
  color: rgba(64, 64, 64, 1);
}

.communities {
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 1500px) {
  .col-xxl-custom-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.communities {
  overflow-y: scroll;
  height: 90vh;
}

.boton-menu {
  background-color: #FEA622;
  color: black;
  border-radius: 25px;
}

.boton-menu:hover {
  background-color: #333;
  color: white;
}

.legend {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 250px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-item .color-box {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.leaflet-legend {
  background-color: white;
}

.leaflet-legend-title {
  margin: 3px;
  padding-bottom: 5px;
}

.leaflet-legend-column {
  float: left;
  margin-left: 10px;
}

.leaflet-legend-item {
  display: table;
  margin: 2px 0;
}

.leaflet-legend-item span {
  vertical-align: middle;
  display: table-cell;
  word-break: keep-all;
  white-space: nowrap;
  background-color: transparent;
  text-align: left;
}

.leaflet-legend-item-clickable {
  cursor: pointer;
}

.leaflet-legend-item-inactive span {
  color: #cccccc;
}

.leaflet-legend-item-inactive i img,
.leaflet-legend-item-inactive i canvas {
  opacity: 0.3;
}

.leaflet-legend-item i {
  display: inline-block;
  padding: 0px 3px 0px 4px;
  position: relative;
  vertical-align: middle;
}

.leaflet-legend-toggle {
  background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTk5MDE0Mjk2NTEwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE3Nzk4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48ZGVmcz48c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik05MzQuNCA0NzguNzJINzM3LjI4Yy0xNS44NzItMTEwLjA4LTExMS4xMDQtMTk0LjU2LTIyNS4yOC0xOTQuNTZTMzAyLjU5MiAzNjguNjQgMjg2LjcyIDQ3OC43Mkg4OS42djY2LjU2SDI4Ni43MmMxNS44NzIgMTEwLjA4IDExMS4xMDQgMTk0LjU2IDIyNS4yOCAxOTQuNTZzMjA5LjQwOC04NC40OCAyMjUuMjgtMTk0LjU2aDE5Ny4xMnYtNjYuNTZ6IiBmaWxsPSIjNzA3MDcwIiBwLWlkPSIxNzc5OSI+PC9wYXRoPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  box-shadow: none;
  border-radius: 4px;
}

.leaflet-legend-contents {
  display: none;
}

.leaflet-legend-expanded .leaflet-legend-contents {
  display: block;
  padding: 6px 15px 6px 6px;
}

.leaflet-legend-contents img {
  position: absolute;
}

.leaflet-legend-contents:after {
  content: "";
  display: block;
  clear: both;
}

.filters {
  border-top: 1px solid rgba(242, 244, 247, 1);
  padding-top: 1.5rem;
}

.btn-filtrar {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #c0c0c0;
  color: #333;
  padding: 8px 12px;
  background-color: white;
}

.btn-filtrar:hover {
  background-color: #f0f0f0;
}

.btn-filtrar .fas {
  margin-right: 5px;
}

.btn-ver-todo {
  text-decoration: none;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #c0c0c0;
  color: #333;
  padding: 4px 6px;
  background-color: white;
}

.custom-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #c0c0c0;
  color: #555;
  padding: 8px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: white url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray" class="bi bi-caret-down-fill" viewBox="0 0 16 16"> <path d="M7.247 11.14 2.451 6.344c-.566-.566-.166-1.533.637-1.533h10.384c.803 0 1.203.967.637 1.533l-4.796 4.796a.75.75 0 0 1-1.06 0z"/> </svg>') no-repeat right 10px center;
}

.custom-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-select-order {
  display: inline-block;
  width: auto;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 1.75rem 0.375rem 1.5rem;
  line-height: 1.5;
  vertical-align: middle;
  background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat left 0.75rem center;
  background-size: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  appearance: none;
}

.mr-3 {
  margin-right: 1rem;
}

.form-group .d-flex {
  padding: 10px 0;
}

.form-group .d-flex:last-child {
  padding-bottom: 0;
}

.options-label {
  font-family: 'Montserrat', Sans-serif;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 28px;
}

.custom-checkbox:checked {
  background-color: yellow;
  border-color: yellow;
}

.custom-checkbox {
  width: 15px;
  height: 15px;
}

.filter-modal .modal-header,
.filter-modal .modal-body,
.filter-modal .modal-footer {
  padding: 1rem 1.5rem;
}

.filter-modal .modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.filter-modal .form-group {
  margin-bottom: 1rem;
}

.filter-modal .form-check {
  margin-bottom: 0.5rem;
}

.filter-modal .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  opacity: 0.5;
}

.filter-modal .close:hover,
.filter-modal .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.75;
}

.modal-footer {
  border-top: none;
  display: flex;
  justify-content: center;
}

.btn-custom {
  background-color: rgba(254, 166, 34, 1);
  border-color: rgba(254, 166, 34, 1);
  color: #fff;
}

.btn-custom:hover {
  background-color: rgba(254, 166, 34, 0.8);
  border-color: rgba(254, 166, 34, 0.8);
}

svg.leaflet-zoom-animated g {
  opacity: 0.3;
}


/* Mobile */
@media (max-width: 767.98px) {
  .custom-select {
    font-size: smaller !important;
  }

  .filters {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .filters .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .filters .container-fluid {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .filters .form-filters {
    flex-direction: column;
    display: none !important;
  }

  .filter-modal .place-filters {
    display: block !important;
  }

  .btn-full-width {
    width: 100%;
    margin-bottom: 2px;
    font-size: small !important;
    display: inline-block;
  }

  .btns-mobile {
    height: 32px;
  }

  .btn-filtrar {
    height: 100%;
    border: 1px solid rgba(202, 202, 202, 1);
    color: rgba(64, 64, 64, 1);
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    height: 100% !important;
    box-sizing: border-box;
    vertical-align: middle;
    padding: 6px 10px;
  }

  .custom-select-order {
    height: 100%;
    border: 1px solid rgba(202, 202, 202, 1);
    color: rgba(64, 64, 64, 1);
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
    height: 100% !important;
    box-sizing: border-box;
  }

  .custom-select {
    width: 100%;
    /* margin-bottom: 10px; */
  }

  .communities {
    max-height: 100%;
    height: 100% !important;
    overflow: visible;
  }

  #map {
    height: 100vh;
  }

  .btn-selected {
    background-color: rgba(254, 166, 34, 1) !important;
    color: white;
  }

  .btn-unselected {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
  }

  .btn-left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .btn-right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .btn i {
    margin-right: 5px;
  }
}

@media only screen and (max-width: 767px) {
  .img-legend {
    width: 15px;
  }

  .legend-title {
    font-size: 14px;
  }

  .legend {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 10px;
    margin: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
  }

  #map_ {
    display: none;
  }

  #list_ {
    display: block;
  }

  .custom-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background-color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
  }

  .modal-header {
    border-bottom: none;
    display: flex;
    justify-content: flex-end;
    height: 10px;
  }

  .close {
    border: none;
    background: none;
    font-size: 1.5rem;
  }

}

@media only screen and (min-width: 768px) {
  .img-legend {
    width: 25px;
  }

  .legend-title {
    font-size: 18px;
  }

  .legend {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 250px;
  }

  #map {
    display: block;
  }

  #list {
    display: block;
  }
}