/**
 * Single Location Page Styles - Bricard Services 2025
 *
 * Mobile-first styles for individual location posts
 *
 * @package GeneratePress Child
 * @since 1.0.0
 */

/* ============================================
   LOCATION HERO SECTION
   ============================================ */

.location-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) 0 var(--space-8) 0;
    overflow: hidden;
}

.location-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.location-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(30, 64, 175, 0.88) 100%);
}

.location-hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

/* Breadcrumb */
.location-breadcrumb {
    margin-bottom: var(--space-4);
}

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

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb-item.active span {
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Badge */
.location-hero-badge {
    margin-bottom: var(--space-4);
}

/* Hero Title */
.location-hero-title {
    margin: 0 0 var(--space-4) 0;
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .location-hero-title {
        font-size: var(--fs-4xl);
    }
}

@media (min-width: 1024px) {
    .location-hero-title {
        font-size: var(--fs-5xl);
    }
}

/* Hero Subtitle */
.location-hero-subtitle {
    margin: 0 0 var(--space-6) 0;
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 768px) {
    .location-hero-subtitle {
        font-size: var(--fs-xl);
    }
}

/* Hero Trust Indicators */
.location-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    font-size: var(--fs-sm);
}

.location-hero-trust-separator {
    color: rgba(255, 255, 255, 0.4);
}

.location-hero-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Hero CTA Buttons */
.location-hero-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
    .location-hero-cta-buttons {
        flex-direction: row;
    }
}

/* Hero Note */
.location-hero-note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
}

.location-hero-note .icon {
    width: 16px;
    height: 16px;
}

/* Scroll Indicator */
.location-hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.location-hero-scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* ============================================
   LOCATION CONTENT WRAPPER
   ============================================ */

.location-content-wrapper {
    padding: var(--space-12) 0;
    background-color: var(--color-bg);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .location-grid {
        grid-template-columns: 1fr 380px;
        gap: var(--space-12);
    }
}

/* ============================================
   LOCATION MAIN CONTENT
   ============================================ */

.location-main-content {
    min-width: 0; /* Prevent grid blowout */
}

.location-description {
    margin-bottom: var(--space-12);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--color-text);
}

.location-description p {
    margin-bottom: var(--space-4);
}

.location-description h2,
.location-description h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

/* ============================================
   LOCATION SIDEBAR
   ============================================ */

.location-sidebar {
    min-width: 0;
}

.sidebar-sticky {
    position: sticky;
    top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.sidebar-cta-card,
.sidebar-trust-card,
.sidebar-form-card {
    background: white;
}

.sidebar-cta-title {
    margin: var(--space-4) 0 0 0;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.sidebar-cta-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.sidebar-cta-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.sidebar-cta-feature .icon {
    width: 18px;
    height: 18px;
    color: var(--color-success-600);
    flex-shrink: 0;
}

.sidebar-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

/* ============================================
   SERVICES AVAILABLE SECTION
   ============================================ */

.location-services-section {
    margin-bottom: var(--space-12);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.service-item {
    background: white;
}

.service-item-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.service-item-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
    background-color: var(--color-primary-50);
    border-radius: var(--radius-lg);
}

.service-item-icon svg {
    width: 32px;
    height: 32px;
}

.service-item-title-group {
    flex: 1;
}

.service-item-title {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.service-item-price {
    margin: 0;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-primary-600);
}

.service-item-description {
    margin-bottom: var(--space-4);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--color-text-light);
}

.service-item-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.service-item-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.service-item-feature .icon {
    width: 16px;
    height: 16px;
    color: var(--color-success-600);
    flex-shrink: 0;
}

.service-item-cta {
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

/* ============================================
   COVERAGE MAP SECTION
   ============================================ */

.coverage-map-section {
    margin-bottom: var(--space-12);
}

.coverage-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.coverage-current {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--color-primary-50) 0%, white 100%);
    border: 2px solid var(--color-primary-200);
}

.coverage-current-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
    background-color: white;
    border-radius: var(--radius-full);
}

.coverage-current-icon svg {
    width: 36px;
    height: 36px;
}

.coverage-current-title {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.coverage-current-subtitle {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--fs-base);
    color: var(--color-text-light);
}

.coverage-current-guarantee {
    font-size: var(--fs-sm);
}

.coverage-section-title {
    margin: 0 0 var(--space-4) 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.coverage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .coverage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.coverage-area-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.coverage-area-card:hover {
    border-color: var(--color-primary-300);
    box-shadow: var(--shadow-sm);
}

.coverage-area-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
    background-color: var(--color-primary-50);
    border-radius: var(--radius-md);
}

.coverage-area-icon svg {
    width: 24px;
    height: 24px;
}

.coverage-area-name {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.coverage-area-code,
.coverage-area-department {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--fs-xs);
    color: var(--color-text-light);
}

.coverage-area-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin: 0;
    font-size: var(--fs-xs);
    color: var(--color-success-600);
    font-weight: var(--fw-medium);
}

.coverage-area-time .icon {
    width: 14px;
    height: 14px;
}

.coverage-guarantee {
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-800) 100%);
    color: white;
}

.coverage-guarantee-title {
    margin: 0 0 var(--space-6) 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: white;
    text-align: center;
}

.coverage-guarantee-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

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

.coverage-guarantee-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--fs-sm);
    color: white;
}

.coverage-guarantee-feature .icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.coverage-guarantee-feature strong {
    display: block;
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-1);
}

.coverage-guarantee-feature span {
    display: block;
    color: rgba(255, 255, 255, 0.85);
}

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

.coverage-cta-text {
    margin: 0 0 var(--space-4) 0;
    font-size: var(--fs-base);
    color: var(--color-text-light);
}

/* ============================================
   PRICING GUIDE SECTION
   ============================================ */

.pricing-guide-section {
    margin-bottom: var(--space-12);
}

.pricing-guarantee-banner {
    margin-bottom: var(--space-8);
    background: linear-gradient(135deg, var(--color-success-50) 0%, white 100%);
    border: 1px solid var(--color-success-200);
}

.pricing-guarantee-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.pricing-guarantee-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-success-600);
    background-color: white;
    border-radius: var(--radius-full);
}

.pricing-guarantee-icon svg {
    width: 32px;
    height: 32px;
}

.pricing-guarantee-title {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.pricing-guarantee-description {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.pricing-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.pricing-category {
    background: white;
}

.pricing-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-primary-100);
}

.pricing-category-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
    background-color: var(--color-primary-50);
    border-radius: var(--radius-lg);
}

.pricing-category-icon svg {
    width: 28px;
    height: 28px;
}

.pricing-category-title {
    margin: 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.pricing-services-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.pricing-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
}

.pricing-service-name {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.pricing-service-details {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.pricing-service-price {
    flex-shrink: 0;
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--color-primary-600);
    text-align: right;
}

.pricing-category-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin: var(--space-4) 0 0 0;
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-warning-50);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    color: var(--color-warning-800);
}

.pricing-category-note .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-payment {
    background: white;
    margin-bottom: var(--space-8);
}

.pricing-payment-title {
    margin: 0 0 var(--space-4) 0;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.pricing-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
    .pricing-payment-methods {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pricing-payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-align: center;
}

.pricing-payment-method .icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary-600);
}

.pricing-payment-note {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    text-align: center;
}

.pricing-cta {
    text-align: center;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--color-primary-50) 0%, white 100%);
    border-radius: var(--radius-xl);
}

.pricing-cta-title {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.pricing-cta-description {
    margin: 0 0 var(--space-6) 0;
    font-size: var(--fs-base);
    color: var(--color-text-light);
}

.pricing-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .pricing-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   RELATED LOCATIONS SECTION
   ============================================ */

.related-locations-section {
    margin-bottom: var(--space-12);
}

.related-locations-grid {
    margin-bottom: var(--space-8);
}

.location-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.location-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-out);
}

.location-card:hover .location-card-img {
    transform: scale(1.05);
}

.location-card-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background-color: var(--color-primary-600);
    color: white;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
}

.location-card-postal {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-primary-600);
}

.location-card-title {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
}

.location-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.location-card-title a:hover {
    color: var(--color-primary-600);
}

.location-card-excerpt {
    margin: 0 0 var(--space-4) 0;
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: var(--color-text-light);
}

.location-card-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.location-card-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.location-card-feature .icon {
    width: 16px;
    height: 16px;
    color: var(--color-success-600);
    flex-shrink: 0;
}

.location-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.location-card-link .icon {
    width: 18px;
    height: 18px;
}

.related-locations-cta {
    text-align: center;
}

.related-locations-note {
    margin: 0 0 var(--space-4) 0;
    font-size: var(--fs-base);
    color: var(--color-text-light);
}

/* ============================================
   LOCATION FAQ SECTION
   ============================================ */

.location-faq-section {
    margin-bottom: var(--space-12);
}

.location-faq-cta {
    margin-top: var(--space-8);
}

.location-faq-cta-card {
    background: linear-gradient(135deg, var(--color-primary-50) 0%, white 100%);
    text-align: center;
    padding: var(--space-8);
}

.location-faq-cta-title {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.location-faq-cta-description {
    margin: 0 0 var(--space-6) 0;
    font-size: var(--fs-base);
    color: var(--color-text-light);
}

.location-faq-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .location-faq-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
    .location-hero {
        min-height: 80vh;
        padding: var(--space-8) 0 var(--space-6) 0;
    }

    .service-item-header {
        flex-direction: column;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .location-hero-scroll-indicator {
        animation: none;
    }

    .location-card-img {
        transition: none;
    }
}
