/**
 * HMDA Lakes Proximity — Map Tool + Content Styles
 * Map layout styles are in dashcustom.css (vr-map-* classes)
 * Hero styles are in tool-hero.css (tool-search-hero-* classes)
 */

:root {
    --hp-primary: #ff6725;
    --hp-primary-dark: #e55a1b;
}

/* Property Header (result card) */
.property-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.property-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF6725 0%, #FF8A56 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.25);
}

.property-title h5 { margin: 0 0 4px 0; font-size: 20px; font-weight: 700; color: #1a202c; }
.property-title p { margin: 0; font-size: 13px; color: #718096; font-weight: 500; }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.info-item { background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; transition: all 0.3s ease; }
.info-item:hover { border-color: #ff672540; box-shadow: 0 4px 12px rgba(255, 103, 37, 0.08); transform: translateY(-2px); }
.info-item-icon { width: 38px; height: 38px; background: linear-gradient(135deg, #ff672510 0%, #ff672508 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #ff6725; flex-shrink: 0; }
.info-item-content { flex: 1; min-width: 0; }
.info-item-label { font-size: 11px; font-weight: 600; color: #718096; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.info-item-value { font-size: 14px; font-weight: 600; color: #2d3748; overflow: hidden; text-overflow: ellipsis; word-wrap: break-word; word-break: break-word; }

/* Content Animation */
.land-details-section { animation: fadeInContent 0.5s ease; }
@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Result Body Scrollbar */
.vr-map-result-body::-webkit-scrollbar { width: 6px; }
.vr-map-result-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.vr-map-result-body::-webkit-scrollbar-thumb { background: #ff6725; border-radius: 10px; }
.vr-map-result-body::-webkit-scrollbar-thumb:hover { background: #e55a1f; }

/* Distance Badges */
.hp-dist-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}
.hp-dist-critical { background: #ffebee; color: #c62828; }
.hp-dist-high { background: #fbe9e7; color: #d84315; }
.hp-dist-moderate { background: #fff3e0; color: #e65100; }
.hp-dist-low { background: #fffde7; color: #f9a825; }
.hp-dist-safe { background: #e8f5e9; color: #2e7d32; }
.hp-dist-far { background: #f5f5f5; color: #757575; }

/* Table row highlights */
.hp-row-critical { background: #fff5f5 !important; }
.hp-row-high { background: #fff8f0 !important; }
.hp-row-moderate { background: #fffcf0 !important; }

/* ─── Info Section (below map) ─── */
.hp-info-section { background: #fff; border-radius: 20px; padding: 30px; margin-bottom: 20px; }
.hp-info-section h3 { font-size: 18px; font-weight: 700; color: #ff6725; margin-bottom: 15px; }
.hp-info-section p, .hp-info-section li { color: #555; font-size: 14px; line-height: 1.7; }
.hp-info-section ul { padding-left: 20px; }
.hp-info-section ul li { margin-bottom: 8px; }

.hp-lake-card { background: #fff3ed; border: 1px solid #b2ebf2; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.hp-lake-card h4 { font-size: 15px; font-weight: 700; color: #ff6725; margin-bottom: 6px; }
.hp-lake-card p { font-size: 13px; color: #555; margin: 0; }

.hp-highlight-box { background: #fff3ed; border: 1px solid #b2ebf2; border-radius: 12px; padding: 20px; margin: 20px 0; }
.hp-highlight-box h4 { font-size: 15px; font-weight: 700; color: #e55a1b; margin-bottom: 8px; }

.hp-lakes-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.hp-lakes-table thead th { background: #ff6725; color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 600; text-align: left; }
.hp-lakes-table thead th:first-child { border-radius: 8px 0 0 0; }
.hp-lakes-table thead th:last-child { border-radius: 0 8px 0 0; }
.hp-lakes-table tbody td { padding: 10px 16px; font-size: 13px; color: #333; border-bottom: 1px solid #fff3ed; }
.hp-lakes-table tbody tr:hover { background: #f5f5f5; }

/* FAQ */
.hp-faq-item { border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 12px; overflow: hidden; transition: all 0.3s; }
.hp-faq-item.open { border-color: #ff6725; }
.hp-faq-question { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; color: #333; background: #fafafa; }
.hp-faq-question i { transition: transform 0.3s; color: #ff6725; }
.hp-faq-item.open .hp-faq-question i { transform: rotate(180deg); }
.hp-faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s; color: #555; font-size: 14px; line-height: 1.7; }
.hp-faq-item.open .hp-faq-answer { padding: 0 20px 16px; max-height: 500px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 576px) {
    .hp-lake-card { padding: 12px; }
    .hp-lakes-table { font-size: 12px; }
    .hp-lakes-table thead th, .hp-lakes-table tbody td { padding: 8px 10px; }
}

/* ─── Print ─── */
@media print {
    .vr-map-search-container, .vr-map-location-btn, .vr-map-instruction,
    .vr-map-legend, .vr-close-btn, .btn,
    .dashboard-side-menu, .dashboard-header,
    .related-tool-card, .related-tools-heading,
    #tool-article, .hp-faq-item, footer, nav, .breadcrumb { display: none !important; }

    .vr-map-result-card {
        position: relative !important;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .vr-map-result-card::before {
        content: 'HMDA Lakes Proximity Check — Source: tg.verified.realestate';
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
}
