/* =========================================================
   list.css — Hospital list (CPT: list / taxonomy: listtag)
   Notebook-style: aligned columns, ruled lines, no frames
   ========================================================= */

/* ---------- Intro / search ---------- */
.listpage .list-intro {
  margin: 0 0 1em;
  max-width: 42em;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: #4a5560;
}

.listpage #content > .inner > hr {
  margin: 1.75em 0 1.25em;
  border: 0;
  border-top: 1px solid #d5dae2;
}

/* ---------- Notebook list ---------- */

.listpage .list-pref {
  min-width: 0;
  color: #222;
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Legacy helpers kept for single / other templates */

@media screen and (max-width: 980px) {
  

  .listpage .list-pref {
    padding-top: 0.12em;
    font-size: 0.84em;
  }

  

  

  

  

  

  

  
}

@media screen and (max-width: 736px) {
  .listpage .list-intro {
    font-size: 0.86em;
    line-height: 1.65;
  }

  

  .listpage .list-pref {
    font-size: 0.78em;
  }

  

  

  

  
}

/* =========================================================
   Hospital list 2026 — search panel, region chips, card grid
   ========================================================= */
.listpage {
  --list-accent: #38a8da;
  --list-accent-ink: #1f8fb0;
  --list-line: rgba(56, 168, 218, 0.18);
  --list-line-strong: rgba(56, 168, 218, 0.36);
  --list-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.listpage [hidden] {
  display: none !important;
}

.listpage .list-head {
  margin: 0 0 1.5rem;
}

.listpage .list-eyebrow {
  margin: 0 0 0.35rem;
  color: #6b7280;
  font-size: var(--fs-label, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.listpage .list-head h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  line-height: 1.3;
}

.listpage .list-head .list-intro {
  margin: 0;
}

/* Search panel */
.listpage .list-panel {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--list-line);
  background: linear-gradient(135deg, rgba(81, 197, 232, 0.08), rgba(56, 168, 218, 0.02));
}

.listpage .list-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}

.listpage .list-search__field {
  position: relative;
  min-width: 0;
}

.listpage .list-search__icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: #7b8794;
  pointer-events: none;
}

.listpage .list-search input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 3rem;
  margin: 0;
  padding: 0 2.6rem 0 2.75rem;
  border: 1px solid #cfd4dc;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 1rem;
  box-sizing: border-box;
  box-shadow: none;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listpage .list-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.listpage .list-search input[type="search"]:focus {
  border-color: #51c5e8;
  box-shadow: inset 0 0 0 1px #51c5e8;
}

.listpage .list-search__clear {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b8794;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}

.listpage .list-search__clear:hover,
.listpage .list-search__clear:focus-visible {
  background: rgba(17, 17, 20, 0.08);
  color: #111;
}

.listpage .list-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  height: 3rem;
  margin: 0;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 0;
  background: #8c3bc5;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.listpage .list-search__submit:hover,
.listpage .list-search__submit:focus-visible {
  background: #7a2fb0;
}

/* Filters */
.listpage .list-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.listpage .list-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}

.listpage a.list-area {
  display: inline-flex;
  align-items: center;
  height: 2.1rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(56, 168, 218, 0.28);
  background: #fff;
  color: #2c3a45;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--list-ease), border-color 0.25s var(--list-ease), color 0.25s var(--list-ease);
}

.listpage a.list-area:hover,
.listpage a.list-area:focus-visible {
  border-color: var(--list-line-strong);
  color: var(--list-accent-ink);
  background: #f4fbfe;
}

.listpage a.list-area.is-active {
  border-color: var(--list-accent);
  background: var(--list-accent);
  color: #fff;
}

.listpage .list-pref-select {
  flex: 0 1 15rem;
  min-width: 11rem;
}

.listpage .list-pref-select select {
  width: 100%;
  height: 2.1rem;
  margin: 0;
  padding: 0 2rem 0 0.75rem;
  border: 1px solid rgba(56, 168, 218, 0.28);
  border-radius: 0;
  background-color: #fff;
  color: #2c3a45;
  font-size: 0.85rem;
}

/* Status */
.listpage .list-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 0.5rem;
  padding: 0 0.1rem;
}

.listpage .list-count {
  margin: 0;
  color: #3a414a;
  font-size: var(--fs-ui, 0.9rem);
}

.listpage .list-count strong {
  margin: 0 0.1em;
  color: #111;
  font-size: 1.2em;
  font-variant-numeric: tabular-nums;
}

.listpage .list-count__of {
  margin-left: 0.4em;
  color: #7b8794;
  font-size: 0.9em;
}

.listpage .list-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listpage .list-chips li {
  margin: 0;
  padding: 0;
}

.listpage a.list-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 1.9rem;
  padding: 0 0.7rem;
  border: 1px solid var(--list-line-strong);
  background: rgba(81, 197, 232, 0.1);
  color: var(--list-accent-ink);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.listpage a.list-chip:hover {
  background: rgba(81, 197, 232, 0.2);
}

.listpage a.list-reset {
  color: #5a6470;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.listpage a.list-reset:hover {
  color: #111;
}

/* Results */
.listpage .list-results {
  margin: 1.25rem 0 0;
}

.listpage .list-group {
  margin: 0 0 1.75rem;
}

.listpage .list-group__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
  padding: 0 0 0.45rem;
  border-bottom: 1px solid #d5dae2;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.listpage .list-group__num {
  color: #7b8794;
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.listpage .list-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listpage .list-card {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.listpage .list-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--list-line);
  background: linear-gradient(135deg, rgba(81, 197, 232, 0.08), rgba(56, 168, 218, 0.02));
  color: #111;
  text-decoration: none;
  transition: background 0.3s var(--list-ease), border-color 0.3s var(--list-ease), color 0.3s var(--list-ease);
}

.listpage a.list-card__link:hover,
.listpage a.list-card__link:focus-visible {
  border-color: var(--list-line-strong);
  background: linear-gradient(135deg, rgba(81, 197, 232, 0.14), rgba(56, 168, 218, 0.04));
  color: var(--list-accent-ink);
  opacity: 1;
}

.listpage .list-card__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.listpage .list-card__name {
  font-size: var(--fs-lead, 0.95rem);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.listpage .list-card__host {
  color: #7a828c;
  font-size: var(--fs-meta, 0.8rem);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listpage .list-card__ext {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  box-sizing: border-box;
  color: var(--list-accent-ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(56, 168, 218, 0.28);
  transition: background 0.3s var(--list-ease), border-color 0.3s var(--list-ease), color 0.3s var(--list-ease), transform 0.3s var(--list-ease);
}

.listpage a.list-card__link:hover .list-card__ext,
.listpage a.list-card__link:focus-visible .list-card__ext {
  color: #fff;
  background: var(--list-accent);
  border-color: var(--list-accent);
  transform: translateX(0.12rem);
}

.listpage mark {
  padding: 0 0.05em;
  background: rgba(255, 214, 10, 0.4);
  color: inherit;
}

/* Empty state */
.listpage .list-empty {
  margin: 1.5rem 0;
  padding: 2rem 1rem;
  border: 1px dashed #cfd4dc;
  text-align: center;
}

.listpage .list-empty__title {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.listpage .list-empty__text {
  margin: 0 0 0.9rem;
  color: #5a6470;
  font-size: 0.9rem;
}

@media screen and (max-width: 736px) {
  .listpage .list-panel {
    padding: 0.75rem;
  }

  .listpage .list-head h2 {
    font-size: 1.35rem;
  }

  .listpage .list-search__submit {
    min-width: 4.75rem;
    padding: 0 1rem;
  }

  .listpage .list-areas {
    flex-wrap: nowrap;
    width: 100%;
    margin: 0 -0.75rem;
    padding: 0 0.75rem 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .listpage .list-areas::-webkit-scrollbar {
    display: none;
  }

  .listpage .list-pref-select {
    flex: 1 1 100%;
  }

  .listpage .list-cards {
    grid-template-columns: 1fr;
  }
}

.listpage .list-count strong {
  border: 0;
  text-decoration: none;
  font-weight: 700;
}

/* Mobile: show all region chips on screen (3-column grid, no horizontal scroll) */
@media screen and (max-width: 736px) {
  .listpage .list-areas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .listpage a.list-area {
    justify-content: center;
    height: 2.4rem;
    padding: 0 0.3rem;
    font-size: 0.8rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

/* Search / filter panel: collapsible on mobile */
.listpage .list-panel__toggle {
  display: none;
}

@media screen and (max-width: 736px) {
  .listpage .list-panel {
    padding: 0;
  }

  .listpage .list-panel__toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 3.25rem;
    margin: 0;
    padding: 0 0.7rem 0 0.85rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .listpage .list-panel__toggle .list-search__icon {
    position: static;
    transform: none;
    flex: 0 0 auto;
    color: #1f8fb0;
  }

  .listpage .list-panel__label {
    flex: 0 0 auto;
  }

  .listpage .list-panel__state {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #1f8fb0;
    font-size: 0.82rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .listpage .list-panel__chev {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    box-sizing: border-box;
    border: 1px solid rgba(56, 168, 218, 0.28);
    background: rgba(255, 255, 255, 0.95);
    color: #1f8fb0;
  }

  .listpage .list-panel__chev svg {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .listpage .list-panel.is-open .list-panel__chev svg {
    transform: rotate(180deg);
  }

  .listpage .list-panel__body {
    padding: 0 0.75rem 0.75rem;
  }

  .listpage .list-panel.js-collapsible:not(.is-open) .list-panel__body {
    display: none;
  }

  .listpage .list-panel.is-open .list-panel__toggle {
    border-bottom: 1px solid rgba(56, 168, 218, 0.18);
    margin-bottom: 0.75rem;
  }
}
