﻿html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f7f9fc;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0c4da2;
    /* Cambiado a #0c4da2 */
}

.btn-primary {
    color: #fff;
    background-color: #0c4da2;
    /* Cambiado a #0c4da2 */
    border-color: #093b80;
    /* Cambiado a #093b80 (tono más oscuro de #0c4da2) */
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0c4da2;
    /* Cambiado a #0c4da2 */
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #0c4da2;
    /* Cambiado a #0c4da2 */
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.contact-section {
    padding: 40px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    background-color: #fff;
}

.contact-details {
    flex: 1 1 400px;
    background-color: #0c4da2;
    /* Cambiado a #0c4da2 */
    color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.contact-details h3 {
    color: #cfcfcf;
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.contact-details h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-details p {
    color: #ffff;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-info-list .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-list .info-item .material-icons {
    color: #ffff;
    margin-right: 15px;
    font-size: 1.5rem;
}

.contact-info-list .info-item span {
    display: block;
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 5px;
}

.contact-info-list .info-item a,
.contact-info-list .info-item address {
    color: #fff;
    text-decoration: none;
    font-style: normal;
    font-size: 1rem;
}

.send-message-form {
    flex: 1 1 400px;
    padding: 30px;
    border-radius: 8px;
    background-color: #fff;
}

.send-message-form h3 {
    color: #0c4da2;
    /* Cambiado a #0c4da2 */
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.send-message-form h2 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: #2d3748;
}

.send-message-form p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    position: relative;
}

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    color: #2d3748;
    background-color: #edf2f7;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0c4da2;
    /* Cambiado a #0c4da2 */
}

.contact-form textarea {
    min-height: 120px;
}

.submit-button {
    grid-column: 1 / -1;
    text-align: left;
}

.primary-button {
    cursor: pointer;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 0.25rem;
    background-color: #0c4da2 !important;
    /* Cambiado a #0c4da2 */
    color: white !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.primary-button:hover {
    color: #0c4da2 !important;
    /* Cambiado a #0c4da2 */
    background-color: transparent !important;
    border: 2px solid #0c4da2;
    /* Cambiado a #0c4da2 */
    transform: translateY(-4px);
}

/* Eliminé el duplicado de .primary-button que tenía colores verdes */

.location-map {
    max-width: 1500px;
    margin: 30px auto 0;
    padding: 10px;
    background-color: #fff;
    text-align: center;
}

.location-map h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.map-responsive {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 56.25%;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-details,
    .send-message-form {
        width: 100%;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}



/*este es el css para el modal de empleados*/

/* ------------------- Overlay centrador ------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.5);
    display: flex;
    justify-content: center;
    /* centra horizontalmente */
    align-items: center;
    /* centra verticalmente */
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    /* permite scroll en pantallas pequeñas */
}

/* ------------------- Modal compacto centrado ------------------- */
.modal {
    background: #fff;
    border-radius: 16px;
    width: 400px;
    max-width: 95%;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    animation: fadeIn 0.2s ease;
    margin: auto;
    /* asegura centrado vertical en scroll */
    display: flex;
    flex-direction: column;
}

/* ------------------- Header ------------------- */
.modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botón cerrar */
.close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #111827;
}

/* ------------------- Body ------------------- */
.modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Contenedor para centrar imagen */
.image-container {
    display: flex;
    justify-content: center;
    /* centra horizontalmente */
    align-items: center;
    /* centra verticalmente */
    margin-top: 8px;
    margin-bottom: 8px;

}

.image-container img,
.image-container svg {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Contenedor para inputs lado a lado */
.input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-row .form-group {
    flex: 1;
}

/* Formulario general */
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #111827;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* ------------------- Footer y botones ------------------- */
.modal-footer {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn.outline.success {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.btn.outline.success:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn.outline.delete {
    background: #ef4444;
    color: white;
    border: 1px solid #ef4444;
}

.btn.outline.delete:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* ------------------- Animación ------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------- Estados de carga y error ------------------- */
.loading,
.error {
    text-align: center;
    padding: 24px;
    font-size: 16px;
}

.error {
    color: #ef4444;
}

/* ------------------- Responsive ------------------- */
@media (max-width: 500px) {
    .modal {
        width: 100%;
        border-radius: 12px;
    }

    .input-row {
        flex-direction: column;
    }
}




.upload-container .imagen-previw-agent {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
    height: 100vh;
    /* Ocupa toda la altura de la ventana */
    width: 100%;
    background-color: #f3f4f6;
    /* Opcional: fondo suave */
}

.file-upload-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
}


.file-upload-label input {
    display: none;
}

.file-upload-label svg {
    height: 50px;
    fill: #1E3A8A;
    /* azul elegante */
    margin-bottom: 20px;
}

.file-upload-label {
    cursor: pointer;
    background-color: #EFF6FF;
    /* azul muy claro */
    padding: 30px 70px;
    border-radius: 40px;
    border: 2px dashed #3B82F6;
    /* azul medio elegante */
    box-shadow: 0px 0px 40px -10px rgba(59, 130, 246, 0.5);
    /* sombra azul suave */
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background-color: #DBEAFE;
    /* azul ligeramente más oscuro */
    border-color: #2563EB;
    /* azul más intenso al pasar el mouse */
}

.file-upload-design {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.browse-button {
    background-color: #2563EB;
    /* azul elegante */
    padding: 8px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.browse-button:hover {
    background-color: #1D4ED8;
    /* azul más intenso al pasar el mouse */
    transform: scale(1.05);
}



.preview-wrapper {
    position: relative;
    display: inline-block;
}

.delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ef4444;
    border: none;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background-color: #dc2626;
}


.imagen-previw-agent {
    position: relative;
    /* necesario para el botón flotante */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 180px;
    border-radius: 16px;
    background-color: #f3f4f6;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Imagen */
.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Botón eliminar */
.delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    padding: 6px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: rgba(220, 38, 38, 0.9);
    /* rojo al hover */
}

.delete-btn .material-icons {
    font-size: 20px;
    color: white;
}















.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}





/**


    botones 
   




    .btn.primary {
        background: #3b82f6;
        color: white;
    }

        .btn.primary:hover {
            background: #2563eb;
            transform: scale(1.03);
        }

    .btn.secondary {
        background: #6b7280;
        color: white;
    }

        .btn.secondary:hover {
            background: #4b5563;
            transform: scale(1.03);
        }

    .btn.outline {
        background: none;
        border: 1px solid #6b7280;
        color: #6b7280;
    }

        .btn.outline.edit {
            border-color: #3b82f6;
            color: #3b82f6;
        }

            .btn.outline.edit:hover {
                background: #3b82f6;
                color: white;
                transform: scale(1.03);
            }

        .btn.outline.delete {
            border-color: #ef4444;
            color: #ef4444;
        }

            .btn.outline.delete:hover {
                background: #ef4444;
                color: white;
                transform: scale(1.03);
            }

        .btn.outline.success {
            border-color: #08b50b;
            color: #08b50b;
        }

            .btn.outline.success:hover {
                background: #08b50b;
                color: white;
                transform: scale(1.03);
            }
         */










/**

    es para el modal de usuarios 
*/
/* ------------------- Checkbox personalizado ------------------- */
.checkbox-wrapper {
    display: inline-flex !important;
    /* inline para que no ocupe todo el ancho */
    align-items: center;
    gap: 8px;
    /* espacio entre círculo y texto */
    position: relative;
}

/* Reseteamos estilos heredados del form-group */
.checkbox-wrapper .inp-cbx {
    width: auto !important;
    padding: 0 !important;
    margin: 0;
    border: none;
    background: none;
    appearance: none;
    /* elimina estilo por defecto */
    -webkit-appearance: none;
}

/* Label del checkbox */
.checkbox-wrapper .cbx {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* Contenedor de los spans */
.checkbox-wrapper .cbx span {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

/* Círculo del checkbox */
.checkbox-wrapper .cbx span:first-child {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #b9b8c3;
    display: flex;
    /* centramos svg */
    justify-content: center;
    /* centrado horizontal */
    align-items: center;
    /* centrado vertical */
    position: relative;
    transition: all 0.2s ease;
}

/* SVG de la marca de check */
.checkbox-wrapper .cbx span:first-child svg {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 6px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

/* Fondo animado al marcar */
.checkbox-wrapper .cbx span:first-child:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #506eec;
    display: block;
    transform: scale(0);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.6s ease;
    transition-delay: 0.2s;
}

/* Texto del label */
.checkbox-wrapper .cbx span:last-child {
    margin-left: 8px;
    position: relative;
}

/* Línea de decoración del texto */
.checkbox-wrapper .cbx span:last-child:after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    height: 1px;
    width: 100%;
    background: #b9b8c3;
    transform-origin: 0 0;
    transform: scaleX(0);
}

/* Hover sobre el círculo */
.checkbox-wrapper .cbx:hover span:first-child {
    border-color: #3c53c7;
}

/* Estado checked */
.checkbox-wrapper .inp-cbx:checked+.cbx span:first-child {
    border-color: #3c53c7;
    background: #3c53c7;
    animation: check-15 0.6s ease;
}

.checkbox-wrapper .inp-cbx:checked+.cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.checkbox-wrapper .inp-cbx:checked+.cbx span:first-child:before {
    transform: scale(2.2);
    opacity: 0;
}

.checkbox-wrapper .inp-cbx:checked+.cbx span:last-child {
    color: #b9b8c3;
    transition: all 0.3s ease;
}

.checkbox-wrapper .inp-cbx:checked+.cbx span:last-child:after {
    transform: scaleX(1);
    transition: all 0.3s ease;
}

/* Animación del check */
@keyframes check-15 {
    50% {
        transform: scale(1.2);
    }
}




/**

    Estos son los estilos del seach bar
*/
.search-box {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 300px;
    line-height: 28px;
}

/* input */
.search-box__input {
    width: 100%;
    height: 45px;
    padding: 0 1rem;
    padding-left: 2.5rem;
    /* espacio para el ícono */
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    background-color: #fff;
    color: #0d0c22;
    transition: .3s ease;
    font-family: 'Inter', sans-serif;
}

.search-box__input::placeholder {
    color: #94a3b8;
    /* gris azulado más suave */
}

.search-box__input:focus,
.search-box__input:hover {
    border-color: #0c4da2;
    /* color de tu logo */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(12, 77, 162, 0.15);
    /* sombra con tu color */
}

.search-box__input:focus {
    background-color: #f8faff;
    /* fondo muy claro azul al focus */
}

/* icon */
.search-box__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    /* centrado vertical */
    fill: #94a3b8;
    /* color del ícono más suave */
    width: 1.2rem;
    height: 1.2rem;
    transition: fill 0.3s ease;
}

.search-box__input:focus+.search-box__icon,
.search-box__input:hover+.search-box__icon {
    fill: #0c4da2;
    /* ícono cambia al color de tu logo */
}

/* Versión alternativa con fondo sutil */
.search-box--subtle .search-box__input {
    background-color: #f8faff;
    /* fondo azul muy suave */
    border-color: #e2e8f0;
}

.search-box--subtle .search-box__input:focus {
    background-color: #fff;
    border-color: #0c4da2;
}

/* Variante más compacta */
.search-box--compact .search-box__input {
    height: 40px;
    font-size: 0.875rem;
}

/* Variante para navbar/dark context */
.search-box--navbar .search-box__input {
    background-color: #f8faff;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-box--navbar .search-box__input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px #0c4da2, 0 2px 4px rgba(0, 0, 0, 0.1);
}



/*estos son los toast */

.blazored-toast {
    backdrop-filter: blur(10px);
    background: rgba(30, 30, 30, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease-in-out;
}

.blazored-toast:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 255, 200, 0.3);
}

.blazored-toast-header {
    background: transparent !important;
    border-bottom: none !important;
    font-weight: 600;
}








/*prueba*/

.employee-list-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 20px;
}

.header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    flex: 1;
    min-width: 300px;
}

.header-actions {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filters-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    margin-bottom: 0;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

.status-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    min-width: 150px;
}

.status-filter:focus {
    outline: none;
    border-color: #0c4da2;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}



/* Combined property cell (image + title) */
.property-cell-combined {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.property-cell-combined .property-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.property-cell-combined .property-info strong {
    color: #2c3e50;
    font-size: 13px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Botones de Acciones de Propiedades - Estilos Específicos */
.property-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.property-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.property-edit {
    border-color: #0c4da2;
    color: #0c4da2;
}

.property-edit:hover:not(:disabled) {
    background: #0c4da2;
    color: white;
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(12, 77, 162, 0.3);
}

.property-edit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #9ca3af;
    color: #9ca3af;
}

.property-preview {
    border-color: #6b7280;
    color: #6b7280;
}

.property-preview:hover:not(:disabled) {
    background: #6b7280;
    color: white;
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.property-unpublish {
    border-color: #f59e0b;
    color: #f59e0b;
}

.property-unpublish:hover:not(:disabled) {
    background: #f59e0b;
    color: white;
    transform: scale(1.03);
}

.property-publish {
    border-color: #10b981;
    color: #10b981;
}

.property-publish:hover:not(:disabled) {
    background: #10b981;
    color: white;
    transform: scale(1.03);
}

.property-delete {
    border-color: #ef4444;
    color: #ef4444;
}

.property-delete:hover:not(:disabled) {
    background: #ef4444;
    color: white;
    transform: scale(1.03);
}

.property-restore {
    border-color: #10b981;
    color: #10b981;
}

.property-restore:hover:not(:disabled) {
    background: #10b981;
    color: white;
    transform: scale(1.03);
}

/* Iconos dentro de los botones de propiedades */
.property-btn .material-icons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estados de hover específicos para mantener consistencia */
.property-edit:hover:not(:disabled) .material-icons,
.property-unpublish:hover:not(:disabled) .material-icons,
.property-publish:hover:not(:disabled) .material-icons,
.property-delete:hover:not(:disabled) .material-icons,
.property-restore:hover:not(:disabled) .material-icons {
    color: inherit;
}

/* Variante primaria con el color de tu logo */
.property-primary {
    border-color: #0c4da2;
    background: #0c4da2;
    color: white;
}

.property-primary:hover:not(:disabled) {
    background: #0a3d82;
    border-color: #0a3d82;
    color: white;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(12, 77, 162, 0.4);
}

/* Botón outline con tu color */
.property-outline {
    border-color: #0c4da2;
    color: #0c4da2;
    background: transparent;
}

.property-outline:hover:not(:disabled) {
    background: #0c4da2;
    color: white;
    transform: scale(1.03);
}

/* Estados focus para accesibilidad */
.property-btn:focus {
    outline: 2px solid #0c4da2;
    outline-offset: 2px;
}

.property-edit:focus {
    box-shadow: 0 0 0 3px rgba(12, 77, 162, 0.2);
}



.btn.primary {
    background: #0c4da2;
    color: white;
    border-color: #0c4da2;
}

.btn.primary:hover:not(:disabled) {
    background: #0a3d82;
    border-color: #0a3d82;
    box-shadow: 0 4px 12px rgba(12, 77, 162, 0.3);
}

.btn.success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn.success:hover:not(:disabled) {
    background: #1e7e34;
    border-color: #1e7e34;
}

.btn.outline {
    background: transparent;
}

.btn.outline.primary {
    color: #0c4da2;
    border-color: #0c4da2;
}

.btn.outline.primary:hover:not(:disabled) {
    background: #0c4da2;
    color: white;
    box-shadow: 0 2px 8px rgba(12, 77, 162, 0.2);
}

.btn.outline.success {
    color: #28a745;
    border-color: #28a745;
}

.btn.outline.success:hover:not(:disabled) {
    background: #28a745;
    color: white;
}

.btn.outline.warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn.outline.warning:hover:not(:disabled) {
    background: #ffc107;
    color: #212529;
}

.btn.outline.delete {
    color: #dc3545;
    border-color: #dc3545;
}

.btn.outline.delete:hover:not(:disabled) {
    background: #dc3545;
    color: white;
}

.btn.delete {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn.delete:hover:not(:disabled) {
    background: #c82333;
    border-color: #c82333;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estados focus para accesibilidad */
.btn.primary:focus,
.btn.outline.primary:focus {
    outline: 2px solid #0c4da2;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(12, 77, 162, 0.2);
}



/* Estados de carga y empty states */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #0c4da2;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0c4da2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-spinner.small {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-state {
    background: #fff;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.empty-state .material-icons {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 500;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Tabla */
.table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Celdas especiales */
.title-cell {
    font-weight: 600;
    color: #2c3e50;
}

.address-cell {
    max-width: 200px;
}

.address-tooltip {
    position: relative;
    cursor: help;
}

.address-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.address-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.price-cell {
    font-weight: 600;
    color: #28a745;
}

.feature-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.feature-with-icon .material-icons {
    font-size: 18px;
    color: #6c757d;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.published {
    background: #d4edda;
    color: #155724;
}

.badge.draft {
    background: #fff3cd;
    color: #856404;
}

/* Características de propiedad */
.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.feature-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid #bbdefb;
}

.feature-more {
    background: #f5f5f5;
    color: #666;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid #e0e0e0;
}

/* Usuarios asignados */
.assigned-users {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.user-badge {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid #c8e6c9;
}

.user-more {
    background: #f5f5f5;
    color: #666;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid #e0e0e0;
}

/* Acciones */
.actions-column {
    width: 150px;
    text-align: right;
}

.actions-cell {
    text-align: right;
}

.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.action-buttons .btn {
    padding: 6px 8px;
}

.action-buttons .btn .material-icons {
    font-size: 16px;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #6c757d;
    font-size: 14px;
}

.total-items {
    font-size: 12px;
    color: #adb5bd;
}

/* Modal Wizard */
.large-modal {
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
}

.wizard-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-number {
    border-color: #0c4da2;
    background: #0c4da2;
    color: white;
}

.step.active .step-label {
    color: #0c4da2;
    font-weight: 600;
}

.step.completed .step-number {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

.step.completed .step-label {
    color: #28a745;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 10px;
    position: relative;
    top: -16px;
}

.step.completed+.step-connector {
    background: #28a745;
}

/* Modal Body */
.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 0;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8f9fa;
}

.section-description {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #0c4da2;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* Características */
.features-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.selected-features-summary {
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    font-weight: 500;
}

.selected-count .material-icons {
    color: #4caf50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.feature-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.feature-checkbox:hover {
    background: #f8f9fa;
    border-color: #0c4da2;
}

.feature-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.feature-checkbox input[type="checkbox"]:checked+.checkmark {
    background: #28a745;
    border-color: #28a745;
}

.feature-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: "?";
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-content {
    flex: 1;
}

.feature-name {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.feature-description {
    display: block;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Usuarios */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.user-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.user-checkbox:hover {
    background: #f8f9fa;
    border-color: #0c4da2;
}

.user-checkbox.primary-user {
    border-color: #ffc107;
    background: #fffbf0;
}

.user-checkbox.primary-user:hover {
    border-color: #ffb300;
}

.user-checkbox input[type="checkbox"] {
    display: none;
}

.user-content {
    flex: 1;
    margin-left: 12px;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.primary-badge {
    background: #ffc107;
    color: #212529;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-badge .material-icons {
    font-size: 14px;
}

.user-email {
    display: block;
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 8px;
}

.user-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.user-role-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    border: 1px solid #bbdefb;
}

.user-role-more {
    background: #f5f5f5;
    color: #666;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    border: 1px solid #e0e0e0;
}

.user-status {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.user-status.active {
    background: #d4edda;
    color: #155724;
}

.user-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.user-actions {
    margin-top: 10px;
}

.btn-set-primary {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #ffc107;
    border-radius: 4px;
    background: transparent;
    color: #ffc107;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-set-primary:hover {
    background: #ffc107;
    color: #212529;
}

.btn-set-primary.active {
    background: #ffc107;
    color: #212529;
}

.btn-set-primary .material-icons {
    font-size: 14px;
}

.primary-user-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffc107;
    font-weight: 500;
    font-size: 13px;
}

/* Badge for non-agent users */
.not-agent-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 11px;
    font-weight: 500;
}

.not-agent-badge .material-icons {
    font-size: 14px;
}

.primary-user-indicator .material-icons {
    font-size: 16px;
}

.warning-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #856404;
}

.warning-message .material-icons {
    color: #ffc107;
}

/* Imágenes */
.image-upload-section {
    margin-top: 20px;
}

.file-upload-container {
    margin-bottom: 25px;
}

.file-upload-form {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-form:hover {
    border-color: #0c4da2;
    background: #f8f9fa;
}

.file-upload-label {
    cursor: pointer;
    display: block;
}

.file-upload-design {
    color: #6c757d;
}

.file-upload-design svg {
    width: 48px;
    height: 48px;
    fill: #dee2e6;
    margin-bottom: 12px;
}

.file-upload-design p {
    margin: 8px 0;
    font-size: 14px;
}

.browse-button {

    font-weight: 500;

}

.file-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #adb5bd;
}

.file-input {
    display: none;
}

.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.image-preview-item.main-image {
    border-color: #0c4da2;
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
}

.btn-icon {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.9);
}

.btn-icon.active {
    background: #0c4da2;
}

.btn-icon.delete:hover {
    background: #dc3545;
}

.btn-icon .material-icons {
    font-size: 16px;
}

.main-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #0c4da2;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* Resumen */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.summary-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.summary-item {
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item strong {
    color: #2c3e50;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.selected-features-list,
.selected-users-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    margin-bottom: 12px;
}

.selected-feature-item,
.selected-user-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 6px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.selected-feature-item:last-child,
.selected-user-item:last-child {
    margin-bottom: 0;
}

.selected-feature-item.primary-user,
.selected-user-item.primary-user {
    border-color: #ffc107;
    background: #fffbf0;
}

.selected-feature-item .material-icons,
.selected-user-item .material-icons {
    color: #28a745;
    font-size: 16px;
    margin-right: 8px;
}

.selected-user-item.primary-user .material-icons {
    color: #ffc107;
}

.user-info {
    flex: 1;
}

.primary-label {
    color: #ffc107;
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

.feature-type {
    color: #6c757d;
    font-style: italic;
    margin-left: 5px;
    font-size: 11px;
}

.final-warning {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #0c5460;
}

.final-warning .material-icons {
    color: #0c5460;
    font-size: 20px;
    flex-shrink: 0;
}

.final-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Footer del Wizard */
.modal-footer.wizard-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.step-indicator {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

.next-step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.validation-hint {
    text-align: center;
}

.text-warning {
    color: #dc3545;
    font-size: 12px;
}

.material-icons.spinning {
    animation: spin 1s linear infinite;
}

/* Estados de carga */
.loading-features,
.empty-features {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-features .material-icons {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
}

/* Imágenes de propiedad */
.property-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c4da2;
}

.image-placeholder .material-icons {
    font-size: 24px;
}

.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }

    .header h2 {
        min-width: auto;
        text-align: center;
    }

    .header-actions {
        justify-content: center;
    }

    .filters-section {
        padding: 12px;
    }

    .filter-group {
        justify-content: center;
        text-align: center;
    }

    .search-box {
        min-width: 250px;
    }

    .table-container {
        overflow-x: auto;
    }

    .actions-cell .action-buttons {
        flex-direction: column;
        gap: 4px;
    }

    .modal-overlay {
        padding: 10px;
    }

    .large-modal {
        width: 100%;
        max-height: 90vh;
    }

    .wizard-steps {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-connector {
        display: none;
    }

    .modal-body {
        padding: 20px;
        max-height: 50vh;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .users-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .step-indicator {
        order: -1;
    }
}

@media (max-width: 576px) {
    .employee-list-container {
        padding: 15px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
        width: 100%;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .wizard-steps {
        padding: 10px 15px;
    }

    .step-label {
        font-size: 10px;
    }

    .modal-body {
        padding: 15px;
    }
}



.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}






/* Agregar estos estilos si no existen */
.user-checkbox.selected {
    border-color: #0c4da2;
    background-color: #f8f9fa;
}

.user-checkbox.primary-user {
    border-color: #ffc107;
    background-color: #fff9e6;
}

.user-checkbox.primary-user.selected {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.primary-user-indicator {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 10px;
}








.existing-images-section {
    margin-bottom: 2rem;
}

.section-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.new-images-section {
    margin-top: 1.5rem;
}

.image-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.images-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.existing-images-section h4,
.new-images-section h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}






/*
    para los estados 



*/


/* Estilos para propiedades eliminadas */
.property-deleted-row {
    background-color: #f8f9fa !important;
    opacity: 0.7;
    position: relative;
}

.property-deleted-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.03) 0%, rgba(220, 53, 69, 0.08) 50%, rgba(220, 53, 69, 0.03) 100%);
    pointer-events: none;
}

.property-deleted-row:hover {
    background-color: #f1f3f4 !important;
    opacity: 0.8;
}

/* Badge para estado eliminado */
.badge.deleted {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Imagen de propiedad eliminada */
.property-deleted-row .property-image {
    opacity: 0.6;
    filter: grayscale(0.7);
    position: relative;
}

.property-deleted-row .property-image::after {
    content: "??";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Título de propiedad eliminada */
.property-deleted-row .title-cell strong {
    color: #6c757d !important;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Precio de propiedad eliminada */
.property-deleted-row .price-cell strong {
    color: #6c757d !important;
    opacity: 0.6;
}

/* Características de propiedad eliminada */
.property-deleted-row .feature-badge {
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    opacity: 0.6;
}

/* Usuarios asignados en propiedad eliminada */
.property-deleted-row .user-badge {
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    opacity: 0.6;
}

/* Botones deshabilitados en propiedades eliminadas */
.property-deleted-row .btn:disabled {
    opacity: 0.4 !important;
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed;
}

/* Iconos en propiedades eliminadas */
.property-deleted-row .material-icons {
    opacity: 0.5;
}

/* Estado especial para la fila completa */
.property-deleted-row td {
    border-bottom-color: #e9ecef !important;
    position: relative;
}

/* Indicador lateral para propiedades eliminadas */
.property-deleted-row::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #dc3545;
    border-radius: 2px 0 0 2px;
}

/* Tooltip especial para propiedades eliminadas */
.property-deleted-row .address-tooltip .tooltip-content {
    background: #dc3545;
    color: white;
}

.property-deleted-row .address-tooltip .tooltip-content::before {
    content: "?? ";
    font-size: 10px;
}

/* Efecto de hover reducido para propiedades eliminadas */
.property-deleted-row:hover {
    transform: none;
    box-shadow: none;
}

/* Texto muted adicional para propiedades eliminadas */
.property-deleted-row .text-muted {
    opacity: 0.5;
}

/* Badge publicado en título para propiedades eliminadas */
.property-deleted-row .badge.published {
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    opacity: 0.6;
    text-decoration: line-through;
}

/* Estilos para las características en propiedades eliminadas */
.property-deleted-row .property-features {
    opacity: 0.6;
}

/* Estilos para los usuarios asignados en propiedades eliminadas */
.property-deleted-row .assigned-users {
    opacity: 0.6;
}

/* Contador de características en propiedades eliminadas */
.property-deleted-row .feature-more {
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    opacity: 0.6;
}

/* Contador de usuarios en propiedades eliminadas */
.property-deleted-row .user-more {
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    opacity: 0.6;
}

/* Estilos para el modal de confirmación de eliminación */
.confirmation-modal .warning-icon {
    color: #dc3545;
    font-size: 48px;
    margin-bottom: 15px;
}

.confirmation-modal .success-icon {
    color: #28a745;
    font-size: 48px;
    margin-bottom: 15px;
}

.confirmation-content {
    text-align: center;
    padding: 20px;
}

.confirmation-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.confirmation-content p {
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.5;
}

.warning-text {
    color: #dc3545 !important;
    font-weight: 500;
    background: #f8d7da;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
}

.success-text {
    color: #155724 !important;
    font-weight: 500;
    background: #d4edda;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-top: 15px;
}

/* Estilos responsivos para propiedades eliminadas */
@media (max-width: 768px) {
    .property-deleted-row::after {
        width: 3px;
    }

    .property-deleted-row .property-image::after {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .badge.deleted {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Animación sutil para filas eliminadas */
@keyframes fadeInDeleted {
    from {
        opacity: 0;
        background-color: #fff3f3;
    }

    to {
        opacity: 0.7;
        background-color: #f8f9fa;
    }
}

.property-deleted-row {
    animation: fadeInDeleted 0.5s ease-in-out;
}

/* Estilo para cuando se filtra por propiedades eliminadas */
.table-container.showing-deleted .property-deleted-row {
    opacity: 1;
    background-color: #fff !important;
}

.table-container.showing-deleted .property-deleted-row:hover {
    background-color: #f8f9fa !important;
}

/* Indicador visual adicional para propiedades eliminadas en modo móvil */
@media (max-width: 576px) {
    .property-deleted-row {
        border-left: 3px solid #dc3545;
    }

    .property-deleted-row::after {
        display: none;
    }
}







/*
    esto es para la parte de edicion 
*/


/* Estilos para la búsqueda de usuarios */

.user-search-section {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.user-search {
    flex: 1;
    min-width: 300px;
}

.user-filter-info {
    text-align: center;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 13px;
}

.empty-search-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

.empty-search-results .material-icons {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 15px;
}

.empty-search-results p {
    margin-bottom: 15px;
    font-size: 14px;
}

/* Mejoras responsivas */
@media (max-width: 768px) {
    .user-search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .user-search {
        min-width: auto;
    }
}




/* Estilos del mapa */
#map {
    height: 600px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.leaflet-container {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

/* Marcadores personalizados */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 40px;
    height: 40px;
    background: #0c4da2;
    border-radius: 50% 50% 50% 0;
    position: relative;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    transform: rotate(45deg);
}

.marker-pin .price {
    position: absolute;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 2;
}

/* Popups personalizados */
.map-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.map-popup .leaflet-popup-content {
    margin: 0;
    padding: 15px;
    min-width: 200px;
}

.map-popup h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.map-popup p {
    margin: 5px 0;
    color: #555;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.map-popup p.price {
    color: #0c4da2;
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0;
}

.map-popup .btn-view-details {
    width: 100%;
    padding: 8px 12px;
    background: #0c4da2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-popup .btn-view-details:hover {
    background: #093b80;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Controles del mapa */
.map-controls {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.map-controls>div:first-child {
    flex: 0 0 auto;
    min-width: 200px;
}

.map-controls h1 {
    margin: 0;
    padding: 0;
    color: #2c3e50;
    font-size: 26px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: #0c4da2;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: white;
}

.search-box input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.search-box button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #0c4da2 0%, #093b80 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #093b80 0%, #003d82 100%);
}

.search-box button:active {
    transform: translateY(0);
}

.filter-options {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.filter-options select:focus {
    outline: none;
    border-color: #0c4da2;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-options select:hover {
    border-color: #adb5bd;
}

.btn-location {
    padding: 10px 18px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-location:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #1e7e34 0%, #145523 100%);
}

.btn-location:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #6c757d;
}

.btn-location .location-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Panel de propiedades */
.properties-panel {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.properties-panel h2 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.property-card {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #0c4da2;
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover img {
    transform: scale(1.05);
}

/* Property image container for positioning favorite button */
.property-image {
    position: relative;
    overflow: hidden;
}

/* Favorite button on property cards */
.btn-favorite-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-favorite-card:hover {
    background: white;
    transform: scale(1.1);
}

.btn-favorite-card .material-icons {
    color: #ff4757;
    font-size: 22px;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.property-price {
    color: #0c4da2;
    font-size: 20px;
    font-weight: 700;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.property-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 48px;
}

.property-badge {
    background: linear-gradient(135deg, #0c4da2 0%, #093b80 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.no-results h3 {
    color: #495057;
    margin-bottom: 10px;
}

.loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0c4da2;
    font-weight: 500;
    padding: 20px;
    justify-content: center;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #0c4da2;
    animation: spin 1s ease-in-out infinite;
}

.status-message {
    color: #28a745;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .map-controls {
        gap: 20px;
    }

    .search-box {
        min-width: 250px;
    }
}

@media (max-width: 992px) {
    .map-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .map-controls>div:first-child {
        text-align: center;
        width: 100%;
    }

    .map-controls h1 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 5px;
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .search-box {
        min-width: 100%;
        max-width: 100%;
    }

    .filter-options {
        justify-content: center;
    }

    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    #map {
        height: 450px;
    }

    .map-controls {
        padding: 15px;
        gap: 15px;
    }

    .map-controls h1 {
        font-size: 22px;
    }

    .filter-options {
        flex-direction: column;
        width: 100%;
    }

    .filter-options select {
        width: 100%;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    #map {
        height: 400px;
    }

    .map-controls h1 {
        font-size: 20px;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    .search-box button {
        width: 100%;
        justify-content: center;
    }

    .property-info {
        padding: 15px;
    }

    .property-price {
        font-size: 18px;
    }
}

/* Utilidades adicionales */
.highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.property-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.property-status.available {
    background: #d4edda;
    color: #155724;
}

.property-status.sold {
    background: #f8d7da;
    color: #721c24;
}

.property-status.pending {
    background: #fff3cd;
    color: #856404;
}






/* ===== NUEVO LAYOUT CON SIDEBAR ===== */

/* Contenedor principal con sidebar */
.main-container-sidebar {
    display: flex;
    gap: 20px;
    height: 600px;
    /* Mismo alto que el mapa */
    margin-top: 20px;
}

/* Panel de propiedades a la izquierda */
.properties-sidebar {
    flex: 0 0 380px;
    /* Ancho fijo */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.properties-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.properties-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options span {
    font-size: 14px;
    color: #666;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

/* Lista de propiedades con scroll */
.properties-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Tarjeta de propiedad en sidebar */
.property-card-sidebar {
    display: flex;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.property-card-sidebar:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0c4da2;
}

.property-card-sidebar img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.property-image-placeholder-sidebar {
    width: 150px;
    height: 120px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
    flex-shrink: 0;
}

.property-info-sidebar {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-info-sidebar h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.property-info-sidebar .property-price {
    color: #0c4da2;
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}

.property-info-sidebar .property-features {
    display: flex;
    gap: 10px;
    color: #666;
    font-size: 11px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.property-info-sidebar .property-features span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.property-info-sidebar .btn-view-on-map {
    padding: 6px 10px;
    background: #0c4da2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    transition: background 0.3s;
    width: 100%;
}

.property-info-sidebar .btn-view-on-map:hover {
    background: #093b80;
}

/* Card image container with favorite button */
.property-card-sidebar .card-image-container {
    position: relative;
    flex-shrink: 0;
}

.property-card-sidebar .card-image-container img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    object-position: center;
}

.property-card-sidebar .card-image-container .btn-favorite-card {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.property-card-sidebar .card-image-container .btn-favorite-card:hover {
    background: white;
    transform: scale(1.1);
}

.property-card-sidebar .card-image-container .btn-favorite-card .material-icons {
    color: #ff4757;
    font-size: 18px;
}

/* Card buttons container */
.property-info-sidebar .card-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.property-info-sidebar .card-buttons .btn-view-on-map,
.property-info-sidebar .card-buttons .btn-view-details {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.property-info-sidebar .btn-view-details {
    padding: 4px 8px;
    background: transparent;
    color: #0c4da2;
    border: 2px solid #0c4da2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.property-info-sidebar .btn-view-details:hover {
    background: #0c4da2;
    color: white;
}

/* Mapa a la derecha */
.map-section-sidebar {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sin resultados en sidebar */
.no-results-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

/* Scrollbar personalizado para la lista */
.properties-list::-webkit-scrollbar {
    width: 6px;
}

.properties-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.properties-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.properties-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 1200px) {
    .properties-sidebar {
        flex: 0 0 350px;
    }
}

@media (max-width: 992px) {
    .main-container-sidebar {
        flex-direction: column;
        height: auto;
    }

    .properties-sidebar {
        flex: 0 0 auto;
        height: 400px;
    }

    .map-section-sidebar {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .property-card-sidebar {
        flex-direction: column;
    }

    .property-card-sidebar .card-image-container,
    .property-card-sidebar .card-image-container img,
    .property-image-placeholder-sidebar {
        width: 100%;
        height: 150px;
    }

    .map-controls {
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-options {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Mejoras para el mapa */
#map {
    height: 100%;
    width: 100%;
}

/* Badge de tipo de propiedad */
/* Estado seleccionado */
.property-card-sidebar.selected {
    border-color: #0c4da2;
    background: #f0f8ff;
}

/* Animación de carga */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card-sidebar {
    animation: fadeIn 0.3s ease;
}

/* Estilos para el botón de ubicación */
.btn-location {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0c4da2, #093b80);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    min-width: 140px;
    justify-content: center;
}

.btn-location:hover:not(:disabled) {
    background: linear-gradient(135deg, #093b80, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-location:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.2);
}

.btn-location:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Indicador de carga para ubicación */
.location-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para el marcador de ubicación actual */
.current-location-marker {
    background: transparent;
    border: none;
}

.current-location-pulse {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.current-location-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0c4da2;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}



/* Estilos para el mapa en el modal */
.map-container {
    position: relative;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#property-modal-map {
    width: 100%;
    height: 600px !important;
}

/* Botón para ver en mapa completo */
.btn-view-full-map {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0c4da2, #093b80);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.btn-view-full-map:hover {
    background: linear-gradient(135deg, #093b80, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-view-full-map:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.2);
}

/* Popup del mapa en modal */
.property-modal-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.property-modal-popup .leaflet-popup-content {
    margin: 0;
    padding: 15px;
    min-width: 200px;
}

.property-modal-popup h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.property-modal-popup p {
    margin: 4px 0;
    color: #555;
    font-size: 13px;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0c4da2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Status message overlay */
.status-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.status-message-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    text-align: center;
}

.status-message-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .map-container {
        margin: 15px 0;
    }

    #property-modal-map {
        height: 250px;
    }

    .btn-view-full-map {
        padding: 10px 15px;
        font-size: 14px;
    }
}


/* Estilos para marcadores de punto */
.property-point-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-point-marker:hover {
    filter: drop-shadow(0 0 4px rgba(0, 123, 255, 0.4));
}

/* Animación para el punto */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Punto con animación de pulso (opcional) */
.property-point-marker.pulse {
    animation: pulse 2s infinite;
}

/* Estilos para popups */
.leaflet-popup-content {
    font-family: 'Roboto', sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
    background: white;
}

/* Tooltip personalizado */
.leaflet-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.leaflet-tooltip-top:before {
    border-top-color: rgba(0, 0, 0, 0.8);

    /* Estilos para el control de ubicación personalizado */
    .location-control {
        background: none;
        border: none;
        box-shadow: none;
    }

    .location-button {
        background-color: white;
        border: 2px solid rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        width: 36px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        display: block;
        color: #333;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    }

    .location-button:hover {
        background-color: #f4f4f4;
        color: #0c4da2;
        border-color: #0c4da2;
        transform: scale(1.05);
    }

    .location-button i {
        line-height: 32px;
    }

    /* Spinner para el botón cuando está cargando */
    .location-button .fa-spinner {
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Marcador de ubicación del usuario */
    .user-location-marker {
        background: transparent;
        border: none;
    }

    .user-location-pulse {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(40, 167, 69, 0.2);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: user-pulse 2s infinite;
    }

    .user-location-dot {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #28a745;
        border: 3px solid white;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
    }

    @keyframes user-pulse {
        0% {
            transform: scale(0.8);
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
        }

        70% {
            transform: scale(1);
            box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
        }

        100% {
            transform: scale(0.8);
            box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
        }
    }

    /* Estilos para el popup de ubicación del usuario */
    .user-location-popup .leaflet-popup-content-wrapper {
        border-left: 4px solid #28a745;
    }

    /* Asegurar que el botón esté sobre otros controles */
    .leaflet-top .leaflet-control {
        margin-top: 60px;
        /* Espacio para el zoom control */
    }



    /* Estilos para resaltar búsqueda */
    .highlighted-marker {
        filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.8));
        transform: scale(1.2);
        transition: transform 0.3s ease;
    }

    .pulse-animation {
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% {
            filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.5));
        }

        50% {
            filter: drop-shadow(0 0 15px rgba(0, 123, 255, 0.8));
        }

        100% {
            filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.5));
        }
    }

    /* Marcador del centro de búsqueda */
    .search-center-marker .search-center-container {
        position: relative;
        width: 60px;
        height: 60px;
    }

    .search-center-marker .search-center-pulse {
        position: absolute;
        top: 0;
        left: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: rgba(0, 123, 255, 0.2);
        animation: center-pulse 2s infinite;
    }

    .search-center-marker .search-center-dot {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #0c4da2;
    }

    .search-center-marker .search-center-icon {
        position: absolute;
        top: 18px;
        left: 18px;
        width: 24px;
        height: 24px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

    @keyframes center-pulse {
        0% {
            transform: scale(0.8);
            opacity: 1;
        }

        100% {
            transform: scale(1.5);
            opacity: 0;
        }
    }

    /* Estilos para propiedades filtradas en el sidebar */
    .property-card-sidebar.highlighted {
        border-left: 4px solid #0c4da2;
        background-color: rgba(0, 123, 255, 0.05);
    }

    .search-indicator {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(0, 123, 255, 0.1);
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 11px;
        color: #0c4da2;
        display: flex;
        align-items: center;
        gap: 4px;
    }





    /* Estilos para el componente FindYourHome */

    .find-home-page {
        min-height: 100vh;
        background: #f8f9fa;
    }

    .page-header {
        background: linear-gradient(135deg, #0c4da2 0%, #093b80 100%);
        color: white;
        padding: 2rem 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        margin: 0;
        font-size: 2.5rem;
        font-weight: 700;
    }

    .page-header p {
        margin: 0.5rem 0 0;
        opacity: 0.9;
        font-size: 1.1rem;
    }

    .map-controls {
        max-width: 1200px;
        margin: 0 auto 2rem;
        padding: 0 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }

    .search-box {
        flex: 1;
        min-width: 300px;
        display: flex;
        gap: 0.5rem;
    }

    .search-box input {
        flex: 1;
        padding: 0.75rem 1rem;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

    .search-box input:focus {
        outline: none;
        border-color: #0c4da2;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

    .filter-options {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .filter-options select {
        padding: 0.75rem;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        font-size: 0.9rem;
        background: white;
        cursor: pointer;
        transition: border-color 0.3s ease;
    }

    .filter-options select:focus {
        outline: none;
        border-color: #0c4da2;
    }

    .btn-search,
    .btn-location {
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }

    .btn-search {
        background: #0c4da2;
        color: white;
    }

    .btn-search:hover {
        background: #093b80;
        transform: translateY(-1px);
    }

    .btn-location {
        background: #28a745;
        color: white;
    }

    .btn-location:hover:not(:disabled) {
        background: #218838;
        transform: translateY(-1px);
    }

    .btn-location:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .location-loading {
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .main-container-sidebar {
        max-width: 1200px;
        margin: 0 auto 2rem;
        padding: 0 1rem;
        display: flex;
        gap: 2rem;
        height: 70vh;
    }

    .properties-sidebar {
        width: 400px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .properties-header {
        padding: 1.5rem;
        border-bottom: 1px solid #dee2e6;
        background: #f8f9fa;
    }

    .properties-header h3 {
        margin: 0 0 1rem;
        font-size: 1.25rem;
        color: #333;
    }

    .sort-options {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sort-options span {
        color: #666;
        font-size: 0.9rem;
    }

    .sort-options select {
        padding: 0.5rem;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        font-size: 0.9rem;
        background: white;
        cursor: pointer;
    }

    .properties-list {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
    }

    .property-card-sidebar {
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 1rem;
        margin-bottom: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .property-card-sidebar:hover {
        border-color: #0c4da2;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
        transform: translateY(-2px);
    }

    .property-card-sidebar.selected {
        border-color: #0c4da2;
        background: rgba(0, 123, 255, 0.05);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    }

    .property-card-sidebar img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 1rem;
    }

    .property-image-placeholder-sidebar {
        width: 100%;
        height: 150px;
        background: #f8f9fa;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #adb5bd;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .property-info-sidebar h4 {
        margin: 0 0 0.5rem;
        font-size: 1.1rem;
        color: #333;
        line-height: 1.3;
    }

    .property-badge {
        background: #e9ecef;
        color: #495057;
        padding: 0.25rem 0.75rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: capitalize;
    }

    .property-price {
        font-size: 1.25rem;
        font-weight: 700;
        color: #0c4da2;
        margin: 0.5rem 0;
    }

    .property-features {
        display: flex;
        gap: 1rem;
        margin: 0.75rem 0;
        color: #666;
        font-size: 0.9rem;
    }

    .property-features span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .btn-view-on-map,
    .btn-view-details {
        width: 100%;
        padding: 0.5rem;
        border: none;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        margin-top: 0.5rem;
    }

    .btn-view-on-map {
        background: #0c4da2;
        color: white;
    }

    .btn-view-on-map:hover {
        background: #093b80;
    }

    .btn-view-details {
        background: #6c757d;
        color: white;
    }

    .btn-view-details:hover {
        background: #545b62;
    }

    .no-results-sidebar {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 1rem;
        text-align: center;
        color: #6c757d;
    }

    .no-results-sidebar h4 {
        margin: 1rem 0 0.5rem;
        color: #495057;
    }

    .map-section-sidebar {
        flex: 1;
        border-radius: 12px;
        overflow: hidden;
    }
}

/* ============================================
   Property Location Picker Styles (Wizard Step 6)
   ============================================ */
.map-selection-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-instructions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 14px;
}

.map-instructions .material-icons {
    font-size: 20px;
}

.map-instructions p {
    margin: 0;
}

#property-location-map {
    width: 100%;
    height: 350px !important;
    min-height: 350px;
    z-index: 1;
}

.location-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.location-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
}

.location-actions .material-icons {
    font-size: 18px;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Input Group for Currency */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
}

.input-group .form-control {
    border-radius: 0 0.375rem 0.375rem 0;
    flex: 1;
}










/* ======================================
   FindYourHome Cards - Responsive Styles
   ====================================== */

/* Make images fill their container properly */
.property-card-sidebar .card-image-container {
    position: relative;
    flex-shrink: 0;
    width: 150px;
    height: 120px;
    overflow: hidden;
}

.property-card-sidebar .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tablet - Cards stack vertically */
@media (max-width: 1024px) {
    .property-card-sidebar {
        flex-direction: row;
    }

    .property-card-sidebar .card-image-container {
        width: 130px;
        height: 110px;
    }

    .property-info-sidebar {
        padding: 10px;
    }

    .property-info-sidebar h4 {
        font-size: 13px;
    }

    .property-price {
        font-size: 14px;
    }

    .property-features {
        font-size: 10px;
    }
}

/* Mobile - Cards become vertical */
@media (max-width: 768px) {
    .properties-sidebar {
        height: auto;
        max-height: 350px;
    }

    .property-card-sidebar {
        flex-direction: column;
    }

    .property-card-sidebar .card-image-container {
        width: 100%;
        height: 140px;
    }

    .property-card-sidebar .card-image-container img {
        width: 100%;
        height: 100%;
    }

    .property-info-sidebar {
        padding: 12px;
    }

    .property-info-sidebar h4 {
        font-size: 14px;
    }

    .property-price {
        font-size: 16px;
    }

    .property-badge {
        max-width: 100px;
        font-size: 10px;
        padding: 4px 8px;
    }

    .property-info-sidebar .card-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .property-info-sidebar .card-buttons .btn-view-on-map,
    .property-info-sidebar .card-buttons .btn-view-details {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .property-card-sidebar .card-image-container {
        height: 120px;
    }

    .property-info-sidebar {
        padding: 10px;
    }

    .property-info-sidebar h4 {
        font-size: 13px;
    }

    .property-price {
        font-size: 14px;
    }

    .property-badge {
        max-width: 80px;
        font-size: 9px;
    }
}

/* ======================================
   Map Performance Optimizations
   ====================================== */

/* Hardware acceleration for map container */
#map,
.map-section-sidebar,
.leaflet-container {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Reduce animation complexity on map tiles */
.leaflet-tile-container {
    will-change: transform;
}

/* Simpler transitions for markers */
.leaflet-marker-icon {
    transition: transform 0.15s ease-out !important;
}

/* Reduce popup animation overhead */
.leaflet-popup {
    transition: opacity 0.15s ease-out !important;
}

.leaflet-popup-content-wrapper {
    transition: none !important;
}

/* Disable animations on low-performance mode */
@media (prefers-reduced-motion: reduce) {

    .leaflet-marker-icon,
    .leaflet-popup,
    .leaflet-tile-container,
    .price-marker,
    .price-bubble,
    .marker-pin {
        transition: none !important;
        animation: none !important;
    }
}

/* Reduce hover effects complexity */
.price-marker {
    transition: transform 0.15s ease-out;
}

.price-bubble {
    transition: background 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}

.marker-pin {
    transition: background 0.15s ease-out, transform 0.15s ease-out;
}

/* Optimize map controls */
.leaflet-control-zoom a {
    transition: background 0.1s ease-out;
}

/* Mobile map visibility fix */
@media (max-width: 768px) {
    .main-container-sidebar {
        flex-direction: column;
        height: auto;
    }

    .map-section-sidebar {
        height: 350px !important;
        min-height: 350px;
        width: 100%;
        order: -1;
        /* Map first on mobile */
    }

    #map {
        height: 350px !important;
        min-height: 350px;
    }

    .properties-sidebar {
        width: 100%;
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .map-section-sidebar {
        height: 280px !important;
        min-height: 280px;
    }

    #map {
        height: 280px !important;
        min-height: 280px;
    }

    .properties-sidebar {
        max-height: 350px;
    }
}