/* GHMC Storm Water Drain Zone — Orange Theme #FF6725 */

/* ── Hero ── */
.swd-search-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    padding: 32px 28px 22px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}
.swd-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.swd-search-hero-decoration::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.swd-search-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.swd-search-hero-badge i {
    margin-right: 5px;
}
.swd-search-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.swd-search-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}
.swd-search-hero-desc a {
    color: #ffe0b2;
    text-decoration: underline;
    font-weight: 500;
}
.swd-search-hero-desc a:hover {
    color: #fff;
    text-decoration: none;
}
.swd-search-hero + .swd-search-card {
    border-radius: 0 0 20px 20px !important;
}

/* ── Search / Questionnaire Card ── */
.swd-search-card {
    padding: 28px;
}

/* ── Questionnaire ── */
.swd-question-wrapper {
    max-width: 640px;
    margin: 0 auto;
}
.swd-question-group {
    margin-bottom: 24px;
}
.swd-question-group label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
    line-height: 1.5;
}
.swd-question-group label .swd-q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FF6725;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}
.swd-question-group .nice-select {
    width: 100%;
}
.swd-assess-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6725 0%, #ff8a50 100%);
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}
.swd-assess-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255,103,37,0.25);
}
.swd-assess-btn i {
    margin-right: 6px;
}
.swd-reset-btn {
    display: inline-block;
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    margin-left: 10px;
}
.swd-reset-btn:hover {
    border-color: #FF6725;
    color: #FF6725;
}

/* ── Result Area ── */
.swd-result {
    display: none;
    margin-top: 28px;
    border-radius: 16px;
    padding: 28px;
    text-align: left;
    animation: swd-fadein 0.4s ease;
}
@keyframes swd-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.swd-result.swd-red {
    background: #fbe9e7;
    border: 1px solid #ef9a9a;
}
.swd-result.swd-orange {
    background: #fff3e0;
    border: 1px solid #ffcc80;
}
.swd-result.swd-yellow {
    background: #fff8e1;
    border: 1px solid #ffe082;
}
.swd-result.swd-green {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}
.swd-result.swd-blue {
    background: #e3f2fd;
    border: 1px solid #90caf9;
}

.swd-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.swd-red .swd-result-badge   { background: #c62828; color: #fff; }
.swd-orange .swd-result-badge { background: #e65100; color: #fff; }
.swd-yellow .swd-result-badge { background: #f9a825; color: #fff; }
.swd-green .swd-result-badge  { background: #2e7d32; color: #fff; }
.swd-blue .swd-result-badge   { background: #1565c0; color: #fff; }

.swd-result-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}
.swd-red .swd-result-title   { color: #b71c1c; }
.swd-orange .swd-result-title { color: #bf360c; }
.swd-yellow .swd-result-title { color: #e65100; }
.swd-green .swd-result-title  { color: #1b5e20; }
.swd-blue .swd-result-title   { color: #0d47a1; }

.swd-result-text {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 14px;
}
.swd-result-actions {
    list-style: none;
    padding: 0;
    margin: 0;
}
.swd-result-actions li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.swd-result-actions li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 13px;
}
.swd-red .swd-result-actions li::before   { color: #c62828; }
.swd-orange .swd-result-actions li::before { color: #e65100; }
.swd-yellow .swd-result-actions li::before { color: #f9a825; }
.swd-green .swd-result-actions li::before  { color: #2e7d32; }
.swd-blue .swd-result-actions li::before   { color: #1565c0; }

/* ── Info Cards Grid ── */
.swd-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.swd-info-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}
.swd-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.swd-info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FF6725;
    margin-bottom: 14px;
}
.swd-info-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}
.swd-info-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ── Reference Table ── */
.swd-ref-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}
.swd-ref-table thead th {
    background: #fff5f0;
    color: #e65100;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 14px 18px;
    text-align: left;
}
.swd-ref-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    line-height: 1.6;
}
.swd-ref-table tbody tr:last-child td {
    border-bottom: none;
}
.swd-ref-table tbody tr:hover {
    background: #fafafa;
}

/* ── Nala Chips List ── */
.swd-nala-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.swd-nala-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff5f0;
    border: 1px solid #ffe0cc;
    border-radius: 10px;
    font-size: 13px;
    color: #bf360c;
    font-weight: 500;
}
.swd-nala-chip i {
    color: #FF6725;
    font-size: 12px;
}

/* ── Flood-Prone Area Chips ── */
.swd-flood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.swd-flood-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    font-size: 13px;
    color: #1565c0;
    font-weight: 500;
}
.swd-flood-chip i {
    color: #FF6725;
    font-size: 12px;
}

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

/* ── Responsive ── */
@media (max-width: 991px) {
    .swd-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767px) {
    .swd-search-hero-title {
        font-size: 20px;
    }
    .swd-info-grid {
        grid-template-columns: 1fr;
    }
    .swd-nala-grid {
        grid-template-columns: 1fr;
    }
    .swd-flood-grid {
        grid-template-columns: 1fr;
    }
    .swd-reset-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}
@media (max-width: 576px) {
    .swd-search-card {
        padding: 20px 16px;
    }
    .swd-result {
        padding: 20px;
    }
}

/* Map tool — keep map usable on mobile (min 300px per UX policy) */
@media (max-width: 768px) {
    .swd-search-card .vr-map-container { height: 420px; min-height: 300px; }
}

/* 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; }

/* Print — only the result card prints */
@media print {
    .dashboard-side-menu, .dashboard-header, .swd-search-hero, .vr-map-search-container,
    .vr-map-location-btn, .vr-map-instruction, .vr-map-legend, .vr-close-btn, #swdMap,
    .related-tool-card, #tool-article, .swd-faq-item, footer, nav, .breadcrumb,
    .swd-info-card, .swd-ref-table, .btn, #swd-results-actions { display: none !important; }
    .vr-map-result-card {
        position: relative !important; box-shadow: none !important;
        border: 1px solid #ddd; width: 100% !important; max-width: 100% !important;
    }
    .vr-map-result-card::before {
        content: 'GHMC Storm Water Drain Zone Check — Source: tg.verified.realestate';
        display: block; font-size: 12px; color: #666;
        margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #ddd;
    }
}
