.btn-outline-success:hover,
.open-house-active {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.open-house-active:hover {
    background-color: #157347;
    border-color: #146c43;
}

#advancedFilters.show {
    display: block !important;
}

.search-box .btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.search-box .btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.search-box .btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.search-box .btn-outline-secondary {
    color: #6c757d;
    border-color: #ced4da;
}

.search-box .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.search-box input[type="number"] {
    -webkit-moz-appearance: textfield;
}

.search-box input[type="number"]::-webkit-outer-spin-button,
.search-box input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 0;
}

/* Map Container */
.map-container {
    height: calc(100vh - 100px);
    min-height: 800px;
    position: sticky;
    top: 20px;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Listings Container */
.listings-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: calc(100vh - 100px);
    min-height: 800px;
    overflow-y: auto;
}

.listings-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.listings-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.column-selector .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Listings Results Grid */
.listings-results {
    padding: 1rem;
}

.listings-results.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

/* Property Card */
.property-card {
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.property-card .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.5s;
    transition-delay: 0.1s;
}

.property-card .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.3) !important;
    border: 1px solid #0d6efd !important;
}

.property-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.property-card .card-body {
    padding: 1.25rem;
}

.property-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.property-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 1rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.property-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.property-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
}

/* Favorite Button Styles */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.favorite-btn i {
    font-size: 18px;
    color: #999;
    transition: all 0.2s;
}

.favorite-btn:hover i {
    color: #666;
}

/* Estilo cuando está en favoritos */
.favorite-btn.active i {
    color: #dc3545;
    font-weight: 900; /* Esto asegura que se use la versión sólida del ícono */
}

.favorite-btn.active:hover i {
    color: #c82333;
}

/* Estilo cuando está deshabilitado */
.favorite-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Checks (Amenidades) */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    color: #495057;
    font-size: 0.95rem;
}

/* Popup Styles */
.property-popup {
    min-width: 280px;
    padding: 10px;
}

.popup-image {
    position: relative;
    margin-bottom: 10px;
}

.popup-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.popup-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.popup-buttons button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-buttons .favorite-btn {
    color: #dc3545;
}

.popup-buttons .favorite-btn.active {
    background-color: #dc3545;
    color: white;
}

.popup-buttons .share-btn {
    color: #0d6efd;
}

.popup-buttons button:hover {
    transform: scale(1.1);
}

.popup-content {
    padding: 10px;
}

.popup-title {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.popup-price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.popup-address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.popup-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.popup-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.popup-details i {
    color: #0d6efd;
}

.property-popup h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.property-popup p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.popup-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Toast Styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 4px;
    z-index: 1050;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.success {
    background-color: #28a745;
    color: white;
}

.toast.error {
    background-color: #dc3545;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .map-container {
        height: 400px;
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .listings-container {
        height: auto;
    }

    .listings-results.two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .search-box {
        padding: 15px;
    }

    .property-card .card-img-top {
        height: 150px;
    }
}

/* Navbar Styles */
.espaciado{
    margin-bottom: 80px;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

main {
    padding-top: 76px; /* navbar height + some padding */
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand i {
    color: #006aff;
}

.row .nav-link {
    color: #2a2a33 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}
.row .nav-link.active {
    color: rgb(255, 255, 255) !important;
    background-color: #1174ff !important;
}

.row .nav-link:hover {
    color: rgb(255, 255, 255) !important;
    background-color: #1174ff !important;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #e6e6e6;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #2a2a33;
}

.dropdown-item:hover {
    background-color: #f7f7f7;
    color: #006aff;
}

.btn-primary {
    background-color: #006aff;
    border-color: #006aff;
}

.btn-primary:hover {
    background-color: #0055cc;
    border-color: #0055cc;
}

.btn-outline-primary {
    color: #006aff;
    border-color: #006aff;
}

.btn-outline-primary:hover {
    background-color: #006aff;
    border-color: #006aff;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.footer h5 {
    color: #212529;
    margin-bottom: 1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #6c757d;
}

.footer a:hover {
    color: #0d6efd;
}

/* Scrollbar Styles */
.listings-container::-webkit-scrollbar {
    width: 8px;
}

.listings-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.listings-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.listings-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom Select Styles */
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para los popups de universidades */
.universidad-popup {
    min-width: 250px;
    max-width: 300px;
    padding: 15px;
}

.universidad-header {
    margin-bottom: 15px;
}

.universidad-header h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.universidad-header .badge {
    font-size: 0.8em;
    font-weight: normal;
}

.universidad-info {
    font-size: 0.9em;
    color: #666;
}

.universidad-info p {
    margin-bottom: 5px;
}

.universidad-info i {
    width: 16px;
    margin-right: 8px;
    color: #3498db;
}

.universidad-links {
    display: flex;
    gap: 8px;
}

.universidad-links .btn {
    font-size: 0.85em;
}

.universidad-links i {
    margin-right: 4px;
}

/* Estilos para el selector de país */
.country-select .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.country-select .dropdown-toggle::after {
    display: none;
}

.country-select .dropdown-toggle:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.country-select .dropdown-toggle:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.country-select .dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
}

.country-select .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.country-select .dropdown-item img {
    width: 20px;
    height: auto;
}

.country-select .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Estilos para el checklist de amenidades */
.amenities-container {
    scrollbar-width: thin;
    scrollbar-color: #0d6efd #f8f9fa;
}

.amenities-container::-webkit-scrollbar {
    width: 6px;
}

.amenities-container::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.amenities-container::-webkit-scrollbar-thumb {
    background-color: #0d6efd;
    border-radius: 3px;
}

.amenities-container .form-check {
    margin-bottom: 0.5rem;
}

.amenities-container .form-check:last-child {
    margin-bottom: 0;
}

.amenities-container .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.amenities-container .form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Estilos para las amenidades */
.amenity-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    margin-bottom: 10px !important;
}

.amenity-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    border-color: #2196F3 !important;
}

.amenity-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f0f7ff !important;
    border-radius: 50% !important;
    margin-right: 12px !important;
}

.amenity-icon i {
    transform: translateY(0px);
    font-size: 20px !important;
    color: #2196F3 !important;
}

.amenity-text {
    font-size: 0.95rem !important;
    color: #333 !important;
    font-weight: 500 !important;
}

/* Property Details Page */
.property-amenities .amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s;
}

.property-amenities .amenity-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.property-amenities .amenity-item i {
    font-size: 1.2rem;
    color: #0d6efd;
    width: 24px;
    text-align: center;
}

.property-amenities .amenity-item span {
    font-size: 0.95rem;
    color: #495057;
}

.property-main-details .detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s;
}

.property-main-details .detail-item:hover {
    background-color: #e9ecef;
}

.property-main-details .detail-item i {
    font-size: 1.4rem;
    color: #0d6efd;
}

.property-main-details .detail-label {
    font-weight: 500;
    color: #6c757d;
}

.property-main-details .detail-value {
    font-weight: 600;
    color: #212529;
}

/*perfil*/
.color-letra:hover{
    color: white !important;
    transition: all 0.5s;
    transition-delay: 0.1s;
    background-color: #0d6efd
}
.hero{
    margin-top: -60px;
    height: 80px;
    background-color: #006aff;
    margin-bottom: 20px;
}

.text-end .btn-secondary{
    border-radius: 10px;
    background-color: transparent;
    color: #495057;
}
.text-end .btn-secondary:hover{
    border-radius: 10px;
    background-color: transparent;
    transition: 0.5s;
    color: #495057;
}
.list-group{
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: transparent;
} 
.list-group .list-group-item{
    border: none;
    transition: all 0.5s;
    color: black;
    border-radius: 8px;
}

.list-group .list-group-item:hover{
    transition: 0.5s;
    background-color: #007acc ;
    color: white;
}
.list-group .active{
    background-color: #0278c7;
    color: white;
}

/* Estilos para la página de detalles de propiedad */
.carousel-item img {
    border-radius: 0.5rem;
}
.carousel-control-prev-icono, .carousel-control-next-icono {
    background-color: white ;
    color: #0278c7;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-control-prev-icono{
    transform: translateX(-10px);
}
.carousel-control-next-icono {
    transform: translateX(10px);
}

.card-vendedor {
    transition: transform 0.2s;
}

.card-vendedor:hover {
    transform: translateY(-5px);
}

.propiedad-detalles .list-unstyled li {
    margin-bottom: 0.5rem;
}

.propiedad-detalles .text-primary {
    margin-bottom: 1rem;
}

.propiedad-descripcion {
    line-height: 1.6;
    text-align: justify;
}

.property-popup .btn-primary{ 
    color: rgb(230, 230, 230);
}
.property-popup .btn-primary{ 
    color: white;
    transition: all 0.5s;
}

/* Responsive Adjustments */
@media (max-width: 560px) {
    .column-selector{
        display: none;
    }
}

.col-3{
    min-width: 100px;
    margin-bottom: 10px;
}

.dropdown-toggle{
    min-width: 100px;
}

.favorite-btn.active {
    background-color: white;
}

.property-details span {
    margin-right: 15px;
}
