/* Smart Features Styles */
.property-comparison-tool {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.comparison-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
    margin-bottom: 25px;
}

.property-selectors {
    display: flex;
    gap: 15px;
    flex-grow: 1;
}

.property-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-grow: 1;
}

.property-selector select {
    flex-grow: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.btn-remove-selector {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.btn-add-selector {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.comparison-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-row {
    display: table-row;
}

.comparison-row.header {
    background: #2c3e50;
    color: white;
}

.comparison-cell {
    display: table-cell;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.comparison-cell.criteria {
    font-weight: 600;
    background: #e9ecef;
    width: 200px;
}

.comparison-cell.property {
    text-align: center;
    background: white;
}

.property-header {
    font-weight: 600;
    color: #2c3e50;
}

.price-value {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.price-per-m2 {
    font-size: 12px;
    color: #6c757d;
}

.comparison-analysis {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.analysis-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.best-value, .investment-potential, .recommendation {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Feng Shui Widget */
.feng-shui-widget {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feng-shui-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.feng-shui-header h4 {
    margin: 0;
    font-size: 18px;
}

.btn-refresh-tip {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.feng-shui-tip h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.feng-shui-tip p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

.feng-shui-footer {
    margin-top: 15px;
    opacity: 0.8;
}

/* AI Description Generator */
.ai-description-generator {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.ai-input-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.ai-actions {
    display: flex;
    gap: 15px;
    align-items: end;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
}

.ai-results {
    border-top: 2px solid #e9ecef;
    padding-top: 25px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.btn-copy-result,
.btn-edit-result {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

#ai-result-text {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

.ai-feedback {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.btn-feedback-good,
.btn-feedback-bad {
    padding: 8px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.btn-feedback-good {
    background: #27ae60;
    color: white;
}

.btn-feedback-bad {
    background: #e74c3c;
    color: white;
}

/* Deal of the Day */
.deal-of-day {
    position: relative;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.deal-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9ff3;
    color: #2c3e50;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.deal-content h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.deal-discount {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
}

.deal-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn-deal {
    background: white;
    color: #e74c3c;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-deal:hover {
    transform: translateY(-2px);
    color: #e74c3c;
}

/* Payment Packages */
.property-packages {
    margin: 40px 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.package-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.package-card.recommended {
    border-color: #3498db;
    transform: scale(1.05);
}

.package-card.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.package-header {
    text-align: center;
    margin-bottom: 25px;
}

.package-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 22px;
}

.package-price {
    color: #e74c3c;
}

.package-price .amount {
    font-size: 32px;
    font-weight: bold;
}

.package-price .period {
    font-size: 14px;
    color: #6c757d;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    color: #495057;
}

.package-actions {
    text-align: center;
}

.btn-package-select {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-package-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Payment Methods */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.payment-option input[type="radio"]:checked + .payment-icon {
    background: #3498db;
    color: white;
}

.payment-icon {
    font-size: 24px;
    margin-bottom: 8px;
    background: #f8f9fa;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card.recommended {
        transform: none;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .ai-input-form {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .analysis-content {
        grid-template-columns: 1fr;
    }
}