/* Theme Variables */
:root {
  --lp-primary-color: #16233B;
  --lp-secondary-color: #F7F8FA;
  --lp-accent-color: #2F5DA8;
  --lp-color-accent: #2F5DA8;
  --lp-color-accent-hover: color-mix(in srgb, #2F5DA8 85%, black);
  --lp-body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --lp-heading-font: var(--lp-body-font);
}

/**
 * Location Pages - Base Styles
 * Clean, modern, accessible design system
 */

/* Static CSS Variables (non-customizable) */
:root {
    /* Derived Colors */
    --lp-text-primary: #1f2937;
    --lp-text-secondary: #6b7280;
    --lp-text-muted: #9ca3af;
    --lp-border-color: #e5e7eb;
    --lp-border-light: #f3f4f6;
    --lp-bg-white: #ffffff;
    --lp-bg-light: #f9fafb;
    --lp-bg-dark: #111827;
    
    /* Shadows */
    --lp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lp-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --lp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --lp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --lp-container-max: 1200px;
    --lp-container-padding: 1.5rem;
    
    /* Transitions */
    --lp-transition: 150ms ease-in-out;
    
    /* Border Radius */
    --lp-radius-sm: 0.375rem;
    --lp-radius: 0.5rem;
    --lp-radius-lg: 0.75rem;
    --lp-radius-xl: 1rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--lp-body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--lp-text-primary);
    background-color: var(--lp-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility - Skip Link (hidden until focused) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    background: var(--lp-accent-color);
    color: white;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--lp-radius) var(--lp-radius);
}

.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    overflow: visible;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Screen Reader Only */
.lp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.lp-container {
    max-width: var(--lp-container-max);
    margin: 0 auto;
    padding-left: var(--lp-container-padding);
    padding-right: var(--lp-container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--lp-heading-font);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    color: var(--lp-primary-color);
}

a {
    color: var(--lp-accent-color);
    text-decoration: none;
    transition: color var(--lp-transition);
}

a:hover, a:focus {
    color: var(--lp-primary-color);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--lp-accent-color);
    outline-offset: 2px;
}

address {
    font-style: normal;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
/* Header - Clean minimal design */
.lp-header {
    background: #ffffff;
    border-bottom: 1px solid var(--lp-border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    min-height: 56px;
}

.lp-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.lp-logo-image {
    max-height: 36px;
    width: auto;
}

.lp-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-primary-color);
}

.lp-nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav-link {
    color: var(--lp-text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.5rem 0;
}

.lp-nav-link:hover, .lp-nav-link:focus {
    color: var(--lp-primary-color);
    text-decoration: none;
}

.lp-mobile-menu-toggle {
    display: none;
}

/* Hero Section */
/* Hero Section - Clean modern style */
.lp-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--lp-border-color);
    padding: 2.5rem 0;
    text-align: center;
}

.lp-hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--lp-text-primary);
    margin-bottom: 0.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lp-hero-subtitle {
    font-size: 1rem;
    color: var(--lp-text-secondary);
    max-width: 540px;
    margin: 0 auto;
    font-weight: 400;
}

/* Filters Section */
.lp-filters-section {
    background: var(--lp-bg-light);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--lp-border-color);
}

.lp-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.lp-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.lp-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 1px solid var(--lp-border-color);
    border-radius: var(--lp-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--lp-bg-white);
    transition: border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-search-input:focus {
    outline: none;
    border-color: var(--lp-accent-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.lp-search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--lp-text-secondary);
    transition: color var(--lp-transition);
}

.lp-search-button:hover {
    color: var(--lp-accent-color);
}

.lp-tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lp-tag-filter {
    display: flex;
    cursor: pointer;
}

.lp-tag-filter input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lp-tag-label {
    padding: 0.375rem 0.875rem;
    background: var(--lp-bg-white);
    border: 1px solid var(--lp-border-color);
    border-radius: var(--lp-radius);
    font-size: 0.875rem;
    color: var(--lp-text-secondary);
    transition: all var(--lp-transition);
}

.lp-tag-filter input:checked + .lp-tag-label {
    background: var(--lp-accent-color);
    border-color: var(--lp-accent-color);
    color: white;
}

.lp-tag-filter input:focus-visible + .lp-tag-label {
    outline: 2px solid var(--lp-accent-color);
    outline-offset: 2px;
}

/* Locations Section */
.lp-locations-section {
    padding: 2rem 0 4rem;
}

.lp-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lp-results-count {
    color: var(--lp-text-secondary);
    margin: 0;
}

.lp-clear-filters {
    font-size: 0.875rem;
}

/* Locations Grid */
.lp-locations-grid {
    display: grid;
    gap: 1.5rem;
}

.lp-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.lp-layout-list {
    grid-template-columns: 1fr;
}

.lp-layout-compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Location Card */
.lp-location-card {
    background: var(--lp-bg-white);
    border: 1px solid var(--lp-border-color);
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    transition: border-color var(--lp-transition), box-shadow var(--lp-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.lp-layout-list .lp-location-card {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.lp-location-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lp-location-card:focus-within {
    border-color: var(--lp-color-accent);
    box-shadow: 0 0 0 3px rgba(var(--lp-accent-rgb, 67, 97, 238), 0.15);
    outline: none;
}

.lp-location-featured {
    border-color: var(--lp-color-accent);
    background: linear-gradient(to bottom right, rgba(var(--lp-accent-rgb, 67, 97, 238), 0.02), transparent);
}

.lp-featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--lp-accent-color);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--lp-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.lp-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--lp-bg-light);
}

.lp-layout-list .lp-card-image {
    aspect-ratio: 4/3;
}

.lp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.lp-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lp-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.lp-card-link {
    color: var(--lp-primary-color);
    text-decoration: none;
}

.lp-card-link:hover {
    color: var(--lp-accent-color);
    text-decoration: underline;
}

.lp-card-link:focus-visible {
    outline: 2px solid var(--lp-accent-color);
    outline-offset: 2px;
    border-radius: var(--lp-radius-sm);
}

.lp-card-address {
    color: var(--lp-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.lp-address-street {
    display: block;
}

.lp-card-phone {
    margin-bottom: 0.75rem;
}

.lp-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lp-text-secondary);
    font-size: 0.9375rem;
}

.lp-phone-link:hover {
    color: var(--lp-accent-color);
    text-decoration: none;
}

.lp-phone-link:focus-visible {
    outline: 2px solid var(--lp-accent-color);
    outline-offset: 2px;
    border-radius: var(--lp-radius-sm);
}

.lp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.lp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5rem;
    background: var(--tag-color, #f3f4f6);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--lp-text-secondary);
}

/* When tag has a custom color, adjust text for contrast */
.lp-tag[style*="--tag-color"] {
    background: var(--tag-color);
    color: #fff;
}

.lp-tag-icon {
    width: 1em;
    height: 1em;
    object-fit: contain;
    border-radius: 2px;
}

.lp-tag-lg {
    font-size: 0.875rem;
    padding: 0.375rem 0.875rem;
}

.lp-tag-lg .lp-tag-icon {
    width: 1.25em;
    height: 1.25em;
}

.lp-tag-more {
    background: var(--lp-border-color);
}

.lp-card-distance {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--lp-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.lp-card-cta {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* Buttons - Clean, clear design */
.lp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-radius: var(--lp-radius);
    border: none;
    cursor: pointer;
    transition: background-color var(--lp-transition), border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

.lp-button-primary {
    background: var(--lp-color-accent, #4361ee);
    color: #ffffff;
}

.lp-button-primary:hover {
    background: var(--lp-color-accent-hover, #3651d4);
    color: #ffffff;
    text-decoration: none;
}

.lp-button-secondary {
    background: #ffffff;
    color: var(--lp-text-primary);
    border: 1px solid #d1d5db;
}

.lp-button-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: var(--lp-text-primary);
    text-decoration: none;
}

.lp-button-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.lp-button-block {
    width: 100%;
}

.lp-button-block {
    width: 100%;
}

/* Pagination */
.lp-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.lp-pagination-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    color: var(--lp-text-secondary);
    text-decoration: none;
    border-radius: var(--lp-radius);
    font-weight: 500;
    transition: all var(--lp-transition);
}

.lp-pagination-link:hover {
    background: var(--lp-bg-light);
    color: var(--lp-primary-color);
    text-decoration: none;
}

.lp-pagination-link:focus-visible {
    outline: 2px solid var(--lp-accent-color);
    outline-offset: 2px;
}

.lp-pagination-current {
    background: var(--lp-accent-color);
    color: white;
}

.lp-pagination-current:hover {
    background: var(--lp-accent-color);
    color: white;
}

.lp-pagination-ellipsis {
    color: var(--lp-text-muted);
    padding: 0 0.5rem;
}

.lp-pagination-prev,
.lp-pagination-next {
    gap: 0.375rem;
}

/* No Results */
.lp-no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.lp-no-results-icon {
    color: var(--lp-text-muted);
    margin-bottom: 1.5rem;
}

.lp-no-results-title {
    margin-bottom: 0.5rem;
}

.lp-no-results-text {
    color: var(--lp-text-secondary);
    margin-bottom: 1.5rem;
}

/* Location Detail Page */
.lp-breadcrumb {
    background: var(--lp-bg-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lp-border-color);
}

.lp-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.lp-breadcrumb-link {
    color: var(--lp-text-secondary);
}

.lp-breadcrumb-current {
    color: var(--lp-text-primary);
    font-weight: 500;
}

.lp-breadcrumb-separator {
    color: var(--lp-text-muted);
    display: flex;
}

/* Location hero - clean white by default */
.lp-location-hero {
    padding: 3rem 0;
    background: var(--lp-bg-white);
    border-bottom: 1px solid var(--lp-border-color);
    position: relative;
}

/* When there's an image, use overlay style */
.lp-location-hero.lp-has-image {
    padding: 0;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    border-bottom: none;
    color: white;
}

.lp-hero-image {
    position: absolute;
    inset: 0;
}

.lp-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.lp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.lp-featured-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--lp-accent-color);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--lp-radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.lp-location-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--lp-text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* White text when has image */
.lp-has-image .lp-location-title {
    color: white;
}

.lp-location-address {
    font-size: 1.125rem;
    color: var(--lp-text-secondary);
    font-style: normal;
}

.lp-has-image .lp-location-address {
    color: rgba(255, 255, 255, 0.9);
}

/* Location Content Layout */
.lp-location-content {
    padding: 2rem 0;
}

.lp-location-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

.lp-section {
    margin-bottom: 2.5rem;
}

.lp-section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lp-border-color);
}

.lp-section-title-lg {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.lp-description {
    color: var(--lp-text-secondary);
    line-height: 1.7;
}

/* Prose - Styles for user-generated HTML content */
.lp-prose p {
    margin: 0 0 1em;
}

.lp-prose p:last-child {
    margin-bottom: 0;
}

.lp-prose strong,
.lp-prose b {
    font-weight: 600;
    color: var(--lp-text-primary);
}

.lp-prose em,
.lp-prose i {
    font-style: italic;
}

.lp-prose u {
    text-decoration: underline;
}

.lp-prose a {
    color: var(--lp-color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lp-prose a:hover {
    text-decoration: none;
}

.lp-prose ul,
.lp-prose ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.lp-prose li {
    margin-bottom: 0.25em;
}

.lp-prose h2,
.lp-prose h3,
.lp-prose h4,
.lp-prose h5,
.lp-prose h6 {
    font-family: var(--lp-heading-font);
    color: var(--lp-text-primary);
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

.lp-prose h2:first-child,
.lp-prose h3:first-child,
.lp-prose h4:first-child {
    margin-top: 0;
}

.lp-prose h2 { font-size: 1.25rem; }
.lp-prose h3 { font-size: 1.125rem; }
.lp-prose h4 { font-size: 1rem; }

.lp-prose blockquote {
    margin: 1em 0;
    padding: 0.75em 1em;
    border-left: 3px solid var(--lp-color-accent);
    background: var(--lp-bg-light);
    font-style: italic;
}

.lp-prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Hours */
.lp-hours-list {
    margin: 0;
}

.lp-hours-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lp-border-light);
}

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

.lp-hours-day {
    font-weight: 500;
    width: 120px;
    color: var(--lp-text-primary);
}

.lp-hours-time {
    color: var(--lp-text-secondary);
    margin: 0;
}

.lp-closed {
    color: var(--lp-text-muted);
}

/* Tags List */
.lp-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Map */
.lp-map-container {
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--lp-border-color);
}

.lp-interactive-map {
    width: 100%;
    height: 300px;
    min-height: 300px;
    background: var(--lp-bg-light);
    display: block;
    position: relative;
}

.lp-static-map {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
}

.lp-map-link {
    display: block;
}

.lp-map-fallback {
    padding: 2rem;
    text-align: center;
    background: var(--lp-bg-light);
    color: var(--lp-text-secondary);
}

/* MapLibre Map Styles */
.lp-map-marker {
    width: 32px;
    height: 42px;
    cursor: pointer;
}

.lp-map-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.lp-map-popup {
    padding: 0.25rem 0;
}

.lp-map-popup-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lp-text-primary, #1a1a2e);
    margin-bottom: 0.25rem;
}

.lp-map-popup-address {
    font-size: 0.8125rem;
    color: var(--lp-text-secondary, #6b7280);
    margin: 0 0 0.5rem 0;
}

.lp-map-popup-directions {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lp-color-accent, #4361ee);
    text-decoration: none;
}

.lp-map-popup-directions:hover {
    text-decoration: underline;
}

/* MapLibre GL overrides */
.lp-map-container .maplibregl-popup-content {
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lp-map-container .maplibregl-popup-close-button {
    font-size: 18px;
    padding: 4px 8px;
    color: #6b7280;
}

.lp-map-container .maplibregl-popup-close-button:hover {
    color: #1a1a2e;
    background: transparent;
}

.lp-map-container .maplibregl-ctrl-group {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lp-map-container .maplibregl-ctrl-group button {
    width: 36px;
    height: 36px;
}

/* Sidebar */
.lp-sidebar-card {
    background: var(--lp-bg-white);
    border: 1px solid var(--lp-border-color);
    border-radius: var(--lp-radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(64px + 1.5rem);
}

.lp-sidebar-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lp-border-color);
}

.lp-contact-item {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.lp-contact-item:last-of-type {
    margin-bottom: 1.5rem;
}

.lp-contact-icon {
    color: var(--lp-accent-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.lp-contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.lp-contact-value {
    color: var(--lp-text-primary);
    font-size: 0.9375rem;
}

.lp-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.lp-icon-external {
    opacity: 0.5;
}

.lp-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.lp-nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Back Link */
.lp-back-section {
    padding: 2rem 0;
    border-top: 1px solid var(--lp-border-color);
}

.lp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lp-text-secondary);
    font-weight: 500;
}

.lp-back-link:hover {
    color: var(--lp-accent-color);
}

/* Footer */
/* Footer - Clean, minimal white design */
.lp-footer {
    background: #ffffff;
    border-top: 1px solid var(--lp-border-color);
    padding: 2rem 0;
}

.lp-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.lp-footer-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-footer-link {
    color: var(--lp-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color var(--lp-transition);
    text-decoration: none;
}

.lp-footer-link:hover {
    color: var(--lp-text-primary);
}

.lp-footer-copyright {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.lp-footer-copyright p {
    margin: 0;
}

.lp-footer-powered {
    margin-top: 0.25rem;
}

.lp-powered-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #9ca3af;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color var(--lp-transition);
}

.lp-powered-link:hover {
    color: var(--lp-text-secondary);
}

.lp-powered-text {
    font-weight: 400;
}

.lp-powered-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.lp-powered-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lp-powered-name {
    font-weight: 600;
    color: #6b7280;
    letter-spacing: -0.01em;
}

/* Custom Content */
.lp-custom-content {
    padding: 2rem 0;
}

/* Geographic Navigation */
.lp-geo-nav-section {
    padding: 2rem 0;
    background: var(--lp-bg-light);
    border-bottom: 1px solid var(--lp-border-color);
}

.lp-geo-nav-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--lp-text-primary);
}

.lp-geo-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-geo-nav-item {
    margin: 0;
}

.lp-geo-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: var(--lp-bg-white);
    border: 1px solid var(--lp-border-color);
    border-radius: var(--lp-radius);
    text-decoration: none;
    transition: all var(--lp-transition);
}

.lp-geo-nav-link:hover {
    border-color: var(--lp-accent-color);
    box-shadow: var(--lp-shadow-sm);
    text-decoration: none;
}

.lp-geo-nav-link:focus-visible {
    outline: 2px solid var(--lp-accent-color);
    outline-offset: 2px;
}

.lp-geo-nav-name {
    font-weight: 500;
    color: var(--lp-text-primary);
}

.lp-geo-nav-count {
    font-size: 0.875rem;
    color: var(--lp-text-muted);
    background: var(--lp-bg-light);
    padding: 0.25rem 0.625rem;
    border-radius: var(--lp-radius-sm);
}

/* Icon */
.lp-icon {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .lp-location-grid {
        grid-template-columns: 1fr;
    }
    
    .lp-sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --lp-container-padding: 1rem;
    }
    
    .lp-layout-list .lp-location-card {
        grid-template-columns: 1fr;
    }
    
    .lp-nav {
        display: none;
    }
    
    .lp-hero {
        padding: 2rem 0;
    }
    
    .lp-filters-form {
        flex-direction: column;
    }
    
    .lp-search-wrapper {
        max-width: none;
        width: 100%;
    }
    
    .lp-hours-day {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .lp-pagination-link {
        min-width: 2rem;
        height: 2rem;
    }
    
    .lp-nearby-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .lp-button-secondary {
        border-width: 2px;
    }
    
    .lp-location-card {
        border-width: 2px;
    }
}

/* ===========================
   Custom Fields
   =========================== */

.lp-custom-fields-section {
    margin-top: 1.5rem;
}

.lp-custom-fields-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.lp-custom-field {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lp-border-color, #e5e7eb);
}

.lp-custom-field:last-child {
    border-bottom: none;
}

.lp-custom-field-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lp-text-secondary, #6b7280);
    min-width: 120px;
    flex-shrink: 0;
}

.lp-custom-field-value {
    font-size: 0.9375rem;
    color: var(--lp-text-primary, #1a1a2e);
    flex: 1;
    margin: 0;
}

.lp-custom-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.lp-custom-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lp-custom-button-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.lp-custom-phones,
.lp-custom-emails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lp-custom-phone,
.lp-custom-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.lp-custom-phone .lp-custom-field-label,
.lp-custom-email .lp-custom-field-label {
    min-width: auto;
}

.lp-custom-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.lp-custom-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lp-color-secondary, #f8f9fa);
    color: var(--lp-text-secondary, #6b7280);
    font-size: 1.125rem;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.lp-custom-icon-link:hover {
    background: var(--lp-border-color, #e5e7eb);
    transform: scale(1.05);
}

.lp-custom-icon-link:focus-visible {
    outline: 2px solid var(--lp-color-accent, #4361ee);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .lp-header,
    .lp-footer,
    .lp-filters-section,
    .lp-pagination,
    .lp-contact-actions,
    .lp-back-section,
    .lp-map-section,
    .skip-link {
        display: none !important;
    }
    
    .lp-location-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    a {
        color: inherit;
        text-decoration: underline;
    }
}


