
/* Container til søgefelt og baggrund */
#broad_search_header {
    background-color: #e6d7c3;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: -100%;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: top 0.5s ease;
    padding-top: 80px; /* lidt afstand til toppen */
}

/* Aktiv class */
#broad_search_header.broad_active {
    top: 0;
}

/* Søgefelt */
#search_input_mobile {
    width: 60%;
    max-width: 500px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

/* Luk-knap */
#close_search_overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Result container */
#search_results {
    width: 90%;
    max-width: 600px;
    margin-top: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Hver result */
.search-item {
    background: #fff;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: background 0.2s;
}
.search-item:hover {
    background: #f0e6d0;
}
.search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
}
.search-item .info {
    display: flex;
    flex-direction: column;
}
.search-item .info .title {
    font-weight: bold;
}
.search-item .info .subtitle {
    font-size: 12px;
    color: #555;
}

/* Mobil responsivitet */
@media (max-width: 768px) {
    #search_input_mobile {
        width: 90%;
    }
    #close_search_overlay {
        top: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 18px;
    }
}
