/* ========================================
   LOCAL SUPPORT SECTION STYLES
   Matches the "Oasis" theme
   ======================================== */

:root {
    --support-primary: #4A90E2;        /* Trust blue */
    --support-success: #5CB85C;        /* Success green */
    --support-warning: #F0AD4E;        /* Warning amber */
    --support-danger: #FF6B6B;         /* Emergency red */
    --support-legal: #9370DB;          /* Legal purple */
    --support-health: #FF6B9D;         /* Health pink */
    --support-charity: #90EE90;        /* Charity green */
    --support-housing: #FFB347;        /* Housing orange */
}

/* ========================================
   HERO SECTION
   ======================================== */
.support-hero {
    background: linear-gradient(135deg, var(--support-primary) 0%, #6FB1FF 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-icon i {
    font-size: 80px;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Quick Search Box */
.quick-search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-group .form-control {
    flex: 1;
    height: 50px;
    border-radius: 25px;
    padding: 0 25px;
    border: none;
    font-size: 1rem;
}

.btn-search {
    background: #FF9966;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #FF7744;
    transform: scale(1.05);
    color: white;
}

.btn-view-map {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-map:hover {
    background: white;
    color: var(--support-primary);
}

/* ========================================
   SUPPORT CATEGORIES
   ======================================== */
.support-categories {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.support-card {
    display: block;
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 280px;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.support-card.support-legal::before {
    background: linear-gradient(90deg, var(--support-legal), #7B68EE);
}

.support-card.support-health::before {
    background: linear-gradient(90deg, var(--support-health), #FF1493);
}

.support-card.support-charity::before {
    background: linear-gradient(90deg, var(--support-charity), #76D776);
}

.support-card.support-housing::before {
    background: linear-gradient(90deg, var(--support-housing), #FFA500);
}

.support-card:hover::before {
    transform: scaleX(1);
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.support-card .card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.support-card.support-legal .card-icon { color: var(--support-legal); }
.support-card.support-health .card-icon { color: var(--support-health); }
.support-card.support-charity .card-icon { color: var(--support-charity); }
.support-card.support-housing .card-icon { color: var(--support-housing); }

.support-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.support-card .card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.support-card .card-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.count-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--support-primary);
}

.count-label {
    font-size: 0.9rem;
    color: #888;
}

.support-card .card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--support-primary);
    transition: transform 0.3s ease;
}

.support-card:hover .card-arrow {
    transform: translateX(5px);
}

/* ========================================
   QUICK STATS
   ======================================== */
.quick-stats {
    border-top: 3px solid #e9ecef;
    border-bottom: 3px solid #e9ecef;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--support-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FEATURED ORGANIZATIONS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.org-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.org-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.org-icon {
    font-size: 2.5rem;
    color: var(--support-primary);
    flex-shrink: 0;
}

.org-title-block {
    flex: 1;
}

.org-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.org-type {
    display: inline-block;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
}

.org-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.org-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: var(--support-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.org-contact {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--support-primary);
    font-size: 1.1rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--support-primary);
}

.national-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #90EE90 0%, #76D776 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========================================
   SEARCH TIPS
   ======================================== */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tip-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-item span {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   CALL TO ACTION
   ======================================== */
.support-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-content {
    padding: 40px;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-emergency {
    background: var(--support-danger);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-emergency:hover {
    background: #c9302c;
    transform: scale(1.05);
    color: white;
}

/* ========================================
   IMPORTANT NOTICE
   ======================================== */
.important-notice {
    background: #f8f9fa;
}

.notice-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notice-icon {
    font-size: 3rem;
    color: var(--support-success);
    flex-shrink: 0;
}

.notice-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.notice-content p {
    color: #666;
    margin: 0;
}

/* ========================================
   MAP PAGE STYLES
   ======================================== */
.support-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb {
    margin-bottom: 0;
}

.map-header {
    background: linear-gradient(135deg, var(--support-primary) 0%, #6FB1FF 100%);
    color: white;
    padding: 60px 0 40px;
}

.map-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.map-intro {
    font-size: 1.2rem;
    opacity: 0.95;
}

.filter-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.filter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.map-legend {
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.legend-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.legend-label {
    font-size: 0.9rem;
    color: #666;
}

.results-info {
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.info-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #555;
}

.info-box i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.map-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Leaflet Popup Styling */
.map-popup {
    padding: 10px;
}

.popup-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.popup-type {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.popup-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.popup-contact {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.popup-contact a {
    color: var(--support-primary);
    text-decoration: none;
}

.popup-services {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.popup-service-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #E3F2FD;
    color: var(--support-primary);
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Map List View */
.org-card-small {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.org-header-small {
    margin-bottom: 10px;
}

.org-name-small {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.org-type-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.org-address-small,
.org-phone-small {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.org-address-small i,
.org-phone-small i {
    color: var(--support-primary);
    margin-right: 5px;
}

/* ========================================
   CATEGORY DETAIL PAGE
   ======================================== */
.category-header {
    color: white;
    padding: 60px 0 40px;
}

.category-header.support-legal {
    background: linear-gradient(135deg, var(--support-legal) 0%, #7B68EE 100%);
}

.category-header.support-health {
    background: linear-gradient(135deg, var(--support-health) 0%, #FF1493 100%);
}

.category-header.support-charities {
    background: linear-gradient(135deg, var(--support-charity) 0%, #76D776 100%);
}

.category-header.support-housing {
    background: linear-gradient(135deg, var(--support-housing) 0%, #FFA500 100%);
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-intro {
    font-size: 1.2rem;
    opacity: 0.95;
}

.quick-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
}

.info-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.info-header i {
    font-size: 1.8rem;
    color: var(--support-warning);
}

.info-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

/* Organizations Grid */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.results-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
}

.results-count #resultCount {
    color: var(--support-primary);
    font-size: 1.3rem;
}

.organizations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.organization-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.organization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.org-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.org-icon-large {
    font-size: 3rem;
    color: var(--support-primary);
    flex-shrink: 0;
}

.org-title-section {
    flex: 1;
}

.org-card-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.org-type-label {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-right: 10px;
}

.national-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #90EE90 0%, #76D776 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.org-card-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.org-services-section {
    margin-bottom: 20px;
}

.services-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.org-contact-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row i {
    font-size: 1.2rem;
}

.contact-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--support-primary);
}

.org-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.no-results-box {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-results-box i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results-box h4 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 10px;
}

/* ========================================
   RELATED CATEGORIES
   ======================================== */
.related-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: var(--support-primary);
}

.related-category-card.active {
    background: linear-gradient(135deg, var(--support-primary) 0%, #6FB1FF 100%);
    color: white;
}

.related-category-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.related-category-card span {
    font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .map-title,
    .category-title {
        font-size: 2rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .notice-box {
        flex-direction: column;
        text-align: center;
    }
    
    .org-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
    }
}

@media print {
    .support-hero,
    .support-breadcrumb,
    .filter-panel,
    .quick-actions,
    .map-controls,
    .related-categories,
    .support-cta {
        display: none;
    }
}
