/* OpenCamps map/list page */
body { min-height: 100vh; display: flex; flex-direction: column; }
.ct-explorer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(430px, 44%) 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100vh - 78px);
  min-height: 680px;
  background: #fff;
  overflow: hidden;
}
.ct-results-pane {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--oc-line);
  background: #fff;
}
.ct-search-area {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  z-index: 20;
  padding: 22px 24px 15px;
  background: rgba(255,255,255,.98);
  border-right: 1px solid var(--oc-line);
  border-bottom: 1px solid var(--oc-line);
}
.ct-searchbar { display: grid; grid-template-columns: 1fr 124px auto; gap: 10px; }
.ct-search-field { min-height: 50px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid #dce3ea; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(16,35,58,.05); }
.ct-search-svg { width: 20px; fill: none; stroke: var(--oc-muted); stroke-width: 1.8; stroke-linecap: round; }
.ct-search-field input { width: 100%; border: 0; outline: 0; color: var(--oc-ink); background: transparent; }
.ct-radius-field {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 2px;
  padding: 5px 12px;
  border: 1px solid #dce3ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(16,35,58,.05);
}
.ct-radius-field span {
  color: var(--oc-muted);
  font-size: 10px;
  font-weight: 700;
}
.ct-radius-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--oc-ink);
  font-size: 13px;
  font-weight: 700;
}
.ct-search-submit { min-width: 98px; border: 0; border-radius: 14px; background: var(--oc-green); color: #fff; font-weight: 700; cursor: pointer; }
.ct-results-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 25px 24px 18px; }
.ct-results-head h1 { margin: 2px 0 7px; font-size: 29px; letter-spacing: -.03em; }
.ct-results-head p { margin: 0; color: var(--oc-muted); font-size: 13px; }
.ct-results-head .ct-eyebrow { color: var(--oc-green-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ct-sort { display: grid; gap: 6px; color: var(--oc-muted); font-size: 11px; }
.ct-sort select { min-height: 38px; border: 1px solid var(--oc-line); border-radius: 10px; padding: 0 32px 0 11px; background: #fff; color: var(--oc-ink); }
.ct-site-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 0 24px 28px; }
.ct-site-card { min-width: 0; overflow: hidden; border: 1px solid var(--oc-line); border-radius: 18px; background: #fff; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; outline: 0; }
.ct-site-card:hover,.ct-site-card:focus-visible,.ct-site-card.is-active { transform: translateY(-2px); border-color: #b9ddcb; box-shadow: 0 14px 35px rgba(16,35,58,.10); }
.ct-site-image { position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.ct-live-badge { position: absolute; left: 11px; top: 11px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--oc-green-dark); font-size: 11px; font-weight: 700; box-shadow: 0 5px 15px rgba(16,35,58,.10); }
.ct-live-badge i,.ct-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oc-green); }
.ct-live-badge.is-red { color: #a93636; background: rgba(255,241,241,.96); }
.ct-live-badge.is-red i { background: var(--oc-red); }
.ct-reservation-badge { position: absolute; left: 11px; bottom: 11px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--oc-orange); color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 8px 18px rgba(245,154,35,.28); }
.ct-favorite,.ct-overlay-save,.ct-overlay-close { border: 0; background: rgba(255,255,255,.94); cursor: pointer; }
.ct-favorite-form { position: absolute; right: 10px; top: 10px; margin: 0; }
.ct-favorite { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; }
.ct-favorite.is-active,.ct-overlay-save.is-active { color: var(--oc-green); }
.ct-site-content { padding: 14px; }
.ct-site-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ct-site-title-row h2 { margin: 0 0 5px; font-size: 15px; line-height: 1.3; }
.ct-site-title-row p { margin: 0; color: var(--oc-muted); font-size: 12px; }
.ct-site-title-row>strong { white-space: nowrap; font-size: 13px; }
.ct-site-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ct-site-meta span,.ct-amenity,.ct-overlay-vehicles span,.ct-overlay-amenities span { padding: 7px 9px; border-radius: 999px; background: #f3f7f5; color: var(--oc-text); font-size: 11px; font-weight: 600; }
.ct-card-reservation { min-height: 34px; margin-top: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-radius: 999px; background: #fff4de; color: #9a5b04; font-size: 12px; font-weight: 700; }
.ct-card-reservation:hover { background: var(--oc-orange); color: #fff; }
.ct-amenities { display: flex; flex-wrap: wrap; gap: 7px; min-height: 29px; margin-top: 10px; }
.ct-amenity { width: 30px; height: 30px; padding: 0; }

.ct-updated { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef2f5; color: var(--oc-muted); font-size: 11px; }
.ct-map-pane {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  min-height: 0;
  background: #e8eee9;
}
.ct-map { position: absolute; inset: 0; z-index: 1; }
.ct-map-toolbar { position: absolute; z-index: 500; top: 16px; left: 50%; transform: translateX(-50%); }
.ct-map-pill { border: 1px solid rgba(16,35,58,.1); border-radius: 999px; padding: 10px 15px; background: #fff; box-shadow: 0 8px 22px rgba(16,35,58,.16); font-size: 12px; font-weight: 700; cursor: pointer; }
.oc-map-marker { width: 45px; height: 54px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(15,35,55,.28)); transition: transform .2s ease; }
.leaflet-marker-icon:hover .oc-map-marker,.leaflet-marker-icon.is-active .oc-map-marker { transform: translateY(-3px) scale(1.08); }
.ct-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1550;
  border: 0;
  background: rgba(10, 24, 42, .28);
  opacity: 0;
  cursor: pointer;
  transition: opacity .24s ease;
}
.ct-overlay-backdrop.is-open { opacity: 1; }
.ct-site-overlay { position: fixed; z-index: 1600; top: 0; right: 0; width: min(510px,100%); height: 100dvh; overflow-y: auto; background: #fff; box-shadow: -18px 0 55px rgba(16,35,58,.18); transform: translateX(105%); transition: transform .3s ease; }
.ct-site-overlay.is-open { transform: translateX(0); }
.ct-overlay-close { position: absolute; z-index: 4; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 25px; }
.ct-overlay-drag { display: none; }
.ct-overlay-main-photo { position: relative; min-height: 290px; background-size: cover; background-position: center; }
.ct-overlay-photo-gradient { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.55)); }
.ct-overlay-photo-status { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.ct-overlay-status,.ct-overlay-photo-count { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 11px; font-weight: 700; }
.ct-overlay-status { display: flex; align-items: center; gap: 7px; color: var(--oc-green-dark); }
.ct-overlay-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--oc-green); }
.ct-overlay-status.is-red { color: #a93636; background: rgba(255,241,241,.96); }
.ct-overlay-status.is-red i { background: var(--oc-red); }
.ct-overlay-thumbs { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; }
.ct-overlay-thumbs button { flex: 0 0 76px; height: 56px; border: 2px solid transparent; border-radius: 10px; background-size: cover; background-position: center; cursor: pointer; }
.ct-overlay-thumbs button.is-active { border-color: var(--oc-green); }
.ct-overlay-body { padding: 22px; }
.ct-overlay-status-row { display: flex; justify-content: space-between; gap: 18px; }
.ct-overlay-kicker { margin: 0 0 6px; color: var(--oc-green-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ct-overlay-status-row h2 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.03em; }
.ct-overlay-location { margin: 0; color: var(--oc-muted); }
.ct-overlay-save-form { margin: 0; }
.ct-overlay-save { width: 42px; height: 42px; border: 1px solid var(--oc-line); border-radius: 50%; font-size: 24px; }
.ct-overlay-trust,.ct-freshness,.ct-overlay-contact-card { margin-top: 18px; padding: 16px; border: 1px solid var(--oc-line); border-radius: 16px; background: #f9fbfa; }
.ct-overlay-trust,.ct-overlay-trust-main,.ct-freshness-head,.ct-overlay-section-head,.ct-overlay-contact-card { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.ct-overlay-trust-main { justify-content: flex-start; }
.ct-overlay-trust-main>span { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: var(--oc-green); box-shadow: 0 0 0 6px rgba(24,168,107,.12); }
.ct-overlay-trust-main strong,.ct-overlay-trust-main span { display: block; }
.ct-overlay-trust-main div span { color: var(--oc-muted); margin-top: 3px; font-size: 11px; }
.ct-overlay-trust-badge { padding: 7px 10px; border-radius: 999px; background: var(--oc-green-soft); color: var(--oc-green-dark); font-size: 11px; font-weight: 700; }
.ct-freshness-head span,.ct-freshness p { color: var(--oc-muted); font-size: 11px; }
.ct-freshness-head strong { display: block; margin-top: 3px; font-size: 14px; }
.ct-freshness-track { height: 7px; margin: 12px 0 7px; overflow: hidden; border-radius: 999px; background: #e6ece9; }
.ct-freshness-track span { display: block; width: 80%; height: 100%; border-radius: inherit; background: var(--oc-green); }
.ct-freshness-scale { display: flex; justify-content: space-between; color: var(--oc-muted); font-size: 10px; }
.ct-freshness p { margin: 10px 0 0; line-height: 1.55; }
.ct-community-report { margin-top: 18px; padding: 16px; border: 1px solid rgba(32,184,180,.22); border-radius: 16px; background: #f0fdfc; }
.ct-community-note { margin: 0 0 12px; color: #176d69; font-size: 13px; line-height: 1.45; }
.ct-community-reporter a,.ct-community-reporter div { display: flex; align-items: center; gap: 10px; color: var(--oc-ink); text-decoration: none; }
.ct-community-reporter img,.ct-community-avatar-placeholder { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; }
.ct-community-avatar-placeholder { display: inline-flex; position: relative; background-color: #edf9f1; background-image: radial-gradient(circle at 24% 24%, rgba(46,161,59,.14) 0 2px, transparent 2px), radial-gradient(circle at 78% 66%, rgba(46,161,59,.12) 0 2px, transparent 2px); background-size: 18px 18px; }
.ct-community-avatar-placeholder::after { content: ""; position: absolute; inset: 9px; background: var(--oc-green); clip-path: polygon(50% 0, 100% 100%, 66% 100%, 50% 58%, 34% 100%, 0 100%); }
.ct-community-report dl { display: grid; gap: 9px; margin: 14px 0 0; }
.ct-community-report dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.ct-community-report dt { color: var(--oc-muted); font-size: 12px; }
.ct-community-report dd { margin: 0; color: var(--oc-ink); font-weight: 700; }
.ct-overlay-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 18px; }
.ct-overlay-facts>div { min-width: 0; padding: 14px; border: 1px solid var(--oc-line); border-radius: 14px; background: #fff; }
.ct-overlay-facts span,.ct-overlay-facts strong { display: block; }
.ct-overlay-facts>div>span:not(.ct-overlay-fact-icon) { margin-top: 8px; color: var(--oc-muted); font-size: 10px; }
.ct-overlay-facts strong { margin-top: 4px; font-size: 12px; }
.ct-overlay-fact-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--oc-green-soft); color: var(--oc-green-dark); }
.ct-overlay-section { margin-top: 23px; }
.ct-overlay-section-label { font-size: 12px; font-weight: 700; }
.ct-overlay-vehicles,.ct-overlay-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.ct-overlay-description { margin: 10px 0 0; color: var(--oc-text); font-size: 13px; line-height: 1.7; }
.ct-overlay-contact-card { align-items: flex-start; }
.ct-overlay-contact-card strong { display: block; margin-top: 7px; font-size: 13px; }
.ct-overlay-contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ct-overlay-contact-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--oc-line);
  color: var(--oc-green-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.ct-overlay-contact-actions svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ct-overlay-contact-actions span {
  min-width: 0;
}
.ct-overlay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.ct-overlay-actions .ct-overlay-reservation:not([hidden]) { grid-column: 1 / -1; }
.ct-overlay-primary,.ct-overlay-secondary,.ct-overlay-reservation { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.ct-overlay-primary svg,.ct-overlay-secondary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ct-overlay-primary { background: var(--oc-green); color: #fff; }
.ct-overlay-reservation { background: var(--oc-orange); color: #fff; box-shadow: 0 12px 22px rgba(245,154,35,.20); }
.ct-overlay-secondary { border: 1px solid var(--oc-line); background: #fff; color: var(--oc-ink); }
.ct-overlay-disclaimer { margin: 17px 0 0; color: var(--oc-muted); font-size: 10px; line-height: 1.55; text-align: center; }
.ct-mobile-view-switch { display: none; }
body.oc-overlay-open { overflow: hidden; }
@media (max-width: 1180px) { .ct-explorer { grid-template-columns: minmax(390px,48%) 1fr; } .ct-site-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ct-explorer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: #fff;
  }

  .ct-search-area {
    position: relative;
    top: auto;
    order: 1;
    width: 100%;
    padding: 13px 14px 11px;
    border-right: 0;
    border-bottom: 1px solid var(--oc-line);
    background: #fff;
  }

  .ct-searchbar { grid-template-columns: 1fr 112px; }
  .ct-search-submit { grid-column: 1 / -1; min-height: 44px; }

  .ct-map-pane {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: clamp(360px, 55dvh, 570px);
    border: 0;
  }

  .ct-results-pane {
    order: 3;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 0;
    height: auto;
    overflow: visible;
    border: 0;
    background: #fff;
  }

  .ct-explorer[data-mobile-view="list"] .ct-map-pane { display: none; }
  .ct-explorer[data-mobile-view="map"] .ct-map-pane { display: block; }
  .ct-explorer[data-mobile-view="map"] .ct-results-pane,
  .ct-explorer[data-mobile-view="list"] .ct-results-pane { display: block; }

  .ct-results-head { padding: 20px 14px 14px; align-items: flex-start; }
  .ct-results-head h1 { font-size: 25px; }
  .ct-sort { display: none; }
  .ct-site-grid { grid-template-columns: 1fr; padding: 0 14px 24px; }
  .ct-site-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
  .ct-site-image { min-height: 150px; aspect-ratio: auto; }
  .ct-site-title-row { display: block; }
  .ct-site-title-row > strong { display: block; margin-top: 8px; }
  .ct-amenities { display: none; }

  .ct-site-overlay {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(88dvh, 850px);
    overflow: hidden auto;
    border-radius: 24px 24px 0 0;
    background: #fff;
    transform: translateY(105%);
  }
  .ct-site-overlay.is-open { transform: translateY(0); }
  .ct-overlay-gallery { overflow: hidden; border-radius: 24px 24px 0 0; }
  .ct-overlay-main-photo {
    width: 100%;
    min-height: 230px;
    border-radius: 24px 24px 0 0;
    background-size: cover;
    background-position: center;
  }
  .ct-overlay-body { padding: 19px 16px calc(25px + env(safe-area-inset-bottom)); }
  .ct-overlay-status-row h2 { font-size: 23px; }
  .ct-overlay-facts { grid-template-columns: 1fr; }
  .ct-overlay-actions {
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(transparent, #fff 26%);
  }
}



/* OpenCamps SVG icon system – filter, cards and overlay */
.ct-filter-option-icon,
.ct-amenity,
.ct-overlay-fact-icon,
.ct-overlay-amenity-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

.ct-filter-option-icon svg,
.ct-amenity svg,
.ct-overlay-fact-icon svg,
.ct-overlay-amenity-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-filter-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--oc-green-dark);
  background: var(--oc-green-soft);
}

.ct-filter-option:has(input:checked) .ct-filter-option-icon,
.ct-filter-option.is-checked .ct-filter-option-icon {
  color: #fff;
  background: var(--oc-green);
}

.ct-amenity {
  color: var(--oc-green-dark);
  background: var(--oc-green-soft);
}

.ct-amenity svg {
  width: 16px;
  height: 16px;
}

.ct-overlay-fact-icon svg {
  width: 17px;
  height: 17px;
}

.ct-overlay-amenities {
  align-items: stretch;
}

.ct-overlay-amenity {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 11px !important;
  border: 1px solid #e4ece8;
  border-radius: 12px !important;
  background: #f7faf8 !important;
  color: var(--oc-text) !important;
}

.ct-overlay-amenity-icon {
  width: 24px;
  height: 24px;
  color: var(--oc-green-dark);
}

.ct-overlay-amenity-icon svg {
  width: 17px;
  height: 17px;
}

.ct-overlay-amenity b {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

/* Facts-Kacheln vollständig mittig ausrichten */
.ct-overlay-facts > div {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-content: center !important;
  text-align: center !important;
}

.ct-overlay-facts > div > * {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.ct-overlay-facts .ct-overlay-fact-icon {
  display: grid !important;
  place-items: center !important;
  margin: 0 auto 8px !important;
}

.ct-overlay-facts .ct-overlay-fact-icon svg {
  display: block !important;
  margin: auto !important;
}

.ct-overlay-facts > div > span:not(.ct-overlay-fact-icon) {
  width: 100% !important;
  margin-top: 0 !important;
  text-align: center !important;
}

.ct-overlay-facts > div > strong {
  width: 100% !important;
  margin-top: 4px !important;
  text-align: center !important;
}


/* Ausstattung Filter */
.ct-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ct-filter-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--oc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--oc-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.ct-filter-chip:hover,
.ct-filter-chip.is-active,
.ct-filter-dropdown.is-open .ct-filter-dropdown-trigger {
  color: var(--oc-green-dark);
  border-color: #aee3cb;
  background: var(--oc-green-soft);
}

.ct-filter-chip svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .18s ease;
}

.ct-filter-dropdown {
  position: static;
}

.ct-filter-dropdown.is-open .ct-filter-dropdown-trigger svg {
  transform: rotate(180deg);
}

.ct-filter-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 24px;
  right: auto;
  z-index: 80;
  width: min(540px, calc(100% - 48px));
  padding: 20px;
  display: none;
  border: 1px solid var(--oc-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(16,35,58,.16);
}

.ct-filter-dropdown.is-open .ct-filter-panel {
  display: block;
}

.ct-filter-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ct-filter-panel-head > div {
  display: grid;
  gap: 5px;
}

.ct-filter-panel-head strong {
  font-size: 16px;
}

.ct-filter-panel-head span {
  color: var(--oc-muted);
  font-size: 12px;
}

.ct-filter-reset,
.ct-overlay-show-all {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--oc-green-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ct-filter-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.ct-filter-option {
  min-width: 0;
  min-height: 60px;
  display: grid;
  grid-template-columns: 18px 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--oc-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.ct-filter-option:hover {
  border-color: #c7ead9;
  background: #f8fcfa;
  transform: translateY(-1px);
}

.ct-filter-option.is-checked,
.ct-filter-option:has(input:checked) {
  border-color: #a9e3c9;
  background: var(--oc-green-soft);
}

.ct-filter-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--oc-green);
  cursor: pointer;
}

.ct-filter-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.ct-filter-option > span:last-of-type {
  min-width: 0;
  color: var(--oc-ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.ct-filter-apply {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: var(--oc-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.ct-filter-apply:hover {
  background: var(--oc-green-dark);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .ct-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .ct-filter-row::-webkit-scrollbar {
    display: none;
  }

  .ct-filter-chip {
    flex: 0 0 auto;
  }

  .ct-filter-dropdown.is-open::before {
    content: "";
    position: fixed;
    inset: 68px 0 0;
    z-index: 2998;
    background: rgba(17,24,39,.34);
  }

  .ct-filter-panel {
    position: fixed;
    top: 80px;
    right: 12px;
    bottom: auto;
    left: 12px;
    z-index: 2999;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 92px);
    padding: 16px 14px 14px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(16,35,58,.26);
  }

  .ct-filter-dropdown.is-open .ct-filter-panel {
    display: flex;
  }

  .ct-filter-panel::before {
    content: "";
    width: 42px;
    height: 5px;
    flex: 0 0 auto;
    margin: -7px auto 13px;
    border-radius: 999px;
    background: #d7dee5;
  }

  .ct-filter-panel-head {
    flex: 0 0 auto;
    padding: 0 2px 14px;
    border-bottom: 1px solid var(--oc-line);
  }

  .ct-filter-options {
    min-height: 0;
    flex: 0 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    margin: 12px 0;
    padding: 0 2px 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ct-filter-option {
    min-height: 62px;
    grid-template-columns: 18px 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .ct-filter-option-icon {
    width: 34px;
    height: 34px;
  }

  .ct-filter-option > span:last-of-type {
    font-size: 12px;
  }

  .ct-filter-apply {
    min-height: 52px;
    flex: 0 0 auto;
    box-shadow: 0 8px 22px rgba(24,168,107,.20);
  }
}

@media (max-width: 390px) {
  .ct-filter-options {
    grid-template-columns: 1fr;
  }

  .ct-filter-option {
    min-height: 54px;
  }
}

/* Mobile card refinements */
@media (max-width: 760px) {
  .ct-live-badge i {
    display: none;
  }

  .ct-live-badge {
    gap: 0;
  }
}

.ct-location-control {
  border: 0 !important;
  box-shadow: 0 4px 18px rgba(23, 38, 58, 0.18) !important;
}

.ct-location-button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #1f3655;
  background: #ffffff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.ct-location-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ct-location-button svg path,
.ct-location-button svg circle:last-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ct-location-button[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 760px) {
  .ct-location-control {
    margin-right: 14px !important;
    margin-bottom: 12px !important;
  }
}

.ct-mobile-view-switch {
  display: none;
}

@media (max-width: 760px) {
  .ct-explorer {
    position: relative;
  }

  .ct-mobile-view-switch {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1200;

    display: flex;
    gap: 4px;

    padding: 4px;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 35, 56, 0.08);
    border-radius: 999px;

    box-shadow:
      0 8px 28px rgba(16, 30, 48, 0.22),
      0 2px 8px rgba(16, 30, 48, 0.12);

    transform: translateX(-50%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .ct-mobile-view-switch button {
    min-width: 88px;
    height: 44px;
    padding: 0 22px;

    color: #34465d;
    background: transparent;
    border: 0;
    border-radius: 999px;

    font: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    transition:
      color 0.2s ease,
      background 0.2s ease,
      box-shadow 0.2s ease;
  }

  .ct-mobile-view-switch button.is-active {
    color: #ffffff;
    background: #10233f;
    box-shadow: 0 4px 12px rgba(16, 35, 63, 0.24);
  }

  .ct-mobile-view-switch button:focus-visible {
    outline: 3px solid rgba(36, 119, 255, 0.3);
    outline-offset: 2px;
  }

  body.oc-overlay-open .ct-mobile-view-switch,
  body.oc-menu-open .ct-mobile-view-switch {
    display: none;
  }
}

.ct-load-more-wrap {
  display: none;
}

@media (max-width: 760px) {
  .ct-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 0 14px 30px;
  }

  .ct-load-more-wrap:has(.ct-load-more[hidden]) {
    display: none;
  }

  .ct-load-more {
    min-width: 190px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--oc-line);
    border-radius: 999px;
    background: #fff;
    color: var(--oc-ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(16, 35, 58, 0.08);
  }

  .ct-load-more:hover {
    border-color: #b9ddcb;
    color: var(--oc-green-dark);
  }
}
