/* Location Detail Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Matching how_it_works.css */
:root {
    --primary-color: #003366;
    --primary-light: #004080;
    --secondary-color: #2E8B57;
    --accent-color: #4fc3f7;
    --success-color: #28a745;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    line-height: 1.6;
    color: var(--text-dark);
}

/* Hero Section */
.location-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.location-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.location-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-custom a:hover {
    color: white;
}

.breadcrumb-custom span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.75rem;
}

.breadcrumb-custom .active {
    color: white;
    font-weight: 600;
}

.location-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    color: white;
}

.location-hero .lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.hero-cta:hover {
    background: #29b6f6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
    text-decoration: none;
}

.hero-cta i {
    transition: var(--transition);
}

.hero-cta:hover i {
    transform: translateX(3px);
}

/* Main Content */
.main-content {
    padding: 5rem 0;
}

.content-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.content-section:hover {
    box-shadow: var(--shadow-medium);
}

.content-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.content-section p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-light);
}

.benefit-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Process Steps */
.process-section {
    background: var(--bg-light);
    padding: 5rem 0;
    margin: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.process-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-section h2::after {
    display: none;
}

.process-section>.container>p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: var(--text-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-light);
}

.step-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Local Info Highlight */
.local-info-highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--accent-color);
}

.local-info-highlight::before {
    content: '📍';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    opacity: 0.15;
}

.local-info-highlight h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.local-info-highlight p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Sidebar Widget Base Styles */
.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.widget-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: white;
    margin: 0;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.widget-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 40px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
}

.widget-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.widget-content {
    padding: 2rem;
}

/* Services Widget */
.services-widget .widget-content {
    padding: 2rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: block;
    text-decoration: none;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-light);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
    text-decoration: none;
}

.service-item-content {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 50px;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #29b6f6 100%);
    transition: left 0.3s ease;
}

.service-item:hover .service-icon::before {
    left: 0;
}

.service-icon i {
    position: relative;
    z-index: 2;
    color: white;
}

.service-item:hover .service-icon {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.service-content {
    flex: 1;
}

.service-content h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transition: var(--transition);
    line-height: 1.3;
}

.service-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: var(--transition);
}

.service-item:hover .service-content h6 {
    color: var(--accent-color);
}

.service-item:hover .service-content p {
    color: var(--text-dark);
}

/* Table of Contents Widget */
.toc-widget {
    position: relative;
}

.toc-widget .widget-content {
    padding: 2rem;
}

.toc-widget #table-of-contents {
    font-size: 0.9rem;
}

.toc-widget #table-of-contents .toc-message {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Table of Contents List */
.toc-widget #table-of-contents .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.toc-widget #table-of-contents .toc-list li {
    margin-bottom: 0.75rem;
}

.toc-widget #table-of-contents .toc-list li:last-child {
    margin-bottom: 0;
}

.toc-widget #table-of-contents a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    border-radius: 0;
    background: transparent;
    border: none;
    font-weight: 500;
    min-height: 48px;
}

.toc-widget #table-of-contents a::before {
    content: counter(toc-counter, decimal);
    counter-increment: toc-counter;
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.toc-widget #table-of-contents {
    counter-reset: toc-counter;
}

.toc-widget #table-of-contents a:hover {
    background: transparent;
    border-color: transparent;
    color: var(--accent-color);
    transform: none;
    box-shadow: none;
}

.toc-widget #table-of-contents a:hover::before {
    background: #0288d1;
    transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(5px);
}

.faq-item h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-item h4::before {
    content: '❓';
    font-size: 1.3rem;
}

.faq-item p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Nearby Locations */
/* Nearby Locations Section */
.nearby-section {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-top: 0;
}

.nearby-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-color);
}

.nearby-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.nearby-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.nearby-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-light);
}

.nearby-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.nearby-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    color: white;
    text-decoration: none;
    border-color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .location-hero {
        padding: 4rem 0 3rem;
    }

    .location-hero h1 {
        font-size: 2.2rem;
    }

    .location-hero .lead {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .process-section {
        padding: 3rem 0;
    }

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

    .nearby-box {
        padding: 2rem 1.5rem;
    }

    .nearby-box h2 {
        font-size: 1.6rem;
    }

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

    .nearby-card {
        padding: 1.5rem;
    }

    .services-widget {
        position: static;
        margin-top: 2.5rem;
    }
}