/* ============================================
   NEIGHBOURHOOD SAFETY REPORT LANDING PAGE
   Page-specific styles for /neighbourhood-safety-report
   ============================================ */

/* Hero Wrapper with Background Image */
.crime-hero-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    contain: layout style;
}

.crime-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.crime-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.4) 0%, rgba(231, 76, 60, 0.35) 50%, rgba(245, 87, 108, 0.4) 100%);
    z-index: 1;
}

.suburb-hero.crime-hero {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

/* Breadcrumb */
.safety-breadcrumb {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
}

.safety-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
}

.safety-breadcrumb a {
    color: #c0392b;
    text-decoration: none;
    font-size: 14px;
}

.safety-breadcrumb a i {
    margin-right: 6px;
}

.safety-breadcrumb__separator {
    color: #6c757d;
    margin: 0 8px;
}

.safety-breadcrumb__current {
    color: #6c757d;
    font-size: 14px;
}

/* Search Wrapper */
.safety-search-wrapper {
    position: relative;
}

.safety-search-input {
    padding-left: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    height: 54px;
}

.safety-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10000;
}

/* Sample Actions Row */
.safety-sample-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.safety-money-back {
    color: #28a745;
    font-size: 0.8rem;
    font-weight: 600;
}

.safety-money-back i {
    margin-right: 4px;
}

/* Intro Section */
.safety-intro {
    text-align: center;
    border: none;
    padding-bottom: 10px;
}

.safety-intro p {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Subsections */
.safety-subsection {
    margin-bottom: 24px;
}

.safety-subsection:last-child {
    margin-bottom: 0;
}

.safety-subsection h3 {
    color: #533483;
    margin-bottom: 12px;
}

.safety-subsection h3 i {
    margin-right: 8px;
}

.safety-subsection p {
    color: #2c3e50;
}

/* Data Grid (2-column cards) */
.safety-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.safety-data-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #533483;
}

.safety-data-card--primary {
    border-left-color: #c0392b;
}

.safety-data-card h3 {
    margin-bottom: 8px;
}

.safety-data-card--primary h3 {
    color: #c0392b;
}

.safety-data-card h3:not(.safety-data-card--primary h3) {
    color: #533483;
}

.safety-data-card h3 i {
    margin-right: 8px;
}

.safety-data-card p {
    color: #2c3e50;
    margin: 0;
}

/* Price Comparison */
.safety-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.safety-price-box {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.safety-price-box--expensive {
    background: #fff3f3;
}

.safety-price-box--cheap {
    background: #f0fff0;
}

.safety-price-value {
    font-size: 28px;
    font-weight: 800;
}

.safety-price-value--expensive {
    color: #c0392b;
}

.safety-price-value--cheap {
    color: #27ae60;
}

.safety-price-label {
    color: #666;
    font-size: 14px;
}

.safety-price-summary {
    color: #2c3e50;
    margin-top: 20px;
}

.safety-section-content {
    line-height: 1.8;
}

.safety-section-intro {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Cross-Sell Section */
.safety-cross-sell {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
}

.safety-cross-sell .section-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.safety-cross-sell__intro {
    margin-bottom: 24px;
}

.safety-cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.safety-cross-sell-card {
    text-decoration: none;
    display: block;
    background: white;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.safety-cross-sell-card--title {
    border-color: #2ecc71;
}

.safety-cross-sell-card--buyers {
    border-color: #667eea;
    position: relative;
}

.safety-cross-sell-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.safety-cross-sell-card__icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety-cross-sell-card__icon--title {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.safety-cross-sell-card__icon--buyers {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.safety-cross-sell-card__icon i {
    color: white;
    font-size: 18px;
}

.safety-cross-sell-card__title {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.safety-cross-sell-card__price--title {
    color: #2ecc71;
    font-weight: 700;
    font-size: 18px;
}

.safety-cross-sell-card__price--buyers {
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

.safety-cross-sell-card__badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.safety-cross-sell-card__badge i {
    margin-right: 4px;
}

.safety-cross-sell-card__desc {
    color: #666;
    font-size: 13px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .crime-hero-wrapper {
        min-height: auto;
    }

    .crime-report-page .valuation-search-input {
        font-size: 16px !important;
        min-height: 48px !important;
        -webkit-appearance: none;
        appearance: none;
    }

    .crime-report-page .search-result-item {
        min-height: 60px !important;
        padding: 16px !important;
        -webkit-tap-highlight-color: rgba(83, 52, 131, 0.1);
    }

    .crime-report-page .btn {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 14px 24px !important;
    }

    .crime-report-page .modern-header {
        padding: 20px 16px !important;
        margin-bottom: 20px !important;
    }

    .crime-report-page .modern-header h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .crime-report-page .modern-header p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .crime-report-page .property-info-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .crime-report-page .search-tips-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .crime-report-page .form-section {
        padding: 20px 16px !important;
        margin-bottom: 16px !important;
    }

    .crime-report-page .form-section h2 {
        font-size: 20px !important;
    }

    .crime-report-page .form-section h3 {
        font-size: 16px !important;
    }

    .crime-report-page .profile-container {
        padding: 12px !important;
        max-width: 100% !important;
    }

    .crime-report-page .valuation-search-section {
        padding: 20px 16px !important;
        margin-bottom: 16px !important;
    }

    .crime-report-page .info-feature-card {
        padding: 16px !important;
    }

    .crime-report-page .info-feature-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }

    .crime-report-page .two-column-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .crime-report-page .profile-nav {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .crime-report-page .cta-buttons {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .crime-report-page .cta-buttons .btn {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .crime-report-page .modern-header h1 {
        font-size: 22px !important;
    }

    .crime-report-page .profile-container {
        padding: 8px !important;
    }

    .crime-report-page .section-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Performance & Accessibility */
@media (prefers-reduced-motion: reduce) {
    .crime-report-page * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
