/* MoveToChester.co.uk Design System */

/* ===== CSS VARIABLES (Design Tokens) ===== */
:root {
    /* Colors - Mover Landing Page Inspired */
    --primary-red: #FF4B6E;
    --neutral-white: #FFFFFF;
    --soft-gray: #F8F9FA;
    --text-black: #1A1A1A;
    --accent-pink: #FFE5E9;
    --border-gray: #E5E5E5;
    --focus-blue: #0066CC;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --hero-size: clamp(32px, 4vw, 40px);
    --h2-size: clamp(24px, 3vw, 28px);
    --body-size: 16px;
    --small-size: 14px;
    
    /* Spacing (8px base system) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-huge: 80px;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-medium: 300ms ease-in-out;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fix deprecated API warning - prevent overflow: visible on media elements */
img, video, canvas {
    overflow: clip;
}

/* Fix layout shift - reserve space for main content */
#main-content {
    min-height: 1200px;
}

/* Prevent cookie banner from causing layout shift */
#cookiepal,
#cookiepal-banner,
.cookiepal-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

html {
    scroll-behavior: smooth; /* Optional: for smooth scrolling */
    scroll-padding-top: 80px; /* Adjust this value to match your header height */
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--text-black);
    background: var(--neutral-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CookiePal banner padding removed to prevent layout shift */
/* Banner is now fixed to bottom, no body padding needed */

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-sm) 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-black);
}

h1 {
    font-size: var(--hero-size);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: var(--h2-size);
    font-weight: 700;
    margin-bottom: var(--space-md);
    margin-top: var(--space-xxl);
}


h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

p {
    margin: 0 0 var(--space-sm) 0;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary-red);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: #E63946;
    text-decoration: none;
}

/* ===== LAYOUT SYSTEM ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--text-black);
    color: var(--neutral-white);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: var(--border-radius-sm);
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--focus-blue);
    outline-offset: 2px;
}

button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--focus-blue);
    outline-offset: 2px;
}

/* ===== NAVIGATION ===== */
.site-nav {
    background: var(--neutral-white);
    border-bottom: 1px solid var(--border-gray);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-black);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
}

@media (max-width: 767px) {
    .brand-logo {
        height: 28px;
    }
    
    .brand-text {
        font-size: 18px;
    }
}

.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-md);
}

.nav-menu a {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
}

.nav-menu a:hover {
    background: var(--soft-gray);
}

.nav-hamburger {
    display: none;
}

/* Responsive navigation labels */
.nav-desktop {
    display: none;
}

.nav-mobile {
    display: inline;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        overflow: visible !important;
        position: static !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        left: auto !important;
        width: auto !important;
        flex-direction: row !important;
    }

    .nav-desktop {
        display: inline;
    }

    .nav-mobile {
        display: none;
    }
}

/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-black);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    font-family: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-dropdown-toggle:hover {
    background: var(--soft-gray);
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.nav-dropdown[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Desktop dropdown positioning - ONLY on desktop (not mobile) */
@media (min-width: 769px) {
    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--neutral-white);
        border: 1px solid var(--border-gray);
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-medium);
        list-style: none;
        margin: 0;
        padding: var(--space-sm) 0;
        min-width: 220px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-fast);
    }

    /* Desktop hover behavior */
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-black);
    text-decoration: none;
    font-weight: 400;
    transition: background-color var(--transition-fast);
    border-radius: 0;
}

.nav-dropdown-menu a:hover {
    background: var(--soft-gray);
}

/* Add slight pink background to Viewings & Reports menu item */
.nav-dropdown-menu a[href="/property-viewing-service/"] {
    background-color: rgba(255, 75, 110, 0.05);
}

.nav-sub-button {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    margin: 0;
    background: none;
    color: var(--text-black);
    border: none;
    font-weight: 400;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    text-align: left;
    border-radius: 0;
}

.nav-sub-button:hover {
    background: var(--soft-gray);
    color: var(--text-black);
}

/* Better alignment for navigation items */
.nav-menu {
    align-items: center;
    gap: var(--space-sm);
}

.nav-menu > li {
    display: flex;
    align-items: center;
}

/* FAQ specific alignment fix */
.nav-menu > li:has([href="/faq-resources-checklists"]) {
    margin-right: var(--space-xs);
}

/* Refined Action Button Styles - Less Bold, More Elegant */
.nav-accent-pill {
    background: var(--primary-red) !important;
    color: var(--neutral-white) !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: all var(--transition-fast) !important;
    border: none !important;
    letter-spacing: 0.025em;
}

.nav-accent-pill:hover {
    background: #E63946 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(228, 66, 110, 0.2);
}

/* Dropdown menu accent item (subtle pink tint) */
.nav-dropdown-accent {
    background: rgba(236, 72, 153, 0.08) !important;
    color: inherit !important;
    border-radius: 6px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all var(--transition-fast) !important;
}

.nav-dropdown-accent:hover {
    background: rgba(236, 72, 153, 0.15) !important;
    color: inherit !important;
}

.nav-primary-cta {
    background: transparent !important;
    color: var(--text-black) !important;
    padding: 6px 12px !important;
    border: 1px solid var(--border-gray) !important;
    border-radius: 6px !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: all var(--transition-fast) !important;
    letter-spacing: 0.025em;
}

.nav-primary-cta:hover {
    background: var(--text-black) !important;
    color: var(--neutral-white) !important;
    border-color: var(--text-black) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* OLD MOBILE STYLES REMOVED - Now handled in main mobile section at line 2916+ */

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    background: #ffffff;
    border-bottom: 1px solid var(--border-gray);
    padding: 0.35rem 0;
    font-size: 0.84rem;
    line-height: 1.25;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-sm);
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: var(--space-sm);
    color: var(--border-gray);
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-red);
}

.breadcrumb-item span {
    color: #374151;
    font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: 60vh;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: var(--space-xxl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-massive-heading {
    font-family: var(--font-family);
    line-height: 0.9;
    margin-bottom: var(--space-lg);
    text-align: left;
}

.hero-accent {
    display: block;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--primary-red);
    margin-bottom: -8px;
}

.hero-main {
    display: block;
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 900;
    color: var(--text-black);
    letter-spacing: -0.05em;
    margin-bottom: -12px;
}

.hero-sub {
    display: block;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 300;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
    color: #374151;
    margin-bottom: var(--space-xl);
    max-width: 500px;
    text-align: left;
}

/* Hero explore text */
.hero-explore-text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: var(--space-md);
    font-style: italic;
}

/* Hero secondary CTA container */
.hero-secondary-cta-container {
    margin-bottom: var(--space-lg);
}

.hero-secondary-cta {
    background: transparent;
    color: var(--primary-red);
    padding: 16px 32px;
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-fast);
    display: inline-block;
}

.hero-secondary-cta:hover {
    background: var(--primary-red);
    color: var(--neutral-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 110, 0.3);
}

/* Hero mini navigation */
.hero-mini-nav {
    margin-bottom: var(--space-lg);
}

.hero-mini-nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
    max-width: 420px;
    justify-items: stretch;
}

.mini-link {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid #e5e7eb;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
    box-sizing: border-box;
}

.mini-link:hover {
    background: var(--neutral-white);
    color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Journey CTA buttons */
.journey-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.journey-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.25);
}

.journey-cta-primary {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: #fff;
}

.journey-cta-primary:hover {
    color: #fff;
}

.journey-cta-secondary {
    background: #fff;
    color: #ec4899;
    border: 2px solid #ec4899;
}

.journey-cta-secondary:hover {
    color: #ec4899;
}


.newsletter-cta {
    background: var(--neutral-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.newsletter-cta h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-black);
}

.hero-image-side {
    position: relative;
}

.chester-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    display: inline-block;
    line-height: 0;
}

.chester-hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.chester-image-container .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    z-index: 10;
    pointer-events: none;
}

.image-caption {
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    margin: 0;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hero-section {
        overflow-x: hidden;
        padding: var(--space-xl) 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-content {
        padding-right: var(--space-md);
        padding-left: var(--space-md);
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-massive-heading {
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-main {
        font-size: clamp(48px, 12vw, 80px);
    }

    .hero-image-side {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* Ensure hero images stay within viewport on mobile, even if page-specific overrides exist */
    .hero-layout img,
    .hero-image-desktop img,
    .chester-hero-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
    }

    body[class*="page-"] .hero-layout[data-responsive="hero"] img,
    body[class*="page-"] .hero-layout img.chester-hero-image,
    body[class*="page-"] .hero-image-desktop img {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.page-chester .hero-layout img[src*="CHESTER CITY CENTRE"],
    body.page-chester-outdoors .hero-layout img[src*="CHESTER CITY CENTRE"] {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .chester-image-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: var(--border-radius-md);
        aspect-ratio: var(--hero-aspect, 4 / 3);
        position: relative;
        overflow: hidden;
    }

    .chester-hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .chester-image-container .image-overlay {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Mobile responsive for secondary CTA */
    .hero-secondary-cta-container {
        text-align: center;
    }

    .hero-secondary-cta {
        width: 100%;
        text-align: center;
        max-width: 300px;
        display: inline-block;
    }

    /* Mobile responsive for mini navigation */
    .hero-mini-nav {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .mini-link {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Enhanced newsletter form styling for hero */
.hero-section .newsletter-form {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.hero-section .newsletter-form h3 {
    display: none !important; /* Hide default form heading since we have our own */
}

/* Hide honeypot field completely */
.hero-section .newsletter-form .honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

/* All visible form fields should have same baseline */
.hero-section .newsletter-form .form-field:not(.honeypot) {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Show email field (first visible form field) */
.hero-section .newsletter-form .form-field:not(.honeypot):nth-of-type(1) {
    flex: 2;
    min-width: 250px;
}

/* Show anti-spam field (second visible form field) */
.hero-section .newsletter-form .form-field:not(.honeypot):nth-of-type(2) {
    flex: 1;
    min-width: 180px;
}


/* Hide all labels visually but keep accessible */
.hero-section .newsletter-form label {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.hero-section .newsletter-form input[type="email"],
.hero-section .newsletter-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: var(--transition-fast);
    background: var(--neutral-white);
    box-sizing: border-box;
    margin: 0;
    height: 48px;
}

.hero-section .newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(255, 75, 110, 0.1);
}

.hero-section .newsletter-form button {
    background: var(--primary-red);
    color: var(--neutral-white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: none;
    box-sizing: border-box;
    white-space: nowrap;
    margin: 0;
    width: 100%;
}

.hero-section .newsletter-form button:hover {
    background: #e8426e;
}

@media (max-width: 599px) {
    .hero-section .newsletter-form {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-section .newsletter-form .form-field:not(.honeypot):nth-of-type(1),
    .hero-section .newsletter-form .form-field:not(.honeypot):nth-of-type(2) {
        min-width: 100%;
        flex: 1;
    }
    
    .hero-section .newsletter-form button {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ===== SECTIONS ===== */
section {
    padding: var(--space-xl) 0;
}

/* What to See in Chester Section */
.what-to-see-section {
    background: #f9fafb;
}

.what-to-see-section h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.top-6-badge {
    background: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.discover-teaser {
    color: #6b7280;
    font-size: 16px;
    font-weight: 400;
    margin-left: 8px;
}

/* Filter chips */
.filter-chips {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-chip {
    background: white;
    color: #374151;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    transition: var(--transition-fast);
}

.filter-chip:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 75, 110, 0.2);
}

/* POI Cards Grid */
.poi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.poi-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    text-align: center;
}

.poi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.poi-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--primary-red);
    font-size: 0;
    line-height: 0;
}

.poi-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask: var(--poi-icon-svg) center / contain no-repeat;
    mask: var(--poi-icon-svg) center / contain no-repeat;
}

.poi-card:nth-child(1) .poi-icon {
    --poi-icon-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h16M6 10v8M10 10v8M14 10v8M18 10v8M4 18h16M3 21h18M12 3l8 4H4l8-4Z'/%3E%3C/g%3E%3C/svg%3E");
}

.poi-card:nth-child(2) .poi-icon {
    --poi-icon-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 7v5l3 2M9 2h6M12 20v2'/%3E%3C/g%3E%3C/svg%3E");
}

.poi-card:nth-child(3) .poi-icon {
    --poi-icon-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V7l8-3 8 3v13M7 20v-5h10v5M8 9h2M14 9h2M8 12h2M14 12h2'/%3E%3C/g%3E%3C/svg%3E");
}

.poi-card:nth-child(4) .poi-icon {
    --poi-icon-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M8 7h8M5 21V10l7-5 7 5v11M9 21v-5a3 3 0 0 1 6 0v5'/%3E%3C/g%3E%3C/svg%3E");
}

.poi-card:nth-child(5) .poi-icon {
    --poi-icon-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16M6 19V8a6 6 0 0 1 12 0v11M8 19v-4h8v4M9 8h6M9 11h6M12 2v3'/%3E%3C/g%3E%3C/svg%3E");
}

.poi-card:nth-child(6) .poi-icon {
    --poi-icon-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11c0-3.2 2.7-6 6.5-6S18 7.8 18 11c0 4.5-3.5 8-6.5 8S5 15.5 5 11ZM8 8 6 5M15 8l2-3M10 15c1 .7 2 .7 3 0'/%3E%3Ccircle cx='9.5' cy='12' r='.7' fill='black' stroke='none'/%3E%3Ccircle cx='13.5' cy='12' r='.7' fill='black' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

.poi-card h3 {
    margin-bottom: var(--space-sm);
}

.poi-card h3 a {
    text-decoration: none;
    color: var(--text-black);
    font-weight: 600;
    transition: var(--transition-fast);
}

.poi-card h3 a:hover {
    color: var(--primary-red);
}

.poi-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .what-to-see-section {
        padding: 2rem 0;
    }

    .poi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .poi-card {
        padding: 1rem;
    }

    .poi-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .poi-card strong {
        font-size: 1rem !important;
        margin-bottom: 0.3rem !important;
    }

    .poi-card p {
        font-size: 0.85rem;
        line-height: 1.35;
    }
    
    .filter-chips {
        gap: 8px;
    }
    
    .filter-chip {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .top-6-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .discover-teaser {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .what-to-see-section {
        padding: 1.5rem 0;
    }

    .poi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .poi-card {
        display: block;
        text-align: center;
        padding: 0.8rem;
    }

    .poi-icon {
        width: 28px;
        height: 28px;
        margin: 0 auto 0.4rem;
    }

    .poi-card strong {
        display: block;
        font-size: 0.95rem !important;
        line-height: 1.15 !important;
        margin: 0 0 0.25rem 0 !important;
    }

    .poi-card p {
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.78rem;
        line-height: 1.3;
    }
}

@media (max-width: 340px) {
    .poi-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HOME MOVING SUPPORT CARDS ===== */
@media (max-width: 768px) {
    .what-we-do-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        margin-bottom: 2rem !important;
    }

    .what-we-do-card .card-toggle {
        padding: 1rem !important;
    }

    .what-we-do-grid .what-we-do-card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .what-we-do-card .card-toggle > div {
        margin-bottom: 0.5rem !important;
    }

    .what-we-do-card svg {
        width: 34px !important;
        height: 34px !important;
    }

    .what-we-do-card h4 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
    }

    .what-we-do-card p {
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
    }

    .what-we-do-card .toggle-icon {
        font-size: 1.15rem !important;
        line-height: 1 !important;
    }
}

@media (max-width: 520px) {
    .what-we-do-grid {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
        margin-bottom: 1.5rem !important;
    }

    .what-we-do-card .card-toggle {
        display: grid !important;
        grid-template-columns: 38px 1fr 20px;
        grid-template-areas:
            "icon title toggle"
            "icon copy toggle";
        align-items: center;
        column-gap: 0.75rem;
        text-align: left !important;
        padding: 0.85rem 1rem !important;
    }

    .what-we-do-grid .what-we-do-card:nth-child(3) {
        grid-column: auto;
    }

    .what-we-do-card .card-toggle > div {
        grid-area: icon;
        margin: 0 !important;
        line-height: 0;
    }

    .what-we-do-card svg {
        width: 30px !important;
        height: 30px !important;
    }

    .what-we-do-card h4 {
        grid-area: title;
        margin: 0 0 0.2rem 0 !important;
    }

    .what-we-do-card p {
        grid-area: copy;
        margin: 0 !important;
    }

    .what-we-do-card .toggle-icon {
        grid-area: toggle;
        justify-self: end;
    }
}

/* Chester Zoo + Weekend Section */
.chester-zoo-weekend-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 3px solid var(--primary-red);
}

.zoo-weekend-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

/* Chester Zoo Module */
.chester-zoo-module h3 {
    color: var(--text-black);
    margin-bottom: var(--space-lg);
    font-size: clamp(20px, 3vw, 28px);
}

.zoo-highlights {
    max-width: 100%;
}

.zoo-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.zoo-bullets li {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-red);
    font-size: 14px;
}

.zoo-bullets li:last-child {
    margin-bottom: 0;
}

.zoo-bullets strong {
    color: var(--primary-red);
    font-weight: 600;
}

.zoo-ctas {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.zoo-cta {
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-block;
    font-size: 14px;
}

/* Weekend Widget */
.weekend-widget h3 {
    color: var(--text-black);
    margin-bottom: var(--space-lg);
    font-size: clamp(20px, 3vw, 28px);
}

.weekend-carousel {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    max-height: 400px;
    overflow-y: auto;
}

.weekend-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: var(--space-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #10b981;
    transition: var(--transition-fast);
}

.weekend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weekend-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.weekend-card h4 {
    margin: 0 0 8px 0;
    color: var(--text-black);
    font-size: 16px;
    font-weight: 600;
}

.weekend-card p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.weekend-cta {
    text-align: center;
}

.weekend-btn {
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-block;
    font-size: 14px;
}

@media (max-width: 768px) {
    .zoo-weekend-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .zoo-ctas {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .zoo-cta {
        width: 100%;
        text-align: center;
        max-width: 280px;
    }
    
    .weekend-carousel {
        max-height: none;
        overflow-y: visible;
    }
    
    .weekend-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Neighbourhoods × Nearby Matrix */
.neighbourhood-nearby-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 2px solid #e2e8f0;
}

.neighbourhood-nearby-section h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-black);
}

.neighbourhood-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* --- Homepage Neighbourhood Cards (Original Design) --- */
.neighbourhood-matrix .neighbourhood-card {
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 75, 110, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.neighbourhood-matrix .neighbourhood-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(255, 75, 110, 0.1);
    border-color: rgba(255, 75, 110, 0.25);
}

.neighbourhood-matrix .neighbourhood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b9d, var(--primary-red));
    opacity: 0;
    transition: all 0.3s ease;
}

.neighbourhood-matrix .neighbourhood-card:hover::before {
    opacity: 1;
}

.neighbourhood-header h3 {
    margin: 0 0 var(--space-sm) 0;
}

.neighbourhood-header h3 a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 900;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    display: block;
    padding: 8px 0;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neighbourhood-header h3 a:hover {
    color: var(--primary-red);
}

.neighbourhood-header p {
    margin: 0 0 var(--space-md) 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Nearby chips styling */
.nearby {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.nearby__label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.chip {
    background: #f7f3ff;
    border: 1px solid #e5dcff;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    font-size: 0.72rem;
    text-decoration: none;
    color: #374151;
    transition: var(--transition-fast);
}

.chip:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-1px);
}

/* Safety pill styles for filter chip */
.safety-indicator-pill-small {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FF4B6E 0%, #e8426e 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.safety-chip {
    background: linear-gradient(135deg, #FF4B6E 0%, #e8426e 100%) !important;
    border-color: #FF4B6E !important;
    color: white !important;
}

.safety-chip:hover {
    background: linear-gradient(135deg, #e8426e 0%, #d63850 100%) !important;
    border-color: #e8426e !important;
    transform: translateY(-1px);
}

.safety-chip .safety-indicator-pill-small {
    background: transparent !important;
    color: white !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* --- Neighbourhood Card Design (Housing-Neighbourhoods Page Only) --- */
.neighbourhood-cards .neighbourhood-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e2e8f0; /* Subtle border */
    background: #fdfdfd; /* Slightly off-white background to stand out */
    box-shadow: 0 6px 16px rgba(0,0,0,0.08); /* More prominent, soft shadow */
    margin-bottom: 2rem; /* Increased margin for better separation */
    padding: 1.5rem; /* Consistent internal padding */
    border-radius: 12px; /* Rounded corners */
}

/* Hover state for closed card */
.neighbourhood-cards .neighbourhood-card:not(.expanded):hover {
    transform: translateY(-5px); /* Lift more on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); /* Deeper shadow on hover */
    border-color: #cbd5e1; /* Subtle border change on hover */
}

/* Expanded state remains prominent */
.neighbourhood-cards .neighbourhood-card.expanded {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Very prominent shadow when expanded */
    border-color: var(--primary-red); /* Highlight active card with primary red border */
    background: #ffffff; /* Pure white when expanded for content clarity */
}

/* --- Compact Summary Layout (Grid-based to prevent smushing) --- */
.neighbourhood-cards .card-summary {
    display: grid !important;
    grid-template-columns: auto 1fr; /* Label (auto) and value (remaining space) */
    gap: 0.5rem 1.5rem; /* Tighter vertical, good horizontal spacing */
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #4b5563; /* Slate 600 */
    font-size: 0.95rem;
    line-height: 1.5;
    visibility: visible !important;
    opacity: 1 !important;
}

.neighbourhood-cards .card-summary p {
    margin: 0;
    display: contents; /* Allows strong and text to flow directly into grid cells */
}

.neighbourhood-cards .card-summary p strong {
    display: inline-block;
    color: #1a202c; /* Darker text for labels */
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* --- Filter Pills Styling --- */
.neighbourhood-cards .filter-pills {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem; /* More space below pills */
    visibility: visible !important;
    opacity: 1 !important;
}

.neighbourhood-cards .filter-pill {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 99px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.neighbourhood-cards .filter-pill:hover {
    background: white;
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Special styling for specific pills */
.neighbourhood-cards .filter-pill.highest-quality-of-life {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .neighbourhood-matrix {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .neighbourhood-matrix .neighbourhood-card {
        padding: var(--space-md);
    }

    .neighbourhood-cards .neighbourhood-card {
        padding: var(--space-md);
    }

    .neighbourhood-cards .card-summary {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 0.5rem; /* Tighter gap on mobile */
    }

    .neighbourhood-cards .card-summary p {
        display: flex; /* Restore flex for mobile stacked items */
        flex-direction: column; /* Stack label and text */
        align-items: flex-start;
    }

    .neighbourhood-cards .card-summary p strong {
        min-width: unset; /* Remove min-width on mobile */
        margin-bottom: 0.2rem; /* Small space between label and text */
    }
}

/* Section heading that matches hero style */
.section-massive-heading {
    text-align: center;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    margin-top: 0;
}

.section-accent {
    display: block;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    color: var(--primary-red);
    letter-spacing: 0.1em;
    margin-bottom: -22px;
}

.section-main {
    display: block;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    color: var(--text-black);
    letter-spacing: -0.03em;
    margin-bottom: -2px;
}

.section-main-smaller {
    font-size: clamp(36px, 4.5vw, 60px);
}

.section-sub {
    display: block;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 0.02em;
}

/* Medium section heading for H3 elements */
.section-medium-heading {
    text-align: left !important;
    line-height: 0.85;
    margin-bottom: var(--space-lg);
    margin-top: var(--space-xl);
}

.section-main-medium {
    display: block;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 600;
    color: var(--text-black);
    letter-spacing: -0.02em;
    margin-bottom: -4px;
    text-align: left !important;
}

section:nth-child(even) {
    background: var(--soft-gray);
}

/* ===== HOME MARKET UPDATE ===== */
.market-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.market-stat-card {
    text-align: center;
}

@media (max-width: 768px) {
    #market-update {
        padding: 2.25rem 0 !important;
    }

    #market-update .section-massive-heading {
        margin-bottom: 0.9rem;
    }

    #market-update .lead-sentence {
        font-size: 1rem !important;
        line-height: 1.45 !important;
        margin-bottom: 1.25rem !important;
    }

    .market-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .market-stat-card {
        padding: 1rem 0.75rem !important;
    }

    .market-stat-card strong {
        font-size: 1.8rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1 !important;
    }

    .market-stat-card .market-stat-label,
    .market-stat-card span {
        display: block;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }

    .market-stat-card p {
        margin-top: 0.3rem !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 520px) {
    #market-update {
        padding: 1.75rem 0 !important;
    }

    #market-update .section-main {
        font-size: 2.15rem !important;
        letter-spacing: -0.02em !important;
        line-height: 0.95 !important;
        white-space: nowrap !important;
    }

    #market-update .section-accent {
        font-size: 0.78rem !important;
        letter-spacing: 0.14em !important;
    }

    #market-update .rich-content > p:not(.lead-sentence) {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1rem !important;
    }

    .market-stats {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-bottom: 1.25rem;
    }

    .market-stat-card {
        display: grid;
        grid-template-columns: minmax(88px, 0.75fr) 1fr;
        grid-template-areas:
            "value label"
            "value note";
        align-items: center;
        column-gap: 0.85rem;
        text-align: left;
        padding: 0.8rem 1rem !important;
    }

    .market-stat-card strong {
        grid-area: value;
        font-size: 1.65rem !important;
        margin: 0 !important;
        text-align: left;
    }

    .market-stat-card .market-stat-label,
    .market-stat-card span {
        grid-area: label;
        margin: 0 !important;
    }

    .market-stat-card p {
        grid-area: note;
        margin: 0.15rem 0 0 0 !important;
    }
}

/* ===== KEY ATTRIBUTES SECTION ===== */
.key-attributes-section {
    background: var(--soft-gray);
    padding: var(--space-xl) 0;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.attribute-item {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attribute-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.attribute-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-red);
    margin-bottom: var(--space-md);
}

.attribute-item h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: var(--space-sm);
}

.attribute-item p {
    font-size: var(--text-base);
    color: var(--text-gray);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .key-attributes-section {
        padding: 1.5rem 0;
    }

    .attributes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        max-width: min(620px, 100%);
        margin-left: auto;
        margin-right: auto;
    }
    
    .attribute-item {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .attribute-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .attribute-item strong[role="heading"] {
        font-size: 1rem !important;
        margin-bottom: 0.35rem !important;
    }

    .attribute-item p {
        font-size: 0.9rem;
        line-height: 1.35;
    }
}

@media (max-width: 520px) {
    .key-attributes-section {
        padding: 1rem 0;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .attribute-item {
        display: grid;
        grid-template-columns: 34px 1fr;
        grid-template-areas:
            "icon title"
            "icon copy";
        align-items: center;
        column-gap: 0.8rem;
        text-align: left;
        padding: 0.85rem 1rem;
        border-radius: 12px;
    }

    .attribute-icon {
        grid-area: icon;
        width: 28px;
        height: 28px;
        margin: 0;
    }

    .attribute-item strong[role="heading"] {
        grid-area: title;
        margin: 0 0 0.15rem 0 !important;
    }

    .attribute-item p {
        grid-area: copy;
        margin: 0;
    }
}

/* ===== UTILITY WAREHOUSE PARTNER SECTION ===== */
.uw-partner-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    text-align: left;
}

.uw-partner-narrative {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--text-black);
    margin-bottom: var(--space-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.uw-cta-container {
    margin-top: var(--space-lg);
    text-align: center;
}

.uw-services-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c41e3a 100%);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: var(--text-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(228, 66, 110, 0.3);
    border: none;
    cursor: pointer;
}

.uw-services-button:hover {
    background: linear-gradient(135deg, #c41e3a 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(228, 66, 110, 0.4);
    color: white;
    text-decoration: none;
}

.uw-services-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(228, 66, 110, 0.3);
}

/* ===== BUTTON SYSTEM ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px var(--space-md);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    min-height: 44px;
    border: 2px solid var(--primary-red);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
    font-size: var(--body-size);
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--neutral-white);
}

.btn-primary:hover, .btn-primary:focus {
    background: #E63946;
    color: var(--neutral-white);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--neutral-white);
    color: var(--primary-red);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--accent-pink);
    color: var(--primary-red);
    transform: translateY(-1px);
}

/* ===== CARD SYSTEM ===== */
.card {
    background: var(--neutral-white);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-gray);
}

/* ===== FORM SYSTEM ===== */
.form-field {
    margin-bottom: var(--space-sm);
}

.form-field label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-black);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px var(--space-sm);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    min-height: 44px;
    font-family: var(--font-family);
    font-size: var(--body-size);
    transition: border-color var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 75, 110, 0.1);
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: var(--space-xs);
    font-style: italic;
}

/* Honeypot field (hidden from users) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== TWO-OPTION GRID ===== */
.two-option-grid {
    background: var(--neutral-white);
    padding: var(--space-xxl) 0;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .options-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

.option-card {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-gray);
    text-align: center;
}

.option-card h3 {
    color: var(--text-black);
    margin-bottom: var(--space-sm);
}

.option-card p {
    margin-bottom: var(--space-md);
    color: #666;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
}

.product-card {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-gray);
}

.product-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
}

.product-features {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0 var(--space-md) 0;
}

.product-features li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-gray);
    font-size: var(--small-size);
}

.product-features li:last-child {
    border-bottom: none;
}

/* ===== HOW-TO STEPS ===== */
.howto-steps {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
    counter-reset: step-counter;
}

.howto-step {
    counter-increment: step-counter;
    margin-bottom: var(--space-xl);
    position: relative;
    padding-left: var(--space-xxl);
}

.howto-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: var(--neutral-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.howto-step h3 {
    margin-top: 0;
    color: var(--text-black);
}

.step-time {
    display: inline-block;
    background: var(--accent-pink);
    color: var(--primary-red);
    padding: 4px var(--space-xs);
    border-radius: var(--border-radius-sm);
    font-size: var(--small-size);
    font-weight: 500;
    margin-top: var(--space-sm);
}

.step-links {
    list-style: none;
    padding: 0;
    margin-top: var(--space-sm);
}

.step-links li {
    margin-bottom: var(--space-xs);
}

/* ===== FAQ SECTION ===== */
.faq-list {
    margin-top: var(--space-lg);
}

.faq-item {
    background: var(--neutral-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.faq-question {
    background: var(--soft-gray);
    padding: var(--space-md);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-black);
    cursor: pointer;
}

.faq-answer {
    padding: var(--space-md);
}

.faq-links {
    list-style: none;
    padding: 0;
    margin-top: var(--space-sm);
}

.faq-links li {
    margin-bottom: var(--space-xs);
}

/* ===== FORMS ===== */
.newsletter-form,
.area-chooser-form,
.budget-estimator-form,
.playbook-form {
    background: var(--soft-gray);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    margin: var(--space-lg) 0;
}

.newsletter-form h3,
.area-chooser-form h3,
.budget-estimator-form h3 {
    margin-top: 0;
    color: var(--text-black);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-black);
    color: var(--neutral-white);
    padding: var(--space-xxl) 0 var(--space-lg) 0;
    margin-top: var(--space-huge);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

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

.footer-section h3 {
    color: var(--neutral-white);
    margin-bottom: var(--space-sm);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: #CCC;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--neutral-white);
}

.footer-disclosure {
    border-top: 1px solid #333;
    padding-top: var(--space-lg);
    font-size: var(--small-size);
    color: #AAA;
}

.footer-disclosure strong {
    color: var(--neutral-white);
}

.footer-disclosure a {
    color: var(--neutral-white);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }
}

/* ===== UTILITIES PAGE SPECIFIC ===== */
.utilities-checklist {
    background: var(--soft-gray);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    margin-top: var(--space-lg);
}

.utilities-checklist h3 {
    margin-top: 0;
    color: var(--text-black);
    margin-bottom: var(--space-sm);
}

.checklist-item {
    display: block;
    padding: var(--space-xs) 0;
    cursor: pointer;
    font-weight: normal;
}

.checklist-item input[type="checkbox"] {
    margin-right: var(--space-sm);
    width: auto;
    min-height: auto;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

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

.requirement-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
}

.requirement-card ul {
    margin: 0;
    padding-left: var(--space-md);
}

.requirement-card li {
    margin-bottom: var(--space-xs);
}

.issues-list {
    margin-top: var(--space-lg);
}

.issue-item {
    margin-bottom: var(--space-md);
}

.issue-item h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
}

/* ===== BENEFITS WITH MAP LAYOUT ===== */
.benefits-with-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin: 0;
}

@media (max-width: 768px) {
    .benefits-with-map {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .benefits-map {
        order: -1; /* Show map first on mobile */
    }
}

/* Map Styles */
.map-container {
    background: var(--neutral-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.map-container {
    height: 100%;
    min-height: 600px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.map-caption {
    padding: var(--space-md);
    text-align: center;
    font-size: var(--small-size);
    color: var(--text-black);
    opacity: 0.7;
    margin: 0;
    background: var(--soft-gray);
    font-style: italic;
}

/* Why Move Section */
.why-move-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid #e5e7eb;
}

.why-move-section h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: var(--space-md);
    text-align: center;
}

.why-move-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-sm);
}

/* Expandable cards */
.expandable-card {
    background: var(--neutral-white);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.expandable-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: var(--space-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    user-select: none;
}

.card-title {
    flex: 1;
    margin-right: var(--space-sm);
}

.card-toggle {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.card-content.expanded {
    max-height: 500px;
    padding: 0 var(--space-md) var(--space-md) var(--space-md);
    overflow-y: auto;
}

/* Custom scrollbar styling for card content */
.card-content.expanded::-webkit-scrollbar {
    width: 6px;
}

.card-content.expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card-content.expanded::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 3px;
}

.card-content.expanded::-webkit-scrollbar-thumb:hover {
    background: #e8426e;
}

/* Special styling for cards with lists */
.card-content ul {
    padding-left: var(--space-md);
    margin: var(--space-sm) 0;
}

.card-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.expandable-card.expanded .card-toggle {
    transform: rotate(45deg);
}

.chester-conclusion {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--text-black);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    background: var(--soft-gray);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
}

/* ===== GEOGRAPHIC SECTION ===== */
#geo {
    background-color: var(--soft-gray);
    padding: var(--space-xl) 0;
}

#geo h2 {
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: var(--space-md);
}

#geo h3 {
    font-size: 18px;
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-sm) 0;
    color: var(--text-black);
}

#geo p {
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--text-black);
    margin-bottom: var(--space-md);
}

#geo dl {
    font-size: var(--small-size);
    line-height: 1.5;
    margin: 0;
    background: var(--neutral-white);
    padding: var(--space-md);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-red);
}

#geo dt {
    font-weight: 600;
    color: var(--text-black);
    display: inline;
}

#geo dt::after {
    content: ": ";
}

#geo dd {
    display: inline;
    margin: 0;
}

#geo dt + dd::after {
    content: "\A";
    white-space: pre;
}

#geo ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--small-size);
    line-height: 1.6;
}

#geo li {
    margin-bottom: var(--space-xs);
}

/* Location with map layout */
#geo .location-with-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    #geo .location-with-map {
        grid-template-columns: 1fr 400px;
        align-items: start;
    }
}

/* Proximity grid */
#geo .proximity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

@media (min-width: 768px) {
    #geo .proximity-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

#geo .proximity-card {
    background: var(--neutral-white);
    padding: var(--space-md);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-red);
}

#geo .proximity-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-black);
}

#geo .proximity-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#geo .proximity-card li {
    margin-bottom: var(--space-xs);
    font-size: var(--small-size);
}

/* Landscape features */
#geo .landscape-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

@media (min-width: 768px) {
    #geo .landscape-features {
        grid-template-columns: 1fr 1fr;
    }
}

#geo .landscape-card {
    background: var(--neutral-white);
    padding: var(--space-md);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-red);
}

#geo .landscape-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-black);
}

#geo .landscape-card p {
    margin: 0;
    font-size: var(--small-size);
    line-height: 1.5;
}

/* Map container */
#geo .map-container {
    background: var(--neutral-white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    margin-top: 0;
}

#geo .location-map {
    align-self: start;
}

#geo .location-content > h3:first-child {
    margin-top: 0;
}

#geo .map-caption {
    text-align: center;
    font-size: var(--small-size);
    color: #666;
    margin: var(--space-sm) 0 0 0;
    padding: var(--space-sm);
    background: var(--neutral-white);
}

/* ===== CHESTER LOCATION CONTEXT ===== */
#where {
    margin: var(--space-xxl) 0;
}

#where h2 {
    margin-bottom: var(--space-lg);
    color: var(--text-black);
}

#where .location-intro {
    margin-bottom: var(--space-xl);
}

#where .location-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-black);
}

#where .location-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

#where .location-details article {
    border-left: 3px solid var(--primary-red);
    padding-left: var(--space-md);
    margin-bottom: var(--space-lg);
}

#where .location-details h3 {
    color: var(--primary-red);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

#where .location-facts {
    font-size: var(--small-size);
    line-height: 1.5;
    margin: 0;
}

#where .location-facts dt {
    font-weight: 600;
    color: var(--text-black);
    display: inline;
}

#where .location-facts dt::after {
    content: ": ";
}

#where .location-facts dd {
    display: inline;
    margin: 0;
}

#where .location-facts dt + dd::after {
    content: "\A";
    white-space: pre;
}

#where .nesw {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--small-size);
    line-height: 1.6;
}

#where .nesw li {
    margin-bottom: var(--space-xs);
}

#where .landscape-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--small-size);
    line-height: 1.6;
}

#where .landscape-list li {
    margin-bottom: var(--space-xs);
}


#where .inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: var(--space-xl) 0 0 0;
}

#where .inline-links a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: var(--small-size);
    font-weight: 500;
    border-bottom: 1px dotted var(--primary-red);
    transition: border-bottom var(--transition-fast);
}

#where .inline-links a:hover {
    border-bottom: 1px solid var(--primary-red);
}

@media (min-width: 768px) {
    #where .location-details {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-xl);
    }
    
    #where .location-details article {
        margin-bottom: 0;
    }
}

/* ===== QUALITY OF LIFE SECTION ===== */
.quality-of-life-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.quality-reason {
    padding: var(--space-lg);
    border-left: 3px solid var(--primary-red);
    background: var(--soft-gray);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.quality-reason h3 {
    color: var(--text-black);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.quality-reason p {
    font-size: var(--small-size);
    line-height: 1.6;
    color: var(--text-black);
    margin: 0;
}

@media (max-width: 768px) {
    .quality-of-life-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .quality-reason {
        padding: var(--space-md);
    }
    
    .quality-reason h3 {
        font-size: 16px;
    }
}

/* ===== FIRST-WEEK ESSENTIALS ===== */
.essentials-list {
    margin: var(--space-lg) 0;
    padding-left: var(--space-lg);
    counter-reset: essentials-counter;
}

.essentials-list li {
    margin-bottom: var(--space-md);
    position: relative;
    counter-increment: essentials-counter;
}

.essentials-list time {
    font-size: var(--small-size);
    color: var(--text-black);
    opacity: 0.7;
    font-style: italic;
}

/* ===== UTILITIES METHODS ===== */
.utilities-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.method-card {
    background: var(--soft-gray);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
}

.method-card h3 {
    color: var(--text-black);
    margin-bottom: var(--space-md);
}

.method-details {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0.5rem 1rem;
    margin: var(--space-md) 0;
    font-size: var(--small-size);
}

.method-details dt {
    font-weight: 600;
    color: var(--primary-red);
}

.method-details dd {
    margin: 0;
}

.method-card p:last-child {
    margin-top: auto;
    padding-top: var(--space-md);
}

/* ===== UTILITIES PAGE BUNDLE & PICK SECTIONS ===== */
.bundle-options {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.provider-option {
    background: var(--neutral-white);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--border-gray);
}

.provider-option.primary-option {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-light);
}

.provider-option h3 {
    color: var(--text-black);
    margin-bottom: var(--space-sm);
}

.provider-option ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-md);
}

.provider-option li {
    margin-bottom: var(--space-xs);
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.utility-category {
    background: var(--soft-gray);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--border-gray);
}

.utility-category h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-md);
}

.utility-category ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-md);
}

.utility-category li {
    margin-bottom: var(--space-xs);
    font-size: var(--small-size);
}

@media (max-width: 768px) {
    .bundle-options {
        grid-template-columns: 1fr;
    }
    
    .setup-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== BENEFITS LIST ===== */
.benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits-list li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 18px;
}

.area-details p {
    margin-bottom: var(--space-xs);
    font-size: var(--small-size);
}

/* ===== LIVING IN CHESTER PAGE STYLES ===== */

/* CSS Counter numbering for pros and cons */
.proscons {
    counter-reset: pc;
}

.proscons > article {
    counter-increment: pc;
}

.proscons > article h3::before {
    content: counter(pc) ". ";
    color: #666;
    font-weight: 600;
}

/* CSS Counter numbering for table of contents */
.toc-list.proscons > li {
    counter-increment: pc;
}

.toc-list.proscons > li a::before {
    content: counter(pc) ". ";
    color: #666;
    font-weight: 600;
}

.pros-cons-intro {
    background: var(--soft-gray);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-xl);
    text-align: left;
    border-left: 4px solid var(--primary-red);
}

.pros-list, .cons-list {
    display: grid;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.pro-item, .con-item {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-red);
}

.con-item {
    border-left-color: #999;
}

.pro-item h3, .con-item h3 {
    color: var(--text-black);
    margin-bottom: var(--space-md);
    font-size: var(--h2-size);
}

.expenses-overview {
    background: var(--accent-pink);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-red);
    font-style: italic;
}

.assessment-grid {
    display: grid;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.assessment-summary, .ideal-for, .consider-alternatives, .final-decision {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
}

.ideal-for {
    border-left: 4px solid var(--primary-red);
}

.consider-alternatives {
    border-left: 4px solid #999;
}

.final-decision {
    background: var(--soft-gray);
    border-left: 4px solid var(--primary-red);
    text-align: left;
}

.ideal-for ul, .consider-alternatives ul {
    margin: var(--space-md) 0 0 0;
    padding-left: var(--space-lg);
}

.ideal-for li, .consider-alternatives li {
    margin-bottom: var(--space-xs);
}

/* ===== HIGHLIGHT BOXES ===== */
.highlight-box {
    background: var(--accent-pink);
    padding: var(--space-md);
    border-radius: var(--border-radius-sm);
    margin: var(--space-md) 0;
    border-left: 3px solid var(--primary-red);
}

.highlight-box strong {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-black);
}

.highlight-box ul {
    margin: var(--space-xs) 0 0 0;
    padding-left: var(--space-lg);
}

.highlight-box li {
    margin-bottom: var(--space-xs);
    font-size: var(--small-size);
}

/* ===== TABLE OF CONTENTS ===== */
.toc-grid {
    display: grid;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

.toc-section {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
}

.toc-section h3 {
    margin-bottom: var(--space-md);
    color: var(--text-black);
    font-size: var(--h2-size);
}

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

.toc-list li {
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--soft-gray);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-red);
    transition: var(--transition-fast);
}

.toc-list li:hover {
    background: var(--accent-pink);
    transform: translateX(4px);
}

.toc-list a {
    text-decoration: none;
    color: var(--text-black);
    font-weight: 500;
}

.toc-list a:hover {
    color: var(--primary-red);
}

@media (min-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== MAIN SERVICE CTA ===== */
.main-service-cta {
    background: linear-gradient(135deg, var(--primary-red), #FF6B85);
    color: var(--neutral-white);
    padding: var(--space-xxl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-medium);
    margin: var(--space-xxl) 0;
}

.main-service-cta h2 {
    color: var(--neutral-white);
    margin-bottom: var(--space-md);
    font-size: var(--h2-size);
}

.main-service-cta p {
    color: var(--neutral-white);
    margin-bottom: var(--space-lg);
    font-size: var(--body-size);
    opacity: 0.95;
}

.main-service-cta .btn-primary {
    background: var(--neutral-white);
    color: var(--primary-red);
    border: 2px solid var(--neutral-white);
    font-weight: 600;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--body-size);
    transition: var(--transition-medium);
}

.main-service-cta .btn-primary:hover {
    background: transparent;
    color: var(--neutral-white);
    border-color: var(--neutral-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* ===== FULL PICTURE CTA ===== */
.full-picture-cta {
    background: var(--soft-gray);
    padding: var(--space-xl);
    border-radius: var(--border-radius-md);
    text-align: center;
    border-left: 4px solid var(--primary-red);
}

.full-picture-cta h2 {
    margin-bottom: var(--space-md);
    color: var(--text-black);
}

.full-picture-cta p {
    margin-bottom: var(--space-lg);
    font-size: var(--body-size);
    color: #666;
}

@media (min-width: 768px) {
    .assessment-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .pros-list, .cons-list {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
img {
    max-width: 100%;
    height: auto;
    overflow: clip;
}

video,
canvas {
    overflow: clip;
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Fix any wide elements */
    .hero-layout,
    .hero-content,
    .hero-image-side {
        width: 100% !important;
        max-width: 100% !important;
    }
    
/* ===== MOBILE NAVIGATION ===== */
    .nav-hamburger {
        display: block !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
    }
    
    .nav-hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-red);
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1002;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px 0;
    }
    
    .site-nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - 70px);
        padding: var(--space-md) var(--space-lg);
        margin: 0;
        gap: var(--space-sm);
        list-style: none;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(15px);
        overflow-y: auto;
        overflow-x: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity var(--transition-medium), transform var(--transition-medium);
        box-sizing: border-box;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a,
    .nav-menu > li > button {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 14px 18px;
        font-size: 1rem;
        text-align: left;
        border-radius: 12px;
        background: rgba(255,255,255,0.92);
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        box-sizing: border-box;
    }

    /* Dropdowns behave like accordions */
    .nav-dropdown {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-dropdown-menu {
        /* CRITICAL: Override desktop absolute positioning */
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        visibility: visible !important;

        width: 100%;
        margin: 8px 0 0;
        border-radius: 12px;
        background: rgba(255,75,110,0.08);
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
        border-left: 3px solid var(--primary-red);

        /* Smooth accordion animation */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
        padding: 0;
    }

    /* Open state - smooth slide down */
    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 600px;
        opacity: 1;
        padding: 6px 0;
        margin: 8px 0 0;
    }

    /* Rotate arrow when dropdown is open */
    .nav-dropdown.active .dropdown-arrow svg {
        transform: rotate(180deg);
    }

    .dropdown-arrow svg {
        transition: transform 0.3s ease;
    }

    .nav-dropdown-menu li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-dropdown-menu li:last-child {
        border-bottom: none;
    }

    .nav-dropdown-menu a {
        display: block;
        width: 100%;
        padding: 12px 18px 12px 24px;
        font-size: 0.9rem;
        color: #555;
        box-sizing: border-box;
        min-height: 44px;
        display: flex;
        align-items: center;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:active {
        background: rgba(255,75,110,0.12);
        color: var(--primary-red);
    }

    /* Touch target optimization */
    .nav-menu > li > a,
    .nav-menu > li > button {
        min-height: 48px;
    }

    /* CTA buttons full-width too */
    .nav-menu .nav-accent-pill,
    .nav-menu .nav-primary-cta {
        display: block;
        width: 100%;
        margin-top: var(--space-sm);
        padding: 15px 18px;
        text-align: center;
        border-radius: 12px;
        box-sizing: border-box;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    /* Add top padding to page content on mobile */
    body {
        padding-top: 70px !important;
    }
    
    /* Force mobile styles to override inline styles */
    .hero-section {
        margin-top: -70px !important;
        padding-top: calc(70px + var(--space-lg)) !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== CHAT WIDGET FIXES ===== */
/* chat widget positioning */
[data-chatbot-id] {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 1000 !important;
}

@media (max-width: 768px) {
  [data-chatbot-id] {
      right: 12px !important;
      bottom: 12px !important;
      max-width: 320px !important;
  }
}


/* ===== COST OF LIVING PAGE UTILITIES ===== */

/* Spacing utilities */
.px-2 { padding-left: 2rem; padding-right: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-0-5 { margin-bottom: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.m-0 { margin: 0; }

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.9rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.4rem; }
.text-gray { color: #666; }
.text-gray-700 { color: #374151; }
.text-success { color: #166534; }
.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }

/* Grid utilities */
.grid-2col-auto {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

.grid-2col-auto-mb {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Card styles */
.card-white {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card-info-blue {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

.card-success-green {
    background: #dcfce7;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    color: #166534;
    font-weight: bold;
    margin-top: 1rem;
}

/* List styles */
.list-item-relative {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.list-check-icon {
    color: #22c55e;
    font-weight: bold;
    position: absolute;
    left: -0.5rem;
}

/* Form styles */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input-full {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-cell {
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.form-cell-bold {
    padding: 1rem;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

/* Flex utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w-full { width: 100%; }

/* Mobile responsive overrides for cost-of-living page */
@media (max-width: 768px) {
    .hero-content-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
        padding: 0 1rem !important;
        margin-top: 2rem !important;
        width: 100% !important;
    }
    
    .hero-content-grid h1 {
        font-size: 4rem !important;
        line-height: 0.9 !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        font-weight: 900 !important;
        letter-spacing: -0.03em !important;
    }
    
    .hero-content-grid p {
        font-size: 1.1rem !important;
        text-align: center !important;
    }
    
    .hero-content-grid .hero-buttons {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-content-grid .hero-buttons button,
    .hero-content-grid .hero-buttons a {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
    }
    
    /* Global mobile text size reduction */
    body {
        font-size: 14px !important;
    }
    
    p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    h1 {
        font-size: 2.2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    h3 {
        font-size: 1.4rem !important;
        margin: 1rem 0 0.5rem 0 !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    .section-accent {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .section-main-smaller {
        font-size: 1.8rem !important;
    }
    
    h2.section-main-smaller {
        margin-bottom: 1rem !important;
        margin-top: 0.5rem !important;
    }
    
    li {
        font-size: 0.9rem !important;
    }
    
    /* Reduce section spacing on mobile */
    .content-section {
        margin-bottom: 2rem !important;
        padding: 1rem 0 !important;
    }
    
    .section-massive-heading {
        margin-bottom: 1rem !important;
        margin-top: 1rem !important;
    }
    
    .rich-content {
        padding: 0 1rem !important;
    }
    
    #affiliate-disclosure-btn {
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    #affiliate-dropdown {
        width: 280px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-left: 0 !important;
    }
    
    #affiliate-dropdown > div > div:first-child {
        left: 50% !important;
    }
}

/* Additional cost-of-living utilities */
.text-gray-dark { margin: 0; color: #374151; }
.text-info-blue { color: #0ea5e9; margin: 0 0 1rem 0; }
.text-white-heading { color: white; margin: 0 0 1rem 0; }
.text-red-large { font-size: 1.4rem; font-weight: bold; color: #dc2626; }
.text-blue-stat { font-size: 2rem; font-weight: bold; color: #0ea5e9; }
.text-primary-large { color: var(--primary-color); font-size: 1.1rem; }

.card-success-highlight {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #dcfce7;
    border-radius: 6px;
    text-align: center;
    color: #166534;
    font-weight: bold;
}

.list-text { margin: 0; padding-left: 1rem; color: #374151; line-height: 1.8; }

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.mb-heading-bold {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.section-divider {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.card-mb {
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.p-content {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.p-content-gray {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #666;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

/* CTA Card - Grey background with better spacing */
.cta-card-gray {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-card-gray p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    color: #333;
}

.cta-card-gray a {
    display: inline-block;
    margin-top: 1rem;
    background: #FF4B6E;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

/* Green comparison card */
.comparison-card-green {
    background: #e8f5e8;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #22c55e;
}

.comparison-card-green .card-title {
    margin: 0 0 1.5rem 0;
    color: #22c55e;
    font-weight: 600;
    font-size: 1.17em;
}

.comparison-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .comparison-grid-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Content section base styles (desktop) - CRITICAL for proper spacing */
.content-section {
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.rich-content {
    padding: 0 2rem;
    max-width: 1200px;
}

.section-massive-heading {
    margin-bottom: 2rem;
    padding: 0 2rem;
}

/* Alternating gray backgrounds for sections */
.content-section:nth-child(even) {
    background: #f8f9fa;
    padding: 4rem 0;
}

.content-section.bg-gray {
    background: #f8f9fa;
    padding: 4rem 0;
}

/* Override for mobile already exists above in mobile media query */

/* Only show map expand hint on the zoo page */
body:not(.page-chester-zoo) .map-expand-hint {
  display: none !important;
}

/* ===== NEWSLETTER MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.modal-content iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal-content iframe {
        height: 500px;
    }
}

/* ===== PROPERTY VIEWING SERVICE PAGE ===== */

/* Hero Value Bullets */
.hero-value-bullets {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 var(--space-lg) 0;
}

.hero-value-bullets li {
    font-size: 16px;
    padding: 8px 0;
    color: #374151;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Why Service Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.why-card {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.why-icon {
    font-size: 48px;
    margin-bottom: var(--space-sm);
}

.why-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
}

/* Expandable "Why Use" Cards */
.expandable-card {
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.card-toggle-why {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
    padding: 0;
    position: relative;
}

.card-toggle-why:hover {
    opacity: 0.9;
}

.card-toggle-why h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
}

.card-toggle-why p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.toggle-icon-why {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Mobile: Stacked accordion behavior */
.card-details-why {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.card-details-why[hidden] {
    display: block;
    max-height: 0;
}

.card-details-why:not([hidden]) {
    max-height: 2000px;
    padding-top: var(--space-lg);
    border-top: 2px solid #e5e7eb;
    margin-top: var(--space-md);
}

/* Desktop: Pop-out overlay behavior */
@media (min-width: 992px) {
    .card-details-why {
        position: absolute;
        top: calc(100% + 16px);
        width: min(360px, 90vw);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        box-shadow: 0 12px 32px rgba(30, 58, 138, 0.18);
        border-radius: 16px;
        background: #fff;
        padding: 1.5rem;
        z-index: 5;
        max-height: none;
        overflow: visible;
        border-top: none;
        margin-top: 0;
    }

    .card-details-why[hidden] {
        display: block;
        opacity: 0;
        pointer-events: none;
        max-height: none;
    }

    .expandable-card[data-align="left"] .card-details-why {
        left: 0;
    }

    .expandable-card[data-align="right"] .card-details-why {
        right: 0;
    }

    .expandable-card.active .card-details-why {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .expandable-card.active .card-details-why:not([hidden]) {
        padding-top: 1.5rem;
    }
}

.expanded-content {
    text-align: left;
}

.expanded-content h4 {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.expanded-content h4:first-child {
    margin-top: 0;
}

.expanded-content p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.expanded-content .inline-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.expanded-content .inline-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Section Bridge */
.section-bridge {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
}

.section-bridge p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: var(--space-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    background: var(--neutral-white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.process-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -2rem;
    transform: translate(50%, -50%);
    font-size: 2.5rem;
    color: var(--primary-red);
    font-weight: 700;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #e63946 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary-red);
    font-weight: 700;
    line-height: 1.3;
}

.process-step p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
    flex-grow: 1;
}

/* Tablet Layout - 2 Columns */
@media (max-width: 1100px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

    .process-step:nth-child(odd)::after {
        content: "→";
        display: block;
    }

    .process-step:nth-child(even)::after,
    .process-step:last-child::after {
        display: none;
    }

    .process-step:nth-child(2)::after {
        content: "↓";
        top: auto;
        bottom: -2rem;
        right: 50%;
        transform: translate(50%, 0);
    }
}

/* Mobile Layout - Single Column */
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .process-step {
        padding: 1.75rem 1.25rem;
        min-height: auto;
    }

    .process-step::after {
        display: block !important;
        content: "↓";
        right: 50%;
        top: auto;
        bottom: -2.5rem;
        transform: translate(50%, 0);
        font-size: 2rem;
    }

    .process-step:last-child::after {
        display: none !important;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .process-step h3 {
        font-size: 1.05rem;
    }

    .process-step p {
        font-size: 0.875rem;
    }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.pricing-card {
    background: var(--neutral-white);
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    position: relative;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

/* Desktop only: push buttons to bottom */
@media (min-width: 769px) {
    .pricing-card .package-features {
        flex-grow: 1;
    }
}

.pricing-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 75, 110, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-red);
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(255, 75, 110, 0.2);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6b7280;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.price-badge.popular {
    background: var(--primary-red);
}

.pricing-card h3 {
    text-align: center;
    color: var(--text-black);
    margin: var(--space-md) 0 var(--space-sm) 0;
    font-size: 24px;
}

.price {
    text-align: center;
    margin: var(--space-md) 0;
}

.price .currency {
    font-size: 24px;
    color: var(--primary-red);
    font-weight: 600;
}

.price .amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-red);
}

.price-description {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: var(--space-md);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.package-features li {
    padding: var(--space-xs) 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: #374151;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    text-align: center;
    margin-top: var(--space-md);
}

/* Add-ons */
.pricing-addons {
    margin-top: var(--space-xxl);
    padding-top: var(--space-xl);
    border-top: 2px solid #e5e7eb;
}

.pricing-addons h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-black);
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.addon-card {
    background: #f9fafb;
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid #e5e7eb;
}

.addon-card h4 {
    color: var(--primary-red);
    margin-bottom: var(--space-xs);
    font-size: 16px;
}

.addon-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-black);
    margin: var(--space-xs) 0;
}

.addon-card p:last-child {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Deliverables Grid */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.deliverable-card {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-red);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deliverable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.deliverable-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 1rem auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.deliverable-card h3 {
    color: var(--text-black);
    margin-bottom: var(--space-sm);
    font-size: 20px;
    font-weight: 700;
}

.deliverable-card p {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 768px) {
    .deliverable-icon {
        max-width: 150px;
        margin-bottom: 0.75rem;
    }

    .deliverable-card {
        padding: 1.5rem;
    }

    .deliverable-card h3 {
        font-size: 18px;
    }

    .deliverable-card p {
        font-size: 13px;
    }
}

/* Standards & Compliance */
.standards-content {
    margin-top: var(--space-xl);
}

.compliance-callout {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe5eb 100%);
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.compliance-callout h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-md);
}

.compliance-callout ul {
    margin-top: var(--space-md);
    padding-left: var(--space-lg);
}

.compliance-callout ul li {
    margin-bottom: var(--space-xs);
    color: #374151;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.standard-item {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
}

.standard-item h4 {
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
    font-size: 18px;
}

.standard-item p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* Market Insight */
.market-content {
    margin-top: var(--space-xl);
}

.hotspot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.hotspot-card {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    border-top: 4px solid var(--primary-red);
    box-shadow: var(--shadow-light);
}

.hotspot-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-md);
    font-size: 22px;
}

.hotspot-link {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hotspot-link:hover,
.hotspot-link:focus {
    text-decoration: underline;
    color: #e63946;
}

.hotspot-card p {
    margin-bottom: var(--space-sm);
    font-size: 14px;
    line-height: 1.6;
}

.market-tip {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    margin-top: var(--space-xl);
}

.market-tip h4 {
    color: #22c55e;
    margin-bottom: var(--space-sm);
}

.market-tip p {
    color: #374151;
    margin: 0;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.faq-item {
    background: var(--neutral-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
}

.faq-item h3 {
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
    font-size: 18px;
}

.faq-item p {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.faq-item a {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Final CTA Section */
.cta-section {
    background: linear-gradient(135deg, #FF4B6E 0%, #FF6B8A 100%);
    padding: var(--space-xxl) 0;
}

.cta-box {
    text-align: center;
    color: white;
}

.cta-box h2 {
    color: white;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 20px;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-red);
}

.cta-section .btn-primary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-note {
    font-size: 16px;
    opacity: 0.9;
    margin-top: var(--space-md);
}

@media (max-width: 768px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1.3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.3rem;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Report Modal Styles */
.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    z-index: 10000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

.modal-body {
    width: 100%;
    height: 100%;
    overflow: auto;
}

/* Mobile Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        top: 10px;
        right: 10px;
    }

    .report-modal {
        padding: 0;
    }
}

/* Neighbourhood Viewing CTA Button */
.neighbourhood-viewing-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-red);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.neighbourhood-viewing-cta:hover,
.neighbourhood-viewing-cta:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

/* Mobile responsive for viewing CTA */
@media (max-width: 768px) {
    .neighbourhood-viewing-cta {
        display: block;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Journey Card CTA Alignment */
.journey-cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.journey-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
}

.journey-cta-primary {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
    padding: calc(0.75rem + 2px) 1.5rem;
}

.journey-cta-secondary {
    background: white;
    color: #ec4899;
    border: 2px solid #ec4899;
    margin-top: 0;
    padding: 0.75rem 1.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .journey-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .journey-cta {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   CHESTER PAGE SPECIFIC STYLES
   Performance optimization - moved from inline
   ============================================ */

/* Hero Section Layout */
.chester-page .hero-layout {
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.chester-page .hero-layout h1 {
    font-size: 3.5rem;
    line-height: 0.9;
}

.chester-page .hero-decision-box {
    font-size: 1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #dcfce7;
    border-left: 4px solid #10b981;
    border-radius: 8px;
}

.chester-page .hero-description {
    margin: 1rem 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Travel Chips */
.chester-page .travel-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    margin-top: 1rem;
    max-width: 350px;
}

.chester-page .travel-chip {
    background: #ffd1dc;
    padding: 0.4rem 0.3rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
}

/* Hero Image Desktop */
.chester-page .hero-image-desktop {
    text-align: center;
    padding-right: 2rem;
}

.chester-page .desktop-hero-img {
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Medium desktop screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .chester-page .desktop-hero-img {
        max-width: 350px;
    }

    .chester-page .hero-content {
        max-width: 60% !important;
        padding-right: 2rem !important;
    }

    .chester-page .travel-chips {
        max-width: 60% !important;
        gap: 0.5rem !important;
    }
}

/* Mobile screens - make image 50% larger */
@media (max-width: 767px) {
    .chester-page .desktop-hero-img {
        max-width: 312px;
        border-radius: 25px;
    }

    .chester-page .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* Neighborhood Details Background */
.chester-page .neighborhood-details {
    background: #f8f9fa !important;
}

.chester-page .neighborhood-details[style*="display: block"] {
    background: #e91e63 !important;
    color: white !important;
}

.chester-page div.neighborhood-details[style*="display: block"] {
    background-color: #e91e63 !important;
    color: white !important;
}

/* POI Cards */
.chester-page .poi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== NEIGHBORHOOD COMPARISON TABLE ===== */
/* Semantic, responsive table with proper breakpoints */

.neighborhood-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}

.neighborhood-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Header Row */
.neighborhood-header {
    display: grid;
    grid-template-columns:
        minmax(140px, 1.2fr)  /* Name */
        minmax(160px, 1.5fr)  /* Property Type */
        minmax(120px, 1fr)    /* Rent */
        minmax(120px, 1fr)    /* Price */
        minmax(160px, 1.5fr)  /* Vibe */
        40px;                 /* Icon */
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #e5e7eb;
}

/* Individual Neighborhood Row */
.neighborhood-row {
    border-bottom: 1px solid #e5e7eb;
}

.neighborhood-row:last-child {
    border-bottom: none;
}

/* Toggle Button (replaces div with onclick) */
.neighborhood-toggle {
    display: grid;
    grid-template-columns:
        minmax(140px, 1.2fr)  /* Name */
        minmax(160px, 1.5fr)  /* Property Type */
        minmax(120px, 1fr)    /* Rent */
        minmax(120px, 1fr)    /* Price */
        minmax(160px, 1.5fr)  /* Vibe */
        40px;                 /* Icon */
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.neighborhood-toggle:hover {
    background: #f8f9fa;
}

.neighborhood-toggle:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: -2px;
}

/* Column Styling */
.neighborhood-name {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1rem;
}

.neighborhood-type {
    color: #333;
}

.neighborhood-rent,
.neighborhood-price {
    color: #333;
    font-weight: 500;
}

.neighborhood-vibe {
    color: #666;
    font-size: 0.9rem;
}

.neighborhood-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.neighborhood-icon svg {
    transition: transform 0.3s ease;
}

.neighborhood-toggle[aria-expanded="true"] .neighborhood-icon svg {
    transform: rotate(180deg);
}

/* Details Panel */
.neighborhood-details {
    padding: 1.5rem;
    background: #fef2f7;
    border-top: 1px solid #e5e7eb;
    color: #333;
}

.neighborhood-details[hidden] {
    display: none;
}

.neighborhood-details p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tablet Breakpoint: Horizontal scroll */
@media (max-width: 1024px) {
    .neighborhood-header,
    .neighborhood-toggle {
        min-width: 800px; /* Allows horizontal scroll but keeps readable */
    }
}

/* Mobile Breakpoint: Card layout */
@media (max-width: 768px) {
    .neighborhood-header {
        display: none; /* Hide column headers on mobile */
    }

    .neighborhood-toggle {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
        min-width: 0;
    }

    .neighborhood-name {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .neighborhood-type {
        font-size: 0.9rem;
        color: #666;
    }

    /* Add labels for clarity on mobile */
    .neighborhood-rent::before,
    .neighborhood-price::before {
        font-weight: 600;
        color: #333;
        margin-right: 0.25rem;
    }

    .neighborhood-rent::before {
        content: "Rent: ";
    }

    .neighborhood-price::before {
        content: "Price: ";
    }

    .neighborhood-vibe {
        font-size: 0.875rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e5e7eb;
        width: 100%;
    }

    .neighborhood-icon {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }

    .neighborhood-toggle {
        position: relative;
    }

    .neighborhood-details {
        padding: 1.25rem;
    }
}

/* Small Mobile: Tighter spacing */
@media (max-width: 480px) {
    .neighborhood-toggle {
        padding: 1rem;
        gap: 0.5rem;
    }

    .neighborhood-name {
        font-size: 1.05rem;
    }

    .neighborhood-icon {
        top: 1rem;
        right: 1rem;
    }
}

/* ===== AFFILIATE TOOLTIP ===== */
/* Optimized tooltip with reduced DOM nesting */
.affiliate-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 280px;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.affiliate-tooltip[style*="display: block"],
.affiliate-tooltip:not([hidden]) {
    display: block;
}

/* CSS tooltip arrow using pseudo-element (no extra div needed) */
.affiliate-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.affiliate-tooltip h4 {
    margin: 0 0 0.5rem 0;
    color: #FF4B6E;
    font-size: 0.95rem;
}

.affiliate-tooltip p {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
}

.affiliate-tooltip p:last-child,
.affiliate-tooltip .affiliate-note {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}


/* ===== JOURNEY STEPS GRID ===== */
/* Equal height cards with aligned buttons */
.journey-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.journey-steps-grid figure {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.journey-steps-grid figcaption {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2rem;
}

.journey-steps-grid .journey-cta-row {
    margin-top: auto; /* Push buttons to bottom */
}

/* Responsive: Stack on tablet/mobile */
@media (max-width: 1024px) {
    .journey-steps-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}

@media (max-width: 768px) {
    .hero-content .section-massive-heading {
        text-align: center;
    }
}

/* ===== PROPERTY VIEWING CHECKLIST PAGE ===== */

/* TLDR Summary Boxes */
.tldr-box {
    background: #fef3f4;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-red);
    border-radius: 6px;
    margin: 1.5rem 0;
    line-height: 1.8;
    color: #4b5563;
}

.tldr-box .tldr-label {
    margin: 0 0 1rem 0;
    color: #c2185b;
    font-weight: 600;
    font-size: 1.05rem;
}

.tldr-box p {
    margin: 0;
}

/* Info Highlight Boxes */
.info-box-blue {
    background: #e3f2fd;
    padding: 1.5rem;
    border-left: 4px solid #2196f3;
    border-radius: 6px;
    margin: 1.5rem 0;
    line-height: 1.8;
    color: #1f2937;
    font-size: 1.05rem;
}

/* Warning/Alert Boxes */
.warning-box-orange {
    background: #fff3e0;
    padding: 1.5rem;
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    margin: 1.5rem 0;
    line-height: 1.8;
    color: #1f2937;
    font-size: 1.05rem;
}

/* Success/Check Boxes */
.success-box-green {
    background: #e8f5e9;
    padding: 1.5rem;
    border-left: 4px solid #4caf50;
    border-radius: 6px;
    margin: 1.5rem 0;
    line-height: 1.7;
}

/* Download/Share CTA Container */
.download-share-cta {
    background: #fff8e1;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #fbc02d;
}

.download-share-cta .cta-title {
    margin-top: 0;
    color: #f57c00;
    font-weight: 600;
    font-size: 1.1rem;
}

.download-share-cta .cta-description {
    margin: 0.75rem 0;
    color: #4b5563;
    line-height: 1.6;
}

.download-share-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0 0 0;
    flex-wrap: wrap;
}

.download-share-buttons .btn-share {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 75, 110, 0.2);
}

.download-share-buttons .btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 75, 110, 0.3);
}

.download-share-buttons .btn-share:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Property Viewing CTA Hero */
.viewing-cta-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, #FF6B88 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(255, 75, 110, 0.2);
}

.viewing-cta-hero .cta-title {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.viewing-cta-hero .cta-description {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1.5rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.viewing-cta-hero .btn-tertiary {
    display: inline-block;
    background: white;
    color: var(--primary-red);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.viewing-cta-hero .btn-tertiary:hover {
    transform: translateY(-2px);
}

.viewing-cta-hero .btn-tertiary:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Table of Contents */
.toc-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.toc-title {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-red);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.toc-list a:hover {
    background: rgba(255, 75, 110, 0.05);
}

.toc-list a:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.toc-list .toc-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.toc-list .toc-item-desc {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
    display: block;
}

/* Author Cards Section */
.author-cards-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.author-cards-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.author-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info .author-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary-red);
    display: block;
    font-weight: 700;
}

.author-info .author-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.author-info .author-bio {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
}

/* Flood Risk Zones Table */
.flood-zones-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    min-width: 600px;
}

.flood-zones-table th {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    font-weight: 600;
}

.flood-zones-table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

/* Mobile Table Swipe Indicator */
.table-scroll-hint {
    display: none;
    background: linear-gradient(90deg, rgba(255, 75, 110, 0.1) 0%, rgba(255, 75, 110, 0.05) 100%);
    border-left: 3px solid var(--primary-red);
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {
    .table-scroll-hint {
        display: block;
    }

    .author-cards-container {
        grid-template-columns: 1fr;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-card > div:first-child {
        margin-bottom: 1rem;
    }
}

/* Responsive Tables */
.table-responsive-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.table-responsive {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

/* H3 Styling - Property Finding Page */
h3 {
    margin-top: 2.5rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Neighbourhood Card Actions Redesign */
.neighbourhood-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-neighbourhood-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.3;
    flex: 1 1 auto;
    cursor: pointer;
}

/* Secondary: Catchment (Light/Outline) */
.btn-neighbourhood-action--catchment {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #4b5563;
}
.btn-neighbourhood-action--catchment:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #111827;
}

/* Primary: Guide (Dark/Stylish) */
.btn-neighbourhood-action--guide {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}
.btn-neighbourhood-action--guide:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    transform: translateY(-1px);
}

/* CTA: Viewing (Brand Red/Distinct) */
.btn-neighbourhood-action--viewing {
    background: #FF4B6E;
    border-color: #FF4B6E;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(255, 75, 110, 0.25);
}
.btn-neighbourhood-action--viewing:hover {
    background: #e63e5e;
    border-color: #e63e5e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(255, 75, 110, 0.35);
}

@media (max-width: 768px) {
    .neighbourhood-actions {
        flex-direction: column;
    }
    .btn-neighbourhood-action {
        width: 100%;
        flex: none;
    }
}


/* Card Title Group for Alignment */
.card-title-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px; /* Space between title and pill */
}

@media (max-width: 768px) {
    .card-title-group {
        gap: 8px; /* Increased gap for mobile */
    }
}


/* Safety Pill (Brand Red/Distinct) */
.safety-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FF4B6E 0%, #e8426e 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

/* Ensure pill alignment in groups */
.card-title-group .safety-indicator-pill {
    margin: 0;
}


/* Featured/Modern Card Style for Newton */
.recommendation-card--modern {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-left: 4px solid var(--primary-red) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

.recommendation-card--modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #ff8fa3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-card--modern:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    border-color: #d1d5db !important;
}

.recommendation-card--modern:hover::before {
    opacity: 1;
}

/* Add a subtle icon background or decorative element if desired, but keeping it simple for now as per instructions to not change fonts/colors of text */


.recommendation-card--modern .card-title-text {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes arrow to the right */
    width: 100%;
}

.recommendation-card--modern .card-title-text::after {
    content: "\2192"; /* Unicode right arrow */
    color: var(--primary-red); /* Pink color */
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.recommendation-card--modern:hover .card-title-text::after {
    transform: translateX(5px);
}


/* Info Grid Layout for Neighbourhood Details */
.info-grid-dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns by default */
    gap: 1rem 2rem; /* Vertical gap 1rem, horizontal gap 2rem */
    width: 100%;
    margin-bottom: 1.5rem;
}

.info-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-grid-item dt {
    font-weight: 700;
    font-size: 0.9rem;
    color: #4b5563; /* Slate 600 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.info-grid-item dd {
    margin: 0;
    font-size: 1rem;
    color: #1f2937; /* Gray 900 */
    line-height: 1.5;
}

/* Full width for complex/long content (like "Nearby") */
.info-grid-item--full {
    grid-column: 1 / -1; /* Spans all columns */
}

/* Nearby Links Styling Refinements */
.nearby-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

/* On larger screens, "Nearby" links can be side-by-side if they are simple, 
   but since they have details/summary, stacking them is usually safer.
   However, we can make the container specifically for "Nearby" a grid too if needed. */

@media (min-width: 768px) {
    .nearby-links {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .info-grid-dl {
        grid-template-columns: 1fr; /* Single column on small screens */
        gap: 1.25rem;
    }
}


/* Info Grid Card Container */
.info-grid-container {
    background: #f8fafc; /* Very light slate background */
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

/* Tighter Grid */
.info-grid-dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
    width: 100%;
    margin-bottom: 0; /* Remove bottom margin as container handles padding */
}

/* Item Styling */
.info-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    padding-left: 1rem; /* Space for border accent */
}

/* Left Accent Border for Items */
.info-grid-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 3px;
    background: #cbd5e1; /* Slate 300 */
    border-radius: 99px;
    transition: background 0.2s ease;
}

.info-grid-item:hover::before {
    background: var(--primary-red); /* Highlight on hover */
}

/* Typography Refinements */
.info-grid-item dt {
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b; /* Slate 500 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.info-grid-item dd {
    margin: 0;
    font-size: 0.95rem;
    color: #1e293b; /* Slate 800 */
    font-weight: 500;
    line-height: 1.4;
}

/* Nearby Links Section - Distinct styling */
.info-grid-item--full {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-left: 0; /* Reset left padding */
}

.info-grid-item--full::before {
    display: none; /* Remove side accent for full width item */
}

.info-grid-item--full dt {
    margin-bottom: 0.75rem;
    color: var(--primary-red); /* Highlight header */
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .info-grid-dl {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-grid-container {
        padding: 1rem;
    }
}


/* Removed duplicate CSS - using original rules at lines 716-738 */


/* Fix for mini-link grid overflow on mobile */
@media (max-width: 480px) {
    /* Target the list container directly */
    .hero-mini-nav ul,
    ul[role="list"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
        row-gap: 1rem !important; /* Vertical gap between rows */
        column-gap: 0.75rem !important; /* Horizontal gap between columns */
        justify-items: start !important; /* Align items to the left */
        max-width: 100% !important;
    }

    /* Ensure list items align left */
    .hero-mini-nav ul li,
    ul[role="list"] li {
        width: 100%;
        text-align: left;
    }

    /* Adjust link sizing */
    .mini-link {
        padding: 10px 12px !important; /* Better padding */
        font-size: 13px !important; /* Slightly smaller text */
        white-space: nowrap; /* Prevent wrapping inside button */
        overflow: hidden;
        text-overflow: ellipsis; /* Handle overflow gracefully */
        text-align: left !important; /* Left align text */
        display: block;
        width: 100%;
    }

    /* Mobile button spacing and alignment */
    .hero-cta-group {
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }

    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-secondary {
        margin-bottom: 1.5rem !important;
    }

    .cta-buttons {
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
}


/* Robust Image Overlay Positioning for Mobile & Desktop */
.chester-image-container {
    position: relative !important;
    overflow: hidden;
    display: block; /* Ensure container behaves as a block */
    width: 100%;
    /* aspect-ratio handles height, but fallbacks help */
}

.chester-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chester-image-container .image-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important; /* Allow height to fit content */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%) !important;
    padding: 2rem 1rem 1rem 1rem !important;
    margin: 0 !important; /* Remove any unexpected margins */
    transform: none !important; /* Prevent transform shifts */
}

/* Consolidated and Refined Image Caption Styles */
.chester-image-container .image-caption {
    display: block !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    margin: 0 !important;
    font-weight: 500;
    font-size: 14px; /* Default font size */
    white-space: normal !important; /* Allow text to wrap */
    line-height: 1.4; /* Improve readability for multi-line text */
    overflow: visible !important; /* Ensure text is not cut off */
    text-overflow: clip !important; /* Prevent ellipsis */
    /* Reset any pseudo-elements that might be causing duplication */
    content: none !important; 
    background: none !important; /* Remove any unexpected backgrounds */
    box-shadow: none !important;
}
.chester-image-container .image-caption::before,
.chester-image-container .image-caption::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 768px) {
    .chester-image-container .image-caption {
        font-size: 13px; /* Slightly smaller font on mobile */
    }
}


/* Hero CTA Group for Alignment */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between elements */
    margin-top: 1.5rem;
    align-items: flex-start; /* Align contents to the left */
}

@media (max-width: 768px) {
    .hero-cta-group {
        gap: 0.75rem;
    }
}

/* Adjust existing elements within the group */
.hero-explore-text {
    margin-bottom: 0 !important; /* Remove old margin */
    width: 100%;
    text-align: left; /* Ensure alignment */
}

.hero-secondary-cta-container {
    margin-bottom: 0 !important; /* Remove old margin */
    width: 100%; /* Ensure it takes full width on mobile */
}

.hero-secondary-cta {
    width: 100%; /* Ensure button takes full width on mobile */
    text-align: center; /* Center text within full-width button */
}

/* Also ensure the main primary button (from newsletter form) is responsive */
.newsletter-modal-trigger.btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem; /* Add some space above */
}

/* Ensure the parent hero-content allows for flexible children */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem; /* Adjust overall gap if needed */
}


/* Fix CTA Balance - Refined Spacing */
.hero-cta-group {
    margin-top: 1rem !important; /* Reduced top margin */
    gap: 0.75rem !important; /* Reduced vertical gap */
}

/* Make explore text more subtle */
.hero-explore-text {
    font-size: 0.95rem !important;
    opacity: 0.8 !important;
    margin-top: 0.5rem !important; /* Add slight separation from primary CTA */
}

/* Secondary CTA - Less dominant */
.hero-secondary-cta {
    padding: 12px 24px !important; /* Slightly smaller padding */
    font-size: 15px !important;
    max-width: 300px; /* Prevent it from being excessively wide on desktop */
    width: auto !important; /* Allow it to size naturally up to max-width */
    min-width: 200px; /* Minimum width for tap target */
}

@media (max-width: 768px) {
    .hero-secondary-cta {
        width: 100% !important; /* Full width on mobile only */
        max-width: none !important;
    }
    
    .hero-explore-text {
        text-align: center !important; /* Center text on mobile */
    }
    
    .hero-cta-group {
        align-items: center !important; /* Center group items on mobile */
    }
}


/* Inline SVG Icon Styling */
.icon-inline {
    vertical-align: middle;
    margin-right: 0.5rem;
    color: currentColor; /* Inherit color from parent text */
    display: inline-block;
    position: relative;
    top: -2px; /* Slight adjustment for visual alignment with text */
}

/* Homepage hero layout refinement */
body.page-home .home-hero {
    min-height: auto;
    padding: clamp(2.25rem, 4vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

body.page-home .home-hero .hero-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    grid-template-areas:
        "copy image"
        "actions image";
    gap: clamp(1rem, 2.5vw, 2rem) clamp(3rem, 5.8vw, 4.75rem);
    align-items: start;
    margin-top: 0;
}

body.page-home .home-hero .hero-content {
    grid-area: copy;
    padding-right: 0;
    gap: 0;
}

body.page-home .home-hero .hero-massive-heading {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    max-width: 100%;
}

body.page-home .home-hero .hero-main {
    font-size: clamp(4.35rem, 7.35vw, 5.4rem);
    letter-spacing: -0.035em;
}

body.page-home .home-hero .hero-description {
    max-width: 620px;
    margin-bottom: 0;
    font-size: clamp(1.05rem, 1.45vw, 1.2rem);
}

body.page-home .home-hero .hero-image-side {
    grid-area: image;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    align-self: start;
}

body.page-home .home-hero .chester-image-container {
    width: 100%;
    max-width: none;
    min-height: clamp(485px, 52vw, 540px);
    margin: 0;
    border-radius: 12px;
}

body.page-home .home-hero .chester-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-home .home-hero .hero-image-note {
    margin: 0;
    color: #334155;
    font-size: clamp(0.95rem, 1.1vw, 1.02rem);
    line-height: 1.55;
    text-align: left;
}

body.page-home .home-hero .hero-action-panel {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    align-items: stretch;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

body.page-home .home-hero .hero-primary-action {
    min-width: 0;
}

body.page-home .home-hero .newsletter-modal-trigger.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 48px;
    margin-top: 0;
    padding: 14px 24px;
    box-sizing: border-box;
}

body.page-home .home-hero .hero-secondary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 230px);
    grid-template-areas:
        "intro button"
        "nav nav";
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

body.page-home .home-hero .hero-explore-text {
    grid-area: intro;
    width: auto;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #64748b;
    text-align: left;
}

body.page-home .home-hero .hero-secondary-cta-container {
    grid-area: button;
    width: 100%;
    margin-bottom: 0 !important;
}

body.page-home .home-hero .hero-secondary-cta {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
}

body.page-home .home-hero .hero-mini-nav {
    grid-area: nav;
    width: 100%;
    margin: 0;
}

body.page-home .home-hero .hero-mini-nav ul {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

body.page-home .home-hero .mini-link {
    border-radius: 8px;
    min-height: 38px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
    body.page-home .home-hero .hero-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "image"
            "actions";
    }

    body.page-home .home-hero .hero-content {
        align-items: flex-start;
    }

    body.page-home .home-hero .chester-image-container {
        min-height: clamp(260px, 48vw, 430px);
    }

    body.page-home .home-hero .hero-action-panel {
        grid-template-columns: 1fr;
    }

    body.page-home .home-hero .newsletter-modal-trigger.btn-primary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.page-home .home-hero {
        padding-top: 2.5rem;
    }

    body.page-home .home-hero .hero-layout {
        grid-template-areas:
            "copy"
            "actions"
            "image";
    }

    body.page-home .home-hero .hero-layout,
    body.page-home .home-hero .hero-content,
    body.page-home .home-hero .hero-image-side,
    body.page-home .home-hero .hero-image-note,
    body.page-home .home-hero .hero-action-panel,
    body.page-home .home-hero .hero-primary-action,
    body.page-home .home-hero .hero-secondary-actions,
    body.page-home .home-hero .hero-mini-nav {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.page-home .home-hero .hero-massive-heading {
        text-align: left;
    }

    body.page-home .home-hero .hero-secondary-actions {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "button"
            "nav";
    }

    body.page-home .home-hero .hero-explore-text {
        text-align: left !important;
    }

    body.page-home .home-hero .hero-secondary-cta {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    body.page-home .home-hero .hero-mini-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.6rem !important;
        justify-items: stretch !important;
    }

    body.page-home .home-hero .mini-link {
        display: inline-flex;
        justify-content: center;
        text-align: center !important;
        white-space: normal;
    }
}
