/* Shared universe header for Bokantaj, Annonces and Lyanneurs. */
.lyann-universe-header {
    --universe-wash: #fdfcf9;
    background: transparent;
    margin: 0;
    padding: 0;
    border-radius: 0;
}
.lyann-universe[data-universe="annonces"] .lyann-universe-header,
.lyann-universe-header[data-universe="annonces"] { --universe-wash: #fffbf4; }
.lyann-universe[data-universe="lyanneurs"] .lyann-universe-header,
.lyann-universe-header[data-universe="lyanneurs"] { --universe-wash: #f6fbf7; }
.lyann-universe[data-universe="bokantaj"] .lyann-universe-header,
.lyann-universe-header[data-universe="bokantaj"] { --universe-wash: #fff9f4; }

.lyann-universe-frame {
    position: relative;
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--universe-wash);
}
.lyann-universe-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    display: block;
}
.lyann-universe-art.is-tall { display: none; }
.lyann-universe[data-universe="annonces"] .is-wide,
.lyann-universe-header[data-universe="annonces"] .is-wide { object-position: 62% 42%; }
.lyann-universe[data-universe="lyanneurs"] .is-wide,
.lyann-universe-header[data-universe="lyanneurs"] .is-wide { object-position: center 46%; }
.lyann-universe[data-universe="bokantaj"] .is-wide,
.lyann-universe-header[data-universe="bokantaj"] .is-wide { object-position: center 62%; }
.lyann-universe[data-universe="annonces"] .is-tall,
.lyann-universe-header[data-universe="annonces"] .is-tall { object-position: center 34%; }
.lyann-universe[data-universe="lyanneurs"] .is-tall,
.lyann-universe-header[data-universe="lyanneurs"] .is-tall { object-position: center 40%; }
.lyann-universe[data-universe="bokantaj"] .is-tall,
.lyann-universe-header[data-universe="bokantaj"] .is-tall { object-position: center 70%; }

.lyann-universe-copy {
    padding: 12px 2px 0;
}
.lyann-universe-copy h1 {
    margin: 0;
    font-family: inherit;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    min-height: 1.15em;
    color: #17231c;
}
.lyann-universe-copy p {
    margin: 6px 0 0;
    max-width: 38rem;
    min-height: 2.7em;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.35;
    color: #3d5144;
}

.lyann-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 28px 8px 2px;
    margin: 0;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent);
}
.lyann-pills::-webkit-scrollbar { height: 0; }
.lyann-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid #d7e3da;
    background: #fff;
    color: #24352b;
    border-radius: 999px;
    padding: 8px 14px;
    min-height: 40px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}
.lyann-pill.is-active {
    background: #4a7c59;
    border-color: #4a7c59;
    color: #fff;
}
.lyann-category-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.explorer-page .explorer-tools {
    align-items: center;
    flex-wrap: nowrap;
}
.explorer-page .lyann-pills {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}
#explorerFiltersButton {
    flex: 0 0 auto;
    gap: 6px !important;
    padding: 8px 12px !important;
    min-height: 40px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
}
.explorer-refine {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #eadfcd;
    border-radius: 22px;
    padding: 16px 18px;
}
.explorer-page[data-mode="lyanneurs"] .explorer-refine {
    border-color: #d5e4d8;
}
.explorer-refine h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #17231c;
}
.explorer-refine p {
    margin: 0 0 12px;
    color: #3d5144;
    font-size: 0.92rem;
}
.explorer-search-dock {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.explorer-search-dock .explorer-search {
    box-shadow: none;
}

.feed-hero-section.lyann-universe-header {
    padding: calc(70px + env(safe-area-inset-top, 0px)) 0 4px;
}
.explorer-page.lyann-universe,
body.is-native-app .explorer-page.lyann-universe {
    padding-top: calc(70px + env(safe-area-inset-top, 0px));
}
.feed-main-section.section { padding-top: 2px; }
.bokantaj-top-filter-row { margin-top: 8px !important; }

body.feed-page #flashComposerCard {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
}
body.feed-page #flashComposerCard .composer-header {
    gap: 10px !important;
    margin-bottom: 6px !important;
}
body.feed-page #flashComposerCard .composer-textarea-wrapper,
body.feed-page #flashComposerCard .composer-textarea-wrapper textarea {
    margin-bottom: 4px !important;
}
body.feed-page #flashComposerCard textarea {
    min-height: 68px !important;
    padding: 8px 10px !important;
}
body.feed-page #flashComposerCard .composer-actions-bar {
    gap: 8px !important;
    padding-top: 6px !important;
}
body.feed-page .btn-publish-flash {
    margin-top: 6px !important;
    padding: 8px 16px !important;
}

@media (max-width: 359px) {
    .lyann-universe-frame { height: 200px; }
    .lyann-universe-copy h1 { font-size: 1.45rem; }
}
@media (min-width: 768px) {
    .lyann-universe-frame { height: 300px; }
    .lyann-universe-copy h1 { font-size: 2.15rem; }
}
@media (min-width: 1100px) {
    .lyann-universe-frame { height: 450px; }
    .lyann-universe-copy h1 { font-size: 2.4rem; }
}
@media (max-width: 767px) {
    .lyann-universe-art.is-wide { display: none; }
    .lyann-universe-art.is-tall { display: block; }
    .lyann-universe-copy h1 { font-size: 1.55rem; }
    .lyann-universe-copy p { font-size: 0.95rem; }
}

/* Bokantaj feed: composer, sort, filters. The illustrated header stays in normal flow. */
body.feed-page .feed-hero-section.lyann-universe-header {
    position: relative;
}
body.feed-page .bokantaj-composer {
    background: #fff;
    border: 1px solid #eadfcd;
    border-radius: 20px;
    padding: 8px;
    margin: 8px 0 10px;
    box-shadow: 0 4px 16px rgba(53, 88, 63, 0.05);
}
body.feed-page .bokantaj-composer-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}
body.feed-page .bokantaj-composer-open {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #5c6e62;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
}
body.feed-page .bokantaj-composer-open span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.feed-page #composerUserAvatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 2px solid #d7e3da;
}
body.feed-page .bokantaj-composer-media {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #eadfcd;
    background: #faf7f2;
    color: #35583f;
    font-size: 1.25rem;
    cursor: pointer;
}
body.feed-page #createFlashForm {
    padding: 8px 6px 4px;
}
body.feed-page #createFlashForm[hidden] { display: none !important; }
body.feed-page .bokantaj-type-picks {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
body.feed-page .bokantaj-type-picks label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d7e3da;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    color: #24352b;
}
body.feed-page .bokantaj-type-picks input { accent-color: #4a7c59; }
body.feed-page #flashContentInput {
    width: 100%;
    min-height: 88px;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    font: inherit;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
}
body.feed-page .composer-char-counter {
    text-align: right;
    font-size: 0.78rem;
    color: #5c6e62;
    margin-top: 4px;
}
body.feed-page .composer-actions-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
body.feed-page .media-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #eadfcd;
    background: #faf7f2;
    color: #24352b;
    font-weight: 700;
    cursor: pointer;
}
body.feed-page .media-upload-btn input { display: none; }
body.feed-page .btn-publish-flash {
    margin-left: auto;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 800;
    flex: 1 1 160px;
    width: auto !important;
    max-width: none;
}
body.feed-page .bokantaj-sort-bar {
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin: 0 0 12px;
    padding: 0 2px 0;
    border-bottom: 1px solid #eadfcd;
    overflow-x: auto;
    scrollbar-width: none;
}
body.feed-page .bokantaj-sort-tab,
body.feed-page .bokantaj-sort-filters {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 12px 8px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #3d5144;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
body.feed-page .bokantaj-sort-tab.is-selected {
    color: #35583f;
    border-bottom-color: #4a7c59;
}
body.feed-page .bokantaj-sort-filters {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
body.feed-page .bokantaj-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a7c59;
}
body.feed-page .bokantaj-filter-dot[hidden] { display: none; }
body.feed-page .bokantaj-nearby-hint {
    margin: -4px 2px 10px;
    color: #5c6e62;
    font-size: 0.82rem;
}
body.feed-page .bokantaj-nearby-hint[hidden] { display: none; }
body.feed-page .bokantaj-load-more,
body.feed-page .bokantaj-location-gate {
    margin-top: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eadfcd;
    border-radius: 18px;
    text-align: center;
}
body.feed-page .bokantaj-location-gate p {
    margin: 0 0 12px;
    color: #3d5144;
}
body.feed-page .bokantaj-location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
#bokantajFilterSheetModal .bokantaj-filter-card {
    background: #fffdf8;
    border-radius: 24px 24px 0 0;
    max-height: min(92dvh, 100%);
    padding-bottom: 0;
}
#bokantajFilterSheetModal .bottom-sheet-header {
    align-items: flex-start;
}
#bokantajFilterSheetModal .bottom-sheet-header .modal-close-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 40px;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #e5dfd5 !important;
    background: #fff !important;
    color: #24352b !important;
}
#bokantajFilterSheetModal .bottom-sheet-header h3 {
    font-size: 1.15rem;
}
#bokantajFilterSheetModal .bokantaj-filter-sub {
    margin: 4px 0 0;
    color: #5c6e62;
    font-size: 0.88rem;
    font-weight: 500;
}
#bokantajFilterSheetModal .bottom-sheet-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
#bokantajFilterSheetModal .bokantaj-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#bokantajFilterSheetModal .bokantaj-choice {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1.5px solid #d7e3da;
    background: #fff;
    color: #24352b;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}
#bokantajFilterSheetModal .bokantaj-choice.is-selected {
    background: #e7f2ea;
    border-color: #4a7c59;
    color: #35583f;
}
#bokantajFilterSheetModal .bokantaj-zone-label,
#bokantajFilterSheetModal .bokantaj-zone-note {
    margin: 8px 0 0;
    color: #5c6e62;
    font-size: 0.84rem;
}
#bokantajFilterSheetModal .bokantaj-filter-footer {
    display: flex;
    gap: 8px;
    position: sticky;
    bottom: 0;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fffdf8;
}
#bokantajFilterSheetModal .bokantaj-filter-footer .btn {
    min-height: 48px;
    justify-content: center;
}
#bokantajFilterSheetModal .bokantaj-apply-filters {
    flex: 1.4;
    background: linear-gradient(90deg, #4a7c59, #e5b345);
    border: 0;
    color: #17231c;
    font-weight: 800;
}
#bokantajFilterSheetModal #btnResetBokantajSheetFilters { flex: 1; }
body.feed-page .bokantaj-header-art {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    filter: none;
}
@media (max-width: 767px) {
    body.feed-page .bokantaj-header-art {
        border-radius: 16px;
    }
}
body.is-native-app.feed-page .feed-hero-section.lyann-universe-header > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none;
    width: 100%;
}
body.is-native-app.feed-page .bokantaj-header-art {
    width: 100%;
    border-radius: 0;
}
.annonces-header-art,
.lyanneurs-header-art { display: none; }
body[data-explorer-mode="annonces"] .annonces-header-art,
body[data-explorer-mode="lyanneurs"] .lyanneurs-header-art {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}
body[data-explorer-mode="annonces"] .lyann-universe-frame,
body[data-explorer-mode="lyanneurs"] .lyann-universe-frame { display: none; }
body[data-explorer-mode="annonces"] .lyann-universe-copy,
body[data-explorer-mode="lyanneurs"] .lyann-universe-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 767px) {
    body[data-explorer-mode="annonces"] .annonces-header-art,
    body[data-explorer-mode="lyanneurs"] .lyanneurs-header-art {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        border-radius: 0;
    }
}
body.is-native-app[data-explorer-mode="annonces"] .annonces-header-art,
body.is-native-app[data-explorer-mode="lyanneurs"] .lyanneurs-header-art {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
}
body[data-explorer-mode="lyanneurs"] .explorer-page .lyann-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    gap: 6px;
    padding: 0 2px 2px;
}
body[data-explorer-mode="lyanneurs"] .lyann-pill {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 0.78rem;
}
@media (max-width: 767px) {
    .explorer-page .explorer-tools { margin: 8px 0 0 !important; }
    .explorer-page .explorer-results-heading { margin: 2px 0 8px !important; }
    .explorer-page .explorer-active-filters:empty { display: none; }
}
body.is-native-app .explorer-page .explorer-tools { margin: 8px 0 0 !important; }
body.is-native-app .explorer-page .explorer-results-heading { margin: 2px 0 8px !important; }
.bokantaj-header-desktop,
.annonces-header-desktop,
.lyanneurs-header-desktop { display: none; }
@media (min-width: 1024px) {
    body:not(.is-native-app).feed-page .bokantaj-header-art { display: none; }
    body:not(.is-native-app).feed-page .bokantaj-header-desktop,
    body:not(.is-native-app)[data-explorer-mode="annonces"] .annonces-header-desktop,
    body:not(.is-native-app)[data-explorer-mode="lyanneurs"] .lyanneurs-header-desktop {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 28px;
    }
    body:not(.is-native-app)[data-explorer-mode="annonces"] .annonces-header-art,
    body:not(.is-native-app)[data-explorer-mode="lyanneurs"] .lyanneurs-header-art { display: none; }
}
#bokantajFilterSheetModal.mobile-bottom-sheet {
    align-items: flex-end !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    background: rgba(24, 34, 28, 0.45) !important;
    transform: none !important;
}
#bokantajFilterSheetModal .bokantaj-filter-card {
    width: 100% !important;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 24px 24px 0 0 !important;
}
#bokantajFilterSheetModal .bokantaj-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
#bokantajFilterSheetModal .bokantaj-choice {
    width: 100%;
    justify-content: center;
    text-align: center;
}
@media (min-width: 1024px) {
    #bokantajFilterSheetModal.mobile-bottom-sheet {
        align-items: center !important;
        justify-content: center !important;
        padding: 24px !important;
    }
    #bokantajFilterSheetModal .bokantaj-filter-card {
        width: min(560px, calc(100vw - 32px)) !important;
        border-radius: 24px !important;
        max-height: min(80dvh, 720px);
        box-shadow: 0 16px 40px rgba(23, 35, 28, 0.16);
    }
}
body.keyboard-open #bokantajFilterSheetModal .bokantaj-filter-card {
    max-height: 100dvh;
}
