/**
 * Ibeu Map Frontend Styles
 * Version: 1.2.9
 * InfoWindow: WhatsApp icon, card maior, respiro
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset Escopado */
#ibeu-map-root {
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    color: #1f2937;
}

#ibeu-map-root * {
    box-sizing: border-box;
}

/* Container Principal */
#ibeu-map-root .ibeu-app {
    display: flex;
    flex-direction: column;
    background-color: #f3f4f6;
    width: 100%;
    height: 760px; /* Aumentado para incluir barra de busca */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    position: relative;
}

@media (min-width: 768px) {
    #ibeu-map-root .ibeu-app {
        flex-direction: column; /* Mantém coluna para search bar ficar em cima */
    }
}

/* Main Content (Sidebar + Map) */
#ibeu-map-root .ibeu-main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

@media (min-width: 768px) {
    #ibeu-map-root .ibeu-main-content {
        flex-direction: row;
    }
}

/* ========================================
   BARRA DE BUSCA
   ======================================== */

#ibeu-map-root .ibeu-search-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    padding: 12px 16px;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

#ibeu-map-root .ibeu-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

#ibeu-map-root .ibeu-search-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
}

#ibeu-map-root .ibeu-search-input {
    width: 100%;
    padding: 12px 44px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#ibeu-map-root .ibeu-search-input::placeholder {
    color: #9ca3af;
}

#ibeu-map-root .ibeu-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
}

#ibeu-map-root .ibeu-search-clear {
    position: absolute;
    right: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 2;
}

#ibeu-map-root .ibeu-search-clear:hover {
    background: #e5e7eb;
    color: #1f2937;
}

#ibeu-map-root .ibeu-search-clear svg {
    width: 16px;
    height: 16px;
}

/* Resultados da Busca */
#ibeu-map-root .ibeu-search-results {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    max-width: 600px;
    margin: 4px auto 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

#ibeu-map-root .ibeu-search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#ibeu-map-root .ibeu-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

#ibeu-map-root .ibeu-search-result-item:last-child {
    border-bottom: none;
}

#ibeu-map-root .ibeu-search-result-item:hover {
    background: #f0f9ff;
}

#ibeu-map-root .ibeu-result-icon {
    width: 24px;
    height: 24px;
    color: #1e3a5f;
    flex-shrink: 0;
}

#ibeu-map-root .ibeu-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#ibeu-map-root .ibeu-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ibeu-map-root .ibeu-result-name strong {
    color: #1e3a5f;
    background: #dbeafe;
    padding: 0 2px;
    border-radius: 2px;
}

#ibeu-map-root .ibeu-result-city {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ibeu-map-root .ibeu-search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Mobile: Barra de Busca */
@media (max-width: 767px) {
    #ibeu-map-root .ibeu-search-bar {
        padding: 10px 12px;
    }

    #ibeu-map-root .ibeu-search-input {
        padding: 10px 40px;
        font-size: 14px;
        border-radius: 10px;
    }

    #ibeu-map-root .ibeu-search-icon {
        width: 18px;
        height: 18px;
        left: 12px;
    }

    #ibeu-map-root .ibeu-search-results {
        left: 12px;
        right: 12px;
        max-height: 250px;
    }

    #ibeu-map-root .ibeu-search-result-item {
        padding: 10px 12px;
        gap: 10px;
    }

    #ibeu-map-root .ibeu-result-icon {
        width: 20px;
        height: 20px;
    }

    #ibeu-map-root .ibeu-result-name {
        font-size: 13px;
    }

    #ibeu-map-root .ibeu-result-city {
        font-size: 11px;
    }
}

/* --- Sidebar (Lista) --- */
#ibeu-map-root .ibeu-sidebar {
    width: 100%;
    height: 45%;
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;
    z-index: 10;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    #ibeu-map-root .ibeu-sidebar {
        width: 420px;
        min-width: 420px;
        height: 100%;
        border-right: 1px solid #e5e7eb;
        border-bottom: none;
    }
}

/* Header */
#ibeu-map-root .ibeu-sidebar-header {
    padding: 24px 24px 16px;
    background-color: #f3f4f6;
    flex-shrink: 0;
}

#ibeu-map-root .ibeu-sidebar-header h1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
}

/* Subtítulo - escondido no desktop */
#ibeu-map-root .ibeu-mobile-subtitle {
    display: none;
}

/* Lista */
#ibeu-map-root .ibeu-unit-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

/* Scrollbar estilizada */
#ibeu-map-root .ibeu-unit-list::-webkit-scrollbar {
    width: 6px;
}

#ibeu-map-root .ibeu-unit-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

#ibeu-map-root .ibeu-unit-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#ibeu-map-root .ibeu-unit-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* --- CARD DA LISTA --- */
#ibeu-map-root .ibeu-unit-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 20px 24px;
    margin-bottom: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

#ibeu-map-root .ibeu-unit-card:hover {
    box-shadow: none;
    border-color: #e5e7eb;
}

#ibeu-map-root .ibeu-unit-card.active {
    border-color: #fca5a5;
    background-color: #fff;
}

/* Coluna Esquerda: Info */
#ibeu-map-root .ibeu-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#ibeu-map-root .ibeu-unit-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
}

#ibeu-map-root .ibeu-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
}

#ibeu-map-root .ibeu-info-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #1e40af;
}

/* Coluna Direita: Ação */
#ibeu-map-root .ibeu-card-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 80px;
    border-left: 1px solid #f3f4f6;
    padding-left: 16px;
}

#ibeu-map-root .ibeu-pin-icon-large {
    color: #dc2626;
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

#ibeu-map-root .ibeu-view-details-text {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

/* Footer Sidebar */
#ibeu-map-root .ibeu-footer {
    padding: 16px;
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    background-color: #f3f4f6;
}

/* --- Mapa --- */
#ibeu-map-root .ibeu-map-container {
    flex: 1;
    height: 55%;
    background-color: #e5e7eb;
    position: relative;
}

@media (min-width: 768px) {
    #ibeu-map-root .ibeu-map-container { height: 100%; }
}

#ibeu-map-root .ibeu-map { width: 100%; height: 100%; }

/* =============================================
   INFOWINDOW - Card do Pin no Mapa
   Design baseado no Figma - 280px largura
   ============================================= */

/* Reset dos estilos padrão do Google Maps InfoWindow */
.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    overflow: hidden !important;
    max-width: none !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-width: none !important;
}

.gm-style-iw-tc {
    display: none !important;
}

.gm-style-iw-chr {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
}

.gm-ui-hover-effect {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.gm-ui-hover-effect > span {
    background-color: #374151 !important;
    width: 10px !important;
    height: 10px !important;
}

/* Container Principal do InfoWindow */
.ibeu-infowindow {
    width: 280px;
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 16px;
    overflow: hidden;
}

/* Imagem do Topo - 20% mais alto */
.ibeu-infowindow-img-container {
    width: 100%;
    height: 160px; /* Era 140px */
    position: relative;
    background-color: #f3f4f6;
    overflow: hidden;
}

.ibeu-infowindow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ibeu-infowindow-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.ibeu-infowindow-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #9ca3af;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* Corpo - COM MAIS RESPIRO VERTICAL */
.ibeu-infowindow-body {
    padding: 20px 20px 22px 20px; /* Mais padding vertical */
    display: flex;
    flex-direction: column;
    gap: 18px; /* Mais espaço entre elementos */
}

/* Conteúdo de Info - mais respiro */
.ibeu-infowindow-content {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Mais espaço entre linhas */
}

/* Título */
.ibeu-infowindow-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* Linhas de Informação */
.ibeu-infowindow-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}

.ibeu-infowindow-row span,
.ibeu-infowindow-row a {
    flex: 1;
}

.ibeu-infowindow-row a {
    color: #475569;
    text-decoration: none;
}

.ibeu-infowindow-row a:hover {
    text-decoration: underline;
    color: #1e293b;
}

/* Ícones */
.ibeu-infowindow-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ibeu-infowindow-icon.pin { color: #ef4444; }
.ibeu-infowindow-icon.email { color: #64748b; }
.ibeu-infowindow-icon.phone { color: #3b82f6; }

/* Container dos Botões */
.ibeu-infowindow-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Botão Base */
.ibeu-infowindow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 10px 12px;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.ibeu-infowindow-btn:hover {
    transform: translateY(-1px);
}

.ibeu-infowindow-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

/* Botão Ver Detalhes - Rosa/Vermelho - MAIOR */
.ibeu-iw-btn-details {
    flex: 1;
    background: linear-gradient(to right, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.ibeu-iw-btn-details:hover {
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

/* Botão WhatsApp - Verde - QUADRADINHO só ícone */
.ibeu-iw-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: none;
    padding: 0;
    background: linear-gradient(to right, #25d366 0%, #128c7e 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
}

.ibeu-iw-btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.ibeu-iw-btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}


/* --- Mensagens de Erro --- */
#ibeu-map-root .ibeu-state-msg {
    padding: 40px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

#ibeu-map-root .ibeu-error-box {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white; padding: 32px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    width: 90%; max-width: 400px; text-align: center; z-index: 50;
}

#ibeu-map-root .ibeu-error-title { color: #dc2626; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
#ibeu-map-root .ibeu-error-text { color: #4b5563; font-size: 14px; line-height: 1.5; }

/* =============================================
   MODAL - Detalhes da Unidade (Design Referência)
   Tamanho: 75vw x 68vh
   ============================================= */

#ibeu-map-root .ibeu-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 24px;
}

#ibeu-map-root .ibeu-modal.open {
    pointer-events: auto;
    opacity: 1;
}

#ibeu-map-root .ibeu-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

#ibeu-map-root .ibeu-modal-content {
    position: relative;
    width: 82vw;
    height: 78vh;
    max-width: 1250px;
    max-height: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    z-index: 1;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
    #ibeu-map-root .ibeu-modal-content {
        width: 95vw;
        height: 90vh;
        flex-direction: column;
        overflow-y: auto;
    }
}

/* Botão Fechar */
#ibeu-map-root .ibeu-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.2s;
}

#ibeu-map-root .ibeu-modal-close:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.05);
}

/* ===== Coluna Esquerda: Imagem/Carousel ===== */
#ibeu-map-root .ibeu-modal-image-area {
    position: relative;
    width: 35%;
    min-width: 280px;
    background: #1f2937;
    flex-shrink: 0;
    overflow: hidden;
}

@media (max-width: 900px) {
    #ibeu-map-root .ibeu-modal-image-area {
        width: 100%;
        height: 200px;
        min-width: auto;
    }
}

#ibeu-map-root .ibeu-modal-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
}

#ibeu-map-root .ibeu-modal-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 64px;
    font-weight: 700;
}

/* Carousel Arrows - Sempre visíveis */
#ibeu-map-root .ibeu-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transition: all 0.2s;
    z-index: 10;
}

#ibeu-map-root .ibeu-carousel-nav:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

#ibeu-map-root .ibeu-carousel-prev { left: 10px; }
#ibeu-map-root .ibeu-carousel-next { right: 10px; }

/* Carousel Dots */
#ibeu-map-root .ibeu-carousel-dots {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

@media (max-width: 900px) {
    #ibeu-map-root .ibeu-carousel-dots { bottom: 80px; }
}

#ibeu-map-root .ibeu-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

#ibeu-map-root .ibeu-carousel-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 4px;
}

/* Overlay Info sobre a imagem */
#ibeu-map-root .ibeu-modal-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

#ibeu-map-root .ibeu-modal-city-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #dc2626;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ibeu-map-root .ibeu-modal-overlay-info h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

#ibeu-map-root .ibeu-modal-address-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

#ibeu-map-root .ibeu-modal-address-line svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== Coluna Direita: Conteúdo ===== */
#ibeu-map-root .ibeu-modal-details-area {
    flex: 1;
    overflow: hidden;
    padding: 24px 28px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    #ibeu-map-root .ibeu-modal-details-area {
        padding: 20px 18px;
        overflow-y: auto;
    }
}

/* Rating Section */
#ibeu-map-root .ibeu-rating-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

#ibeu-map-root .ibeu-rating-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f0fdf4;
    border-radius: 10px;
}

#ibeu-map-root .ibeu-rating-number {
    font-size: 16px;
    font-weight: 700;
    color: #166534;
}

#ibeu-map-root .ibeu-rating-stars {
    display: flex;
    gap: 2px;
}

#ibeu-map-root .ibeu-rating-stars svg {
    width: 14px;
    height: 14px;
    color: #facc15;
}

#ibeu-map-root .ibeu-rating-stars svg.empty {
    color: #d1d5db;
}

#ibeu-map-root .ibeu-rating-text {
    font-size: 13px;
    color: #9ca3af;
}

/* Content Grid - 2 columns */
#ibeu-map-root .ibeu-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

@media (max-width: 900px) {
    #ibeu-map-root .ibeu-modal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Section Title */
#ibeu-map-root .ibeu-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4b5563;
    margin: 0 0 12px 0;
}

/* Botão WhatsApp */
#ibeu-map-root .ibeu-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 20px;
    background: #25D366;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

#ibeu-map-root .ibeu-whatsapp-btn:hover {
    background: #1fb855;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

#ibeu-map-root .ibeu-whatsapp-btn svg {
    width: 18px;
    height: 18px;
}

/* About Section - Largura total, acima do grid */
#ibeu-map-root .ibeu-about-section {
    margin-bottom: 20px;
    flex-shrink: 0;
}

#ibeu-map-root .ibeu-about-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
}

/* Features List */
#ibeu-map-root .ibeu-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#ibeu-map-root .ibeu-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

#ibeu-map-root .ibeu-feature-item svg {
    width: 14px;
    height: 14px;
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Schedule Box */
#ibeu-map-root .ibeu-schedule-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px 20px 20px;
    border: 1px solid #e2e8f0;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

#ibeu-map-root .ibeu-schedule-box .ibeu-actions-row {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

#ibeu-map-root .ibeu-schedule-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1f2937;
    margin-bottom: 14px;
}

#ibeu-map-root .ibeu-schedule-header svg {
    width: 16px;
    height: 16px;
    color: #dc2626;
}

#ibeu-map-root .ibeu-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#ibeu-map-root .ibeu-schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

#ibeu-map-root .ibeu-schedule-item:last-child {
    border-bottom: none;
}

#ibeu-map-root .ibeu-schedule-day {
    color: #6b7280;
    font-weight: 500;
}

#ibeu-map-root .ibeu-schedule-time {
    font-weight: 600;
    color: #1f2937;
}

#ibeu-map-root .ibeu-schedule-time.closed {
    color: #ef4444;
}

/* Contact Section */
#ibeu-map-root .ibeu-contact-section {
    margin-top: auto;
}

#ibeu-map-root .ibeu-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#ibeu-map-root .ibeu-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #1f2937;
}

#ibeu-map-root .ibeu-contact-item svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Telefone + Email na mesma linha */
#ibeu-map-root .ibeu-contact-row-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 4px;
}

#ibeu-map-root .ibeu-contact-row-inline .ibeu-contact-item {
    flex: 0 0 auto;
}

/* Actions Row - Menores, embaixo do horário */
#ibeu-map-root .ibeu-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

#ibeu-map-root .ibeu-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

#ibeu-map-root .ibeu-btn-action:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 3px 8px rgba(220,38,38,0.25);
}

#ibeu-map-root .ibeu-btn-action svg {
    width: 14px;
    height: 14px;
}

/* =============================================
   MOBILE STYLES - Ajustes específicos
   ============================================= */

@media (max-width: 767px) {
    
    /* Container principal mobile - altura MAIOR para caber lista + mapa */
    #ibeu-map-root .ibeu-app {
        height: 130vh; /* Mais alto para caber tudo */
        max-height: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    /* Main content - ocupa espaço restante após search bar */
    #ibeu-map-root .ibeu-main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
    }
    
    /* Sidebar - Lista de unidades (parte superior) - CABE 3 CARDS */
    #ibeu-map-root .ibeu-sidebar {
        height: auto;
        max-height: none;
        min-height: 340px; /* Altura para caber 3 cards */
        flex-shrink: 0;
        flex-basis: 380px; /* Altura base para 3 cards + header */
    }
    
    /* Header mobile - padding reduzido */
    #ibeu-map-root .ibeu-sidebar-header {
        padding: 16px 12px 10px; /* Metade do padding lateral */
        text-align: center;
    }
    
    #ibeu-map-root .ibeu-sidebar-header h1 {
        font-size: 18px !important;
    }
    
    /* Subtítulo mobile - visível */
    #ibeu-map-root .ibeu-mobile-subtitle {
        display: block !important;
        font-size: 12px;
        color: #6b7280;
        margin: 4px 0 0 0;
    }
    
    /* Lista - padding lateral reduzido pela metade */
    #ibeu-map-root .ibeu-unit-list {
        padding: 0 12px 12px; /* Era 24px, agora 12px */
    }
    
    /* CARD - padding reduzido */
    #ibeu-map-root .ibeu-unit-card {
        padding: 12px 14px; /* Era 20px 24px */
        margin-bottom: 10px;
        border-radius: 16px;
        gap: 10px;
    }
    
    /* Coluna esquerda do card */
    #ibeu-map-root .ibeu-card-left {
        gap: 2px; /* Aproximar título e endereço */
    }
    
    /* Nome da unidade mobile */
    #ibeu-map-root .ibeu-unit-name {
        font-size: 14px !important;
        margin: 0 0 2px 0 !important; /* Menos espaço abaixo */
    }
    
    /* Info row - endereço mais próximo */
    #ibeu-map-root .ibeu-info-row {
        gap: 6px; /* Menos gap entre ícone e texto */
        font-size: 12px;
    }
    
    #ibeu-map-root .ibeu-info-row svg {
        width: 14px;
        height: 14px;
        margin-top: 1px;
    }
    
    /* Coluna direita - Ver detalhes */
    #ibeu-map-root .ibeu-card-right {
        min-width: 65px;
        padding-left: 10px; /* Menos padding */
        gap: 2px;
    }
    
    /* Ícone pin maior */
    #ibeu-map-root .ibeu-pin-icon-large {
        width: 28px;
        height: 28px;
    }
    
    /* Ver detalhes - fonte menor, mais compacto */
    #ibeu-map-root .ibeu-view-details-text {
        font-size: 10px;
        letter-spacing: -0.3px;
    }
    
    /* MAPA - ocupa ~70% da tela no mobile */
    #ibeu-map-root .ibeu-map-container {
        flex: 1;
        height: auto;
        min-height: 55vh; /* Pelo menos 55% da viewport */
    }
    
    #ibeu-map-root .ibeu-map {
        width: 100%;
        height: 100%;
        min-height: 55vh;
    }
    
    /* InfoWindow mobile - COM RESPIRO */
    .ibeu-infowindow {
        width: 250px;
    }
    
    .ibeu-infowindow-img-container {
        height: 110px;
    }
    
    .ibeu-infowindow-body {
        padding: 14px 14px 16px;
        gap: 12px;
    }
    
    .ibeu-infowindow-content {
        gap: 8px;
    }
    
    .ibeu-infowindow-title {
        font-size: 14px;
        line-height: 1.25;
    }
    
    .ibeu-infowindow-row {
        font-size: 11px;
        gap: 6px;
        line-height: 1.35;
    }
    
    .ibeu-infowindow-icon {
        width: 13px;
        height: 13px;
        margin-top: 1px;
    }
    
    .ibeu-infowindow-buttons {
        gap: 8px;
    }
    
    .ibeu-infowindow-btn {
        padding: 9px 10px;
        font-size: 12px;
        gap: 5px;
        border-radius: 8px;
    }
    
    .ibeu-infowindow-btn svg {
        width: 13px;
        height: 13px;
    }
    
    /* WhatsApp quadradinho mobile */
    .ibeu-iw-btn-whatsapp {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 8px;
    }
    
    .ibeu-iw-btn-whatsapp svg {
        width: 20px;
        height: 20px;
    }
}
