/**
 * UX Builder - Project Realty List Module Styles
 * Styles cho module hiển thị BĐS theo dự án
 */

/* Container chính */
.nk-project-realty-list {
    margin: 40px 0;
}

/* Loading & No More Messages */
.nk-loading-more,
.nk-no-more {
    text-align: center;
    padding: 30px 0;
    margin: 20px 0;
}

.nk-loading-more i {
    font-size: 32px;
    color: #00b14f;
    display: block;
    margin-bottom: 10px;
}

.nk-loading-more p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.nk-no-more p {
    font-size: 15px;
    color: #999;
    margin: 0;
    font-style: italic;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-spinner {
    animation: spin 1s linear infinite;
}

/* Container chính */
.nk-project-realty-list {
    margin: 40px 0;
}

/* Tiêu đề block */
.nk-project-realty-list .home-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00b14f;
}

.nk-project-realty-list .home-title h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* CTA Button wrapper */
.nk-cta-button {
    text-align: center;
    padding: 30px 0;
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nk-cta-button:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Button styles */
.nk-cta-button .button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nk-cta-button .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Button variants */
.nk-cta-button .button.primary {
    background: linear-gradient(135deg, #00b14f 0%, #00a046 100%);
    color: #fff;
}

.nk-cta-button .button.primary:hover {
    background: linear-gradient(135deg, #00a046 0%, #008f3c 100%);
}

.nk-cta-button .button.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
}

.nk-cta-button .button.secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #4e555b 100%);
}

.nk-cta-button .button.success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
}

.nk-cta-button .button.success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.nk-cta-button .button.alert {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

.nk-cta-button .button.alert:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Icon trong button */
.nk-cta-button .button i {
    font-size: 18px;
}

/* Alert messages */
.nk-project-realty-list .alert {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
}

.nk-project-realty-list .alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.nk-project-realty-list .alert-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .nk-project-realty-list .home-title {
        margin-bottom: 20px;
    }

    .nk-project-realty-list .home-title h3 {
        font-size: 22px;
    }

    .nk-cta-button {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .nk-cta-button .button {
        padding: 14px 30px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .nk-loading-more,
    .nk-no-more {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .nk-project-realty-list .home-title h3 {
        font-size: 20px;
    }

    .nk-cta-button .button {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .nk-loading-more i {
        font-size: 24px;
    }
}