/* =========================================================
   PLUXDOM REAL ESTATE - SEARCH MENU ULTRA
   Archivo: /wp-content/themes/PLUXDOM-ULTRA/BUSCAR/search-menu.css
   Estado: ✅ REDISEÑADO - GRID 2x2 COMPACTO CON ESTILO PREMIUM
========================================================= */

/* =========================================================
   1. RESET & WRAPPER
========================================================= */
#pluxdom-search-wrapper,
#pluxdom-search-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#pluxdom-search-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 30;
    
    padding: 0;
}

/* =========================================================
   2. HEADER PROMOCIONAL CON LOGO Y TÍTULO
========================================================= */
#pluxdom-search-header {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pluxdom-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
}

.pluxdom-header-title {
    color: #ffffff;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.pluxdom-header-title .gold {
    color: #f2b705;
    font-weight: 800;
}

/* Subtítulo (se muestra debajo del título) */
.pluxdom-header-subtitle {
    display: block;
    color: #e0e0e0;
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 300;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* =========================================================
   3. CAJA PRINCIPAL & GRID 2x2
========================================================= */
#pluxdom-search-box {
    top: 5px;
    margin-top: 55px;
    border-radius: 12px;
    width: 100%;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 20px 18px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

#pluxdom-search-top-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}






/* =========================================================
   4. BLOQUES & LABELS (en dorado)
========================================================= */
.pluxdom-search-block {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pluxdom-top-label {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #f2b705;
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 700;
    padding: 4px 4px 6px 4px;
    cursor: default;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.pluxdom-label-icon {
    position: relative;
    left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.pluxdom-label-icon svg {
    width: 100%;
    height: 100%;
    fill: #f2b705;
    stroke: #f2b705;
}

.pluxdom-label-icon.plus {
    color: #f2b705;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.pluxdom-label-text {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

/* =========================================================
   5. SELECT & ARROW (con borde dorado sutil)
========================================================= */
.pluxdom-select-wrap {
    width: 100%;
    height: 52px;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(242, 183, 5, 0.25);
    border-radius: 8px;
    background: #1a1a1a;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.pluxdom-select-wrap:hover,
.pluxdom-select-wrap:focus-within {
    border-color: #f2b705;
}

.pluxdom-select {
    position: relative;
    left: 8px;
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    padding: 0 45px 0 16px;
    cursor: pointer;
}

.pluxdom-select::-ms-expand { display: none; }

.pluxdom-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: #f2b705;
    pointer-events: none;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.pluxdom-select-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #f2b705;
}

.pluxdom-search-block:focus-within .pluxdom-select-arrow {
    transform: translateY(-50%) rotate(270deg);
}

/* =========================================================
   6. ACTIVE LINE (dorada)
========================================================= */
.pluxdom-search-block::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: transparent;
}

.pluxdom-search-block:focus-within::after,
.pluxdom-search-block:hover::after {
    background: #f2b705;
}

/* =========================================================
   7. BOTÓN BUSCAR (dorado prominente)
========================================================= */
#pluxdom-search-button-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
}

/* Animación Pulso Respiración */
@keyframes pulse-breath {
    0%, 100% { 
        box-shadow: 0px 0px 10px 0px rgba(242, 183, 5, 0.3);
    }
    30% { 
        box-shadow: 0px 0px 15px 2px rgba(242, 183, 5, 0.6),
                    0px 0px 20px 5px rgba(242, 183, 5, 0.3);
    }
}

#pluxdom-search-button {
    min-width: 220px;
    max-width: 80%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 30px;
    background: linear-gradient(135deg, #f5c842 0%, #f2b705 55%, #d99800 100%);
    color: #000000;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    animation: pulse-breath 2s ease-in-out infinite;
    transition: transform 0.1s ease;
    letter-spacing: 0.5px;
}

#pluxdom-search-button:hover {
    transform: translateY(-3px);
}

#pluxdom-search-button:active {
    transform: translateY(-1px) scale(0.98);
}

#pluxdom-search-button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(242, 183, 5, 0.5);
}

#pluxdom-search-button:active {
    transform: scale(0.97);
}

.pluxdom-search-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(26px, 3vw, 36px);
    height: clamp(26px, 3vw, 36px);
    flex-shrink: 0;
    line-height: 1;
    color: #000000;
}

.pluxdom-search-button-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

/* =========================================================
   8. MEDIA QUERIES
========================================================= */

/* TABLET */
@media (max-width: 1024px) {
  

    #pluxdom-search-box {
        padding: 16px 14px 20px;
        gap: 14px;
    }

    #pluxdom-search-top-row {
        gap: 10px;
    }

    .pluxdom-top-label {
        min-height: 34px;
        font-size: clamp(14px, 2vw, 17px);
        padding: 2px 2px 4px;
    }

    .pluxdom-label-icon { width: 22px; height: 22px; }
    .pluxdom-label-icon.plus { font-size: 24px; }

    .pluxdom-select-wrap { height: 48px; border-radius: 6px; }
    .pluxdom-select { font-size: clamp(14px, 1.6vw, 16px); padding: 0 40px 0 14px; }
    .pluxdom-select-arrow { right: 12px; width: 13px; height: 13px; }

    #pluxdom-search-button {
        min-width: 180px;
        height: 54px;
        font-size: clamp(20px, 3vw, 26px);
        border-radius: 27px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    #pluxdom-search-header {
        padding: 10px 14px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pluxdom-header-title {
        font-size: clamp(18px, 4vw, 24px);
    }

    .pluxdom-header-subtitle {
        font-size: clamp(13px, 2.5vw, 16px);
    }

    .pluxdom-header-icon {
        font-size: 24px;
    }

    #pluxdom-search-box {
        padding: 14px 10px 18px;
        gap: 12px;
        border-radius: 10px;
    }

    #pluxdom-search-top-row {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pluxdom-top-label {
        min-height: 32px;
        font-size: 13px;
        gap: 5px;
        padding: 2px 2px 3px;
    }

    .pluxdom-label-icon { width: 20px; height: 20px; }
    .pluxdom-label-icon.plus { font-size: 22px; }

    .pluxdom-select-wrap {
        height: 44px;
        border-radius: 6px;
    }

    .pluxdom-select {
        font-size: 13px;
        padding: 0 36px 0 12px;
    }

    .pluxdom-select-arrow {
        right: 10px;
        width: 12px;
        height: 12px;
    }

    #pluxdom-search-button {
        min-width: 150px;
        max-width: 90%;
        height: 48px;
        font-size: 18px;
        border-radius: 24px;
        gap: 10px;
    }

    .pluxdom-search-button-icon {
        width: 24px;
        height: 24px;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {
    #pluxdom-search-header {
        padding: 8px 10px;
        gap: 6px;
    }

    .pluxdom-header-title {
        font-size: 16px;
    }

    .pluxdom-header-subtitle {
        font-size: 12px;
    }

    #pluxdom-search-box {
        
        padding: 12px 8px 16px;
        gap: 10px;
    }

    #pluxdom-search-top-row {
        gap: 12px;
    }

    .pluxdom-top-label {
        min-height: 28px;
        font-size: 14px;
        gap: 12px;
        padding: 0 0 2px;
    }

    .pluxdom-label-icon { width: 16px; height: 16px; }
    .pluxdom-label-icon.plus { font-size: 18px; }

    .pluxdom-select-wrap {
        height: 40px;
        border-radius: 5px;
    }

    .pluxdom-select {
        font-size: 14px;
        padding: 0 32px 0 10px;
    }

    .pluxdom-select-arrow {
        right: 8px;
        width: 10px;
        height: 10px;
    }

    #pluxdom-search-button {
        min-width: 120px;
        max-width: 100%;
        height: 44px;
        font-size: 16px;
        border-radius: 10px;
        gap: 8px;
    }

    .pluxdom-search-button-icon {
        width: 20px;
        height: 20px;
    }
}

/* EXTRA SMALL */
@media (max-width: 380px) {
    .pluxdom-top-label {
        font-size: 10px;
        min-height: 24px;
    }
    .pluxdom-select {
        font-size: 11px;
        padding: 0 28px 0 8px;
    }
    .pluxdom-select-wrap {
        height: 36px;
    }
    #pluxdom-search-button {
        height: 38px;
        font-size: 14px;
        min-width: 100px;
    }
    .pluxdom-search-button-icon {
        width: 18px;
        height: 18px;
    }
}

/* =========================================================
   9. FIX: SVG Y TEXTO - PROPAGACIÓN DE EVENTOS
========================================================= */
.pluxdom-top-label,
.pluxdom-top-label * {
    pointer-events: auto;
}

.pluxdom-label-icon svg {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.pluxdom-label-text {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.pluxdom-select-wrap {
    pointer-events: auto;
}

.pluxdom-select {
    pointer-events: auto !important;
}

/* =========================================================
   10. CLEARFIX FINAL
========================================================= */
#pluxdom-search-wrapper::after {
    content: '';
    display: table;
    clear: both;
    height: 0;
    visibility: hidden;
}

/* =========================================================
   11. PROTECCIÓN CONTRA SUPERPOSICIÓN EXTERNA
========================================================= */
#pluxdom-search-wrapper + .site-header,
#pluxdom-search-wrapper + #pluxdom-page-header,
#pluxdom-search-wrapper + header,
#pluxdom-search-wrapper + main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
}

/* =========================================================
   HEADER ICONS - SVG OPTIMIZADO
========================================================= */
.pluxdom-header-icon svg {
    width: 100%;
    height: 100%;
    max-width: 34px;
    max-height: 34px;
    display: block;
}

.pluxdom-header-icon.left svg {
    filter: drop-shadow(0 2px 6px rgba(241, 196, 15, 0.3));
}

.pluxdom-header-icon.right svg {
    filter: drop-shadow(0 2px 8px rgba(255, 179, 0, 0.4));
}

/* Mobile: reducir tamaño */
@media (max-width: 768px) {
    .pluxdom-header-icon svg {
        max-width: 24px;
        max-height: 24px;
    }
}

@media (max-width: 480px) {
    .pluxdom-header-icon svg {
        max-width: 20px;
        max-height: 20px;
    }
}



/* =========================================================
   BOTÓN BUSCAR - FEEDBACK VISUAL VERDE
========================================================= */

/* Estado normal (ya existe) */
#pluxdom-search-button {
    /* ... mantiene lo que ya tiene ... */
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* Estado al hacer clic (verde instantáneo) */
#pluxdom-search-button:active {
    background: #00a651 !important; /* Verde fuerte */
    transform: scale(0.95); /* Efecto de presión */
    box-shadow: 0 0 30px rgba(0, 166, 81, 0.6) !important;
    transition: background 0.05s ease, transform 0.05s ease;
}

/* Estado de "cargando" (cuando se dispara la búsqueda) */
#pluxdom-search-button.loading {
    background: #00a651 !important;
    box-shadow: 0 0 40px rgba(0, 166, 81, 0.8) !important;
    pointer-events: none; /* Evita clics repetidos */
    opacity: 0.85;
    transition: background 0.1s ease;
}

/* Animación de pulso mientras carga */
@keyframes loading-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

#pluxdom-search-button.loading {
    animation: loading-pulse 0.6s ease-in-out infinite;
}








@media (min-width: 1024px) {
#pluxdom-search-top-row {
    width: 300%;
    grid-template-columns: repeat(4, minmax(0, 1fr));

}





#pluxdom-search-button-row {
    left: 15px;
    position: relative;
    bottom: 0px;
    
    
}


#pluxdom-search-box {
   flex-direction: unset;
   gap: 1px;
   top: -5px; 
   margin-top: 70px;
   border: 1px solid #d4a0175e;

}



.pluxdom-select {
    background: #000000;
}



}



/* =====================================================
   WEB
===================================================== */
@media (min-width: 1024px) {
.pluxdom-top-label {
    font-weight: 1;
    font-size: 14px;
}
}




