/**
 * Musi River Flood Zone Check — 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 {
    --mr-primary: #ff6725;
    --mr-primary-dark: #e55a1b;
    --mr-primary-light: #ff8c5c;
}

/* 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;
    letter-spacing: -0.3px;
}

.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; }

/* ─── Info Sections (below map) ─── */

.mr-info-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}
.mr-info-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e55a1b;
    margin-bottom: 15px;
}
.mr-info-section p, .mr-info-section li {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.mr-info-section ul { padding-left: 20px; }
.mr-info-section ul li { margin-bottom: 8px; }

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

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

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

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

/* SEO Article */
#tool-article h2 { font-size: 22px; font-weight: 700; color: #e55a1b; margin-bottom: 18px; }
#tool-article h3 { font-size: 17px; font-weight: 700; color: #ff6725; margin: 24px 0 10px; }
#tool-article p { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 14px; }
#tool-article ul, #tool-article ol { padding-left: 20px; margin-bottom: 14px; }
#tool-article li { font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 6px; }

/* Mobile */
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .mr-flood-table { font-size: 12px; }
    .mr-flood-table thead th, .mr-flood-table tbody td { padding: 8px 10px; }
    #tool-article h2 { font-size: 19px; }
    #tool-article h3 { font-size: 16px; }
    #tool-article p, #tool-article li { font-size: 14px; }
}

/* 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,
    .tool-search-hero, .tool-search-card,
    .mr-info-section, .related-tool-card, .related-tools-heading,
    #tool-article, .mr-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: 'Musi River Flood Zone Check — Source: tg.verified.realestate';
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
}
