/* Task33 public details: presentation data, existing KidsMap tokens. */
.public-entity{max-width:1200px;margin:32px auto 64px;padding:0 24px;color:var(--ink,#142e23);overflow-wrap:anywhere}
.public-heading{margin-bottom:28px}
.public-heading h1{font-size:clamp(1.9rem,3.8vw,2.7rem);font-weight:800;line-height:1.15;margin:8px 0 16px;letter-spacing:-.025em;color:var(--ink,#142e23)}
.public-back-nav{margin-bottom:14px}
.public-back-link{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;background:#eef6f1;border:1px solid #d0e4d7;color:#0d6e38;font-size:13px;font-weight:700;text-decoration:none;transition:background .15s ease,transform .15s ease}
.public-back-link:hover{background:#dbeef2;transform:translateX(-2px);color:#08572b}
.public-back-link .material-symbols-rounded{font-size:16px}
.public-eyebrow{display:inline-flex;align-items:center;gap:6px;color:#0d6e38;font-weight:700;font-size:.875rem;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.public-eyebrow .material-symbols-rounded{font-size:16px}

.public-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:36px;align-items:start}
.public-layout>*{min-width:0}.public-main,.public-aside{min-width:0}
.public-section{margin:0 0 32px;padding-top:28px;border-top:1px solid #dce8e0}
.public-section:first-child{border-top:0;padding-top:0}
.public-section h2{font-size:1.45rem;font-weight:800;line-height:1.3;margin:0 0 18px;color:#142e23}
.public-section h3{font-size:1.15rem;font-weight:750;line-height:1.4;margin:0 0 12px}
.public-section p{line-height:1.65}

.public-aside{padding:26px;background:#ffffff;border:1px solid #dce8e0;border-radius:18px;box-shadow:0 4px 20px rgba(18,48,33,.04);position:sticky;top:24px}
.public-aside .public-section{margin:0 0 24px;padding-top:20px;border-top:1px solid #e5eee8}
.public-aside .public-section:first-child{padding-top:0;border-top:0}
.public-aside .public-section:last-child{margin-bottom:0}
.public-aside-heading{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:800;color:#142e23;margin:0 0 16px}
.public-aside-heading .material-symbols-rounded{font-size:22px;color:#0d6e38}

.public-placeholder{min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:24px;border-radius:16px;background:linear-gradient(135deg,#edf6f0,#dff0e6);color:#1b5735;text-align:center;border:1px solid #d0e5d7}
.public-hero-placeholder{min-height:200px;border-radius:20px}
.public-placeholder-inner{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:440px}
.public-placeholder-inner strong{font-size:19px;font-weight:800;color:#142e23}
.public-placeholder-inner span{font-size:13.5px;color:#4c6a5b}
.public-placeholder .material-symbols-rounded{font-size:48px}
.public-hero-image{width:100%;max-height:420px;object-fit:cover;border-radius:18px;box-shadow:0 4px 16px rgba(18,48,33,.05)}
.public-description{margin:24px 0 32px}
.public-prose{line-height:1.75;overflow-wrap:anywhere;color:#2c4538;font-size:15px}
.public-prose p{margin:0 0 14px}
.public-muted{color:#587063;font-size:.925rem;line-height:1.6}
.public-notice{border-left:3px solid #0f8344;background:#edf7f1;padding:14px 18px;font-size:.925rem;line-height:1.6;border-radius:8px;color:#1b4a32}

.public-entity-list,.public-price-list{list-style:none;margin:0;padding:0}
.public-entity-list>li{padding:18px 0;border-bottom:1px solid #e2ebe5}
.public-entity-list>li:first-child{padding-top:0}
.public-entity-list>li:last-child{border-bottom:0}
.public-entity a,.public-offerings a{color:#0d6e38;text-underline-offset:3px}
.public-parent-link{display:inline-block;padding:10px 0;font-weight:700}
.km-typed-review-link,a.public-parent-link.km-typed-review-link{display:inline-flex!important;align-items:center;gap:6px;padding:5px 13px!important;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:9999px;color:#15803d!important;font-size:13px;font-weight:600;line-height:1.3;text-decoration:none!important;white-space:nowrap;box-shadow:0 1px 2px rgba(22,101,52,.05);transition:all .2s cubic-bezier(.16,1,.3,1)}
.km-typed-review-link:hover,a.public-parent-link.km-typed-review-link:hover{background:#dcfce7;border-color:#86efac;color:#14532d!important;transform:translateY(-1px);box-shadow:0 3px 8px rgba(22,101,52,.12);text-decoration:none!important}
.km-typed-review-link__icon{flex-shrink:0;color:#16a34a}
.km-typed-review-link__arrow{font-size:13px;color:#16a34a;transition:transform .2s ease}
.km-typed-review-link:hover .km-typed-review-link__arrow{transform:translateX(2px)}
.public-price{font-weight:800;color:#0b6f39}

.public-offering{padding:20px 0;border-bottom:1px solid #e2ebe5}
.public-offering:first-child{padding-top:0}
.public-offering:last-child{border-bottom:0}
.public-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0}
.public-facts dt{font-size:.85rem;color:#627b6f;margin-bottom:5px}
.public-facts dd{margin:0;font-weight:600;line-height:1.55}
.public-price-list li{padding:12px 0}
.public-price-list li>span{display:block;margin-bottom:4px}
.public-price-list li p{margin:6px 0;color:#627b6f}
.public-reviews blockquote{margin:12px 0 0;line-height:1.65;font-style:italic;color:#3b5648}

.public-actions{display:flex;flex-direction:column;gap:10px}
.public-entity .public-contact{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 18px;border:0;border-radius:12px;background:linear-gradient(135deg,#0e8645,#086b35);color:#ffffff;font:inherit;font-weight:700;font-size:14px;line-height:1.4;text-align:center;text-decoration:none;cursor:pointer;max-width:100%;box-shadow:0 3px 10px rgba(14,134,69,.22);transition:transform .15s ease,box-shadow .15s ease}
.public-entity .public-contact:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(14,134,69,.28);color:#fff}
.public-entity .public-contact--website{background:linear-gradient(135deg,#0e8645,#086b35);color:#fff}
.public-entity .public-contact--whatsapp{background:#25d366;color:#ffffff;box-shadow:0 3px 10px rgba(37,211,102,.25)}
.public-entity .public-contact--whatsapp:hover{background:#20bd5a;color:#fff}
.public-entity .public-contact--secondary{background:#ffffff;border:1px solid #cce1d4;color:#0d6e38;box-shadow:none}
.public-entity .public-contact--secondary:hover{background:#f3f8f5;color:#08572b}
.public-source-badge{font-size:12px;color:#627b6f;margin-top:12px;background:#f2f7f4;padding:6px 10px;border-radius:8px;display:inline-block}

.public-entity a:focus-visible,.public-entity button:focus-visible,.public-offerings a:focus-visible{outline:3px solid #0f8344;outline-offset:4px}
.public-place-offers{overflow-wrap:anywhere}
.public-place-offers h3{margin:20px 0 10px}
.public-place-offers .public-offering h3{font-size:1rem}
.public-place-org:not(.detail-org-badge){display:block;margin:10px 0;color:#0d6e38}

.public-category-icon{flex:none;width:48px;height:48px;max-width:100%}

/* --- Branch Grid on Detail Page --- */
.public-section-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.public-count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 9px;border-radius:999px;background:#e4f2e9;color:#0d6e38;font-size:13.5px;font-weight:750;white-space:nowrap;flex-shrink:0}

.public-branch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;list-style:none;margin:0;padding:0}
.public-branch-grid>li{min-width:0}
.public-branch-card{display:flex;flex-direction:column;height:100%;border:1px solid #dce8e0;border-radius:18px;overflow:hidden;background:#ffffff;box-shadow:0 3px 14px rgba(18,48,33,.04);transition:transform .22s cubic-bezier(0.2,0,0,1),box-shadow .22s ease,border-color .22s ease}
.public-branch-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(18,48,33,.09);border-color:#b7dac4}

.public-branch-media{display:block;position:relative;height:185px;overflow:hidden;background:#eef5f0}
.public-branch-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.public-branch-card:hover .public-branch-media img{transform:scale(1.04)}
.public-branch-media .public-placeholder{height:100%;min-height:185px;border-radius:0;border:0}
.public-branch-age{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:999px;background:rgba(14,38,27,.82);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#ffffff;font-size:11.5px;font-weight:700;z-index:2}
.public-branch-age .material-symbols-rounded{font-size:14px;color:#8ee9ad}

.public-branch-copy{padding:20px 22px;display:flex;flex-direction:column;flex:1}
.public-branch-copy h3{font-size:18px;font-weight:800;line-height:1.3;margin:0 0 10px}
.public-branch-copy h3 a{color:#142e23;text-decoration:none;transition:color .15s ease}
.public-branch-card:hover h3 a{color:#0b6f39}

.public-branch-price-wrap{margin-bottom:8px}
.public-branch-price-wrap .public-price{display:inline-block;font-size:13.5px;font-weight:800;color:#0b6f39;background:#edf7f1;padding:3px 9px;border-radius:6px}

.public-branch-address{display:flex;align-items:flex-start;gap:4px;font-size:13px;color:#50675b;line-height:1.45;margin:0 0 10px}
.public-branch-address .material-symbols-rounded{font-size:16px;color:#0d6e38;flex-shrink:0;margin-top:2px}

.public-branch-desc{font-size:13px;line-height:1.55;color:#627b6f;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

.public-branch-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.public-activity-chip{display:inline-flex;align-items:center;padding:4px 9px;border-radius:6px;background:#f3f7f4;border:1px solid #dce7e0;color:#234b37;font-size:11.5px;font-weight:600;text-decoration:none;transition:background .15s ease,border-color .15s ease}
.public-activity-chip:hover{background:#e4f2ea;border-color:#badcc7;color:#086131}

.public-branch-cta{margin-top:auto;display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-radius:10px;background:#f4faf6;border:1px solid #dceae1;color:#0d6e38;text-decoration:none;font-size:13px;font-weight:700;transition:background .15s ease,border-color .15s ease}
.public-branch-cta .material-symbols-rounded{font-size:16px;transition:transform .15s ease}
.public-branch-card:hover .public-branch-cta{background:#e8f5ec;border-color:#bce1ca}
.public-branch-card:hover .public-branch-cta .material-symbols-rounded{transform:translateX(3px)}

.public-branch-empty{grid-column:1/-1}
.public-price-list .public-price-flag{color:#0b6f39;font-weight:650}
.detail-photo-placeholder.public-placeholder{color:#0b6f39;background:#edf7f1}

@media(max-width:960px){
  .public-layout{grid-template-columns:minmax(0,1fr);gap:24px}
  .public-aside{position:static}
}
@media(max-width:767px){
  .public-entity{padding:0 16px;margin-top:20px}
  .public-branch-grid{grid-template-columns:minmax(0,1fr)}
  .public-aside{padding:20px}
  .public-facts{grid-template-columns:minmax(0,1fr);gap:14px}
  .public-section{padding-top:20px;margin-bottom:24px}
  .public-placeholder{min-height:150px}
}

/* ==========================================================================
   Full-width Organization Layout & Compact Branch Selector
   ========================================================================== */
.public-entity--organization {
  max-width: 1240px;
}

.public-heading--org .public-heading-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.public-heading--org .public-heading-title-row h1 {
  margin: 0;
}

.public-badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e6f4ec;
  border: 1px solid #bfe3cc;
  color: #0b6f39;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1;
}

.public-badge-highlight .material-symbols-rounded {
  font-size: 17px;
}

/* --- Hero Card (Compact Organization Header) --- */
.public-org-hero-card {
  background: #ffffff;
  border: 1px solid #dce8e0;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(18, 48, 33, 0.04);
  margin-bottom: 24px;
}

.public-org-header-main {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* Media (Logo / Branch Photo / Icon) */
.public-org-media-wrapper {
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf6f0, #dff0e6);
  border: 1.5px solid #d0e5d7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(18, 48, 33, 0.06);
}

.public-org-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-org-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b6f39;
}

.public-org-media-placeholder .material-symbols-rounded {
  font-size: 54px;
}

/* Content Column */
.public-org-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.public-org-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.public-org-meta-row .public-eyebrow {
  margin-bottom: 0;
}

.public-org-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 850;
  line-height: 1.2;
  margin: 4px 0 10px;
  letter-spacing: -0.025em;
  color: #142e23;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.public-notice--inline {
  margin: 4px 0 10px;
  padding: 8px 14px;
  font-size: 13px;
}

/* Directions Chips */
.public-org-directions-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 14px;
}

.public-org-directions-label {
  font-size: 12px;
  font-weight: 700;
  color: #557063;
  margin-right: 2px;
}

.public-org-direction-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0f7f3;
  color: #0d6e38;
  border: 1px solid #d0e4d7;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

/* Actions Bar */
.public-org-actions-bar {
  margin: 4px 0 12px;
}

.public-actions--row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.public-actions--row .public-contact {
  flex: 0 1 auto;
  min-height: 42px;
  padding: 9px 18px;
  font-size: 13.5px;
}

.public-contact--cta {
  background: linear-gradient(135deg, #0b7d3f, #085e2e) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(11, 125, 63, 0.28) !important;
}

.public-contact--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 125, 63, 0.35) !important;
}

.public-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
}

/* Collapsible Description */
.public-prose-expandable {
  position: relative;
  margin-top: 4px;
}

.public-prose.public-description {
  margin: 0;
  color: #384e42;
  font-size: 14.5px;
  line-height: 1.6;
}

.public-prose.is-clamped {
  max-height: 96px;
  overflow: hidden;
  position: relative;
}

.public-prose.is-clamped:not(.is-expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 95%);
  pointer-events: none;
}

.public-prose.is-clamped.is-expanded {
  max-height: none;
}

.public-prose-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  background: #f0f7f3;
  border: 1px solid #cde5d6;
  border-radius: 8px;
  padding: 5px 12px;
  color: #0b6f39;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  outline: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.public-prose-toggle:hover {
  background: #e2f2e7;
  border-color: #badcc6;
  color: #064c25;
}

.public-prose-toggle .material-symbols-rounded {
  font-size: 18px;
  transition: transform .2s ease;
}

.public-prose-toggle[aria-expanded="true"] .material-symbols-rounded {
  transform: rotate(180deg);
}

/* --- Sticky Section Navigation --- */
.public-entity-nav {
  position: sticky;
  top: 70px;
  z-index: 30;
  margin: 0 0 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #dce8e0;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 4px 18px rgba(18, 48, 33, 0.06);
}

.public-section,
.public-org-hero-card {
  scroll-margin-top: 130px;
}

.public-entity-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.public-entity-nav__list::-webkit-scrollbar {
  display: none;
}

.public-entity-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  color: #425b4f;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color .22s cubic-bezier(0.16, 1, 0.3, 1),
              color .18s ease,
              box-shadow .22s ease,
              transform .15s ease;
}

.public-entity-nav__link .material-symbols-rounded {
  font-size: 17px;
}

.public-entity-nav__link:hover {
  color: #0b6f39;
  background: #edf7f1;
}

.public-entity-nav__link.is-active {
  color: #ffffff;
  background: #0b6f39;
  box-shadow: 0 2px 8px rgba(11, 111, 57, 0.25);
  transform: translateY(-1px);
}

.public-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #e4f0e8;
  color: #0b6f39;
}

.public-entity-nav__link.is-active .public-nav-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* --- Section Header & Title --- */
.public-section--full {
  margin: 0 0 36px;
  padding-top: 24px;
  border-top: 1px solid #dce8e0;
  scroll-margin-top: 135px;
}

.public-branch-filters [hidden],
.public-filter-reset[hidden],
.public-filter-empty[hidden] {
  display: none !important;
}

.public-section-header {
  margin-bottom: 20px;
}

.public-section-title-wrap .public-section-title {
  margin: 0;
}

.public-section-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #557063;
  line-height: 1.5;
}

/* --- Branch Filters Toolbar --- */
.public-branch-filters {
  background: #f7faf8;
  border: 1px solid #dce8e0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.public-branch-filters__grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) 1fr;
  gap: 14px;
  align-items: end;
}

.public-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.public-filter-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 750;
  color: #425b4f;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.public-filter-label .material-symbols-rounded {
  font-size: 15px;
  color: #0b6f39;
}

.km-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* ─── Premium Custom Select Component ─── */
.km-custom-select {
  position: relative;
  width: 100%;
}

.km-custom-select__trigger {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1.5px solid #d0e0d6;
  background: #ffffff;
  padding: 0 14px 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #142e23;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1.5px 4px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.km-custom-select__trigger:hover {
  border-color: #08a769;
  background: #fbfdfc;
  box-shadow: 0 3px 10px rgba(8, 167, 105, 0.1);
}

.km-custom-select.is-open .km-custom-select__trigger,
.km-custom-select__trigger:focus-visible {
  border-color: #08a769;
  box-shadow: 0 0 0 3.5px rgba(8, 167, 105, 0.16), 0 2px 6px rgba(8, 167, 105, 0.08);
  background: #ffffff;
}

.km-custom-select__value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #142e23;
}

.km-custom-select__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.km-custom-select__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.km-custom-select.is-open .km-custom-select__arrow {
  transform: rotate(180deg);
  color: #08a769;
}

/* Floating Dropdown Menu Card */
.km-custom-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 220px;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(8, 167, 105, 0.2);
  border-radius: 14px;
  padding: 6px;
  box-shadow:
    0 12px 32px -4px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  pointer-events: none;
}

/* Smooth custom scrollbar for menu */
.km-custom-select__menu::-webkit-scrollbar {
  width: 6px;
}
.km-custom-select__menu::-webkit-scrollbar-track {
  background: transparent;
}
.km-custom-select__menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.km-custom-select__menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.km-custom-select.is-open .km-custom-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown Option Items */
.km-custom-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 550;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.km-custom-select__option:hover,
.km-custom-select__option.is-highlighted {
  background: #edf7f1;
  color: #067245;
  transform: translateX(3px);
}

.km-custom-select__option.is-selected {
  background: #e1f4e9;
  color: #086b3b;
  font-weight: 700;
}

.km-custom-select__option.is-selected::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #08a769;
  box-shadow: 0 0 6px rgba(8, 167, 105, 0.6);
  flex-shrink: 0;
}

.km-custom-select__opt-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.km-custom-select__opt-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.km-custom-select__option:hover .km-custom-select__opt-count,
.km-custom-select__option.is-selected .km-custom-select__opt-count {
  background: #c2ebd4;
  color: #086b3b;
}

.public-filter-input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1.5px solid #d0e0d6;
  background: #ffffff;
  padding: 0 14px;
  font-size: 13.5px;
  color: #142e23;
  font-family: inherit;
  outline: none;
  box-shadow: 0 1.5px 4px rgba(15, 23, 42, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.public-filter-input:focus {
  border-color: #08a769;
  box-shadow: 0 0 0 3.5px rgba(8, 167, 105, 0.16);
}

.public-branch-filters__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5eee8;
  font-size: 13px;
  color: #50675b;
}

.public-filter-counter strong {
  color: #0b6f39;
  font-weight: 800;
}

.public-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: #fdeee9;
  color: #b72c1c;
  font-size: 12.5px;
  font-weight: 750;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.public-filter-reset:hover {
  background: #fadad3;
  color: #9c2112;
}

.public-filter-reset .material-symbols-rounded {
  font-size: 16px;
}

/* Empty Filter State */
.public-filter-empty {
  padding: 36px 20px;
  text-align: center;
}

.public-filter-empty__card {
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px dashed #ceddd4;
  border-radius: 18px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.public-filter-empty__icon {
  font-size: 42px;
  color: #728c7f;
}

.public-filter-empty__card h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: #142e23;
}

.public-filter-empty__card p {
  margin: 0;
  font-size: 13.5px;
  color: #587063;
  line-height: 1.5;
}

.public-btn-reset-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: #eef7f2;
  border: 1px solid #c2decb;
  color: #0b6f39;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease;
}

.public-btn-reset-inline:hover {
  background: #e1f2e7;
}

.public-btn-reset-inline .material-symbols-rounded {
  font-size: 16px;
}

/* --- Branch Grid (Compact Cards) --- */
.public-branch-grid--full {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-branch-grid--full > li {
  min-width: 0;
}

.public-branch-media-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.public-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  line-height: 1.2;
}

.public-branch-pill .material-symbols-rounded {
  font-size: 13px;
}

.public-branch-pill--district {
  background: rgba(11, 111, 57, 0.88);
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-branch-pill--age {
  margin-left: auto;
  background: rgba(14, 38, 27, 0.82);
}

.public-branch-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.public-branch-cat {
  font-size: 11.5px;
  font-weight: 750;
  color: #0b6f39;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.public-branch-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
}

.public-branch-name a {
  color: #142e23;
  text-decoration: none;
  transition: color .15s ease;
}

.public-branch-card:hover .public-branch-name a {
  color: #0b6f39;
}

.public-activity-chip-more {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: #edf3f0;
  color: #557063;
  font-size: 11px;
  font-weight: 700;
}

/* --- Responsive Layouts --- */
@media (max-width: 1080px) {
  .public-branch-grid--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .public-branch-filters__grid {
    grid-template-columns: 1fr 1fr;
  }
  .public-filter-field--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .public-org-hero-card {
    padding: 20px 22px;
    margin-bottom: 20px;
  }
  .public-org-header-main {
    gap: 18px;
  }
  .public-org-media-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 16px;
  }
  .public-org-media-placeholder .material-symbols-rounded {
    font-size: 42px;
  }
  .public-org-banner {
    min-height: 160px;
  }
  .public-heading--org .public-heading-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .public-org-hero-card {
    padding: 16px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
  }
  .public-org-header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .public-org-media-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }
  .public-org-media-placeholder .material-symbols-rounded {
    font-size: 32px;
  }
  .public-org-title {
    font-size: 1.5rem;
    margin: 4px 0 8px;
  }
  .public-org-directions-chips {
    margin-bottom: 12px;
  }
  .public-org-actions-bar {
    width: 100%;
    margin: 4px 0 10px;
  }
  .public-branch-grid--full {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .public-branch-filters {
    padding: 14px 16px;
  }
  .public-branch-filters__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .public-actions--row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .public-actions--row .public-contact {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .public-entity-nav {
    margin-bottom: 20px;
    padding: 4px;
  }
  .public-entity-nav__link {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* --- Section Header Subtitles --- */
.public-section-subtitle {
  font-size: 14px;
  color: #557063;
  margin: 4px 0 0;
  line-height: 1.5;
  font-weight: 500;
}

/* --- Block 1: Network Programs (Программы сети) --- */
.public-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.public-program-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #ffffff;
  border: 1.5px solid #dce8e0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(18, 48, 33, 0.04);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .2s ease,
              border-color .2s ease;
  position: relative;
}

.public-program-card:hover {
  transform: translateY(-3px);
  border-color: #08a769;
  box-shadow: 0 10px 24px rgba(8, 167, 105, 0.1);
}

.public-program-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.public-program-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #e8f7ee, #d2f0df);
  border: 1.5px solid #bfe7cf;
  color: #0b6f39;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.public-program-icon-badge .material-symbols-rounded {
  font-size: 24px;
}

.public-program-index-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  background: #f1f7f3;
  border: 1px solid #d4e8dc;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  color: #1a4d33;
  letter-spacing: .02em;
}

.public-program-title {
  font-size: 18px;
  font-weight: 800;
  color: #142e23;
  line-height: 1.35;
  margin: 0 0 10px;
}

.public-program-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a6356;
  margin: 0 0 16px;
  flex-grow: 1;
}

.public-program-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf4f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-program-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: #0b7d3f;
}

.public-program-tag .material-symbols-rounded {
  font-size: 16px;
}

/* --- Block 2: Network Specialists (Специалисты сети) --- */
.public-org-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.public-org-specialist-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
  border: 1.5px solid #dce8e0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(18, 48, 33, 0.04);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .2s ease,
              border-color .2s ease;
}

.public-org-specialist-card:hover {
  transform: translateY(-3px);
  border-color: #08a769;
  box-shadow: 0 10px 24px rgba(8, 167, 105, 0.1);
}

.public-org-specialist-media {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf6ef, #d4ede1);
  border: 2px solid #c8e6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.public-org-specialist-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-org-specialist-placeholder {
  color: #0b6f39;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.public-org-specialist-placeholder .material-symbols-rounded {
  font-size: 36px;
}

.public-org-specialist-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.public-org-specialist-role {
  font-size: 11px;
  font-weight: 800;
  color: #087943;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #edf7f1;
  border: 1px solid #cbe9d8;
  border-radius: 6px;
  padding: 2.5px 8px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 6px;
}

.public-org-specialist-name {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #142e23;
}

.public-org-specialist-name a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.public-org-specialist-name a:hover {
  color: #0b6f39;
}

.public-org-specialist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.public-org-specialist-chip {
  padding: 2.5px 9px;
  background: #f1f8f4;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  color: #1c5236;
  border: 1px solid #d5ebd9;
}

.public-org-specialist-branches {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  color: #4a6356;
  margin: 0 0 12px;
  line-height: 1.4;
}

.public-org-specialist-branches .material-symbols-rounded {
  font-size: 16px;
  color: #0b7d3f;
  flex-shrink: 0;
  margin-top: 1px;
}

.public-org-specialist-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 750;
  color: #086b3b;
  text-decoration: none;
  background: #f0f8f4;
  border: 1px solid #d0e7da;
  border-radius: 10px;
  padding: 6px 14px;
  width: fit-content;
  margin-top: auto;
  transition: all .15s ease;
}

.public-org-specialist-link:hover {
  background: #0b6f39;
  color: #ffffff;
  border-color: #0b6f39;
  transform: translateX(2px);
}

.public-org-specialist-link .material-symbols-rounded {
  font-size: 16px;
}

/* Events Grid */
.public-org-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.public-org-event-card {
  padding: 22px;
  background: #ffffff;
  border: 1.5px solid #dce8e0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(18, 48, 33, 0.04);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .2s ease,
              border-color .2s ease;
}

.public-org-event-card:hover {
  transform: translateY(-2px);
  border-color: #badcc7;
  box-shadow: 0 6px 18px rgba(18, 48, 33, 0.08);
}

.public-org-event-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.public-org-event-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: #0b7d3f;
  margin-bottom: 6px;
}

.public-org-event-meta .material-symbols-rounded {
  font-size: 15px;
}

.public-org-event-title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #142e23;
}

.public-org-event-title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.public-org-event-title a:hover {
  color: #0b6f39;
}

.public-org-event-venue {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #557063;
  margin: 0 0 12px;
}

.public-org-event-venue .material-symbols-rounded {
  font-size: 16px;
}

.public-org-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf4f0;
}

.public-org-event-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #142e23;
  background: #edf7f1;
  padding: 3px 8px;
  border-radius: 6px;
}

.public-org-event-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 750;
  color: #0b6f39;
  text-decoration: none;
  transition: transform .15s ease, color .15s ease;
}

.public-org-event-cta:hover {
  color: #064c25;
  transform: translateX(2px);
}

.public-org-event-cta .material-symbols-rounded {
  font-size: 16px;
}

/* --- Block 3: Reviews (Отзывы о местах и занятиях) --- */
.public-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.public-review-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #ffffff;
  border: 1.5px solid #dce8e0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(18, 48, 33, 0.04);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .2s ease,
              border-color .2s ease;
}

.public-review-card:hover {
  transform: translateY(-2px);
  border-color: #badcc7;
  box-shadow: 0 8px 22px rgba(18, 48, 33, 0.08);
}

.public-review-card.is-review-hidden {
  display: none;
}

.public-reviews-grid.is-expanded .public-review-card.is-review-hidden {
  display: flex;
  animation: publicFadeIn .25s ease forwards;
}

@keyframes publicFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.public-review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf4f0;
}

.public-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.public-review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5ed, #d2f0df);
  border: 1.5px solid #c2e6d2;
  color: #0b6f39;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.public-review-avatar .material-symbols-rounded {
  font-size: 24px;
}

.public-review-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.public-review-author-name {
  font-size: 13.5px;
  font-weight: 750;
  color: #142e23;
  line-height: 1.25;
}

.public-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #0b7d3f;
  margin-top: 1px;
}

.public-review-verified .material-symbols-rounded {
  font-size: 13px;
  color: #08a769;
}

.public-review-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.public-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
}

.rating-star.is-filled {
  color: #f59e0b;
}

.rating-star.is-empty {
  color: #e2e8f0;
}

.public-review-score {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
  line-height: 1;
}

.public-review-score-max {
  font-size: 10px;
  font-weight: 600;
  color: #b45309;
  opacity: 0.8;
}

.public-review-body {
  flex-grow: 1;
  margin-bottom: 14px;
}

.public-review-quote {
  margin: 0;
  padding: 0;
}

.public-review-quote p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #2c4538;
  font-style: normal;
}

.public-review-card__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #edf4f0;
}

.public-review-target-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #f3f8f5;
  border: 1px solid #d5ebd9;
  border-radius: 10px;
  color: #0b6f39;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  transition: all .15s ease;
  min-width: 0;
}

.public-review-target-chip:hover {
  background: #e1f4e9;
  border-color: #08a769;
  color: #064c25;
  transform: translateX(2px);
}

.public-review-target-chip .material-symbols-rounded {
  font-size: 16px;
  flex-shrink: 0;
}

.public-review-target-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-review-target-arrow {
  font-size: 15px;
  opacity: 0.7;
  transition: transform .15s ease;
}

.public-review-target-chip:hover .public-review-target-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.public-reviews-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.public-reviews-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid #bfe0cc;
  background: #ffffff;
  color: #0b6f39;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 48, 33, 0.05);
  transition: all .15s ease;
}

.public-reviews-toggle-btn:hover {
  background: #edf7f1;
  border-color: #08a769;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(18, 48, 33, 0.09);
}

.public-reviews-toggle-icon {
  font-size: 20px;
  transition: transform .2s ease;
}

.public-reviews-toggle-btn.is-expanded .public-reviews-toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .public-programs-grid,
  .public-org-team-grid,
  .public-org-events-grid,
  .public-reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}



