/**
 * Land Use Zone Finder — 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 {
    --lz-primary: #ff6725;
    --lz-primary-dark: #e55a1b;
    --lz-primary-light: #ff8c5c;
}

/* ─── Zone Badge ─── */
.lz-zone-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.lz-zone-badge.residential { background: #e8f5e9; color: #2e7d32; }
.lz-zone-badge.commercial { background: #e3f2fd; color: #1565c0; }
.lz-zone-badge.industrial { background: #f3e5f5; color: #7b1fa2; }
.lz-zone-badge.mixed { background: #fff3e0; color: #e65100; }
.lz-zone-badge.institutional { background: #e0f7fa; color: #00838f; }
.lz-zone-badge.openspace { background: #f1f8e9; color: #558b2f; }
.lz-zone-badge.reserved { background: #ffebee; color: #c62828; }
.lz-zone-badge.agricultural { background: #f1f8e9; color: #33691e; }
.lz-zone-badge.no-plan { background: #f5f5f5; color: #616161; }
.lz-zone-badge.other { background: #eceff1; color: #455a64; }

/* Category inline badge */
.lz-cat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.lz-cat-badge.residential { background: #e8f5e9; color: #2e7d32; }
.lz-cat-badge.commercial { background: #e3f2fd; color: #1565c0; }
.lz-cat-badge.industrial { background: #f3e5f5; color: #7b1fa2; }
.lz-cat-badge.mixed { background: #fff3e0; color: #e65100; }
.lz-cat-badge.institutional { background: #e0f7fa; color: #00838f; }
.lz-cat-badge.openspace { background: #f1f8e9; color: #558b2f; }
.lz-cat-badge.reserved { background: #ffebee; color: #c62828; }
.lz-cat-badge.agricultural { background: #f1f8e9; color: #33691e; }
.lz-cat-badge.no-plan { background: #f5f5f5; color: #616161; }
.lz-cat-badge.other { background: #eceff1; color: #455a64; }

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

.lz-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);
    flex-shrink: 0;
}

.lz-property-title h5 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.3px;
}

.lz-property-title p {
    margin: 0;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

/* ─── Info Grid ─── */
.lz-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.lz-info-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.lz-info-item:hover {
    border-color: #ff672540;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.08);
    transform: translateY(-2px);
}

.lz-info-item-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #ff672510 0%, #ff672508 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ff6725;
    flex-shrink: 0;
}

.lz-info-item-content { flex: 1; min-width: 0; }

.lz-info-item-label {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.lz-info-item-value {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
}

/* ─── Development Controls Section ─── */
.lz-dev-controls {
    margin-bottom: 16px;
}

.lz-dev-controls h6 {
    font-size: 13px;
    font-weight: 700;
    color: #ff6725;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #fff3ed;
}

.lz-dev-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.lz-dev-item {
    background: #fff8f5;
    border: 1px solid #ffe8dd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.lz-dev-item-label {
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.lz-dev-item-value {
    font-size: 16px;
    font-weight: 700;
    color: #ff6725;
}

/* ─── Regulations Section ─── */
.lz-regulations {
    margin-bottom: 16px;
}

.lz-regulations h6 {
    font-size: 13px;
    font-weight: 700;
    color: #ff6725;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #fff3ed;
}

.lz-regulations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lz-regulations li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    border-bottom: 1px solid #f5f5f5;
}

.lz-regulations li:last-child { border-bottom: none; }

.lz-regulations li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #ff6725;
    font-size: 11px;
    top: 8px;
}

/* ─── Permitted Uses Tags ─── */
.lz-uses-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lz-use-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
}

.lz-use-tag.permitted { background: #e8f5e9; color: #2e7d32; }
.lz-use-tag.conditional { background: #fff3e0; color: #e65100; }

/* ─── Content Animation ─── */
.lz-details-section {
    animation: lzFadeIn 0.5s ease;
}

@keyframes lzFadeIn {
    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; }

/* ─── FAQ Section ─── */
.lz-faq-section { margin-top: 30px; }
.lz-faq-item { border: 1px solid #e9ecef; border-radius: 8px; margin-bottom: 10px; overflow: hidden; transition: all 0.3s; }
.lz-faq-item.open { border-color: #e55a1b; }
.lz-faq-question {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background 0.2s;
}
.lz-faq-question:hover { background: #fff3ec; }
.lz-faq-question .faq-icon { transition: transform 0.3s; font-size: 12px; color: #ff6725; }
.lz-faq-item.open .lz-faq-question .faq-icon { transform: rotate(180deg); }
.lz-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}
.lz-faq-item.open .lz-faq-answer { padding: 15px 20px; max-height: 500px; }

/* ─── SEO Article ─── */
#tool-article h2 { font-size: 22px; font-weight: 700; color: #e55a1b; margin-bottom: 18px; }
#tool-article h3, #tool-article h5 { 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) {
    .lz-info-grid { grid-template-columns: 1fr; }
    .lz-dev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .lz-dev-grid { grid-template-columns: repeat(2, 1fr); }
    #tool-article h2 { font-size: 19px; }
    #tool-article h3, #tool-article h5 { 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,
    .related-tool-card, .related-tools-heading,
    #tool-article, .lz-faq-item, footer, nav, .breadcrumb,
    .lz-results-actions, .row.mb-20:has(.related-tool-card) { display: none !important; }

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

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

/* ── Official HMDA Master Plan 2031 raster sheet viewer ── */
.lz-official-sheet {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #ffd2bd;
    background: #fff7f2;
    border-radius: 14px;
}
.lz-official-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
}
.lz-official-head h6 { margin: 0; color: #d8501a; font-weight: 700; font-size: 16px; }
.lz-official-tag {
    background: #ff6725; color: #fff; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .3px;
}
.lz-official-sub { font-size: 13px; color: #7a5a4c; margin: 0 0 12px; }
.lz-official-viewer {
    width: 100%; height: 460px; border-radius: 10px;
    border: 1px solid #ffd2bd; background: #faf3ee; overflow: hidden;
}
.lz-official-viewer .leaflet-container {
    background: #faf3ee;
    cursor: url(../dashboard/images/icon/grab.svg), grab !important;
}
.lz-official-imgfallback {
    display: flex; align-items: center; justify-content: center; height: 100%; font-size: 14px;
}
.lz-official-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.lz-official-disclaimer {
    margin-top: 12px; padding: 12px 14px; border: 1px solid #ffd2bd;
    background: #fff; border-radius: 10px; font-size: 12.5px; line-height: 1.6; color: #5c4a42;
}
.lz-official-disclaimer strong { color: #d8501a; }
@media (max-width: 768px) { .lz-official-viewer { height: 320px; } }
