/**
 * LoyalYard Location Pages Styles
 * Matches main plugin design system
 * Version: 1.0.0
 */

/* Reset and Base Styles */
.ly-location-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #1f2937;
}

.ly-location-wrapper * {
    box-sizing: border-box;
}

/* Container */
.ly-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ly-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Spacing */
.ly-section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .ly-section {
        padding: 40px 0;
    }
    
    /* Make all buttons full width and consistent on mobile */
    .ly-btn {
        width: 100%;
        padding: 20px 30px;
        font-size: 16px;
    }
    
    .ly-btn-primary,
    .ly-btn-cta {
        width: 100%;
    }
    
    /* Map sidebar adjustments for mobile */
    .ly-map-sidebar {
        padding: 20px 20px 12px 20px;  /* Reduce bottom padding */
    }
    
    .ly-neighborhood-list {
        margin-bottom: 0;  /* Remove all bottom margin */
    }
    
    .ly-map-cta {
        margin: 0;  /* Remove all margins - no more green overflow */
        padding: 12px 0 0 0;  /* Minimal top padding, zero sides/bottom */
    }
    
    .ly-map-cta .ly-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 30px !important;
        font-size: 16px !important;
    }
}

/* Hero Section */
.ly-hero {
    background: linear-gradient(135deg, #0d4f52 0%, #448288 50%, #0d4f52 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.ly-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.ly-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ly-hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.ly-hero-subtitle {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.ly-hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.ly-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .ly-hero {
        padding: 60px 20px;
    }
    
    .ly-hero-title {
        font-size: 32px;
    }
    
    .ly-hero-subtitle {
        font-size: 18px;
    }
}

/* Buttons */
.ly-btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.ly-btn-cta {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white !important;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
    font-weight: 900;
}

.ly-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
    color: white !important;
}

.ly-btn-cta-white {
    background: white;
    color: #0d4f52 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 900;
}

.ly-btn-cta-white:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    color: #0d4f52 !important;
}

.ly-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white !important;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.ly-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.5);
    color: white !important;
}

/* Section Headers */
.ly-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.ly-section-title {
    font-size: 36px;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.2;
    text-align: center;
}

.ly-section-subtitle {
    font-size: 20px;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 768px) {
    .ly-section-title {
        font-size: 28px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .ly-section-subtitle {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .ly-testimonials-box {
        padding: 32px 20px;
    }
}

/* Map Section */
.ly-map-section {
    background: #ffffff;
}

.ly-map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: start;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 968px) {
    .ly-map-container {
        grid-template-columns: 1fr;
    }
}

.ly-google-map {
    width: 100%;
    height: 600px;
    background: #f3f4f6;
}

/* Clean up Google Maps UI elements */
.ly-google-map .gm-style-cc {
    opacity: 0.4;  /* Make copyright/terms less prominent */
}

.ly-google-map .gm-style-cc:hover {
    opacity: 1;  /* Show fully on hover if user wants to see */
}

/* Style Terms and Report error links to match */
.ly-google-map a[href*="maps.google.com/maps"],
.ly-google-map a[target="_blank"] {
    opacity: 0.4 !important;
    color: #999 !important;
}

.ly-google-map a[href*="maps.google.com/maps"]:hover,
.ly-google-map a[target="_blank"]:hover {
    opacity: 1 !important;
}

/* Hide keyboard shortcuts button (the ? icon) */
.ly-google-map button[aria-label="Keyboard shortcuts"] {
    display: none !important;
}

/* Style the remaining legal text to be minimal */
.ly-google-map .gmnoprint {
    opacity: 0.3;
}

.ly-google-map .gmnoprint:hover {
    opacity: 1;
}

@media (max-width: 968px) {
    .ly-google-map {
        height: 400px;
    }
    
    /* Even more subtle on mobile */
    .ly-google-map .gm-style-cc {
        opacity: 0.2;
    }
    
    .ly-google-map a[href*="maps.google.com/maps"],
    .ly-google-map a[target="_blank"] {
        opacity: 0.2 !important;
    }
}

.ly-map-sidebar {
    padding: 32px;
    background: #f9fafb;
    height: 600px;
    overflow-y: auto;
}

@media (max-width: 968px) {
    .ly-map-sidebar {
        height: auto;
    }
}

.ly-map-sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.ly-neighborhood-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.ly-neighborhood-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.ly-neighborhood-list li span:first-of-type {
    flex: 1;
    font-weight: 600;
    color: #374151;
}

.ly-neighborhood-list li .ly-zip {
    font-size: 14px;
    color: #6b7280;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
}

.ly-map-cta {
    padding: 12px 0 8px 0;
    text-align: center;
}

.ly-map-cta .ly-btn {
    width: 98% !important;
    max-width: 98% !important;
    color: white !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 18px 20px !important;
}

/* Benefits Section */
.ly-benefits-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.ly-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.ly-benefit-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

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

.ly-benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(68, 130, 136, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.ly-benefit-icon svg {
    width: 40px;
    height: 40px;
}

.ly-benefit-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.ly-benefit-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* Testimonials Section */
.ly-testimonials-section {
    background: white;
}

.ly-testimonials-box {
    background: #ecfdf5;
    border-radius: 24px;
    padding: 48px 32px;
}

.ly-stars-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ly-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.ly-testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ly-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.ly-testimonial-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ly-testimonial-author {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

/* FAQ Section */
.ly-faq-section {
    background: #f9fafb;
}

.ly-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.ly-faq-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.ly-faq-question {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
}

.ly-faq-question::-webkit-details-marker {
    display: none;
}

.ly-faq-answer {
    margin-top: 16px;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* CTA Section */
.ly-cta-section {
    background: linear-gradient(135deg, #448288 0%, #0d4f52 100%);
    color: white;
    text-align: center;
}

.ly-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.ly-cta-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: center;
}

.ly-cta-subtitle {
    font-size: 22px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.ly-cta-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .ly-cta-title {
        font-size: 28px;
    }
    
    .ly-cta-subtitle {
        font-size: 18px;
    }
}

/* SEO Section */
.ly-seo-section {
    background: #ffffff;
}

.ly-seo-content {
    line-height: 1.8;
}

.ly-seo-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.ly-seo-content p {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 16px;
}

.ly-seo-content strong {
    color: #1f2937;
    font-weight: 700;
}

/* ==========================================================================
   Service Areas Hub
   [loyalyard_service_areas] shortcode
   v1.3.0
   ========================================================================== */

.ly-hub-wrapper .ly-hub-hero {
    padding: 70px 20px 60px;
}

/* Hub map */
.ly-hub-map-section {
    padding-top: 40px;
    padding-bottom: 20px;
}

.ly-hub-map-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13, 79, 82, 0.15);
    background: #f3f4f6;
}

.ly-hub-map {
    width: 100%;
    height: 460px;
}

@media (max-width: 768px) {
    .ly-hub-map {
        height: 340px;
    }
    .ly-hub-wrapper .ly-hub-hero {
        padding: 50px 20px 40px;
    }
}

.ly-hub-map-fallback {
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
}

/* Card grid */
.ly-hub-cards-section,
.ly-hub-coming-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.ly-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 640px) {
    .ly-hub-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Card */
.ly-hub-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.ly-hub-card:hover,
.ly-hub-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(13, 79, 82, 0.12);
    border-color: #448288;
    text-decoration: none;
}

.ly-hub-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ly-hub-card-pin {
    flex-shrink: 0;
}

.ly-hub-card-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.ly-hub-card-status.ly-status-active {
    background: rgba(68, 130, 136, 0.1);
    color: #0d4f52;
}

.ly-hub-card-status.ly-status-soon {
    background: #f3f4f6;
    color: #6b7280;
}

.ly-hub-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 4px 0 0;
    line-height: 1.25;
}

.ly-hub-card-meta {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.ly-hub-card-zips {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.ly-hub-card-cta {
    margin-top: auto;
    padding-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #448288;
}

/* Muted (coming soon) variant */
.ly-hub-card-muted {
    background: #fafafa;
}

.ly-hub-card-muted .ly-hub-card-title {
    color: #374151;
}

.ly-hub-card-muted .ly-hub-card-cta {
    color: #6b7280;
}

.ly-hub-card-muted:hover {
    border-color: #9ca3af;
}

/* Bottom CTA */
.ly-hub-bottom-cta {
    background: linear-gradient(135deg, #f9fafb 0%, #eef2f3 100%);
    text-align: center;
    padding: 60px 20px;
}

.ly-hub-bottom-cta .ly-section-title {
    margin-bottom: 10px;
}

.ly-hub-bottom-cta .ly-section-subtitle {
    margin-bottom: 24px;
}

/* Map marker info bubbles (for JS) */
.ly-hub-infowindow {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 180px;
    padding: 4px 2px;
}

.ly-hub-infowindow-title {
    font-weight: 700;
    font-size: 15px;
    color: #0d4f52;
    margin: 0 0 4px;
}

.ly-hub-infowindow-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #448288;
    text-decoration: none;
}

.ly-hub-infowindow-link:hover {
    text-decoration: underline;
}
