/* === Popup recherche fullscreen - JLL === */

body.jll-search-active {
    overflow: hidden;
}

.jll-header-search-icon-group {
    cursor: pointer;
}

.jll-header-search-content {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.jll-search-active .jll-header-search-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jll-header-search-content .wp-block-search {
    width: 90%;
    max-width: 700px;
}

.jll-header-search-content .wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    border: none;
    background: #fff;
    border-radius: 4px;
    padding: 4px 8px;
}

.jll-header-search-content .wp-block-search__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: #000;
    caret-color: #000; /* curseur noir clignotant */
    font-size: 2.2rem;
    line-height: 1.4;
    padding: 12px 10px;
}

.jll-header-search-content .wp-block-search__input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

/* Bouton valider (activer "Icône" dans les réglages du bloc Search) */
.jll-header-search-content .wp-block-search__button {
    background: transparent;
    border: none;
    color: #000;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.jll-header-search-content .wp-block-search__button svg {
    width: 26px;
    height: 26px;
    fill: #000;
}

/* Bouton fermeture - croix en CSS pur, injectée en JS */
.jll-search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.jll-search-close::before,
.jll-search-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 2px;
    background: #fff; /* croix blanche car posée sur le fond noir, hors du champ */
}

.jll-search-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.jll-search-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 600px) {
    .jll-header-search-content .wp-block-search__input {
        font-size: 1.4rem;
    }
}
