/*
Theme Name: ExpertHive Child
Theme URI: https://tusitio.com
Description: Child theme for ExpertHive
Author: Tu Nombre
Template: experthive
Version: 1.0.0
Text Domain: experthive-child
*/

/* =====================================================
   AJUSTES GENERALES (Globales)
===================================================== */
.home .site-content {
    padding: 0;
}

/* ⚠️ Esto afecta todo el sitio. Mantener solo si realmente lo necesitas */
body .is-layout-flex {
    width: 70%;
}


/* =====================================================
   VENDORS LIST LAYOUT
   Aplica en:
     - Página principal vendors (page-id-25)
     - Vendor categories / search (hp-template--vendors-view-page)
===================================================== */

body.page-id-25 .hp-vendor--view-block,
body.hp-template--vendors-view-page .hp-vendor--view-block {
    display: flex;                  /* Layout horizontal */
    gap: 20px;                      /* Espacio entre imagen y contenido */
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
}


/* =============================
   Imagen del Vendor (Izquierda)
============================= */
body.page-id-25 .hp-vendor__header,
body.hp-template--vendors-view-page .hp-vendor__header {
    flex: 0 0 160px;
    padding: 0 !important;
}

body.page-id-25 .hp-vendor__image img,
body.hp-template--vendors-view-page .hp-vendor__image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}


/* =============================
   Contenido del Vendor (Derecha)
============================= */
body.page-id-25 .hp-vendor__content,
body.hp-template--vendors-view-page .hp-vendor__content {
    flex: 1;
    padding: 0 !important;
}


/* =============================
   Nombre y descripción
============================= */
body.page-id-25 .hp-vendor__name,
body.hp-template--vendors-view-page .hp-vendor__name {
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

body.page-id-25 .hp-vendor__description,
body.hp-template--vendors-view-page .hp-vendor__description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
}


/* =============================
   Footer del Vendor
============================= */
body.page-id-25 .hp-vendor__footer,
body.hp-template--vendors-view-page .hp-vendor__footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* =============================
   Atributos secundarios
============================= */
body.page-id-25 .hp-vendor__attributes,
body.hp-template--vendors-view-page .hp-vendor__attributes {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

body.page-id-25 .hp-attribute,
body.hp-template--vendors-view-page .hp-attribute {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    display: flex;
    align-items: center;
}

body.page-id-25 .hp-attribute-label,
body.hp-template--vendors-view-page .hp-attribute-label {
    font-weight: 600;
    margin-right: 5px;
    color: #333;
    display: flex;
    align-items: center;
}


/* =============================
   Quitar grid y forzar lista
============================= */
body.page-id-25 .hp-vendors .hp-row,
body.hp-template--vendors-view-page .hp-vendors .hp-row {
    display: block;
}

body.page-id-25 .hp-vendors [class*="hp-col"],
body.hp-template--vendors-view-page .hp-vendors [class*="hp-col"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}


/* =============================
   Icono Instagram (Global)
============================= */
.hp-vendor__attribute--instagram .hp-vendor__attribute-icon {
    color: #E1306C;
    font-size: 16px;
}


/* =====================================================
   MENÚ DE CATEGORÍAS DE VENDOR
===================================================== */
.vendor-categories-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 10px;
}

.vendor-categories-menu,
.vendor-categories-menu .wp-block-navigation__container {
    width: 100% !important;
    max-width: 100% !important;
}

.vendor-categories-menu a {
    background: #f3f3f3;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.vendor-categories-menu a:hover {
    background: #0f4372;
    color: #fff !important;
}

.vendor-categories-menu .current-menu-item a {
    background: #111;
    color: #fff;
}

/* Atributos secundarios alineados a la izquierda dentro de listing */
.hp-listing .hp-vendor__attributes--secondary {
    justify-content: flex-start !important;
    text-align: left;
}

/*Header H1 */

.header-hero__content h1 {
font-size: 1.75rem!important;
}
.header-hero--title h1 {margin:1rem 0!important;}


 /* ===========================
    Botón "Publicar una Solicitud" verde sólido para <a>
 =========================== */
.hp-menu__item--request-submit {
    display: inline-block;              
    background-color: #00876F !important;  /* Fondo verde sólido */
    color: #ffffff !important;             /* Texto blanco */
    font-weight: 500;                   
    font-size: 16px;                    
    padding: 6px 20px;                 
    border-radius: 4px;                 
    text-decoration: none !important;     /* Quitar subrayado */
    border: 2px solid transparent;        /* Borde inicial transparente para no empujar */
    transition: all 0.3s ease;         
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    position: relative;
}

/* Hover / efecto outline elegante sin mover botones cercanos */
.hp-menu__item--request-submit:hover {
    background-color: #ffffff !important;   /* Fondo blanco */
    color: #00876F !important;              /* Texto verde */
    border: 2px solid #00876F !important;   /* Borde verde */
    box-shadow: 0 6px 10px rgba(0,0,0,0.15); /* Sombra más marcada */
}

/* Icono dentro del botón */
.hp-menu__item--request-submit .hp-icon,
.hp-menu__item--request-submit .hp-icon::before {
    color: #ffffff;                         /* Normalmente blanco */
    transition: color 0.3s ease;
}

/* Icono cambia a verde en hover */
.hp-menu__item--request-submit:hover .hp-icon,
.hp-menu__item--request-submit:hover .hp-icon::before {
    color: #00876F !important;              /* Icono verde en hover */
}

/* Focus / accesibilidad */
.hp-menu__item--request-submit:focus {
    outline: 2px solid #00876F;            
    outline-offset: 2px;
}

/* Responsive - pantallas pequeñas */
@media (max-width: 600px) {
    .hp-menu__item--request-submit {
        font-size: 14px;
        padding: 6px 16px;
    }
}

/* Responsive - en pantallas pequeñas */
@media (max-width: 600px) {
    .hp-menu__item--request-submit {
        font-size: 14px;
        padding: 8px 16px;
    }
}

 /* ===========================
    Icono dentro del botón "Publicar una Solicitud"
 =========================== */
.hp-menu__item--request-submit .hp-icon {
    color: #ffffff !important;   /* Forzar color blanco */
}

/* Si el icono usa ::before */
.hp-menu__item--request-submit .hp-icon::before {
    color: #ffffff !important;   /* Forzar color blanco en pseudo-elemento */
}

/* =====================================================
   RESPONSIVE (MÓVIL)
===================================================== */

@media (max-width: 768px) {

    /* Vendors vertical en móvil */
    body.page-id-25 .hp-vendor--view-block,
    body.hp-template--vendors-view-page .hp-vendor--view-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    body.page-id-25 .hp-vendor__header,
    body.hp-template--vendors-view-page .hp-vendor__header {
        flex: unset;
    }

    body.page-id-25 .hp-vendor__image img,
    body.hp-template--vendors-view-page .hp-vendor__image img {
        width: 120px;
        height: 120px;
    }

}

@media (max-width: 600px) {
    .vendor-categories-menu a {
        padding: 5px 12px;
        font-size: 12px;
    }
}