/* ══════════════════════════════════════════════════════════════
   PartyRent Flevoland - Live Zoeksysteem CSS
   ══════════════════════════════════════════════════════════════ */

/* Trigger knop in header */
.desksearch {
    flex: 1;
}

.desksearch .container {
    width: 100%;
}

.pr-search-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.pr-search-trigger:hover {
    border-color: var(--maincolor);
    color: #475569;
}

.pr-search-trigger i {
    font-size: 14px;
}

.pr-search-trigger-mobile {
    padding: 10px 14px;
    border-radius: 8px;
}

.pr-search-trigger-mobile span {
    display: none;
}

/* ──────────────────────────────────────────
   Overlay
   ────────────────────────────────────────── */
#pr-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
}

#pr-search-overlay.active {
    display: flex;
}

/* ──────────────────────────────────────────
   Search bar
   ────────────────────────────────────────── */
.pr-search-header {
    width: 90%;
    max-width: 680px;
}

.pr-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    gap: 12px;
}

.pr-search-icon {
    color: #94a3b8;
    font-size: 18px;
    flex-shrink: 0;
}

#pr-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a2e;
    padding: 14px 0;
    background: transparent;
    font-family: inherit;
}

#pr-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.pr-search-count {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 600;
}

.pr-search-close {
    width: 44px;
    height: 44px;
    border: none;
    background: #f1f5f9;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.15s;
}

.pr-search-close:hover {
    background: #e2e8f0;
    color: #1a1a2e;
}

/* ──────────────────────────────────────────
   Resultaten
   ────────────────────────────────────────── */
.pr-search-body {
    width: 90%;
    max-width: 680px;
    margin-top: 12px;
}

.pr-search-results {
    background: #fff;
    border-radius: 14px;
    overflow-y: auto;
    max-height: 60vh;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pr-search-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}

.pr-search-item:last-child a {
    border-bottom: none;
}

.pr-search-item a:hover,
.pr-search-item-active a {
    background: #f8fafc;
}

.pr-search-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.pr-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pr-search-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 18px;
}

.pr-search-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-search-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-search-title mark {
    background: #fef3c7;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.pr-search-cats {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-search-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--maincolor);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ──────────────────────────────────────────
   Lege states
   ────────────────────────────────────────── */
.pr-search-empty,
.pr-search-start {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pr-search-empty i,
.pr-search-start i {
    font-size: 36px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: block;
}

.pr-search-empty p,
.pr-search-start p {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

/* ──────────────────────────────────────────
   Responsive
   ────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    #pr-search-overlay {
        padding-top: 20px;
    }

    .pr-search-header,
    .pr-search-body {
        width: 95%;
    }

    .pr-search-bar {
        border-radius: 12px;
    }

    #pr-search-input {
        font-size: 16px;
    }

    .pr-search-thumb {
        width: 48px;
        height: 48px;
    }

    .pr-search-results {
        max-height: 70vh;
    }
}
