/* Half-screen map search */
.discovery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.discovery-controls label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
  min-width: 100px;
  flex: 1;
}
.discovery-controls select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #dbe3e8;
  border-radius: 6px;
  background: #fff;
  padding: 8px;
  color: var(--ink);
}
.discovery-controls button {
  border: 1px solid #dbe3e8;
  background: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}
.discovery-controls button[aria-pressed='true'] {
  background: var(--navy);
  color: #fff;
}
.discovery-controls p {
  flex-basis: 100%;
  margin: 0;
  font-size: 11px;
}
@media (pointer: coarse) {
  .discovery-controls select,
  .discovery-controls button {
    min-height: 44px;
    font-size: 16px;
  }
}
.explore-page {
  --header-h: 88px;
  background: #fff;
  overflow: hidden;
}
.explore-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
}
.explore {
  display: grid;
  grid-template-columns: minmax(560px, 56%) minmax(0, 1fr);
  height: 100dvh;
  padding-top: var(--header-h);
}
.explore-list {
  overflow-y: auto;
  background: #f6f8f9;
  border-right: 1px solid #e3e9ec;
  scroll-padding-top: 12px;
}
.explore-filters {
  background: #fff;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #e6ebee;
}
.explore-search {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 10px;
}
.explore-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d9e1e6;
  border-radius: 8px;
  padding: 0 14px;
  min-height: 50px;
  background: #fff;
}
.explore-field:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #008ba11f;
}
.explore-field svg {
  width: 19px;
  height: 19px;
  color: #6d808b;
}
.explore-field input,
.explore-field select {
  border: 0;
  outline: 0;
  background: none;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  color: var(--ink);
  height: 48px;
}
.explore-submit {
  padding: 0 26px;
  min-height: 50px;
}
.explore-chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.explore-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  border: 1px solid #dbe3e8;
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 650;
  color: #3b5462;
}
.explore-chip svg {
  width: 16px;
  height: 16px;
}
.explore-chip:hover {
  border-color: #ffb64d;
  background: #fffaf1;
}
.explore-chip[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.explore-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 28px 6px;
}
.explore-count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.explore-count strong {
  color: var(--navy);
  font-size: 16px;
}
.explore-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.explore-switchlabel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: #3b5462;
  background: #fff;
  border: 1px solid #dbe3e8;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.explore-switchlabel input {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
  margin: 0;
}
.explore-switchlabel:has(input:checked) {
  border-color: var(--teal);
  background: #e8f6f8;
  color: #00525f;
}
.explore-sort select {
  border: 1px solid #dbe3e8;
  border-radius: 7px;
  background: #fff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}
.explore-layout {
  display: inline-flex;
  border: 1px solid #dbe3e8;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.explore-layout button {
  border: 0;
  background: none;
  width: 34px;
  height: 32px;
  font-size: 15px;
  color: #7c8d97;
}
.explore-layout button[aria-pressed='true'] {
  background: var(--navy);
  color: #fff;
}
.explore-notice {
  margin: 6px 28px 0;
  font-size: 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
}
.explore-notice[data-error='true'] {
  background: #b03a2e;
}
.explore-results {
  padding: 12px 28px 8px;
  outline: 0;
}
.explore-results.is-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.explore-results.is-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.explore-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8ec;
  border-radius: 10px;
  overflow: hidden;
  transition:
    box-shadow 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
.explore-card:hover {
  box-shadow: 0 10px 26px #06263e14;
  border-color: #ffc56b;
  transform: translateY(-2px);
}
.explore-card-link {
  display: block;
  height: 100%;
}
.explore-card-image {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #dfeef0;
}
.explore-card-image.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e9f2ef, #dcecee);
  color: #477d83;
}
.explore-card-image.is-placeholder svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.1;
}
.explore-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px 16px;
}
.explore-card-category {
  font-size: 9px;
  letter-spacing: 1.1px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
}
.explore-card-body strong {
  font-family: Manrope, var(--font);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.explore-card-town {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.explore-card-town svg {
  width: 13px;
  height: 13px;
}
.explore-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 9px;
  background: #f0f3f5;
  color: #5f717c;
  margin-top: 3px;
}
.explore-badge.is-open {
  background: #e5f3e9;
  color: #1d5a31;
}
.explore-save {
  top: 10px;
  right: 10px;
}
.explore-locate {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #dbe3e8;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 7px;
  font-size: 11px;
  font-weight: 700;
  color: #3b5462;
}
.explore-locate svg {
  width: 14px;
  height: 14px;
}
.explore-locate:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.explore-results.is-list .explore-card-link {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}
.explore-results.is-list .explore-card-image {
  height: 100%;
  min-height: 130px;
}
.explore-results.is-list .explore-save {
  left: 10px;
  right: auto;
}
.explore-empty {
  text-align: center;
  padding: 50px 28px;
}
.explore-empty > span svg {
  width: 36px;
  height: 36px;
  color: var(--teal);
}
.explore-empty h2 {
  font-size: 24px;
}
.explore-empty p {
  color: var(--muted);
}
.explore-list .load-more {
  margin: 14px auto 6px;
}
.explore-footnote {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 28px 30px;
  text-align: center;
}
.explore-map {
  position: relative;
  min-width: 0;
  background: #e8eef0;
}
.explore-map-canvas {
  position: absolute;
  inset: 0;
}
.explore-map-error {
  position: absolute;
  inset: auto 20px 20px;
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 5px 20px #06263e22;
  z-index: 500;
}
/* Map markers and popups */
.explore-pin {
  background: none;
  border: 0;
}
.explore-pin span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--navy);
  border: 3px solid #fff;
  box-shadow: 0 3px 10px #06263e55;
  transition:
    transform 0.15s,
    background 0.15s;
}
.explore-pin svg {
  width: 18px;
  height: 18px;
  color: #fff;
  transform: rotate(45deg);
  stroke-width: 1.9;
}
.explore-pin-food span {
  background: #d9822b;
}
.explore-pin-stay span {
  background: #7a5bb5;
}
.explore-pin-explore span {
  background: #1f8f6a;
}
.explore-pin-pharmacy span,
.explore-pin-health span {
  background: #c2453d;
}
.explore-pin-shop span {
  background: #2f6fb3;
}
.explore-pin-transport span,
.explore-pin-auto span {
  background: #4b5b66;
}
.explore-pin-education span {
  background: #a1662f;
}
.explore-pin-finance span {
  background: #3c7f8c;
}
.explore-pin-hardware span {
  background: #6b6f2e;
}
.explore-pin-services span {
  background: #008ba1;
}
.explore-pin.is-active span,
.explore-pin:hover span {
  transform: rotate(-45deg) scale(1.18);
  background: var(--orange);
}
.explore-pin.is-active,
.explore-cluster.is-active {
  z-index: 1000 !important;
}
.explore-cluster {
  background: none;
}
.explore-cluster span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #008ba1;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border: 4px solid #ffffffd9;
  box-shadow:
    0 0 0 6px #008ba133,
    0 4px 12px #06263e40;
  transition: transform 0.15s;
}
.explore-cluster.is-medium span {
  background: var(--navy);
  box-shadow:
    0 0 0 7px #06263e2b,
    0 4px 12px #06263e40;
}
.explore-cluster.is-large span {
  background: #e07b00;
  box-shadow:
    0 0 0 8px #ff9b0033,
    0 4px 12px #06263e40;
}
.explore-cluster.is-active span,
.explore-cluster:hover span {
  transform: scale(1.15);
  background: var(--orange);
  color: var(--navy);
}
.explore-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}
.explore-popup .leaflet-popup-content {
  margin: 0;
  width: 280px !important;
}
.explore-pop {
  display: block;
  color: var(--ink);
}
.explore-pop img,
.explore-pop-ph {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.explore-pop-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e9f2ef, #dcecee);
  color: #477d83;
}
.explore-pop-ph svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.1;
}
.explore-pop-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}
.explore-pop-body strong {
  font-family: Manrope, var(--font);
  font-size: 15px;
  line-height: 1.3;
}
.explore-pop-body small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.explore-pop-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  text-decoration: none;
}
.explore-pop-cta:hover {
  background: #134663;
}
.explore-popup .leaflet-popup-content {
  max-height: min(580px, calc(100vh - 150px));
  overflow-y: auto;
}
.explore-contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 8px 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.explore-contact {
  font-size: 13px;
  font-weight: 650;
  color: var(--teal) !important;
  overflow-wrap: anywhere;
  min-height: 30px;
  display: flex;
  align-items: center;
}
.explore-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.explore-social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy) !important;
  background: #f6f9fa;
}
.explore-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}
.explore-social.social-facebook,
.explore-social.social-messenger {
  color: #0866ff !important;
}
.explore-social.social-instagram {
  color: #c13584 !important;
}
.explore-social.social-whatsapp {
  color: #128c4a !important;
}
.explore-social.social-youtube {
  color: #e00000 !important;
}
.explore-social.social-viber {
  color: #7360f2 !important;
}
.explore-sheet.is-unpinned {
  display: block;
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(340px, calc(100% - 32px));
  z-index: 600;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px #06263e44;
  max-height: calc(100% - 32px);
  overflow: auto;
}
.leaflet-container {
  font-family: var(--font);
}
.leaflet-container a.leaflet-popup-close-button {
  color: #fff;
  text-shadow: 0 1px 3px #000a;
  font-size: 22px;
  width: 28px;
  height: 28px;
}
.leaflet-bar a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 20px;
  color: var(--navy);
}
.explore-sheet,
.explore-switch {
  display: none;
}
/* Tablet: narrower list, single-column cards */
@media (max-width: 1180px) {
  .explore {
    grid-template-columns: minmax(420px, 50%) minmax(0, 1fr);
  }
  .explore-results.is-grid {
    grid-template-columns: 1fr;
  }
  .explore-search {
    grid-template-columns: 1fr 1fr;
  }
  .explore-submit {
    grid-column: 1/-1;
  }
}
/* Phones: list or map, switched with the floating button */
@media (max-width: 899px) {
  .explore-page {
    overflow: auto;
  }
  .explore {
    display: block;
    height: auto;
    min-height: 100dvh;
  }
  .explore-list {
    overflow: visible;
    border: 0;
    padding-bottom: 90px;
  }
  .explore-filters {
    padding: 16px 16px 12px;
  }
  .explore-search {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .explore-keyword {
    grid-column: 1/-1;
  }
  .explore-submit {
    grid-column: auto;
    min-height: 46px;
  }
  .explore-field {
    min-height: 46px;
  }
  .explore-field input,
  .explore-field select {
    height: 44px;
  }
  .explore-chips {
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }
  .explore-chips::-webkit-scrollbar {
    display: none;
  }
  .explore-toolbar {
    padding: 14px 16px 4px;
  }
  .explore-bounds-label,
  .explore-layout {
    display: none;
  }
  .explore-results {
    padding: 10px 16px;
  }
  .explore-results.is-grid,
  .explore-results.is-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .explore-results .explore-card-link {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }
  .explore-results .explore-card-image {
    height: 100%;
    min-height: 118px;
  }
  .explore-results .explore-save {
    left: 8px;
    right: auto;
    top: 8px;
    width: 30px;
    height: 30px;
  }
  .explore-card-body {
    padding: 12px 12px 40px;
  }
  .explore-notice {
    margin: 6px 16px 0;
  }
  .explore-footnote {
    padding: 6px 16px 20px;
  }
  .explore-map {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 15;
    visibility: hidden;
    pointer-events: none;
  }
  .show-map .explore-map {
    visibility: visible;
    pointer-events: auto;
  }
  .show-map .explore-list {
    visibility: hidden;
    height: 0;
    overflow: hidden;
  }
  .explore-switch {
    display: inline-flex;
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 40;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 13px 22px;
    box-shadow: 0 8px 24px #06263e55;
  }
  .explore-switch svg {
    width: 18px;
    height: 18px;
  }
  .explore-sheet {
    display: block;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 600;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px #06263e44;
    overflow: hidden;
  }
  .explore-sheet {
    max-height: calc(100% - 110px);
    overflow-y: auto;
  }
  .explore-sheet[hidden] {
    display: none;
  }
  .explore-sheet .explore-pop {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
  }
  .explore-sheet .explore-pop img,
  .explore-sheet .explore-pop-ph {
    height: 100%;
    min-height: 116px;
  }
  .explore-sheet-close {
    position: absolute;
    right: 6px;
    top: 4px;
    z-index: 2;
    border: 0;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 1px 4px #0002;
  }
  .leaflet-top.leaflet-right {
    top: 6px;
  }
}
@media (max-width: 860px) {
  .explore-page {
    --header-h: 75px;
  }
}
@media (max-width: 600px) {
  .explore-page {
    --header-h: 71px;
  }
}
.explore-card-link {
  position: relative;
}
.explore-amenities {
  position: relative;
}
.explore-amenities[hidden] {
  display: none;
}
.explore-amenities summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #dbe3e8;
  border-radius: 7px;
  background: #fff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}
.explore-amenities summary::-webkit-details-marker {
  display: none;
}
.explore-amenities summary::after {
  content: ' \25BE';
}
.explore-amenities[open] summary {
  border-color: var(--teal);
}
.explore-amenity-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 240px;
  max-height: 300px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe3e8;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(6, 38, 62, 0.15);
  padding: 8px;
  display: grid;
  gap: 2px;
}
.explore-amenity-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.explore-amenity-list label:hover {
  background: #f2f7f8;
}
.explore-amenity-list small {
  margin-left: auto;
  color: var(--muted);
}
