

.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #87CEEB; /* Light blue sky color */
    color: white;
    border: none;
    border-radius: 12px; /* Less circular */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    /* Removed box-shadow */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    background-color: #64B5F6; /* Slightly darker shade on hover for light blue */
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--background-light);
}

.location-detail-page {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.body-loaded {
    opacity: 1 !important;
}

/* Animations */

@keyframes fadeInSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes gradient-pulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section - Common styles */
.hero-section.location-hero-unique {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

/* Base theme hero */
.hero-section.location-hero-unique {
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
}



.background-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--location-primary-color), transparent);
    border-radius: 50px;
}



.line-1 { width: 300px; height: 1px; top: 20%; left: 10%; transform: rotate(-15deg); }
.line-2 { width: 200px; height: 1px; top: 40%; left: 5%; transform: rotate(10deg); }
.line-3 { width: 250px; height: 1px; top: 60%; left: 15%; transform: rotate(-5deg); }

.text-column {
    flex: 0 0 45%;
    padding: 4rem 4rem 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.headline {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--location-primary-color);
    position: relative;
    display: inline-block;
}



.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--location-primary-color), transparent);
    border-radius: 2px;
}



.subtext {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.7;
}

body:not(:has(.camden-neighborhood-background)) .subtext {
    color: var(--text-light);
}



.cta-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px; /* Made more round */
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--location-primary-color), #3b82f6);
    color: white;
    box-shadow: var(--shadow-md);
}



.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1d4ed8, var(--location-primary-color));
}



.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.image-column {
    flex: 0 0 55%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.image-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.organic-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--location-primary-color), #3b82f6);
    border-radius: var(--radius-xl);
    z-index: 1;
    opacity: 0.9;
    transform: rotate(2deg);
}



.image-content {
    position: absolute;
    top: 20px;
    right: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    z-index: 2;
    transition: transform 0.5s ease;
}

.image-container:hover .image-content {
    transform: scale(1.03);
}

.image-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
    border-radius: var(--radius-lg);
    z-index: 3;
}



/* Location Info Section */
.location-info-section {
    position: relative;
    padding: 0 0 5rem 0 !important;
    margin: 4rem 0;
}



.location-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}



.location-info-content {
    position: relative;
    z-index: 2;
    background: transparent;
    border-radius: 0;
    padding: 0;
}



.location-info-content h1,
.location-info-content h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.location-info-content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}



.location-info-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}



.location-info-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}



.info-closing-paragraph {
    font-size: 1.125rem;
    margin-top: 2rem;
    padding-top: 2rem;
    color: var(--text-light);
}



.location-info-icon-wrapper {
    position: absolute;
    top: 25%;
    right: -30%;
    transform: translateY(-50%);
    font-size: 35rem;
    color: var(--location-primary-color);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}



.location-info-icon-wrapper svg {
    width: 1em !important;
    height: 1em !important;
}

/* Service Lists */
.service-list-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem !important;
}

.service-list-boxes li {
    background: var(--background-light);
    border: 2px solid var(--border-lighter);
    border-radius: 25px; /* Made more round */
    padding: 1rem 1.5rem;
    margin: 0 !important;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50px;
    opacity: 0;
    transform: translateY(20px);
}



.service-list-boxes li.animated-service-item {
    animation: fadeInSlideUp 0.6s ease-out forwards;
}

.service-list-boxes li:hover {
    background: var(--location-primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--location-primary-color);
}



/* Key Points Section */
#keyPointsSection {
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 1.5rem;
}

body:not(:has(.camden-neighborhood-background)) #keyPointsSection {
    padding-left: 2rem;
}

#keyPointsSection ul.modern-bullet-list {
    list-style-type: none;
    padding-left: 0;
}

#keyPointsSection ul.modern-bullet-list li {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}



#keyPointsSection ul.modern-bullet-list li i {
    flex-shrink: 0;
    font-size: 1rem !important; /* Forces icon size */
}

#keyPointsSection ul.modern-bullet-list li svg {
    width: 1.25rem !important; /* Consistent icon width */
    height: 1.25rem !important; /* Consistent icon height */
}

body:not(:has(.camden-neighborhood-background)) #keyPointsSection ul.modern-bullet-list li i {
    color: black;
}



/* Neighborhoods List */
#neighborhoodsList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

#neighborhoodsList li {
    margin-bottom: 0;
    padding-left: 0;
    position: static;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
}



/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    color: var(--text-dark);
}



.light-theme.location-detail-page .section-title {
    color: var(--text-dark) !important; /* Make section title black in light theme */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--location-primary-color), transparent);
    border-radius: 2px;
}



.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    line-height: 1.6;
    color: var(--text-light);
}

.light-theme.location-detail-page .section-subtitle {
    color: var(--text-dark) !important; /* Make subtitle black in light theme */
}



/* FAQ/Accordion Section */
.service-process-section {
    padding: 5rem 0 !important;
}

body:not(:has(.camden-neighborhood-background)) .service-process-section {
    background: var(--background-light) !important;
}



.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.service-accordion-item {
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--background-white);
    border: 1px solid var(--border-light);
}



.service-accordion-item:hover {
    border-color: var(--location-primary-color);
    box-shadow: var(--shadow-md);
}



.service-accordion-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.service-accordion-header:hover {
    background: var(--background-light);
}



.light-theme.location-detail-page .service-accordion-item:hover {
    box-shadow: none !important; /* Removed shadow on hover */
    border-color: var(--border-lighter); /* Keep border consistent with default */
}

.service-step-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--location-primary-color-light);
}



.service-step-number i {
    color: var(--location-primary-color);
}



/* Light Theme overrides for service-step-number */
.light-theme.location-detail-page .service-step-number {
    background: var(--background-light) !important; /* Make background light */
    box-shadow: none !important; /* Remove shadow */
}

.light-theme.location-detail-page .service-step-number i {
    color: var(--text-dark) !important; /* Make icon dark */
}

.service-step-text {
    flex: 1;
}

.service-step-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--text-dark);
}



.service-item-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}



.light-theme.location-detail-page .service-item-toggle {
    color: var(--text-dark) !important; /* Make plus/minus icon black in light theme */
}

.service-accordion-item.active .service-item-toggle {
    transform: rotate(45deg);
}

.icon-minus {
    display: none;
}

.service-accordion-item.active .icon-plus {
    display: none;
}

.service-accordion-item.active .icon-minus {
    display: block;
}

.service-details-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-accordion-item.active .service-details-content {
    padding: 1rem 1.5rem 1.5rem;
    max-height: 5000px;
}

.service-step-description {
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
}



/* Map Section */
.location-map-section {
    padding: 5rem 0 !important;
}

body:not(:has(.camden-neighborhood-background)) .location-map-section {
    background: var(--background-white);
}



.location-map-section .container {
    max-width: 1200px;
}

.location-map-section .row {
    align-items: stretch;
}

.location-map-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-light);
}



.postcode-display-card {
    border-radius: var(--radius-xl);
    padding: 2rem;
    background: var(--background-light);
    border: 1px solid var(--border-light);
}



.postcode-display-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}



.postcode-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 15px;
}

.postcode-list-item {
    border-radius: 25px; /* Made more round */
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--background-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}



.postcode-list-item:hover {
    background: var(--location-primary-color);
    color: white;
    border-color: var(--location-primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}



.postcode-list-item i {
    font-size: 0.875rem;
}



.map-container {
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}



/* CTA Section */
.cta-section {
    padding: 5rem 0 !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body:not(:has(.camden-neighborhood-background)) .cta-section {
    background: linear-gradient(135deg, var(--location-primary-color), #3b82f6);
    color: white;
}



.cta-section .container {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}





.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 50px; /* Made more round */
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: white;
    color: var(--location-primary-color);
    box-shadow: var(--shadow-md);
}



.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #f8fafc;
}



/* Explore Services Section */
.explore-services-section {
    padding: 5rem 0 !important;
}

body:not(:has(.camden-neighborhood-background)) .explore-services-section {
    background: var(--background-light) !important;
}



.light-theme.location-detail-page .service-process-section {
    background: transparent !important;
}

.service-links-grid {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; /* Prevent wrapping */
    gap: 0.5rem; /* Adjust gap for vertical stacking */
    justify-content: center; /* Align items to the left */
    align-items: stretch; /* Align items to the left */
    margin-top: 0; /* Removed margin-top to bring it closer to heading */
    padding-left: 0; /* Reverted padding-left */
}

.service-small-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-light);
    padding: 1rem 2rem;
    border-radius: 25px; /* Made more round */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 60px;
    text-align: center;
    background: var(--background-white);
    color: var(--text-dark);
    flex: 1 1 250px;
}



.service-small-box:hover {
    background: var(--location-primary-color);
    color: white;
    border-color: var(--location-primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}





/* Light Theme Overrides */
.light-theme {
    color: var(--text-dark);
}



.light-theme .floating-shape {
    display: none;
}

.light-theme .section-title,
.light-theme .section-subtitle,
.light-theme .stat-label,
.light-theme .location-info-content p,
.light-theme .info-closing-paragraph,
.light-theme .service-step-title,
.light-theme .service-step-description,
.light-theme #ctaHeadline,
.light-theme #ctaSubtext,
.light-theme .postcode-display-card h3,
.light-theme .badge-card span,
.light-theme .service-small-box span,
.light-theme #keyPointsSection ul.modern-bullet-list li,
.light-theme #locationDescription,
.light-theme h1.hero-title,
.light-theme .location-info-content h1,
.light-theme .hero-header-neighborhood h1 {
    color: var(--text-dark);
    text-shadow: none;
}



.light-theme .stat-number {
    color: var(--location-primary-color) !important;
}



.light-theme .service-step-number i {
    color: white;
}

.light-theme .stat-card-redesigned,
.light-theme.location-detail-page .location-info-section,
.light-theme .service-small-box,
.light-theme.location-detail-page .service-accordion-item {
    background-color: var(--background-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-lighter);
    box-shadow: none; /* Removed shadow */
    color: var(--text-dark);
}

.light-theme .badge-card { /* New rule for badge-card */
    background-color: var(--background-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-lighter);
    box-shadow: none; /* Removed shadow for badge-card */
    color: var(--text-dark);
}

.light-theme .service-small-box:hover {
    background-color: var(--background-white) !important; /* Keep white background on hover */
    border-color: var(--border-light) !important; /* Ensure border color is light */
    box-shadow: none !important; /* Removed shadow on hover */
}

.light-theme .badge-card:hover {
    background-color: var(--background-white) !important; /* Keep white background on hover */
    border-color: var(--border-light) !important; /* Ensure border color is light */
    box-shadow: none !important; /* Removed shadow on hover */
}

.light-theme .postcode-list-item:hover {
    background-color: var(--background-white) !important; /* Keep white background on hover */
    color: var(--text-dark);
    border-color: var(--border-light);
    box-shadow: none !important; /* Removed shadow on hover */
}

.light-theme .service-accordion-header:hover {
    background-color: var(--background-white) !important; /* Keep white background on hover */
}

.light-theme.location-detail-page .cta-section {
    background-color: var(--location-primary-color-lighter);
    border: 1px solid var(--location-primary-color-light);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.08);
}

.light-theme .cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: none !important; /* Removed shadow on hover */
    background: var(--background-white); /* Was #f8fafc, changed to white for consistency */
    border-color: var(--background-white);
    color: var(--text-dark);
}

.light-theme .section-title::after {
    background: linear-gradient(90deg, var(--location-primary-color), transparent);
}

/* Modal Overrides */

.modal-footer .btn-secondary:hover,
.modal-footer .btn-secondary:focus,
.modal-footer .btn-secondary:active {
    color: var(--text-dark) !important; /* Ensure close button text remains dark on hover/focus/active */
}

.modal {
    z-index: 10003 !important;
}

.modal-backdrop {
    z-index: 10002 !important;
}

.modal-content {
    background: var(--background-white) !important; /* Make background white */
    backdrop-filter: none !important; /* Remove blur */
    -webkit-backdrop-filter: none !important; /* Remove blur */
    border: 1px solid var(--border-light) !important; /* Make border light */
    color: var(--text-dark) !important; /* Make text dark */
    border-radius: var(--radius-lg) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-light) !important; /* Make border light */
}

.modal-footer {
    border-top: 1px solid var(--border-light) !important; /* Make border light */
}

.btn-close {
    /* filter: invert(1) !important; Removed invert filter for light modal */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .location-info-container {
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    body:has(.camden-neighborhood-background) .location-info-container {
        padding: 0;
    }
    
    .location-info-icon-wrapper {
        font-size: 15rem;
        right: 2%;
    }
}


   
@media (max-width: 992px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden; /* Ensure no horizontal scrollbar */
    }
    main#main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 97px !important; /* Ensure top padding for fixed header */
    }
    .hero-section.location-hero-unique {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }
    
    .text-column {
        padding: 0 0 3rem 0;
        flex: 1;
        width: 100%;
    }
    
    .image-column {
        flex: 1;
        width: 100%;
    }
    
    .image-container {
        height: 350px;
    }
    
    .subtext {
        max-width: 100%;
    }
    
    .cta-container {
        justify-content: center;
    }
    
    .location-info-content {
        text-align: center;
        padding: 2rem;
    }
    
    .location-detail-page .location-info-section {
        max-width: 100% !important; /* Edge to edge */
        border-radius: 0 !important; /* Remove rounded corners */
        padding: 0 !important; /* Remove section padding */
        margin: 2rem 0 !important; /* Adjust margin for mobile */
        margin-left: 0 !important; /* Ensure no left margin */
        margin-right: 0 !important; /* Ensure no right margin */
    }
    
    .location-detail-page .location-info-content {
        text-align: left;
        padding: 2rem 0 2rem 0; /* Removed horizontal padding for true edge-to-edge content */
    }
    
    .location-detail-page #keyPointsSection {
        padding-left: 0 !important; /* Remove horizontal padding for key points */
        padding-right: 0 !important; /* Remove horizontal padding for key points */
    }
    
    .location-info-content h1,
    .location-info-content h2 {
        text-align: center;
    }
    
    body:has(.camden-neighborhood-background) .location-info-content h1,
    body:has(.camden-neighborhood-background) .location-info-content h2 {
        text-align: left;
    }
    
    .service-list-boxes {
        justify-content: center;
    }
    
    .location-info-icon-wrapper {
        display: none;
    }
}

@media (max-width: 768px) {
    .headline {
        font-size: 2.5rem;
    }
    
    .image-container {
        height: 300px;
    }
    
    .location-info-content {
        padding: 1.5rem;
    }
    
    .location-info-content h1 {
        font-size: 2rem;
    }
    
    .location-info-content h2 {
        font-size: 1.5rem;
    }
    
    .service-accordion-header {
        padding: 1.25rem;
    }
    
    .postcode-list {
        grid-template-columns: repeat(2, 1fr); /* Explicitly force two columns */
    }
    
    .cta-button,
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons,
    .cta-container {
        flex-direction: column;
        padding: 0 1rem; /* Added left/right padding for mobile */
    }
    
    .service-links-grid {
        flex-direction: row; /* Display 2 in a row */
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center items if there's an odd number */
        align-items: stretch; /* Ensure cards have equal height */
        gap: 1rem; /* Use existing gap variable */
    }
    
    .service-small-box {
        flex-basis: calc(50% - 1rem); /* Use flex-basis for robustness */
        min-width: 0; /* Allow shrinking below content size if necessary */
        max-width: none;
        flex-shrink: 0;
        flex-grow: 1;
        box-sizing: border-box;
    }
    .service-small-box span {
        word-break: break-word; /* Allow long words to break */
        white-space: normal; /* Ensure text wraps normally */
    }
    
    #neighborhoodsList li {
        width: calc(50% - 0.5rem);
        text-align: center;
        justify-content: center;
    }

    /* Make neighborhood sections bleed edge to edge */
    .neighborhood-details-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important; /* Remove border radius on mobile */
        border: none !important; /* Remove border on mobile */
    }

    .neighborhood-details-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .neighborhood-details-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Also ensure nested sections within neighborhood details bleed edge to edge */
    .neighborhood-details-section .content-section.info-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .neighborhood-details-section .content-section.local-info-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 3rem !important; /* Re-introduce top padding for local-info-section */
        padding-bottom: 0 !important;
    }

    .neighborhood-details-section .content-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .neighborhood-details-section .content-section .container .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        --bs-gutter-x: 0 !important;
    }
    
    /* Remove padding from columns within neighborhood sections to ensure bleeding edges */
    .neighborhood-details-section .content-section .container .row > .col,
    .neighborhood-details-section .content-section .container .row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Remove shadows on mobile for these sections */
    .neighborhood-details-section .shadow-sm,
    .neighborhood-details-section .shadow {
        box-shadow: none !important;
    }
}

@media (max-width: 576px) {
    .hero-section.location-hero-unique {
        padding: 2rem 1rem;
        min-height: 500px;
    }
    
    .headline {
        font-size: 2rem;
    }
    
    .subtext {
        font-size: 1rem;
    }
    
    .image-container {
        height: 250px;
    }
    
    .section-container,
    .location-info-container,
    .location-map-section .container {
        padding: 0 1rem;
    }
    
    .postcode-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-links-grid {
        gap: 0.5rem; /* Reduced gap for smaller screens */
    }
    
    .service-small-box {
        width: calc(50% - 0.25rem); /* Adjust width for smaller gap */
    }
}

@media (max-width: 768px) {
    #keyPointsSection ul.modern-bullet-list li {
        padding-left: 1rem; /* Adjust space for the bullet to be closer to edge */
        position: relative; /* Needed for absolute positioning of the pseudo-element */
    }

    #keyPointsSection ul.modern-bullet-list li svg {
        display: none !important; /* Hide the icon */
    }

    #keyPointsSection ul.modern-bullet-list li::before {
        content: '\2022'; /* Unicode character for a bullet point */
        color: var(--text-dark); /* Color of the bullet */
        font-size: 1rem; /* Size of the bullet */
        position: absolute;
        left: 0rem; /* Position the bullet at the edge */
        top: 0.2rem; /* Adjust vertical alignment */
        line-height: 1; /* Ensure proper line height */
    }
}
