/*
Theme Name:  Listeo ChildTheme
Theme URI: http://listeo.pro
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: Directory WordPress Theme by Purethemes
Version: 1.0
Template:  listeo
*/

/* === BOTÃO MAPS (ÁREA PRINCIPAL) === */
ul.listing-links.contact-links a.listing-links[href*="maps"] {
    background: #ff6600 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ============================== */
/* BOTÃO WHATSAPP - CLONE REAL    */
/* ============================== */
.listing-details-sidebar a.whatsapp-profile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* estilos herdados do botão laranja */
    width: 100% !important;
    height: 52px !important;
    border-radius: 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 0 30px !important;
    line-height: 1 !important;
    gap: 8px !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;

    /* a única diferença: a cor */
    background-color: #25D366 !important;
    color: #fff !important;
}

/* ícone do WhatsApp totalmente igual ao alinhamento do envelope */
.listing-details-sidebar a.whatsapp-profile i,
.listing-details-sidebar a.whatsapp-profile i::before {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    position: relative !important;
}

/* remover qualquer ícone extra herdado do tema */
.listing-details-sidebar li::before,
.listing-details-sidebar a.whatsapp-profile::before {
    content: none !important;
    display: none !important;
}

/* hover idêntico ao botão laranja */
.listing-details-sidebar a.whatsapp-profile:hover {
    opacity: .92 !important;
    transform: translateY(-1px);
    transition: .2s ease-in-out;
}

/* ======================================= */
/* BLOCO FINAL — CONTROLE DE TAMANHO REAL  */
/* ======================================= */
.listing-details-sidebar ul li a.whatsapp-profile {
    min-height: 60px !important;      /* ajuste a altura aqui */
    padding: 0 98px !important;        /* ajuste a largura aqui */
    font-size: 16px !important;        /* ajuste o tamanho da fonte aqui */
    box-sizing: border-box !important;
}
/* Corrige container para o botão não "cortar" visualmente */
.listing-details-sidebar ul,
.listing-details-sidebar ul li,
.listing-details-sidebar {
    width: 100% !important;
    display: block !important;
}
/* ===== DESBLOQUEIO DO CONTAINER DO BOTÃO WHATSAPP ===== */

/* faz o li e o ul expandirem e não cortarem o botão */
.listing-details-sidebar ul li,
.listing-details-sidebar ul {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    line-height: normal !important;
}

/* garante que o link possa crescer livremente */
.listing-details-sidebar ul li a {
    display: flex !important;
    width: 100% !important;
    overflow: visible !important;
}
/* ===== CONTROLE DE TAMANHO DO BOTÃO WHATSAPP ===== */

.listing-details-sidebar a.whatsapp-profile {
    min-height: 50px !important; /* ajuste aqui: 50 | 56 | 60 | 64 | 72 */
    padding: 0px 0px !important;   /* ajuste aqui: menor ou maior */
}

/* Corrige altura visual e padding do botão WhatsApp */
ul.listing-details-sidebar.social-profiles li a.whatsapp-profile,
.listing-details-sidebar ul.social-profiles li a.whatsapp-profile,
.listing-details-sidebar a.whatsapp-profile {
    min-height: 56px !important;  /* altura desejada */
    padding: 0 30px !important;   /* largura interna real */
    line-height: 1.2 !important;  /* mantém centralização do texto */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
/* Libera o li para não comprimir o botão */
.listing-details-sidebar ul.social-profiles li {
    display: block !important;
    height: auto !important;
}
/* REMOVE O ESMAGAMENTO DO LI */
.listing-details-sidebar.social-profiles li {
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important; /* mantém espaçamento se quiser */
    display: block !important;
}

/* ==== Ajuste definitivo do logo no mobile ==== */

#logo img,
img#listeo_logo {
    width: auto !important;
    height: auto !important;
    max-height: 45px !important;       /* ajuste ideal */
    max-width: 70vw !important;        /* impede esticar */
    object-fit: contain !important;
    transform: none !important;        /* remove zoom forçado */
}

/* MOBILE */
@media (max-width: 768px) {
    #logo img,
    img#listeo_logo {
        max-height: 42px !important;
        max-width: 65vw !important;    /* evita ocupar tela toda */
    }
}
#backtotop,
.back-to-top,
.listeo-back-to-top {
  display: none !important;
}
