/* Price Prediction Page Styles */

.price-prediction-wrapper {
    min-height: 100vh;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.price-prediction-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 860px;
    width: 100%;
    padding: 48px 48px 40px;
}

/* Top accent bar */
.price-prediction-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #a51c36 0%, #c0304e 100%);
    border-radius: 16px 16px 0 0;
    margin: -48px -48px 40px;
}

.price-prediction-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 12px;
}

.price-prediction-subtitle {
    font-size: 0.97rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.price-prediction-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.price-prediction-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 1rem;
    color: #374151;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.price-prediction-input:focus {
    outline: none;
    border-color: #a51c36;
    box-shadow: 0 0 0 3px rgba(165, 28, 54, 0.1);
    background: #ffffff;
}

.price-prediction-input::placeholder {
    color: #9ca3af;
}

.price-prediction-address-wrapper {
    position: relative;
}

.price-prediction-address-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    list-style: none;
    margin: 4px 0 0;
    padding: 6px 0;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.price-prediction-address-menu.is-open {
    display: block;
}

.price-prediction-address-menu li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    transition: background 0.15s;
}

.price-prediction-address-menu li:hover,
.price-prediction-address-menu li[aria-selected="true"] {
    background: #fdf2f4;
    color: #a51c36;
}

.price-prediction-address-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.price-prediction-address-option.is-muted {
    cursor: default;
    color: #6b7280;
}

.price-prediction-result-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price-prediction-result-price {
    color: #a51c36;
    font-weight: 700;
    white-space: nowrap;
}

.price-prediction-address-status {
    min-height: 1.3rem;
    margin-top: 0.35rem;
    font-size: 0.84rem;
    color: #6b7280;
}

.price-prediction-address-status[data-state="error"] {
    color: #b42318;
}

.price-prediction-address-status[data-state="ready"],
.price-prediction-address-status[data-state="selected"] {
    color: #067647;
}

.price-prediction-warning {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.6;
    margin-bottom: 28px;
}

.price-prediction-warning strong {
    font-weight: 700;
}

.price-prediction-btn {
    background: linear-gradient(135deg, #a51c36 0%, #c0304e 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-prediction-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(165, 28, 54, 0.35);
    opacity: 0.95;
}

.price-prediction-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.price-prediction-btn .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pp-spin 0.7s linear infinite;
}

.price-prediction-btn.is-loading .btn-spinner {
    display: inline-block;
}

.price-prediction-btn.is-loading .btn-label {
    opacity: 0.7;
}

@keyframes pp-spin {
    to { transform: rotate(360deg); }
}

/* Results section */
.price-prediction-results {
    display: none;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #f0f2f5;
}

.price-prediction-results.is-visible {
    display: block;
}

.price-prediction-results-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    text-align: center;
}

.price-prediction-chart-wrapper {
    overflow-x: auto;
}

.price-prediction-year-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.price-prediction-year-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 48px;
    text-align: right;
}

.price-prediction-bar-track {
    flex: 1;
    height: 28px;
    background: #f3f4f6;
    border-radius: 50px;
    overflow: hidden;
}

.price-prediction-bar-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #a51c36 0%, #e05270 100%);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.price-prediction-bar-fill span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.price-prediction-disclaimer {
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .price-prediction-card {
        padding: 36px 24px 32px;
    }

    .price-prediction-card::before {
        margin: -36px -24px 32px;
    }

    .price-prediction-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .price-prediction-card {
        padding: 28px 16px 24px;
    }

    .price-prediction-card::before {
        margin: -28px -16px 28px;
    }
}
