.gnpl-widget {

  font-family: "Segoe UI", Arial, sans-serif;

  color: #1f2933;

  padding: 0 8px;

}



/* LAYOUT */

.gnpl-widget .gnpl-sidebar {

  border-right: 1px solid #d7dce2;

  overflow-y: auto;

  background: #ffffff;

  max-height: 80vh;

}



.gnpl-widget .gnpl-map {

  height: 100%;

  min-height: 600px;

  border-radius: 6px;

  overflow: hidden;

  background: #ffffff;

}



/* SEARCH */

.gnpl-widget .gnpl-search {

  padding: 12px 14px;

  border: 1px solid #c9d1dc;

  border-radius: 6px;

  font-size: 15px;

  background: #ffffff;

}



.gnpl-widget .gnpl-search:focus {

  border-color: #0057a8;

  box-shadow: 0 0 0 2px rgba(0, 87, 168, 0.12);

  outline: none;

}



/* LIST */

.gnpl-widget .gnpl-list {

  padding: 0;

}



/* ACCORDION */

.gnpl-widget .gnpl-accordion-item {

  border-bottom: 1px solid #d8dde6;

  background: #ffffff;

}



.gnpl-widget .gnpl-accordion-header {

  width: 100%;

  min-height: 64px;

  padding: 0 16px;

  display: flex;

  align-items: center;

  gap: 12px;

  border: 0;

  background: #ffffff;

  cursor: pointer;

}



.gnpl-widget .gnpl-accordion-header:hover {

  background: #f8fafc;

}



.gnpl-widget .gnpl-check-wrap {

  display: flex;

  align-items: center;

}



.gnpl-widget .gnpl-check-wrap input {

  width: 18px;

  height: 18px;

  accent-color: #0066cc;

}



.gnpl-widget .gnpl-accordion-title {

  font-size: 15px;

  font-weight: 600;

  color: #1f2933;

}



.gnpl-widget .gnpl-accordion-arrow {

  margin-left: auto;

  font-size: 24px;

  color: #0066cc;

  transform: rotate(90deg);

  transition: transform 0.2s ease;

}



.gnpl-widget .gnpl-accordion-item.open .gnpl-accordion-arrow {

  transform: rotate(-90deg);

}



.gnpl-widget .gnpl-accordion-panel {

  display: none;

  background: #ffffff;

}



.gnpl-widget .gnpl-accordion-item.open .gnpl-accordion-panel {

  display: block;

}



/* ITEM LIST */

.gnpl-widget .gnpl-accordion-link {

  width: 100%;

  min-height: 66px;

  padding: 14px 16px 14px 54px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border: 0;

  border-bottom: 1px solid #e5e9ef;

  background: #ffffff;

  color: #1f2933;

  font-size: 16px;

  line-height: 1.35;

  text-align: left;

  cursor: pointer;

}



.gnpl-widget .gnpl-accordion-link:hover {

  color: #0066cc;

  background: #f8fafc;

}



.gnpl-widget .gnpl-item-arrow {

  font-size: 24px;

  font-weight: 600;

  color: #0066cc;

}



/* POPUP */

.gnpl-widget .leaflet-popup-content-wrapper {

  border-radius: 18px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);

}



.gnpl-widget .leaflet-popup-content {

  margin: 0;

  width: 380px !important;

}



.gnpl-widget .leaflet-popup-tip {

  box-shadow: none;

}



.gnpl-widget .custom-popup {

  padding: 18px;

  font-family: inherit;

  color: #172033;

}



.gnpl-widget .popup-header {

  display: flex;

  gap: 16px;

  align-items: flex-start;

  margin-bottom: 18px;

}



.gnpl-widget .popup-img {

  width: 112px;

  height: 78px;

  object-fit: cover;

  border-radius: 12px;

  background: #f2f4f7;

  flex-shrink: 0;

}



.gnpl-widget .popup-heading {

  min-width: 0;

}



.gnpl-widget .popup-title {

  color: #0057a8;

  font-size: 22px;

  line-height: 1.15;

  font-weight: 700;

  margin-bottom: 4px;

}



.gnpl-widget .popup-subtitle {

  color: #0057a8;

  font-size: 15px;

  line-height: 1.25;

  font-weight: 400;

}



/* DATI POPUP */

.gnpl-widget .popup-body {

  display: grid;

  gap: 10px;

}



.gnpl-widget .popup-row {

  display: grid;

  grid-template-columns: 95px 1fr;

  gap: 12px;

  align-items: center;

}



.gnpl-widget .popup-row-block {

  align-items: start;

}



.gnpl-widget .popup-label {

  font-size: 13px;

  font-weight: 600;

  color: #667085;

  padding-top: 2px;

}



.gnpl-widget .popup-value {

  font-size: 15px;

  color: #172033;

}



/* CHIP */

.gnpl-widget .popup-chip {

  display: inline-block;

  padding: 6px 10px;

  background: #f2f4f7;

  border-radius: 8px;

  line-height: 1.4;

}



/* INDIRIZZO */

.gnpl-widget .popup-address {

  display: inline-flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  width: 100%;

}



.gnpl-widget .popup-address-text {

  order: 1;

}



.gnpl-widget .popup-map-link {

  order: 2;

  margin-left: auto;

}



.gnpl-widget .popup-map-link {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 auto;

  width: 18px;

  height: 18px;

}



.gnpl-widget .popup-map-link img {

  width: 18px !important;

  height: 18px !important;

  max-width: none !important;

  max-height: none !important;

  object-fit: contain;

  display: block;

}



.gnpl-widget .popup-address-text {

  line-height: 1.4;

}



/* DATE */

.gnpl-widget .popup-chip-group {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.gnpl-widget .popup-chip-group div {

  background: #f2f4f7;

  border-radius: 8px;

  padding: 6px 10px;

  display: inline-flex;

  align-items: center;

  margin: 0;

}



/* RESET CONTROL */

.gnpl-widget .gnpl-reset-control a {

  width: 34px;

  height: 34px;

  line-height: 32px;

  text-align: center;

  font-size: 20px;

  font-weight: 700;

  color: #172033;

  background: #ffffff;

  display: block;

}



.gnpl-widget .gnpl-reset-control a:hover {

  background: #f2f4f7;

}



/* MOBILE */

@media (max-width: 900px) {

  .gnpl-widget .gnpl-app {

    grid-template-columns: 1fr;

    height: auto;

  }



  .gnpl-widget .gnpl-sidebar {

    max-height: 420px;

    border-right: 0;

    border-bottom: 1px solid #d7dce2;

  }



  .gnpl-widget .gnpl-map {

    height: 520px;

  }



  .gnpl-widget .leaflet-popup-content {

    width: 300px !important;

  }



  .gnpl-widget .popup-title {

    font-size: 20px;

  }



  .gnpl-widget .popup-img {

    width: 82px;

    height: 58px;

  }



  .gnpl-widget .popup-row {

    grid-template-columns: 82px 1fr;

  }

}



.gnpl-widget .leaflet-popup-content .popup-map-link {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  width: 20px;

  height: 20px;

}



.gnpl-widget .leaflet-popup-content .popup-map-link img {

  width: 18px !important;

  height: 18px !important;

  max-width: 18px !important;

  max-height: 18px !important;

  object-fit: contain;

  display: block;

}
.gnpl-filter-group {
  margin-bottom: 18px;
  padding: 0 16px;
  border: 1px solid #ddd;
}

.gnpl-filter-title {
  display: block;
  margin: -12px 0 10px 0;
  padding: 0 6px;
  width: fit-content;
  background: #fff;
  font-size: 16px;
  color: #333;
}

.gnpl-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

.gnpl-filter-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.gnpl-results-count {
  padding: 10px 16px;
  font-size: 14px;
  color: #555;
}

.gnpl-results {
  padding: 0 16px 16px;
}

.gnpl-result-item {
  display: block;
  width: 100%;
  margin: 0 0 8px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: #f0f0f3;
  text-align: left;
  cursor: pointer;
}

.gnpl-result-title {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.gnpl-result-meta {
  display: block;
  font-size: 13px;
  color: #555;
  line-height: 1.25;
}

.gnpl-region-group {
  margin-bottom: 18px;
}

.gnpl-region-title {
  margin: 14px 0 8px;
  padding: 8px 10px;
  background: #d9dce3;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.popup-gmaps-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.popup-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}