/* assets/css/sucatms-style.css */

#sucatms-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
}

#sucatms-map {
  flex: 2;
  min-height: 600px;
  height: 100%;
  border-radius: 10px;
  border: 1px solid #ddd;
}

#sucatms-list {
  flex: 1;
  max-height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  background: #fff;
}

.sucatms-list-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    /* padding-bottom: 1rem; */
    padding: 0px 10px 12px 0px;
}
input.sucatms-search {
    border-radius: 25px;
}

.sucatms-search {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}
.sucatms-desc p i {
    color: #004c97;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 5px;
    border: 1px solid #004c97;
}

.sucatms-list-item {
    display: flex;
    gap: 0.75rem;
    background: #ffffff;
    padding: 0.95rem 0.95rem;
    border-radius: 8px;
    border: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 1px 8px;
}


.sucatms-list-item:hover {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 2px 12px;
}

.sucatms-list-item img {
  width: 150px;
  height: 135px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.sucatms-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #004c97;
}


.sucatms-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #333;
}

.sucatms-directions {
    display: inline-block;
    margin-top: 0;
    /* padding: 0.3rem 0.6rem; */
    /* background: #007cba; */
    color: #005696;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: -5px;
    border: 1px solid #004c97;
    padding: 0px 15px;
    border-radius: 15px;
    height: 30px;
    line-height: 30px;
}

.sucatms-directions:hover {
    text-decoration: none !important;
}
p.sucatms-add {
    margin-top: -8px;
}
.sucatms-desc p {
    font-size: 11px;
}
.sucatms-desc {
    margin: 7px 0px;
}
input.sucatms-search {
    border: 1px solid #e3e3e3 !important;
}
/*POPUP MAP*/

.leaflet-popup-content {
  margin: 0;
  padding: 0 !important;
}

.sucatms-popup {
  display: flex;
  flex-direction: column;
  max-width: 350px;
  font-family: inherit;
  padding: 0 !important;
}
.sucatms-popup-info p i {
    color: #004c97;
    height: 26px;
    width: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 5px;
    border: 1px solid #004c97;
    font-size: 12px;
}

a.leaflet-popup-close-button {
    background-color: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 16px;
    line-height: 32px !important;
    margin: 6px;
}
.leaflet-container a.sucatms-popup-btn {
    display: inline-block;
    margin-top: 10px;
    /* padding: 0.3rem 0.6rem; */
    /* background: #007cba; */
    color: #005696;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: -5px;
    border: 1px solid #004c97;
    padding: 0px 15px;
    border-radius: 15px;
    min-height: 30px;
    line-height: 30px;
}
}
.sucatms-popup-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.sucatms-popup-info {
    padding: 0.9rem 0.9rem 1.5rem 0.9rem;
    background: #fff;
    border-radius: 0 0 5px 5px;
}

.sucatms-popup-info h4 {
  margin: 0 0 0.25rem;
  font-size: 16px;
  color: #004c97;
}

p.sucatms-popup-add {
    font-size: 12px;
    margin-bottom: 10px;
}

p.sucatms-popup-add {
    font-size: 13px !important;
    margin-bottom: 12px !important;
    margin-top: -5px !important;
    opacity: 0.75;
}

.sucatms-popup-btn {
    display: inline-block;
    margin-top: 0.55rem;
    /* background: #007cba; */
    color: #fff;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 5px;
}
.sucatms-popup-info p {
    margin: 4px 0;
}

.sucatms-popup-btn:hover {
  text-decoration: none!important;
}
.sucatms-popup-info p {
    font-size: 12px;
}


.sucatms-filter-btn {
  background: #eee;
  border: 1px solid #ccc;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.sucatms-filter-btn.active {
  background: #0054a6;
  color: white;
  border-color: #004080;
}
.sucatms-filter button {
    background-color: #fff;
    border: 1px solid #005696;
    color: #005696;
    font-size: 11px;
    line-height: 28px;
    padding: 0px 12px;
    margin-right: 5px;
    border-radius: 15px;
    font-weight: 700;
}
.sucatms-filter button:hover {
    cursor: pointer;
}
.sucatms-filter button.active {
    cursor: pointer;
    background-color: #005696;
    color: #fff;
}
.sucatms-filter button[data-tipo="atm"] {
  text-transform: uppercase;
}
.sucatms-filter {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
  #sucatms-container {
    flex-direction: column;
  }
  .sucatms-popup img {
      display: none;
  }

  #sucatms-list {
      flex: none;
      width: 93%;
      max-height: unset;
      height: 600px;
      margin: 0 3.5%;
  }
  #sucatms-map{
    flex: none;
    width: 100%;
    max-height: 300px;
    height: 300px;
    min-height: unset;
  }
}
