/* ============================================
   SUBURB LANDING PAGE - Sales Funnel Design
   PropReports NZ
   ============================================ */

/* Variables */
:root {
    --primary-purple: #533483;
    --primary-orange: #e67e22;
    --success-green: #28a745;
    --trust-blue: #3498db;
    --dark-text: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ==========================================
   HERO SECTION - Primary Conversion Point
   ========================================== */
.suburb-hero {
    background: linear-gradient(135deg, #533483 0%, #7b52ab 50%, #9b59b6 100%);
    color: white;
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: visible;
    z-index: 100;
    min-height: 500px; /* Prevent CLS - reserve space before content loads */
    contain: layout style; /* Optimize rendering */
}

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

.suburb-hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.suburb-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: #ffd700;
}

/* Hero Search Box */
.hero-search-box {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
}

/* Ensure search results dropdown appears above everything */
.hero-search-box .valuation-search-results {
    position: absolute;
    left: 25px;
    right: 25px;
    top: 100%;
    z-index: 10000;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
}

.hero-search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.hero-search-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.hero-search-note {
    color: var(--success-green);
    font-size: 0.85rem;
    margin-top: 12px;
    margin-bottom: 0;
}

.hero-search-note i {
    margin-right: 5px;
}

.hero-search-disclaimer {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 8px;
    margin-bottom: 0;
    font-style: italic;
}

/* Sample Report Button in Hero Search Box */
.hero-sample-btn {
    background: linear-gradient(135deg, #533483, #764ba2);
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-sample-btn:hover {
    background: linear-gradient(135deg, #764ba2, #9b59b6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(83, 52, 131, 0.3);
}

/* Title Disclaimer Banner */
.hero-disclaimer-banner {
    background: none;
    border: none;
    border-radius: 0;
    padding: 6px 0 0;
    margin-top: 8px;
    font-size: 0.78rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hero-disclaimer-banner i {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

/* Hero CTA Button (replacement for search box) */
.hero-cta-box {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.hero-cta-btn {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.hero-cta-btn:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
    color: white;
    text-decoration: none;
}

.hero-cta-btn i {
    margin-left: 10px;
}

/* ==========================================
   TRUST BAR - Social Proof
   ========================================== */
.trust-bar {
    background: var(--dark-text);
    color: white;
    padding: 15px 20px;
    position: relative;
    z-index: 1;
    min-height: 50px; /* Prevent CLS */
    contain: layout style;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trust-item i {
    color: var(--primary-orange);
}

/* ==========================================
   SUBURB SNAPSHOT - Key Stats
   ========================================== */
.suburb-snapshot {
    padding: 60px 20px;
    background: var(--light-bg);
}

.suburb-snapshot h2 {
    text-align: center;
    color: var(--dark-text);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-intro {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.snapshot-card {
    background: white;
    padding: 25px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.snapshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.snapshot-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.snapshot-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 5px;
}

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

/* ==========================================
   CRIME PREVIEW SECTION
   ========================================== */
.crime-preview-section {
    padding: 60px 20px;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    color: var(--dark-text);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--primary-purple);
}

.data-source {
    font-size: 0.8rem;
    color: #888;
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: 20px;
}

.crime-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.crime-preview-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border-left: 4px solid var(--primary-purple);
}

.crime-type-name {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.crime-type-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.crime-type-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

/* Crime CTA Box */
.crime-cta-box {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff5eb 100%);
    padding: 30px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    border: 2px solid #e8e0f0;
}

.crime-cta-content h3 {
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.crime-cta-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================
   CENSUS INSIGHTS SECTION
   ========================================== */
.census-insights-section {
    padding: 60px 20px;
    background: var(--light-bg);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.insight-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.insight-card h3 {
    color: var(--primary-purple);
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-bg);
}

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

.insight-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.insight-list li:last-child {
    border-bottom: none;
}

.insight-label {
    color: #666;
}

.insight-value {
    font-weight: 600;
    color: var(--dark-text);
}

/* More Data Teaser */
.more-data-teaser {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #7b52ab 100%);
    color: white;
    padding: 25px 30px;
    border-radius: var(--radius-md);
    text-align: center;
}

.teaser-content i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
}

.teaser-content h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.teaser-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ==========================================
   SCHOOLS SECTION
   ========================================== */
.schools-section {
    padding: 60px 20px;
    background: white;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.school-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    transition: transform 0.2s;
}

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

.school-icon {
    font-size: 1.8rem;
}

.school-name {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.school-type {
    font-size: 0.8rem;
    color: #888;
}

.more-schools {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.schools-cta {
    text-align: center;
    padding: 20px;
    background: #fff9e6;
    border-radius: var(--radius-sm);
    border: 1px solid #ffe066;
}

.schools-cta p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

.schools-cta i {
    color: var(--primary-orange);
}

/* ==========================================
   REPORT FEATURES SECTION
   ========================================== */
.report-features-section {
    padding: 70px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.report-features-section h2 {
    text-align: center;
    color: var(--dark-text);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-purple);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--dark-text);
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* Features CTA */
.features-cta {
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-orange);
    color: white;
    padding: 16px 35px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
    color: white;
    text-decoration: none;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.2rem;
}

.cta-subtext {
    color: #888;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    padding: 60px 20px;
    background: white;
}

.faq-section h2 {
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-question {
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.faq-question i {
    color: var(--primary-purple);
    margin-top: 3px;
    transition: transform 0.3s;
}

.faq-answer {
    color: #666;
    padding-left: 28px;
    margin-top: 12px;
    line-height: 1.6;
}

/* ==========================================
   RELATED SUBURBS SECTION
   ========================================== */
.related-section {
    padding: 50px 20px;
    background: var(--light-bg);
}

.related-section h2 {
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.related-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    color: var(--primary-purple);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.related-link:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
}

.related-link i {
    font-size: 0.8rem;
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta-section {
    padding: 70px 20px;
    background: linear-gradient(135deg, #533483 0%, #7b52ab 100%);
    text-align: center;
    color: white;
}

.final-cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.final-cta-section p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.final-search-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 550px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.final-search-form input {
    flex: 1;
    min-width: 280px;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.final-search-form button {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.final-search-form button:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .suburb-hero {
        padding: 25px 15px 40px;
        min-height: auto;
    }
    
    .suburb-hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 10px;
    }

    .hero-search-box {
        padding: 18px;
    }
    
    .hero-search-form {
        flex-direction: column;
    }
    
    .hero-search-btn {
        width: 100%;
    }
    
    .trust-items {
        gap: 20px;
    }
    
    .trust-item span {
        font-size: 0.8rem;
    }
    
    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .crime-cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .final-search-form {
        flex-direction: column;
    }
    
    .final-search-form input,
    .final-search-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .snapshot-card {
        padding: 15px 10px;
    }
    
    .snapshot-value {
        font-size: 1.3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: 16px 30px;
        font-size: 1rem;
    }
}
