/* Search and overlay helpers */
.field select {
    height: 50px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f9fbff;
    padding: 0 15px;
    outline: none;
    color: var(--text);
    font: inherit;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: grid;
    place-items: start center;
    padding: 42px 20px;
    background: rgba(17, 26, 43, 0.45);
    backdrop-filter: blur(5px);
}
.search-modal.hidden { display: none; }
.search-modal-panel {
    width: min(100%, 620px);
    max-height: calc(100vh - 84px);
    overflow: auto;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(32,55,105,.25);
    padding: 28px;
    position: relative;
}
.search-modal-panel h2 { font-size: 2rem; text-align: center; margin-bottom: 18px; }
.search-modal-input {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--brand);
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
}
.search-modal-input input { border: 0; outline: 0; width: 100%; height: 100%; background: transparent; }
.search-category-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 20px; }
.search-results-layout { display: grid; gap: 18px; }
.search-result-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
}
.search-result-row:hover { background: var(--surface-soft); }
.search-result-row img,
.search-result-row > span:first-child {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: var(--surface-accent);
    color: var(--brand-dark);
    font-weight: 800;
}
.search-result-row small { color: var(--muted); }
.search-empty { color: var(--muted); padding: 10px 0; }

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 15000;
    background: rgba(0,0,0,.88);
    display: grid;
    place-items: center;
}
.photo-lightbox.hidden { display: none; }
.photo-lightbox img {
    max-width: min(86vw, 980px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
}
.photo-lightbox-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    z-index: 1;
}
.photo-lightbox-top button,
.photo-lightbox-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
}
.photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.photo-lightbox-nav.prev { left: 18px; }
.photo-lightbox-nav.next { right: 18px; }
.album-photo-item { border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.album-report-btn { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: var(--danger); background: var(--danger-soft); font-weight: 800; }
