/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    padding-top: 56px;
    /* Altura exacta del navbar */
    color: #333;
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    /* Añadir algo de espacio dentro del navbar */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff !important;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 15px;
    /* Aumentar margen entre los enlaces */
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
    /* Más espacio en el footer */
    margin-top: auto;
}

footer h5 {
    font-weight: bold;
    margin-bottom: 1rem;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
    /* Aumentar el espacio entre los elementos del footer */
}

footer ul li i {
    margin-right: 0.5rem;
    color: #007bff;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #007bff;
}

/* Estilos para el login (aplicados globalmente) */
.login-box {
    background-color: #fff;
    /* Fondo blanco */
    border-radius: 10px;
    /* Bordes redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Sombra ligera */
    padding: 2rem;
    max-width: 450px;
    /* Ajustar el tamaño del login */
    margin: 0 auto;
    /* Centrar el formulario */
}

.login-header {
    padding: 1rem;
    /* Menos padding */
    margin-bottom: 1rem;
    /* Espacio abajo */
    text-align: center;
    /* Centrado */
}

.login-body {
    padding: 1.5rem;
    /* Padding adecuado en el cuerpo */
}

/* Estilos específicos para el login */
.login-box .form-control {
    font-size: 0.9rem;
    /* Reducir tamaño de la letra */
    padding: 0.75rem;
    /* Mantener un padding cómodo */
}

.login-box .form-label {
    font-size: 1rem;
    /* Ajustar el tamaño de la fuente de los labels */
}

.login-box .btn {
    font-size: 1rem;
    /* Reducir ligeramente el tamaño del texto en el botón */
    padding: 0.75rem 1.5rem;
    /* Ajustar el tamaño del botón */
}

.login-box .form-check-label {
    font-size: 0.9rem;
    /* Reducir tamaño de la fuente en el texto del checkbox */
}

.login-box .form-group {
    margin-bottom: 1.25rem;
    /* Ajustar margen entre los campos */
}

.btn-primary {
    background-color: #007bff;
    /* Color coherente con el tema */
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    /* Hover más suave */
    border-color: #0056b3;
}

/* Clase adicional para los botones grandes */
.form-control-lg {
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    /* Espacio entre los campos */
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.form-check-input {
    border-radius: 4px;
}

/* Transiciones suaves */
.btn,
.form-control {
    transition: all 0.3s ease;
}

.btn:hover,
.form-control:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.8);
}

/* Estilos para el navbar */
.navbar-nav .nav-link {
    font-size: 0.875rem;
    /* Reducir el tamaño de la fuente */
}

.navbar-brand {
    font-size: 1.25rem;
    /* Ajustar el tamaño de la marca */
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item .nav-link i {
        margin-right: 8px;
        /* Ajusta el espacio entre el ícono y el texto */
    }
}

.custom-file-input {
    padding: 0;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    text-align: center;
    height: 40px;
    line-height: 40px;
}

/* style portada categoría */
.prevPortada {
    width: 100%;
    min-width: 200px;
    background: none;
}

.prevPhoto label {
    cursor: pointer;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.prevPhoto img {
    width: 100%;
    height: 100%;
}

.upimg,
.notblock {
    display: none !important;
}

.errorArchivo {
    font-size: 16px;
    font-family: arial;
    color: #cc0000;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.delPhoto {
    color: #FFF;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background: red;
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 10;
}

/* Upload fotos*/
#containerImages {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

#containerImages>div {
    margin-right: 10px;
    margin-bottom: 8px;
}

.prevImage {
    border: 1px solid #CCC;
    width: 120px;
    height: 148px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prevImage img {
    width: 100%;
}

.inputUploadfile {
    display: none;
}

.btnUploadfile,
.btnDeleteImage {
    border: 0;
    background-color: #009688;
    text-align: center;
    padding: 2px 3px;
    color: #FFF;
    font-size: 9pt;
    cursor: pointer;
    width: 100%;
}

.btnDeleteImage {
    background-color: #dc3545;
}

.prevImage .loading {
    width: 30px;
    height: 30px;
}

#celFotos img {
    width: 150px;
    margin: 10px;
}

/* Estilo para propiedades inactivas */
.card-inactive {
    opacity: 0.6;
    /* Hace la tarjeta un 60% opaca */
    transition: opacity 0.3s ease;
    /* Agrega una transición suave */
    transform: scale(0.95);
    /* Reduce ligeramente el tamaño de la tarjeta */
    pointer-events: none;
    /* Desactiva los clics en toda la tarjeta */
}

/* Estilos unificados para todas las cards de propiedades */
.property-card {
    border: none;
    transition: all 0.3s ease;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-image-container:hover .property-image {
    transform: scale(1.03);
}

.property-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.property-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.property-card .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.property-description {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: #6c757d;
}

.property-price {
    margin-bottom: 0.5rem;
}

.property-badge {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
}

.badge-venta {
    background-color: #28a745;
}

.badge-arriendo {
    background-color: #ffc107;
    color: #212529;
}

.property-btn {
    margin-top: 1rem;
}

/* Para cards inactivas */
.card-inactive {
    opacity: 0.85;
}

.card-inactive .property-image {
    filter: grayscale(80%);
}

.card-inactive-header {
    background-color: #ffc107;
    color: #212529;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Estilos adicionales para mejorar el espaciado */
.card {
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    /* Espacio adicional entre cards */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.image-container {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Estilos para propiedades inactivas */
.card-inactive {
    opacity: 0.85;
}

.img-inactive {
    filter: grayscale(80%);
}

.property-filters {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.property-filters .btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.property-filters .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    border-radius: 0.25rem;
}

.property-filters label.btn {
    cursor: pointer;
    border-width: 1px;
}

.property-filters .h-100 {
    height: 38px !important;
}

@media (max-width: 767.98px) {
    .property-filters .col-md-3 {
        margin-bottom: 1rem;
    }

    .property-filters .d-flex {
        gap: 8px;
    }

    .property-filters .btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Estilo para botones no seleccionados al hacer hover */
.property-type-btn.btn-outline-light:hover:not(.btn-primary) {
    background-color: white !important;
    color: #0d6efd !important;
    /* Azul Bootstrap */
    border-color: #0d6efd !important;
}

/* Transición suave */
.property-type-btn {
    transition: all 0.3s ease;
}

/* Efecto para iconos */
.property-type-btn:hover i {
    color: #0d6efd;
    transform: scale(1.05);
}

/* Mantener estilo cuando está seleccionado */
.property-type-btn.btn-primary:hover {
    background-color: #0d6efd;
    color: white !important;
}

/* Asegura que el filtro ocupe todo el ancho sin espacios */
.property-filters-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -1px;
    /* Elimina línea blanca residual */
}

.property-filters-content {
    width: 100%;
    margin: 0;
}

.property-filters-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

.whatsapp-float:hover::after {
    opacity: 1;
}