﻿body {
}

:root {
    --brand: #25AAE1;
    --line: #e5e7eb;
    --muted: #64748b;
}

.vb-grid.stacked {
    grid-template-columns: 1fr; /* 1 columna */
    gap: 20px;
    row-gap: 24px;
    max-width: 1100px; /* largo agradable */
    margin: 10px auto; /* centradas */
    background: #F6F9FF;
}

.vb-card {
    min-height: 92px
}

/* Tarjeta */
.vi-card .avatar.img,
.avatar.small.img {
    background: linear-gradient(135deg, #E7F4FF, #D5ECFF); /* celeste suave */
    border: 1px solid #E0EEF9;
}

    .vi-card .avatar.img img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    .avatar.small.img img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

/* opcional: sombra muy ligera como en iOS */
.vi-card .avatar, .avatar.small {
    box-shadow: 0 6px 16px rgba(63,123,255,.20);
}

.vi-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

    .vi-card .avatar {
        width: 75px;
        height: 75px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: linear-gradient(135deg,#47c1ff,#3f7bff);
        box-shadow: 0 6px 16px rgba(63,123,255,.25);
    }

        .vi-card .avatar .material-symbols-rounded {
            color: #fff;
            font-size: 28px;
        }

    .vi-card .line1,
    .vi-card .line1 {
        display: flex;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .vi-card .code {
        color: #0b5a7a;
        font-weight: 700;
        color: #0b5a7a;
        line-height: 1.15;
    }

    .vi-card .name {
        font-weight: 600;
        color: #111827;
        line-height: 1.15;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vi-card .meta {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        font-size: .9rem;
        margin-top: 4px;
    }

        .vi-card .meta .pill {
            background: #f1f5f9;
            border: 1px solid var(--line);
            padding: 2px 8px;
            border-radius: 999px;
        }

        .vi-card .meta .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #cbd5e1;
        }


/* Fila */
.vi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.avatar.small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#47c1ff,#3f7bff);
    box-shadow: 0 6px 16px rgba(63,123,255,.25);
}

    .avatar.small .material-symbols-rounded {
        color: #fff;
        font-size: 24px;
    }

.row-left .info .code {
    font-weight: 700;
    color: #0b5a7a;
}

.row-left .info .name {
    font-weight: 600;
    color: #111827;
}

.row-left .info .meta {
    color: #64748b;
    font-size: .88rem;
}

.row-right {
    display: flex;
    align-items: center;
}


/* Mostrar acciones solo al pasar el mouse por la fila */
.vi-row .sd-row.reveal {
    opacity: 0;
    transition: opacity .12s ease;
}

:global(tr:hover) .vi-row .sd-row.reveal, .vi-row:hover .sd-row.reveal {
    opacity: 1;
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
}

.vb-toolbar {
    padding: 10px 12px
}

.mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(37,170,225,.22);
    background: rgba(37,170,225,.12);
    color: #0b5a7a;
    cursor: pointer;
}

    .mode-chip .material-symbols-rounded {
        font-size: 18px
    }

    .mode-chip:hover {
        filter: brightness(.98)
    }


.searchbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #E6EEF5;
    border-radius: 14px;
    padding: 8px 10px;
    height: 52px; /* alto parecido a tu mock */
    box-shadow: 0 10px 24px rgba(0,0,0,.06); /* sombra suave del “chip” */
}

    .searchbar.s-compact {
        height: 52px;
    }

/* Ícono de la izquierda dentro de la barra */
.lead-icon {
    color: #8EA3B5;
    font-size: 22px;
    line-height: 1;
    display: block;
    font-variation-settings: 'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24;
}

/* Input plano, sin bordes extra */
.searchbar input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 18px;
    padding: 0;
    height: 100%;
}

/* --- Botones icónicos (centrados) --- */
.icon-btn {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

    .icon-btn .material-symbols-rounded {
        line-height: 1;
        display: block;
        font-size: 22px;
        font-variation-settings: 'FILL' 0,'wght' 600,'GRAD' 0,'opsz' 24;
    }

    /* Azul sólido para el botón de buscar */
    .icon-btn.primary {
        background: #25AAE1;
        color: #fff;
        box-shadow: 0 6px 16px rgba(37,170,225,.35);
    }

    /* Botón “tres líneas” sin rectángulo */
    .icon-btn.ghost {
        background: transparent;
        color: #25AAE1;
    }

    /* Hover sutil */
    .icon-btn:hover {
        filter: brightness(.98);
    }

/* Si alguna hoja externa te fuerza line-height o borde en button, neutralízalo: */
.searchbar button {
    line-height: 1;
}

.segmented {
    display: flex;
    background: #f2f4f8;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

    .segmented button {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border: 0;
        background: transparent;
        border-radius: 10px;
    }

    .segmented .active {
        background: #fff;
        box-shadow: 0 6px 16px rgba(0,0,0,.06);
    }

.btn-viviendas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

    .btn-viviendas.primary {
        background: #25AAE1;
        color: #fff;
        border-color: transparent;
    }

.lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
}

.grid {
    display: grid;
    gap: 16px;
    padding: 12px 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.empty {
    text-align: center;
    color: #64748b;
    padding: 40px 16px;
}

.vb-card .name {
    max-width: 34ch
}
/* más largo antes de cortar */
.vb-card .meta .pill {
    padding: 2px 10px
}

/* paginador compacto */
.vb-pager .page, .vb-pager .icon {
    min-width: 36px;
    height: 36px;
    border-radius: 9px
}

.viviendas-page {
    min-height: 100vh;
    background: radial-gradient(1100px 380px at 50% -8%, rgba(37,170,225,.08), transparent 60%), radial-gradient(700px 260px at 100% 0, rgba(37,170,225,.06), transparent 60%), #F6F9FF; /* base muy clara */
}

.right.actions {
    display: flex;
    align-items: center;
    gap: 10px; /* separa los botones del kebab */
}

/* Botón vertical SIN borde */
.icon-vert {
    -webkit-appearance: none;
    appearance: none;
    background: transparent; /* sin fondo */
    border: 0; /* sin borde */
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 56px; /* ancho mínimo para que quepa el texto */
    cursor: pointer;
    color: #2F5B7A; /* color de la marca/tema */
}

    /* Ícono bien centrado */
    .icon-vert .material-symbols-rounded {
        line-height: 1;
        display: block;
        font-size: 22px;
        padding: 0;
        font-variation-settings: 'FILL' 0,'wght' 600,'GRAD' 0,'opsz' 24;
    }

    /* Texto debajo del ícono */
    .icon-vert .label {
        font-size: 12px;
        line-height: 1;
    }

    /* Hover sutil (sin borde) */
    .icon-vert:hover {
        color: #0b5a7a;
        filter: brightness(.98);
    }

    /* Accesible en teclado */
    .icon-vert:focus {
        outline: 2px solid #25AAE1;
        outline-offset: 2px;
    }

    /* (Opcional) estado deshabilitado */
    .icon-vert:disabled {
        opacity: .45;
        cursor: not-allowed;
    }
