.locations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.locations-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    height: 600px;
}

.locations-sidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.locations-map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 400px;
    border: 1px solid #ddd;
}

.locations-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #f0f0f0;
}

.locations-search {
    margin-bottom: 30px;
}

.zip-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Remove any BR tags that WordPress might add */
.zip-search-form br {
    display: none;
}

.zip-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.zip-search-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.zip-search-button {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.zip-search-button:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.reset-button {
    padding: 12px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.reset-button:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Loading state */
.zip-search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader {
    color: white;
    font-size: 14px;
}

.locations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.location-item {
    margin-bottom: 8px;
}

.location-link {
    display: block;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.location-link:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    text-decoration: none;
}

.location-distance {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    background: #e3f2fd;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #90caf9;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite;
}

.location-distance::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.location-distance::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

.locations-no-results,
.locations-error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.locations-error {
    color: #d32f2f;
    background: #ffebee;
    border-color: #ffcdd2;
}

/* Map popup styles */
.map-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.map-popup h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.map-popup p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.map-popup a {
    display: inline-block;
    margin-top: 8px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

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

/* Custom cluster icon colors */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    transition: all 0.3s ease-out;
}

/* Simple Layout Styles */
.locations-container-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Row Layout */
.locations-main-row {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

.locations-main-row > div {
    flex: 1;
}

/* Ensure left column comes first */
.locations-main-row > div:first-child {
    grid-row: 1;
    grid-column: 1;
}

/* Ensure right column comes second */
.locations-main-row > div:last-child {
    grid-row: 1;
    grid-column: 2;
}

/* Left Column - Search and Locations */
.locations-left-column {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.locations-heading {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.locations-list-simple {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
}

.location-item-simple {
    margin-bottom: 12px;
}

.location-item-simple h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.location-item-simple a {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    padding: 8px 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
    gap: 6px;
}

.location-item-simple a > span:first-child {
    flex: 1;
}

/* When no search is performed, make the location name take full width */
.location-item-simple a:not(:has(.location-meta)) {
    justify-content: flex-start;
}

.location-item-simple a:not(:has(.location-meta)) > span:first-child {
    flex: 1;
    width: 100%;
}

.location-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Nearest Location Badge */
.nearest-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulseGlow 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Nearest Location Highlight */
.nearest-location {
    position: relative;
}

.nearest-location a {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.nearest-location::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 400% 400%;
    border-radius: 10px;
    z-index: -1;
    animation: gradientBorder 3s ease-in-out infinite;
    opacity: 0.7;
}

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

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #4caf50;
    color: white;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #45a049;
}

.directions-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.directions-icon {
    font-size: 14px;
}

.location-item-simple a:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Right Column - Heading */
.locations-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Map Container */
.right-map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 400px;
    background: #f0f0f0;
}

.right-locations-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.heading-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heading-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

.heading-content {
    position: relative;
    z-index: 1;
}

.main-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.heading-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 20px 0;
    line-height: 1.6;
    opacity: 0.95;
}

.heading-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 18px;
}

/* Mobile Map Styles */
@media (max-width: 1024px) {
    .right-map-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .right-map-container {
        height: 350px;
        margin-bottom: 20px;
    }

    .right-locations-map {
        height: 100%;
        min-height: 350px;
    }
}

.search-results-info {
    background: #e3f2fd;
    color: #1565c0;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #90caf9;
}

/* Section Styles */
.locations-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 28px;
}

.search-context {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

/* Opening Soon Section - Compact Banner */
.opening-soon-banner {
    display: flex;
    align-items: baseline;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    margin-top: 40px;
    position: relative;
}

.opening-soon-badge-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.opening-soon-badge-container .badge-icon {
    font-size: 20px;
}

.opening-soon-list-container {
    flex: 1;
    overflow: hidden;
    padding-left: 20px;
}

.opening-soon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.opening-soon-item {
    display: flex;
    align-items: center;
}

.opening-soon-item:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

.opening-soon-item a {
    display: inline-flex !important;
    align-items: center !important;
    color: white;
    text-decoration: none;
    font-size: 17px;
    line-height: 1 !important;
    transition: background-color 0.2s ease, text-decoration 0.2s ease;
    padding: 4px 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
}

.opening-soon-item a:hover {
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.25);
}

.opening-soon-banner p:empty {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .locations-container-simple {
        padding: 15px;
    }

    .locations-main-row {
        flex-direction: column;
        gap: 30px;
    }

    .locations-left-column {
        padding: 20px;
    }

    .main-heading {
        font-size: 32px;
    }

    .heading-subtitle {
        font-size: 16px;
    }

    /* Order: Map first, then content */
    .locations-right-column {
        order: -1;
    }

    /* Ensure map takes full width on mobile */
    .locations-right-column,
    .right-map-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Adjust search form for mobile */
    .zip-search-form {
        flex-direction: column;
        gap: 10px;
    }

    .zip-search-input-group {
        flex-direction: column;
        width: 100%;
    }

    .zip-search-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .zip-search-button,
    .reset-button {
        width: 100%;
        margin-bottom: 5px;
    }

    /* Adjust spacing for mobile */
    .locations-simple-grid {
        gap: 20px;
    }

    /* Location items adjustments */
    .location-item-simple {
        margin-bottom: 10px;
    }

    .location-item-simple a {
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Meta items for mobile */
    .location-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

    .nearest-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    .location-distance {
        font-size: 12px;
    }

    .directions-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* Opening Soon section mobile adjustments */
    .coming-soon-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .coming-soon-card {
        padding: 20px;
    }

    .coming-soon-location-name {
        font-size: 20px;
    }

    .opening-soon-title {
        font-size: 28px;
    }

    .heading-features {
        gap: 10px;
    }

    .feature-item {
        font-size: 14px;
        padding: 10px 16px;
    }

    .location-distance {
        float: none;
        display: block;
        margin-top: 4px;
        font-size: 12px;
    }

    .zip-search-form {
        flex-wrap: wrap;
    }

    .zip-search-input {
        width: 100%;
    }

    .zip-search-button,
    .reset-button {
        flex: none;
        min-width: auto;
    }

    .opening-soon-section {
        margin: 40px -15px -15px -15px;
        padding: 40px 15px;
    }

    .opening-soon-title {
        font-size: 28px;
    }

    .opening-soon-subtitle {
        font-size: 16px;
    }

    .opening-soon-list {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .coming-soon-ribbon {
        right: -25px;
        padding: 4px 25px;
        font-size: 11px;
    }

    .opening-soon-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .opening-soon-badge-container {
        border-right: none;
        padding-right: 0;
        margin-bottom: 12px;
    }

    .opening-soon-list {
        gap: 8px 12px;
    }

    .opening-soon-item:not(:last-child)::after {
        display: none;
    }

    .opening-soon-list-container {
        width: 100%;
        padding-left: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .locations-container {
        padding: 15px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .locations-map-container {
        height: 400px;
        order: -1;
    }

    .zip-search-form {
        flex-direction: column;
    }

    .location-distance {
        float: none;
        display: block;
        margin-top: 4px;
        font-size: 12px;
    }
}