/* A single photo-first discovery surface; filters are an on-demand sheet. */
body[data-page="discover"].theme-connected:not(.admin-theme) {
    padding: 0;
    overflow-x: hidden;
}
body[data-page="discover"].theme-connected:not(.admin-theme) main.discover-main-layout {
    display: block;
    width: 100%;
    min-height: 100dvh;
    padding: 80px 16px 24px !important;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}
[data-discover-content] {
    width: 100%;
    max-width: 560px !important;
    margin: 0 auto;
    height: auto;
}
.discover-toolbar {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 10px;
}
.discover-toolbar h1 { font-size: 20px; font-weight: 700; letter-spacing: 0; }
.discover-modes { display: flex; width: 100%; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--hk-border, #d3d6db); border-radius: 8px; }
.discover-modes button, .discover-modes .hookie-nearby-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 4px; font-size: 14px; }
.discover-modes button[aria-pressed="true"] { background: var(--hk-selected, #263b51); color: var(--hk-on-selected, #a5ceff); }
html.dark .discover-modes { border-color: var(--hk-border, #393939); }
[data-discover-content]:has([data-discover-mode="browse"][aria-pressed="true"]) { max-width: 1120px !important; }
.discover-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; }
.discover-browse-card { min-width: 0; overflow: hidden; border-radius: 8px; background: var(--hk-surface-raised, #f2f3f5); }
html.dark .discover-browse-card { background: var(--hk-surface-raised, #202020); }
.discover-browse-card button { width: 100%; text-align: left; }
.discover-browse-card img { width: 100%; height: auto; object-fit: contain; display: block; }
.discover-browse-details { display: grid; gap: 4px; padding: 12px; font-size: 12px; }
.discover-browse-details strong { font-size: 16px; line-height: 1.4; }
.discover-browse-details > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.discover-browse-pagination { display: flex; justify-content: center; margin-top: 16px; }
.discover-browse-pagination button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--hk-text-muted, #777); border-radius: 8px; }
.discover-modes button:focus-visible, .discover-browse-card button:focus-visible, .discover-browse-pagination button:focus-visible { outline: 2px solid var(--hk-primary, #8bc5ff); outline-offset: -3px; }
@media (min-width: 768px) { .discover-browse-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; } }
.discover-toolbar button, .discover-card-heading button, .discover-card-heading a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}
.discover-toolbar button { border: 1px solid var(--hk-border, #d3d6db); }
html.dark .discover-toolbar button { border-color: var(--hk-border, #393939); }
#discoverMainCard {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    border: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    touch-action: pan-y;
    background: var(--hk-surface-raised, #262626);
    isolation: isolate;
}
/* Public listings retain natural height; interactive cards fit the available viewport below. */
#discoverMainPhoto { display: block; width: 100%; height: auto; object-fit: contain; user-select: none; }
.discover-photo-shade { display: none; }
.discover-photo-progress { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 5px; z-index: 3; }
.discover-photo-progress span { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; }
.discover-photo-progress .is-active { background: #fff; }
.discover-photo-step { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; }
.discover-photo-previous { left: 0; }
.discover-photo-next { right: 0; }
.discover-photo-step:focus-visible { outline: 2px solid white; outline-offset: -8px; background: rgba(255,255,255,.06); }
.discover-card-details { position: relative; padding: 16px 20px; color: var(--hk-text, #fff); z-index: 3; background: var(--hk-surface-raised, #202020); }
.discover-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.discover-card-heading h2 { font-size: 27px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; color: inherit; letter-spacing: 0; }
.discover-card-heading h2 > span:not(.material-symbols-outlined) { font-weight: 400; }
.discover-card-heading button, .discover-card-heading a { background: rgba(255,255,255,.15); }
.discover-card-heading h2 { min-width: 0; flex: 1; }
.discover-card-heading h2 .discover-profile-name { display: block; width: 100%; height: auto; min-height: 44px; border-radius: 0; background: transparent; color: inherit; text-decoration: none; }
.discover-profile-name > span:not(.material-symbols-outlined) { font-weight: 400; margin-left: 5px; }
.discover-profile-name:focus-visible { outline: 2px solid var(--hk-primary, #75b5ff); outline-offset: 3px; }
.discover-nearby-label { position: absolute; top: 26px; right: 12px; z-index: 3; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.discover-verified { font-size: 20px; margin-left: 6px; color: var(--hk-primary, #8bc5ff); vertical-align: middle; }
.discover-card-location { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; font-size: 14px; line-height: 1.5; margin-top: 8px; }
.discover-card-location > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-card-location > .material-symbols-outlined, .discover-card-distance { flex-shrink: 0; }
.discover-card-location .material-symbols-outlined { font-size: 18px; }
.discover-card-distance { white-space: nowrap; }
.hookie-public-discover-photo > img { display: block; width: 100%; height: auto; object-fit: contain; }
.hookie-public-discover-identity { position: relative; padding: 16px; background: var(--hk-surface-raised, #202020); }
.hookie-public-discover-identity p { flex-wrap: wrap; }
.hookie-public-discover-toolbar h1 { font-size: 24px; line-height: 32px; letter-spacing: 0; color: var(--hk-text, #202020); }
.hookie-public-discover-toolbar p { font-size: 14px; line-height: 20px; color: #555; }
html.dark .hookie-public-discover-toolbar h1 { color: #fff; }
html.dark .hookie-public-discover-toolbar p { color: var(--hk-text-secondary, #bbb); }
.discover-card-bio { font-size: 14px; line-height: 1.5; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
[data-discover-actions] { display: flex; justify-content: center; gap: 32px; margin: 16px 0 0; width: 100%; position: static; background: none; border: 0; box-shadow: none; }
[data-discover-actions] button { width: 60px; height: 60px; border-radius: 50%; box-shadow: none; }
[data-discover-actions] button[data-discover-action="reject"] { color: #f05b6b; border: 1px solid var(--hk-border, #d3d6db); background: #fff; }
html.dark [data-discover-actions] button[data-discover-action="reject"] { background: var(--hk-surface-raised, #202020); border-color: var(--hk-border, #393939); }
[data-discover-inline-message] { font-size: 14px; margin: 0 0 12px; padding: 12px; overflow-wrap: anywhere; }
[data-discover-filter-drawer], [data-discover-modal] { position: fixed; inset: 0; z-index: 220; }
[data-discover-filter-drawer].is-open, [data-discover-modal].is-open { display: flex !important; }
body.discover-filters-open, body.discover-modal-open { overflow: hidden; }
[data-discover-filter-drawer-panel] { border-radius: 8px 8px 0 0; width: 100%; max-width: 440px; margin: auto; max-height: 85dvh; padding: 24px; }
[data-discover-spa-filter-form] { display: flex; flex-direction: column; gap: 20px; }
[data-discover-spa-filter-form] input[type="range"] { height: 4px !important; min-height: 4px !important; padding: 0 !important; margin: 12px 0; }
[data-discover-spa-filter-form] .hookie-location-inline { border: 0; padding: 0; background: none; border-radius: 0; }
[data-discover-spa-filter-form] .hookie-location-inline span { color: #666; }
[data-discover-spa-filter-form] .hookie-location-inline strong { color: var(--hk-text, #222); }
html.dark [data-discover-spa-filter-form] .hookie-location-inline span { color: var(--hk-text-muted, #aaa); }
html.dark [data-discover-spa-filter-form] .hookie-location-inline strong { color: #fff; }

/* The stage keeps actions above the navigation, inside the photo surface. */
body[data-page="discover"].theme-connected:not(.admin-theme):has([data-discover-spa]) { overflow: hidden; height: 100dvh; padding: 0 !important; }
body[data-page="discover"].theme-connected:not(.admin-theme) main.discover-main-layout[data-discover-spa] {
    display: flex !important;
    height: calc(100dvh - 68px - env(safe-area-inset-bottom));
    min-height: 0 !important;
    padding: 64px 0 0 !important;
    box-sizing: border-box;
}
main[data-discover-spa] [data-discover-content] { display: flex; flex-direction: column; min-height: 0; height: 100%; }
main[data-discover-spa] .discover-toolbar,
main[data-discover-spa] .discover-modes,
main[data-discover-spa] [data-discover-inline-message] { flex-shrink: 0; }
main[data-discover-spa] .discover-card-stage { position: relative; flex: 1; min-height: 0; width: 100%; }
main[data-discover-spa] [data-discover-card-region] { height: 100%; min-height: 0; overflow: hidden; }
main[data-discover-spa] [data-discover-card-region].has-upcoming-profiles { position:relative; padding-top:12px; box-sizing:border-box; }
.discover-upcoming-card { position:absolute; bottom:12px; overflow:hidden; border-radius:8px; pointer-events:none; }
.discover-upcoming-card img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.has-upcoming-profiles #discoverMainCard { z-index:3; }
main[data-discover-spa][data-discover-mode="browse"] [data-discover-card-region],
main[data-discover-spa] [data-discover-card-region]:not(:has(#discoverMainCard)) { overflow-y: auto; }
main[data-discover-spa] #discoverMainCard { height: 100%; }
main[data-discover-spa] #discoverMainPhoto { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
main[data-discover-spa] .discover-photo-shade { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.76) 80%, rgba(0,0,0,.94) 100%); }
main[data-discover-spa] .discover-card-details { position: absolute; left: 0; right: 0; bottom: 84px; padding: 8px 16px; background: transparent; color: #fff; pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
main[data-discover-spa] .discover-card-details button, main[data-discover-spa] .discover-card-details a { pointer-events: auto; }
main[data-discover-spa] .discover-card-bio { display: none; }
.discover-card-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; line-height: 1.4; }
.discover-card-intention { color: #b9d9ff; }
.discover-card-activity { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.discover-activity-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hk-success, #55d996); flex-shrink: 0; }
main[data-discover-spa] .discover-verified { margin: 0 0 0 6px; font-size: 28px; }
@media (max-height: 650px) {
    main[data-discover-spa] .discover-card-bio { display: none; }
    main[data-discover-spa] .discover-card-details { padding: 8px 16px; }
}
main[data-discover-spa] [data-discover-card-region]:focus-visible { outline: 2px solid var(--hk-primary, #8bc5ff); outline-offset: -2px; }
main[data-discover-spa] [data-discover-actions] { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 4; min-height: 56px; padding: 0 16px; margin: 0 !important; background: transparent; border: 0; gap: 32px; }
main[data-discover-spa] [data-discover-actions] button { box-shadow: 0 4px 12px rgba(0,0,0,.25); }
main[data-discover-spa] [data-discover-actions] button[data-discover-action="reject"] { background: rgba(25,25,25,.8); border: 1px solid rgba(255,255,255,.35); color: var(--hk-text, #eee); }
main[data-discover-spa] [data-discover-actions] button[data-discover-action="like"] { background: rgba(25,25,25,.8); border: 1px solid rgba(255,255,255,.35); color: #ff4b4b; }
main[data-discover-spa] [data-discover-actions]:empty { display: none; }
main[data-discover-spa] [data-discover-actions] button { width: 56px; height: 56px; }
[data-discover-spa-filter-form] input, [data-discover-spa-filter-form] select { min-width: 0; border-radius: 8px; }
[data-discover-spa-filter-form] h3 { font-size: 20px; }
[data-discover-modal-content] { border-radius: 8px; }
.discover-modal-photo { aspect-ratio: 4/5; }
.discover-full-profile { max-width: 720px; margin-inline: auto; }
.discover-profile-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(66dvh, 600px); background: var(--hk-bg, #101010); }
.discover-profile-gallery::-webkit-scrollbar { display: none; }
.discover-profile-gallery .discover-modal-photo { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; object-fit: contain; scroll-snap-align: center; }
.discover-profile-photo-controls { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.discover-profile-photo-controls button { display: grid; place-items: center; width: 44px; height: 44px; color: var(--hk-text); }
.discover-profile-information { padding: 24px; }
.discover-profile-information h2 { font-size: 28px; line-height: 1.3; overflow-wrap: anywhere; }
.discover-profile-information h3 { font-size: 17px; margin-bottom: 12px; }
.discover-profile-sticky-actions { position: sticky; bottom: 0; background: var(--hk-surface-raised); padding: 12px; z-index: 2; }
.discover-profile-sticky-actions button { background: var(--hk-surface-highest, #242424); border-color: var(--hk-border); }
.discover-profile-sticky-actions [data-discover-modal-action="like"] { color: var(--hk-like, #ff4b4b); background: var(--hk-surface-highest, #242424); }
.discover-match { padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.discover-match h2 { font-size: 28px; font-weight: 700; }
.discover-match > button:first-child { position: absolute; top: 12px; right: 12px; }
.discover-match-heart { font-size: 56px; color: var(--hk-primary, #0058bc); font-variation-settings: 'FILL' 1; }
.discover-message-cta { background: var(--hk-primary, #0058bc); color: var(--hk-on-primary, white); padding: 12px 24px; border-radius: 8px; }
.discover-card-enter { animation: discoverEnter .24s cubic-bezier(.22,1,.36,1); }
[data-discover-profile-card] { touch-action: pan-y; will-change: transform; }
.discover-drag-feedback { position:absolute;bottom:16px;right:24px;z-index:6;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#151515;color:white;font-size:28px;opacity:var(--swipe-progress,0);pointer-events:none;font-variation-settings:'FILL' 1; }
[data-swipe="like"] .discover-drag-feedback { background:#ed3d50; }
[data-swipe="like"] .discover-drag-feedback::before { content:'favorite'; }
[data-swipe="skip"] .discover-drag-feedback { left:24px;right:auto; }
[data-swipe="skip"] .discover-drag-feedback::before { content:'close'; }
.discover-skeleton { background: #ddd; animation: discoverPulse 1s ease-in-out infinite alternate; }
html.dark .discover-skeleton { background: var(--hk-surface-raised, #262626); }
@keyframes discoverEnter { from { transform: scale(.97); } to { transform: none; } }
@keyframes discoverPulse { to { opacity: .4; } }
@media (max-width: 767px) {
    body[data-public-discover="true"] main#app-main { padding: 80px 0 24px; }
    body[data-public-discover="true"] main#app-main > section > :not(.hookie-public-profile-grid) { margin-left: 16px; margin-right: 16px; }
    body[data-public-discover="true"] .hookie-public-profile-grid { gap: 20px; }
    body[data-public-discover="true"] .hookie-public-profile-card { border-radius: 0; border-left: 0; border-right: 0; }
    body[data-page="discover"].theme-connected:not(.admin-theme) main.discover-main-layout { padding: 64px 0 94px !important; }
    #discoverMainCard { height: auto; max-height: none; border-radius: 0; }
    .discover-toolbar { padding: 0 12px; margin-bottom: 4px; }
    .discover-modes { width: calc(100% - 24px); margin: 0 12px 8px; }
    .discover-card-details { padding: 12px 16px; }
    .discover-card-heading h2 { font-size: 25px; }
    [data-discover-actions] { margin-top: 12px; }
}
@media (min-width: 768px) {
    [data-discover-filter-drawer-panel] { position: relative; inset: auto; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .discover-card-enter, .discover-card-like, .discover-card-reject, .discover-skeleton { animation: none; }
}
[data-discover-filter-drawer-panel], [data-discover-modal-content] { background: var(--hk-surface-raised, #fff); color: var(--hk-text, #222); }
html.dark [data-discover-filter-drawer-panel], html.dark [data-discover-modal-content] { background: var(--hk-surface-raised, #202020); color: var(--hk-text, #eee); }
html.dark [data-discover-spa-filter-form] input:not([type="range"]), html.dark [data-discover-spa-filter-form] select { background: var(--hk-divider, #303030); color: var(--hk-text, #eee); border-color: var(--hk-border, #444); }
html.dark [data-discover-filter-drawer-panel] .text-on-surface,
html.dark [data-discover-filter-drawer-panel] .text-on-surface-variant,
html.dark [data-discover-modal-content] .text-on-surface,
html.dark [data-discover-modal-content] .text-on-surface-variant { color: var(--hk-text, #eee); }
html.dark [data-discover-filter-drawer-panel] .text-primary { color: var(--hk-primary, #8bc5ff); }
html.dark [data-discover-filter-drawer-panel] input[type="range"] { background: #666; }
[data-discover-spa-filter-form] .hookie-location-inline-head { display: flex; justify-content: space-between; }
[data-discover-spa-filter-form] .hookie-location-inline { gap: 8px; }
[data-discover-spa-filter-form] .hookie-location-actions { display: flex; align-items: center; gap: 10px; }
[data-discover-spa-filter-form] .hookie-location-inline-hint { display: none; }


