/* ═══════════════════════════════════════════════════════════
   Map Discovery — Premium UI
   ═══════════════════════════════════════════════════════════ */

/* ── Değişkenler ── */
.map-discovery-shell {
  --mdc-blue:    #0b5cab;
  --mdc-blue-lt: #e8f1fb;
  --mdc-green:   #065f46;
  --mdc-orange:  #c05621;
  --mdc-purple:  #6d28d9;
  --mdc-teal:    #0369a1;
  --mdc-red:     #c7522a;
  --mdc-card-bg: #ffffff;
  --mdc-card-border: #e2e8f0;
  --mdc-card-shadow: 0 2px 12px rgba(11, 92, 171, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  --mdc-radius: 14px;
  --mdc-input-bg: #f8fafc;
  --mdc-muted: #5b6478;
  --mdc-text: #1a1f36;
  --mdc-hover: rgba(11, 92, 171, 0.06);
  --mdc-active: rgba(11, 92, 171, 0.12);
}

/* ── Hero ── */
.mdc-hero {
  background: linear-gradient(135deg, #e8f4fb 0%, #f0f4ff 100%);
  border-bottom: 1px solid #d1e4f5;
}

/* ── Ana Grid (full-width keşif alanı) ── */
.map-discovery-page {
  width: 100%;
  max-width: none;
  padding-left: clamp(0.85rem, 2.2vw, 1.75rem);
  padding-right: clamp(0.85rem, 2.2vw, 1.75rem);
}

.map-discovery-page__intro {
  width: 100%;
  max-width: none;
  padding-left: clamp(0.85rem, 2.2vw, 1.75rem);
  padding-right: clamp(0.85rem, 2.2vw, 1.75rem);
}

.map-discovery-section {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.map-discovery-page--tool {
  padding-top: 0.75rem;
}

.map-discovery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.75rem;
}

.map-discovery-toolbar__crumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
}

.map-discovery-toolbar__crumbs a {
  color: #1CA8CB;
  text-decoration: none;
}

.map-discovery-toolbar__crumbs a:hover {
  text-decoration: underline;
}

.map-discovery-toolbar__note {
  margin: 0;
  max-width: 42rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}

.map-discovery-shell {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.uni-table-page .map-discovery-shell,
.map-discovery-page--tool .map-discovery-shell {
  min-height: calc(100vh - 7.5rem);
}

/* Üst yatay arama / filtre şeridi */
.mdc-overlay-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
  background: var(--mdc-card-bg);
  border: 1px solid var(--mdc-card-border);
  border-radius: var(--mdc-radius);
  box-shadow: var(--mdc-card-shadow);
  padding: 0.85rem 1rem;
  position: relative;
  z-index: 2;
}

/* Alt gövde: sol sonuçlar + sağ harita */
.map-discovery-body {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.map-discovery-map-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.map-discovery-overlay {
  display: none;
}

.mdc-layer-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  flex: 0 0 auto;
  max-width: 100%;
}

.mdc-layer-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mdc-muted);
  width: 100%;
}

.map-discovery-layer-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0;
  min-width: 13.5rem;
}

.map-discovery-layer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1.5px solid var(--mdc-card-border);
  background: var(--mdc-input-bg);
  border-radius: 9px;
  padding: 0.48rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--mdc-muted);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.map-discovery-layer-btn:hover {
  border-color: var(--mdc-blue);
  color: var(--mdc-blue);
  background: var(--mdc-blue-lt);
}

.map-discovery-layer-btn.is-active {
  background: linear-gradient(135deg, var(--mdc-blue) 0%, #1a7ad4 100%);
  border-color: var(--mdc-blue);
  color: #fff;
  box-shadow: 0 3px 10px rgba(11, 92, 171, 0.28);
}

.map-discovery-layer-note {
  display: none;
}

.mdc-filter-card {
  display: flex;
  flex: 1 1 18rem;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}

.mdc-filter-title {
  display: none;
}

.map-discovery-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  flex: 1 1 9.5rem;
  min-width: 8.5rem;
  max-width: 16rem;
}

.map-discovery-field--search {
  flex: 1 1 14rem;
  max-width: 20rem;
}

.map-discovery-field--compact {
  flex: 0 1 7.5rem;
  min-width: 6.5rem;
  max-width: 8.5rem;
}

.map-discovery-field > span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mdc-text);
  opacity: 0.72;
}

.map-discovery-field-group {
  display: contents;
}

.map-discovery-field-group.is-hidden,
.map-discovery-field-group[hidden] {
  display: none !important;
}

.map-discovery-field-row {
  display: contents;
}

.mdc-overlay-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 11rem;
  min-width: 10rem;
  padding-bottom: 0.1rem;
}

.mdc-status-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.mdc-status-bar .map-discovery-status {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Input & Select ── */
.mdc-input-wrap,
.mdc-select-wrap {
  display: flex;
  align-items: center;
  background: var(--mdc-input-bg);
  border: 1.5px solid var(--mdc-card-border);
  border-radius: 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.mdc-input-wrap:focus-within,
.mdc-select-wrap:focus-within {
  border-color: var(--mdc-blue);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.15);
  background: #fff;
}

/* SVG ikon: flex elemanı olarak solda yer alıyor */
.mdc-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--mdc-muted);
  pointer-events: none;
  padding-left: 2px;
}

.mdc-input-icon svg {
  width: 15px;
  height: 15px;
}

/* Input sarıcı içindeyken: border/bg sarıcıdan geliyor */
.mdc-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 0.52rem 0.65rem 0.52rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--mdc-text);
  outline: none;
}

/* Select sarıcı içindeyken: border/bg sarıcıdan geliyor */
.mdc-select-wrap select {
  flex: 1;
  min-width: 0;
  padding: 0.52rem 1.8rem 0.52rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--mdc-text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Select için özel chevron oku — sarıcı relative'dir */
.mdc-select-wrap {
  position: relative;
}

.mdc-select-wrap::after {
  content: '';
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--mdc-muted);
  pointer-events: none;
}

/* İkonsuz bağımsız alanlar (rank-min, rank-max) */
.map-discovery-field > input,
.map-discovery-field > select {
  width: 100%;
  padding: 0.52rem 0.65rem;
  background: var(--mdc-input-bg);
  border: 1.5px solid var(--mdc-card-border);
  border-radius: 9px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--mdc-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.map-discovery-field > input:focus,
.map-discovery-field > select:focus {
  outline: none;
  border-color: var(--mdc-blue);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.15);
  background: #fff;
}

.map-discovery-field-row {
  display: contents;
}

/* ── Status Bar ── */
.mdc-status-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.mdc-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(11, 92, 171, 0.2);
  border-top-color: var(--mdc-blue);
  border-radius: 50%;
  animation: mdc-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.mdc-status-bar.is-loading .mdc-spinner {
  display: block;
}

@keyframes mdc-spin {
  to { transform: rotate(360deg); }
}

.map-discovery-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mdc-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════════════════════════════
   SONUÇ LİSTESİ (sol dikey panel)
   ══════════════════════════════════════ */
.map-discovery-list-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 14rem);
  background: var(--mdc-card-bg);
  border: 1px solid var(--mdc-card-border);
  border-radius: var(--mdc-radius);
  box-shadow: var(--mdc-card-shadow);
  overflow: hidden;
}

.mdc-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--mdc-card-border);
  background: #f8fafc;
  flex-shrink: 0;
}

.map-discovery-list__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mdc-text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mdc-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mdc-blue);
  color: #fff;
  border-radius: 99px;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.5rem;
  transition: background 0.2s;
}

.mdc-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--mdc-card-border);
  background: #fff;
  border-radius: 7px;
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mdc-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.mdc-reset-btn svg {
  width: 13px;
  height: 13px;
}

.mdc-reset-btn:hover {
  border-color: var(--mdc-blue);
  color: var(--mdc-blue);
  background: var(--mdc-blue-lt);
}

.map-discovery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #d1e4f5 transparent;
}

.map-discovery-list::-webkit-scrollbar { width: 4px; }
.map-discovery-list::-webkit-scrollbar-track { background: transparent; }
.map-discovery-list::-webkit-scrollbar-thumb { background: #d1e4f5; border-radius: 99px; }

.map-discovery-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--mdc-card-border);
  cursor: pointer;
  transition: background 0.14s;
}

.map-discovery-list__item:last-child {
  border-bottom: none;
}

.map-discovery-list__item.is-active,
.map-discovery-list__item:hover {
  background: var(--mdc-hover);
}

.map-discovery-list__item.is-active {
  background: var(--mdc-active);
  border-left: 3px solid var(--mdc-blue);
}

/* Liste Avatarları */
.mdc-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.mdc-list-avatar--uni {
  background: linear-gradient(135deg, #e8f1fb 0%, #dbeafe 100%);
}

.mdc-list-avatar--prog {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.mdc-list-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mdc-list-name {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--mdc-text);
  text-decoration: none;
  line-height: 1.3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdc-list-name:hover {
  color: var(--mdc-blue);
  text-decoration: underline;
}

.map-discovery-list__meta {
  display: block;
  font-size: 0.78rem;
  color: var(--mdc-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mdc-list-tags {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
}

.mdc-tag-plain {
  font-size: 0.75rem;
  color: var(--mdc-muted);
}

/* Boş durum */
.mdc-empty-state {
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
  color: var(--mdc-muted);
  font-size: 0.88rem;
  max-width: 220px;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   BADGE'LER
   ══════════════════════════════════════ */
.mdc-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  flex-shrink: 0;
}

.mdc-badge--devlet { background: #dbeafe; color: #1e40af; }
.mdc-badge--vakif  { background: #fde8d8; color: #9a3412; }
.mdc-badge--ozel   { background: #ede9fe; color: #5b21b6; }
.mdc-badge--kktc   { background: #d1fae5; color: #065f46; }
.mdc-badge--degree { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.mdc-badge--say  { background: #fde8d8; color: #9a3412; }
.mdc-badge--ea   { background: #d1fae5; color: #065f46; }
.mdc-badge--soz  { background: #ede9fe; color: #5b21b6; }
.mdc-badge--dil  { background: #e0f2fe; color: #0369a1; }
.mdc-badge--tyt  { background: #f1f5f9; color: #475569; }

/* ══════════════════════════════════════
   HARİTA
   ══════════════════════════════════════ */
.map-discovery-canvas {
  width: 100%;
  min-height: 480px;
  height: calc(100vh - 14rem);
  border-radius: var(--mdc-radius);
  border: 1px solid var(--mdc-card-border);
  box-shadow: var(--mdc-card-shadow);
  z-index: 0;
  overflow: hidden;
}

.map-discovery-canvas .leaflet-top.leaflet-left {
  top: 0.75rem;
  bottom: auto;
  left: 0.75rem;
  right: auto;
}

.map-discovery-map-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--mdc-muted);
  line-height: 1.45;
}

/* ══════════════════════════════════════
   POPUP STİLİ (Leaflet Override)
   ══════════════════════════════════════ */
.mdc-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
  padding: 0;
  overflow: hidden;
  border: none;
}

.mdc-leaflet-popup .leaflet-popup-content {
  margin: 0;
  width: auto !important;
  min-width: 240px;
  max-width: 300px;
}

.mdc-leaflet-popup .leaflet-popup-tip-container {
  margin-top: -1px;
}

/* Popup İçeriği */
.mdc-popup {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.mdc-popup__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1rem 0.75rem;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f4fb 100%);
  border-bottom: 1px solid #e2e8f0;
}

.mdc-popup--program .mdc-popup__head {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom-color: #fde68a;
}

.mdc-popup__avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.mdc-popup__avatar--uni {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.mdc-popup__avatar--prog {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
}

.mdc-popup__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1f36;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.mdc-popup__badges {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.mdc-popup__body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mdc-popup__row,
.mdc-popup__university-row,
.mdc-popup__stat {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #5b6478;
}

.mdc-popup__row svg,
.mdc-popup__university-row svg,
.mdc-popup__stat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.mdc-popup__university-row {
  color: #1a1f36;
  font-weight: 600;
  font-size: 0.84rem;
}

.mdc-popup__stat strong {
  color: #1a1f36;
}

.mdc-popup__stat--muted {
  opacity: 0.6;
}

.mdc-popup__row a {
  color: #0b5cab;
  text-decoration: none;
  font-weight: 500;
}
.mdc-popup__row a:hover {
  text-decoration: underline;
}

.mdc-popup__btn {
  display: block;
  margin: 0 1rem 0.9rem;
  padding: 0.55rem 0;
  background: linear-gradient(135deg, #0b5cab 0%, #1a7ad4 100%);
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.15s;
}

.mdc-popup--program .mdc-popup__btn {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}

.mdc-popup__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   MARKER İKONLARI
   ══════════════════════════════════════ */
.mdc-marker {
  background: transparent;
  border: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  transition: filter 0.15s, transform 0.15s;
  cursor: pointer;
}

.mdc-marker:hover {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  transform: translateY(-3px) scale(1.08);
  z-index: 1000 !important;
}

/* Liste hover / pin tooltip — üniversite adı */
.mdc-marker-label {
  background: #0f3d4a;
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(6, 32, 40, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 240px;
  padding: 6px 10px;
  white-space: normal;
}

.mdc-marker-label::before {
  border-top-color: #0f3d4a;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
.hero--compact {
  padding-bottom: 1rem;
}

@media (max-width: 900px) {
  .map-discovery-body {
    grid-template-columns: 1fr;
  }

  .mdc-overlay-bar {
    max-height: none;
  }

  .map-discovery-list-wrap {
    max-height: min(40vh, 20rem);
    order: 2;
  }

  .map-discovery-map-wrap {
    order: 1;
  }

  .map-discovery-canvas {
    min-height: 360px;
    height: 55vh;
  }
}

@media (max-width: 560px) {
  .map-discovery-layer-toggle {
    min-width: 0;
    width: 100%;
  }

  .map-discovery-field,
  .map-discovery-field--search,
  .map-discovery-field--compact {
    flex: 1 1 100%;
    max-width: none;
  }

  .mdc-overlay-actions {
    flex: 1 1 100%;
  }

  .map-discovery-canvas {
    height: 50vh;
    max-height: 420px;
  }
}

/* ══════════════════════════════════════
   Tourm — Hızlı eşleştirme booking bar uyumu
   ══════════════════════════════════════ */
.uni-table-page.map-discovery-page--tool .map-discovery-shell {
  --mdc-blue: var(--theme-color, #1CA8CB);
  --mdc-blue-lt: rgba(28, 168, 203, 0.12);
  --mdc-card-border: #e1e4e5;
  --mdc-card-shadow: 0 20px 20px rgba(204, 204, 204, 0.25);
  --mdc-input-bg: transparent;
  --mdc-hover: rgba(28, 168, 203, 0.08);
  --mdc-active: rgba(28, 168, 203, 0.14);
}

.uni-table-page.map-discovery-page--tool .mdc-overlay-bar {
  border: 2px solid var(--theme-color, #1CA8CB);
  border-radius: 16px;
  box-shadow: 0 20px 20px rgba(204, 204, 204, 0.25);
  padding: 21px 32px;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

.uni-table-page.map-discovery-page--tool .map-discovery-list-wrap,
.uni-table-page.map-discovery-page--tool .map-discovery-canvas {
  border: 2px solid var(--theme-color, #1CA8CB);
  border-radius: 16px;
  box-shadow: 0 20px 20px rgba(204, 204, 204, 0.25);
}

.uni-table-page.map-discovery-page--tool .mdc-list-header {
  border-bottom-color: rgba(28, 168, 203, 0.2);
}

.uni-table-page.map-discovery-page--tool .mdc-layer-card {
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding-right: 1rem;
  border-right: 1px solid #e1e4e5;
  margin-right: 0.25rem;
}

.uni-table-page.map-discovery-page--tool .mdc-layer-label {
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--black-color, #0d0d0c);
}

.uni-table-page.map-discovery-page--tool .map-discovery-layer-toggle {
  min-width: 12.5rem;
}

.uni-table-page.map-discovery-page--tool .map-discovery-layer-btn {
  border: 1px solid #e1e4e5;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 14px;
}

.uni-table-page.map-discovery-page--tool .map-discovery-layer-btn:hover {
  border-color: var(--theme-color, #1CA8CB);
  color: var(--theme-color, #1CA8CB);
  background: rgba(28, 168, 203, 0.08);
}

.uni-table-page.map-discovery-page--tool .map-discovery-layer-btn.is-active {
  background: var(--theme-color, #1CA8CB);
  border-color: var(--theme-color, #1CA8CB);
  color: #fff;
  box-shadow: none;
}

.uni-table-page.map-discovery-page--tool .mdc-filter-card {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0;
  min-width: 0;
}

.uni-table-page.map-discovery-page--tool .map-discovery-field {
  border-left: 1px solid #e1e4e5;
  padding-left: 25px;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  gap: 4px;
}

.uni-table-page.map-discovery-page--tool .mdc-filter-card > .map-discovery-field:first-child {
  border-left: none;
  padding-left: 0;
}

.uni-table-page.map-discovery-page--tool .map-discovery-field > span {
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--black-color, #0d0d0c);
  opacity: 1;
}

.uni-table-page.map-discovery-page--tool .mdc-input-wrap,
.uni-table-page.map-discovery-page--tool .mdc-select-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
}

.uni-table-page.map-discovery-page--tool .mdc-input-wrap:focus-within,
.uni-table-page.map-discovery-page--tool .mdc-select-wrap:focus-within {
  border: none;
  box-shadow: none;
  background: transparent;
}

.uni-table-page.map-discovery-page--tool .mdc-input-icon {
  width: 24px;
  height: 24px;
  color: var(--theme-color, #1CA8CB);
  padding-left: 0;
}

.uni-table-page.map-discovery-page--tool .mdc-input-icon svg {
  width: 18px;
  height: 18px;
}

.uni-table-page.map-discovery-page--tool .mdc-input-wrap input,
.uni-table-page.map-discovery-page--tool .mdc-select-wrap select {
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
  height: 30px;
  color: var(--black-color2, #0d0d0c);
  padding: 0;
}

.uni-table-page.map-discovery-page--tool .map-discovery-field > input,
.uni-table-page.map-discovery-page--tool .map-discovery-field > select {
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--body-font, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 600;
  padding: 0;
}

.uni-table-page.map-discovery-page--tool .map-discovery-field > input:focus,
.uni-table-page.map-discovery-page--tool .map-discovery-field > select:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}

.uni-table-page.map-discovery-page--tool .mdc-select-wrap::after {
  border-top-color: var(--title-color, #113d48);
}

.uni-table-page.map-discovery-page--tool .mdc-overlay-actions {
  border-left: 1px solid #e1e4e5;
  padding-left: 25px;
  padding-bottom: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.uni-table-page.map-discovery-page--tool .mdc-reset-btn {
  border: 1px solid #e1e4e5;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.uni-table-page.map-discovery-page--tool .mdc-reset-btn:hover {
  border-color: var(--theme-color, #1CA8CB);
  color: var(--theme-color, #1CA8CB);
  background: rgba(28, 168, 203, 0.08);
}

.uni-table-page.map-discovery-page--tool .mdc-spinner {
  border-color: rgba(28, 168, 203, 0.2);
  border-top-color: var(--theme-color, #1CA8CB);
}

@media (max-width: 1199px) {
  .uni-table-page.map-discovery-page--tool .mdc-overlay-bar {
    padding: 20px;
  }
}

@media (max-width: 991px) {
  .uni-table-page.map-discovery-page--tool .mdc-overlay-bar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .uni-table-page.map-discovery-page--tool .mdc-layer-card {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid #e1e4e5;
    padding-right: 0;
    padding-bottom: 1rem;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .uni-table-page.map-discovery-page--tool .mdc-filter-card {
    flex-wrap: wrap;
  }

  .uni-table-page.map-discovery-page--tool .map-discovery-field,
  .uni-table-page.map-discovery-page--tool .mdc-filter-card > .map-discovery-field:first-child {
    flex: 1 1 50%;
    max-width: 50%;
    border-left: none;
    padding-left: 0;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .uni-table-page.map-discovery-page--tool .mdc-overlay-actions {
    flex: 1 1 100%;
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  .uni-table-page.map-discovery-page--tool .map-discovery-field,
  .uni-table-page.map-discovery-page--tool .mdc-filter-card > .map-discovery-field:first-child {
    flex: 1 1 100%;
    max-width: none;
  }
}
