/* v2.0 - 빌라 시세 결과 스타일 - 간결한 카드 디자인 */
.analysis-result-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.result-header h2 {
    font-size: 26px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
}

.result-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0 0 10px 0;
}

.similarity-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #e2e8f0;
}

/* 핵심 결과 카드 - 이미지처럼 간결하게 */
.result-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.summary-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.summary-card.highlight {
    background: #fffbeb;
    border-color: #fbbf24;
}

.card-icon {
    font-size: 42px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.card-label {
    display: block !important;
    font-size: 13px !important;
    color: #718096 !important;
    margin-bottom: 10px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.card-value {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    line-height: 1.2 !important;
}

/* 유사도 조정 박스 */
.similarity-adjust-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.similarity-adjust-box.result {
    margin: 0 0 30px 0;
    background: #f0f7ff;
    border-color: #cce4ff;
}

.similarity-adjust-box h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #1565c0;
}

.similarity-adjust-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* 테이블 스타일 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.villa-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.villa-table thead {
    background: #667eea;
    color: white;
}

.villa-table th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.villa-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.villa-table td.price {
    font-weight: bold;
    color: #2d3748;
}

.villa-table tbody tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-buttons button,
.action-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* 버튼 스타일 강화 */
.btn-primary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: #667eea;
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #cbd5e0; /* 테두리 색상 강화 */
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #2d3748;
}

@media print {
    .action-buttons, .similarity-adjust-box {
        display: none !important;
    }
    
    .analysis-result-section {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    .page-header {
        display: none;
    }
}



/* 탭 스타일 추가 */
.search-method-tabs {
    display: flex;
    background: #f1f3f5;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 30px;
    gap: 5px;
}

.method-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #868e96;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.method-tab.active {
    background: white;
    color: #495057;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.method-tab:hover:not(.active) {
    background: rgba(255,255,255,0.5);
}

.premium-badge-small {
    font-size: 11px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* 주소 입력 필드 스타일 */
.address-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .address-inputs {
        grid-template-columns: 1fr;
    }
    
    .search-method-tabs {
        flex-direction: column;
    }
}

/* 셀렉트 박스 스타일 */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding: 12px 40px 12px 12px;
    cursor: pointer;
    background-color: #f8f9fa;
    line-height: 1.5;
    height: auto;
    vertical-align: middle;
}

select:hover {
    background-color: #e9ecef;
    border-color: #999;
}

select:focus {
    background-color: white;
    border-color: #667eea;
}

/* 프리미엄 잠금 오버레이 */
.premium-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.search-form {
    position: relative;
}

.lock-message {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    max-width: 80%;
}

.lock-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.lock-message h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.lock-message p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-premium {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-premium:hover {
    transform: translateY(-2px);
}
