.explore-page .topbar {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 22px clamp(20px, 4vw, 42px);
}

.explore-page .brand {
  text-decoration: none;
}

.explore-nav-copy {
  display: grid;
  gap: 2px;
}

.explore-page .brand-sub {
  color: var(--muted);
}

.explore-top-search {
  flex: 1 1 320px;
  max-width: 500px;
}

.explore-shell {
  width: min(1360px, calc(100% - 24px));
  margin: 0 auto 48px;
  display: grid;
  gap: 18px;
}

.explore-hero,
.explore-toolbar,
.explore-map-card,
.explore-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.explore-search-field {
  position: relative;
}

.explore-search-field::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(15, 23, 42, 0.34);
  border-radius: 999px;
  transform: translateY(-60%);
}

.explore-search-field::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 50%;
  width: 7px;
  height: 2px;
  background: rgba(15, 23, 42, 0.34);
  transform: translateY(3px) rotate(45deg);
  border-radius: 999px;
}

.explore-top-search input {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(13, 106, 113, 0.12);
  background: rgba(255, 255, 255, 0.86);
  padding: 0 16px 0 44px;
  font: inherit;
  box-shadow: 0 12px 26px rgba(27, 27, 27, 0.06);
}

.explore-nav-actions {
  gap: 10px;
}

.explore-page .top-actions .btn,
.explore-page .top-actions .tf-client-status-badge {
  min-height: 38px;
}

.explore-page .top-actions .tf-client-status-badge {
  padding: 0.62rem 0.92rem;
  font-size: 0.82rem;
}

.explore-hero {
  border-radius: 28px;
  padding: clamp(20px, 2.8vw, 28px);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: stretch;
  background:
    radial-gradient(circle at top left, rgba(13, 106, 113, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 240, 0.94));
}

.explore-hero-copy {
  display: grid;
  align-content: start;
}

.explore-hero h1 {
  max-width: 14ch;
  margin: 10px 0 8px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.explore-hero p {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.65;
}

.explore-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.explore-hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(13, 106, 113, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.explore-hero-preview {
  display: grid;
  gap: 12px;
  align-content: start;
}

.explore-preview-window {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
}

.explore-preview-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(247, 248, 250, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.explore-preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.explore-preview-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.explore-preview-search {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(13, 106, 113, 0.1);
  background: rgba(247, 248, 250, 0.94);
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.explore-preview-feature {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 106, 113, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(13, 106, 113, 0.12);
}

.explore-preview-feature strong {
  font-size: 19px;
  line-height: 1.08;
}

.explore-preview-feature span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.explore-preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-preview-card {
  min-height: 78px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  align-items: end;
  font-size: 14px;
  font-weight: 700;
}

.explore-hero-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-kpi {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.explore-kpi strong {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
}

.explore-kpi span {
  color: var(--muted);
  font-size: 12px;
}

.explore-toolbar {
  border-radius: 22px;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.explore-toolbar-copy {
  display: grid;
  gap: 4px;
}

.explore-toolbar-copy strong {
  font-size: 16px;
}

.explore-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.explore-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  align-items: start;
}

.explore-list-panel {
  min-width: 0;
}

.explore-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-card {
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  gap: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.explore-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.explore-card.is-selected {
  box-shadow: 0 0 0 2px rgba(13, 106, 113, 0.22), 0 22px 42px rgba(15, 23, 42, 0.14);
}

.explore-card-media {
  position: relative;
  overflow: hidden;
}

.explore-card-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(13, 106, 113, 0.14), rgba(245, 158, 11, 0.12));
}

.explore-card-cover::after,
.explore-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.64));
  pointer-events: none;
}

.explore-card-cover.is-fallback {
  display: grid;
  place-items: center;
}

.explore-card-cover.is-fallback span {
  position: relative;
  z-index: 1;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 34px;
  color: rgba(13, 106, 113, 0.94);
}

.explore-card-media-top,
.explore-card-media-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.explore-card-media-top {
  top: 12px;
}

.explore-card-media-bottom {
  bottom: 12px;
}

.explore-card-badge,
.explore-card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.explore-card-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

.explore-card-count {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
}

.explore-card-brand {
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-width: 0;
}

.explore-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.explore-card-logo.is-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
}

.explore-card-brand strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.02;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.explore-card-brand span {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.4;
}

.explore-card-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.explore-card-head {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.explore-card-head h2 {
  display: none;
}

.explore-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.explore-card-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.explore-service-list {
  display: grid;
  gap: 8px;
}

.explore-service-item {
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 11px 12px;
  border-radius: 15px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(247, 248, 250, 0.94);
}

.explore-service-item.is-link {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.explore-service-item.is-link:hover,
.explore-service-item.is-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(13, 106, 113, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.explore-service-item strong,
.explore-service-item span,
.explore-service-item small {
  display: block;
}

.explore-service-item strong {
  font-size: 14px;
  line-height: 1.3;
}

.explore-service-item small {
  color: var(--muted);
  font-size: 12px;
}

.explore-service-aside {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 6px;
}

.explore-service-price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.explore-service-cta {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explore-service-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.explore-service-list-footer .muted,
.explore-card-footer .muted {
  margin: 0;
}

.explore-inline-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.explore-inline-link:hover,
.explore-inline-link:focus-visible {
  text-decoration: underline;
}

.explore-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.explore-card-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.explore-map-panel {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 110px;
}

.explore-map-card {
  border-radius: 24px;
  padding: 14px;
  height: min(68vh, 540px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 241, 0.94));
}

.explore-map-head strong {
  font-size: 18px;
}

.explore-map-head p {
  margin: 6px 0 0;
  max-width: 30ch;
  line-height: 1.5;
}

.explore-map-wrap {
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(246, 248, 250, 0.9);
}

.explore-map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.explore-map-empty {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  z-index: 500;
}

.explore-page.is-map-hidden .explore-layout {
  grid-template-columns: 1fr;
}

.explore-page.is-map-hidden .explore-map-panel {
  display: none;
}

.explore-page.is-map-hidden .explore-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explore-marker {
  width: 42px;
  height: 42px;
  border-radius: 999px 999px 999px 8px;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #0d7a74, #114454);
  box-shadow: 0 10px 22px rgba(17, 68, 84, 0.25);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.explore-marker span {
  transform: rotate(45deg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.explore-popup {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.explore-popup strong {
  font-size: 16px;
}

.explore-popup span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.explore-empty {
  border-radius: 24px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.82);
  padding: 28px;
  display: grid;
  gap: 10px;
}

.explore-empty strong {
  font-size: 20px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

@media (max-width: 1180px) {
  .explore-layout {
    grid-template-columns: 1fr;
  }

  .explore-map-panel {
    display: none;
  }

  .explore-cards,
  .explore-page.is-map-hidden .explore-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #exploreMapToggle {
    display: none;
  }
}

@media (max-width: 960px) {
  .explore-page .topbar {
    align-items: flex-start;
  }

  .explore-top-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .explore-nav-actions {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .explore-shell {
    width: min(100% - 16px, 1360px);
    gap: 14px;
  }

  .explore-hero,
  .explore-toolbar,
  .explore-card-body,
  .explore-empty {
    padding: 16px;
  }

  .explore-hero-preview {
    display: none;
  }

  .explore-hero-points,
  .explore-hero-metrics {
    grid-template-columns: 1fr;
  }

  .explore-cards,
  .explore-page.is-map-hidden .explore-cards {
    grid-template-columns: 1fr;
  }

  .explore-card-media-top,
  .explore-card-media-bottom {
    left: 10px;
    right: 10px;
  }

  .explore-card-brand strong {
    font-size: 18px;
  }

  .explore-card-head,
  .explore-card-footer,
  .explore-service-item {
    grid-template-columns: 1fr;
  }

  .explore-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .explore-service-aside {
    justify-items: start;
  }
}
