/* iKEROS discovery archives */
.ikeros-discovery-page {
  --ikd-blue: #3856b6;
  --ikd-blue-2: #34a8eb;
  --ikd-ink: #20242d;
  --ikd-muted: #667085;
  --ikd-line: #dbe4f5;
  --ikd-soft: #f4f7fc;
  --ikd-soft-2: #eef5ff;
  min-height: 100vh;
  background: var(--ikd-soft);
  color: var(--ikd-ink);
}
.ikeros-discovery-page *, .ikeros-discovery-page *::before, .ikeros-discovery-page *::after { box-sizing: border-box; }
.ikeros-discovery-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 330px; padding: 72px 0 44px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 16px), radial-gradient(circle at 18% 18%, rgba(67,168,231,.34), transparent 30%), linear-gradient(135deg,#101827 0%,#1f2f5f 48%,#335fbd 100%); }
.ikeros-discovery-hero-inner { width: min(1440px,calc(100% - 48px)); max-width: 1440px; margin-inline: auto; }
.ikeros-discovery-hero-content { width: 100%; }
.ikeros-discovery-hero-content-row { display: grid; grid-template-columns: minmax(220px,360px) minmax(0,1fr); gap: clamp(28px,5vw,72px); align-items: center; }
.ikeros-discovery-hero-content-row.no-image { grid-template-columns: minmax(0,1fr); }
.ikeros-discovery-hero-thumb { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 18px; box-shadow: 0 18px 38px rgba(4,13,36,.28); }
.ikeros-discovery-hero-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ikeros-discovery-hero-copy { min-width: 0; }
.ikeros-discovery-hero h1 { max-width: none; margin: 0 0 28px; color: #fff; font-size: clamp(36px,5vw,64px); line-height: 1.02; text-wrap: balance; }
.ikeros-discovery-description { position: relative; max-width: 820px; margin-top: 18px; color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.65; }
.ikeros-discovery-description.is-collapsed { max-height: 120px; overflow: hidden; }
.ikeros-discovery-description.is-collapsed::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 54px; background: linear-gradient(180deg,transparent,rgba(16,24,39,.94)); pointer-events: none; }
.ikeros-discovery-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ikeros-discovery-read-more { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 0; padding: 10px 18px; border: 1px solid rgba(56,86,182,.18); border-radius: 999px; background: rgba(255,255,255,.96); color: var(--ikd-blue); font: inherit; font-weight: 850; cursor: pointer; }
.ikeros-discovery-hero-search { display: none; min-height: 42px; padding: 10px 18px; border: 1px solid rgba(56,86,182,.18); border-radius: 999px; background: #fff; color: var(--ikd-blue); font: inherit; font-weight: 850; cursor: pointer; }
.ikeros-discovery-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; align-items: start; width: min(1440px,calc(100% - 48px)); max-width: 1440px; margin-inline: auto; padding: 0 0 104px; }
.ikeros-discovery-main, .ikeros-discovery-map-column { min-width: 0; }
.ikeros-discovery-main { padding: 30px 22px 0; }
.ikeros-discovery-map-column { position: sticky; top: 0; height: 100vh; min-height: 620px; padding: 22px 22px 0 0; }
.ikeros-discovery-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; max-width: 760px; margin: 0 auto 18px; }
.ikeros-discovery-results-head h2, .ikeros-discovery-map-card h2 { margin: 0; font-size: clamp(28px,3vw,38px); line-height: 1.1; }
.ikeros-discovery-count { margin: 8px 0 0; color: var(--ikd-muted); font-weight: 780; }
.ikeros-discovery-sort { display: inline-flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--ikd-line); border-radius: 999px; background: #fff; box-shadow: 0 10px 28px rgba(30,35,48,.06); }
.ikeros-discovery-sort-link { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 13px; border-radius: 999px; color: #59657a; font: inherit; font-weight: 850; text-decoration: none !important; white-space: nowrap; }
.ikeros-discovery-sort-link.is-active { background: linear-gradient(135deg,var(--ikd-blue),var(--ikd-blue-2)); color: #fff; }
.ikeros-discovery-listings { display: grid; max-width: 760px; margin: 0 auto; gap: 15px; }
.ikeros-discovery-card { border: 1px solid var(--ikd-line); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 14px 40px rgba(30,35,48,.08); overflow: hidden; }
.ikeros-discovery-card a { display: grid; grid-template-columns: 158px 1fr; min-height: 142px; color: inherit; text-decoration: none !important; }
.ikeros-discovery-card-media { display: block; min-height: 142px; background: var(--ikd-soft-2); }
.ikeros-discovery-card-media img, .ikeros-discovery-card-placeholder { display: block; width: 100%; height: 100%; min-height: 142px; object-fit: cover; }
.ikeros-discovery-card-placeholder { background: repeating-linear-gradient(135deg,#edf1f7 0 2px,#f8fafc 2px 16px); }
.ikeros-discovery-card-content { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 18px; }
.ikeros-discovery-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.ikeros-discovery-card-meta span { padding: 5px 10px; border-radius: 999px; background: var(--ikd-soft-2); color: var(--ikd-blue); font-size: 13px; font-weight: 850; }
.ikeros-discovery-card-meta .ikeros-discovery-card-badge-verified { background: #dff5e7; color: #18733c; }
.ikeros-discovery-card-meta .ikeros-discovery-card-badge-featured { background: #fff3c4; color: #88651a; }
.ikeros-discovery-card-rating { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--ikd-muted); font-size: 14px; font-weight: 750; }
.ikeros-discovery-card-rating > span:first-child { color: #e5a62b; font-size: 17px; line-height: 1; }
.ikeros-discovery-card h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.ikeros-discovery-card-excerpt { margin: 8px 0 0; color: var(--ikd-muted); line-height: 1.45; }
.ikeros-discovery-map-card { height: 100%; min-height: 590px; padding: 20px; border-left: 1px solid var(--ikd-line); background: transparent; }
.ikeros-discovery-map-head { margin-bottom: 18px; }
.ikeros-discovery-map-placeholder, .ikeros-discovery-map-canvas { position: relative; min-height: 520px; height: calc(100% - 68px); overflow: hidden; border-radius: 18px; }
.ikeros-discovery-map-placeholder { display: grid; place-items: center; background: repeating-linear-gradient(35deg,rgba(255,255,255,.3) 0 2px,transparent 2px 42px), linear-gradient(135deg,#cff5df,#dff7fa); }
.ikeros-discovery-map-placeholder-content { display: grid; justify-items: center; gap: 14px; max-width: 220px; color: var(--ikd-muted); text-align: center; font-weight: 750; }
.ikeros-discovery-map-pin { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg,var(--ikd-blue),var(--ikd-blue-2)); box-shadow: 0 12px 24px rgba(56,86,182,.24); }
.ikeros-discovery-map-pin svg { width: 28px; height: 28px; transform: rotate(45deg); color: #fff; }
.ikeros-discovery-popup-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 8px; padding: 9px 14px; border-radius: 999px; background: linear-gradient(135deg,var(--ikd-blue),var(--ikd-blue-2)); color: #fff !important; font: inherit; font-weight: 850; text-decoration: none !important; }
.ikeros-discovery-map-button { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg,var(--ikd-blue),var(--ikd-blue-2)); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.ikeros-discovery-map-canvas { background: #eaf1f6; }
.ikeros-discovery-listeo-marker .face.front,
.ikeros-discovery-listeo-marker .face.back { background: linear-gradient(135deg,var(--ikd-blue),var(--ikd-blue-2)); border-color: var(--ikd-blue); color: #fff; }
.ikeros-discovery-listeo-marker .face svg,
.ikeros-discovery-listeo-marker .face svg path,
.ikeros-discovery-listeo-marker .face svg circle { fill: none !important; stroke: currentColor !important; }
.ikeros-discovery-listeo-marker .marker-container { position: relative; width: 40px; height: 40px; margin: 10px auto; top: -5px; perspective: 1000px; }
.ikeros-discovery-listeo-marker .marker-card { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; transition: transform .25s ease; }
.ikeros-discovery-listeo-marker .face { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; border-radius: 50%; backface-visibility: hidden; text-align: center; }
.ikeros-discovery-listeo-marker .face.front { transform: rotateY(0deg); }
.ikeros-discovery-listeo-marker .face.back { transform: rotateY(180deg); }
.ikeros-discovery-listeo-marker .marker-container:hover .marker-card,
.ikeros-discovery-listeo-marker .clicked .marker-card { transform: rotateY(180deg) translateY(-4px); }
.ikeros-discovery-listeo-marker .marker-arrow { position: absolute; top: 38px; left: 50%; z-index: 1; width: 0; height: 0; border-width: 8px 5px 0; border-style: solid; border-color: var(--ikd-blue) transparent transparent; transform: translateX(-50%); }
.ikeros-discovery-listeo-marker .face svg { width: 22px; height: 22px; }
.ikeros-discovery-map-placeholder + .ikeros-discovery-map-canvas { display: none; }
.ikeros-discovery-map-card.is-map-loaded .ikeros-discovery-map-placeholder { display: none; }
.ikeros-discovery-map-card.is-map-loaded .ikeros-discovery-map-canvas { display: block; }
.ikeros-discovery-map-card.is-map-loading .ikeros-discovery-map-button { opacity: .65; cursor: wait; }
.ikeros-discovery-pagination { max-width: 760px; margin: 24px auto 0; }
.ikeros-discovery-pagination .nav-links { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.ikeros-discovery-pagination a, .ikeros-discovery-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--ikd-line); border-radius: 10px; background: #fff; color: var(--ikd-blue); text-decoration: none; }
.ikeros-discovery-pagination .current { background: var(--ikd-blue); color: #fff; }
.ikeros-discovery-empty { max-width: 760px; margin: 0 auto; padding: 32px; border: 1px solid var(--ikd-line); border-radius: 18px; background: #fff; }
.ikeros-discovery-search { position: fixed; left: 50%; bottom: 22px; z-index: 10000; width: min(780px,calc(100% - 42px)); transform: translateX(-50%); pointer-events: none; }
.ikeros-discovery-search-panel { display: none; margin-bottom: 12px; padding: 18px; border: 1px solid var(--ikd-line); border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: 0 24px 60px rgba(28,42,75,.22); pointer-events: auto; }
.ikeros-discovery-search-title { display: block; margin: 0 0 16px; color: var(--ikd-ink); font: inherit; font-size: 22px; font-weight: 850; text-align: center; }
.ikeros-discovery-search.is-open .ikeros-discovery-search-panel { display: block; }
.ikeros-discovery-mobile-actions { display: flex; justify-content: center; gap: 10px; pointer-events: auto; }
.ikeros-discovery-search-toggle, .ikeros-discovery-map-jump, .ikeros-discovery-search-submit { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 14px 28px; border: 0; border-radius: 999px; background: linear-gradient(135deg,var(--ikd-blue),var(--ikd-blue-2)); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.ikeros-discovery-search-toggle.is-active { background: #8b96a8; box-shadow: 0 14px 32px rgba(50,60,78,.24); }
.ikeros-discovery-search-toggle { min-width: 178px; box-shadow: 0 18px 42px rgba(56,86,182,.34); }
.ikeros-discovery-map-jump { display: none; background: #fff; color: var(--ikd-blue); border: 1px solid rgba(56,86,182,.16); box-shadow: 0 14px 32px rgba(30,35,48,.12); }
.ikeros-discovery-field { display: grid; gap: 6px; min-width: 0; }
.ikeros-discovery-field > span { color: var(--ikd-muted); font-size: 13px; font-weight: 850; }
.ikeros-discovery-field input, .ikeros-discovery-field select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--ikd-line); border-radius: 14px; background: #f8fbff; color: var(--ikd-ink); font: inherit; font-weight: 780; }
.ikeros-discovery-search-primary { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(130px,.55fr) auto; gap: 10px; align-items: end; }
.ikeros-discovery-more-toggle { display: inline-flex; margin-top: 14px; padding: 0; border: 0; background: transparent; color: var(--ikd-blue); font: inherit; font-weight: 850; cursor: pointer; }
.ikeros-discovery-more-toggle::after { content: " +"; }
.ikeros-discovery-more-toggle[aria-expanded="true"]::after { content: " -"; }
.ikeros-discovery-more-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ikd-line); }
.ikeros-discovery-more-fields[hidden] { display: none; }
.ikeros-discovery-location-field { position: relative; }
.ikeros-nominatim-suggestions { position: absolute; z-index: 4; top: calc(100% + 4px); right: 0; left: 0; max-height: 240px; margin: 0; padding: 4px; overflow: auto; border: 1px solid var(--ikd-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(28,42,75,.18); list-style: none; }
.ikeros-nominatim-suggestions[hidden] { display: none; }
.ikeros-nominatim-suggestions button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ikd-ink); font: inherit; text-align: left; cursor: pointer; }
.ikeros-nominatim-suggestions button:hover, .ikeros-nominatim-suggestions button:focus-visible { background: var(--ikd-soft-2); color: var(--ikd-blue); outline: none; }
.ikeros-parcours-drawer { position: fixed; inset: 0; z-index: 99999; display: none; }
.ikeros-parcours-drawer.is-open { display: block; }
.ikeros-parcours-drawer-backdrop { position: absolute; inset: 0; background: rgba(13,18,31,.58); }
.ikeros-parcours-drawer-panel { position: relative; z-index: 1; display: flex; width: min(1100px,calc(100% - 32px)); height: min(90vh,900px); max-height: 90vh; min-height: 0; margin: 5vh auto 0; flex-direction: column; border-radius: 18px; background: #fff; overflow: hidden; }
.ikeros-parcours-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--ikd-line); }
.ikeros-parcours-drawer-head h2 { margin: 0; font-size: 20px; }
.ikeros-parcours-drawer-actions { display: flex; align-items: center; gap: 8px; }
.ikeros-parcours-drawer-actions a, .ikeros-parcours-drawer-close { padding: 8px 12px; border: 1px solid var(--ikd-line); border-radius: 999px; background: #fff; color: var(--ikd-blue); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.ikeros-parcours-drawer-frame-wrap { width: 100%; min-height: 0; flex: 1 1 auto; overflow: hidden; }
.ikeros-parcours-drawer-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; }
@media (max-width: 1020px) {
  .ikeros-discovery-layout { grid-template-columns: 1fr; width: 100%; max-width: none; }
  .ikeros-discovery-main { padding: 26px 16px 0; }
  .ikeros-discovery-map-column { position: relative; height: auto; min-height: 0; padding: 20px 16px 0; }
  .ikeros-discovery-map-card { min-height: 520px; border-left: 0; }
  .ikeros-discovery-search { width: calc(100% - 24px); bottom: max(12px,env(safe-area-inset-bottom)); }
  .ikeros-discovery-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border: 1px solid rgba(56,86,182,.16); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 18px 46px rgba(28,42,75,.2); backdrop-filter: blur(14px); }
  .ikeros-discovery-search-toggle, .ikeros-discovery-map-jump { min-width: 0; min-height: 48px; padding: 12px 14px; font-size: 15px; }
  .ikeros-discovery-map-jump { display: inline-flex; }
  .ikeros-discovery-search-panel { max-height: calc(100vh - 112px); overflow: auto; padding: 14px; border-radius: 22px; }
}
@media (max-width: 700px) {
  .ikeros-discovery-hero { min-height: 300px; padding: 50px 16px 32px; }
  .ikeros-discovery-hero-inner { width: 100%; }
  .ikeros-discovery-hero-content-row { grid-template-columns: 1fr; gap: 24px; }
  .ikeros-discovery-hero-thumb { max-width: 360px; margin-inline: auto; }
  .ikeros-discovery-hero h1 { font-size: clamp(32px,9vw,48px); }
  .ikeros-discovery-hero-search { display: inline-flex; align-items: center; justify-content: center; }
  .ikeros-discovery-description { font-size: 16px; }
  .ikeros-discovery-results-head { align-items: flex-start; flex-direction: column; }
  .ikeros-discovery-sort { width: 100%; }
  .ikeros-discovery-sort-link { flex: 1; }
  .ikeros-discovery-card a { grid-template-columns: 110px 1fr; min-height: 122px; }
  .ikeros-discovery-card-media, .ikeros-discovery-card-media img, .ikeros-discovery-card-placeholder { min-height: 122px; }
  .ikeros-discovery-card-content { padding: 14px; }
  .ikeros-discovery-card h3 { font-size: 18px; }
  .ikeros-discovery-card-excerpt { font-size: 14px; }
  .ikeros-discovery-search-primary { grid-template-columns: minmax(0,1fr) minmax(100px,.55fr); }
  .ikeros-discovery-search-primary .ikeros-discovery-search-submit { grid-column: 1 / -1; width: 100%; }
  .ikeros-discovery-more-fields { grid-template-columns: 1fr; }
  .ikeros-parcours-drawer-panel { width: 100%; height: 100%; max-height: 100dvh; margin: 0; border-radius: 0; }
  .ikeros-parcours-drawer-head { align-items: flex-start; flex-direction: column; }
}


/* Discovery iframe modal close control. */
.ikeros-parcours-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #c62828 !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
}

.ikeros-parcours-drawer-close:hover,
.ikeros-parcours-drawer-close:focus-visible {
  background: #fff1f1 !important;
  color: #a51616 !important;
}


.ikeros-parcours-drawer-actions {
  width: 100%;
  margin-left: auto;
  justify-content: flex-end;
}
@media (max-width: 560px) {
  .ikeros-parcours-drawer-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}
