#akr-app-container {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-bottom: 2em;
    border: 1px solid #e2e8f0; 
    padding: 1.5em;
    border-radius: 0.5rem;
    background-color: #ffffff;
}

#akr-app-container .akr-content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-top: 1.5em;
}

#akr-list-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 1em;
    background-color: #fff;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

#akr-map-container {
    flex: 2;
    min-width: 320px;
    min-height: 450px;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    overflow: hidden; 
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

#akr-map {
    height: 100%;
    width: 100%;
    min-height: 450px; 
    background-color: #e5e7eb; 
}

.akr-filters {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: flex-end; 
    justify-content: center; 
}
.akr-filters h2 {
    width: 100%; 
    margin: 0 0 0.75em 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}
.akr-filter-group {
    flex: 1; 
    min-width: 180px; 
}
.akr-filter-group label {
    display: block;
    margin-bottom: 0.35em;
    font-size: 0.9em;
    font-weight: 500;
    color: #374151;
}
.akr-filters select {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-sizing: border-box; 
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.akr-filters select:focus {
    outline: none;
    border-color: #3b82f6; 
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3); 
}
.akr-filters select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}
.akr-filters button {
    padding: 0.6em 1.2em;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    height: fit-content; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.akr-filters button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(164, 172, 185, 0.5); 
}

.akr-button-group {
    flex-basis: 100%; 
    display: flex;
    gap: 1em;
    justify-content: flex-start; 
}

@media (min-width: 992px) {
     .akr-button-group {
        flex-basis: auto; 
        margin-left: auto; 
        justify-content: flex-end; 
    }
     .akr-filters .akr-filter-group {
        flex-grow: 0;
        flex-basis: 250px; 
     }
}

.akr-filters button#akr-filter-button { 
    background-color: #C41213;
    color: white;
}
.akr-filters button#akr-filter-button:hover {
    background-color: #a51011;
}
.akr-filters button#akr-reset-button {
    background-color: #e5e7eb;
    color: #1f2937;
    border-color: #d1d5db;
}
.akr-filters button#akr-reset-button:hover {
    background-color: #d1d5db;
    border-color: #9ca3af;
}


#akr-list-container h3 {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-size: 1.15em;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.6em;
    color: #111827;
}
#akr-station-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#akr-station-list li {
    padding: 0.85em 0.6em;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#akr-station-list li:last-child {
    border-bottom: none;
}
#akr-station-list li:hover {
    background-color: #f9fafb;
}
#akr-station-list li.akr-active-item { 
    background-color: #eff6ff;
}

#akr-station-list li strong { 
    display: block;
    font-weight: 600;
    margin-bottom: 0.3em;
    color: #111827;
    font-size: 1.05em;
}
#akr-station-list li .akr-list-address {
    font-size: 0.85em;
    color: #4b5563;
    margin-top: 0.3em;
    line-height: 1.4;
    display: block !important; 
}
#akr-station-list li .akr-list-detail {
    font-size: 0.85em;
    color: #4b5563;
    display: flex !important; 
    margin-top: 0.3em;
    line-height: 1.4;
}
#akr-station-list li .akr-list-address strong,
#akr-station-list li .akr-list-detail strong { 
    font-weight: 600;
    margin-right: 0.4em;
}

#akr-station-list li small { 
    display: block;
    font-size: 0.8em;
    color: #9ca3af;
    margin-top: 0.4em;
}
#akr-station-list li .akr-map-link-btn { 
    display: block; 
    width: fit-content;
    margin-top: 0.75em;
    padding: 0.3em 0.8em;
    font-size: 0.85em;
    font-weight: 500;
    color: #ffffff;
    background-color: #C41213;
    border: 1px solid #C41213;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#akr-station-list li .akr-map-link-btn:hover {
    background-color: #a51011;
    border-color: #a51011;
    color: #ffffff;
}

#akr-station-list .akr-list-placeholder,
#akr-station-list .akr-list-no-results { 
    text-align: center;
    padding: 2.5em 1em;
    color: #6b7280;
    font-style: italic;
    cursor: default;
}
#akr-station-list .akr-list-no-results:hover {
    background-color: transparent; 
}

.akr-loading-overlay { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #374151;
    z-index: 10;
    border-radius: 0.375rem; 
    transition: opacity 0.3s ease;
    opacity: 1;
}
.akr-loading-overlay[style*="display: none;"] { 
    opacity: 0;
    pointer-events: none; 
}

#akr-map-container .akr-loading-overlay {
    z-index: 10; }

.gm-style .gm-style-iw-c { 
    padding: 0 !important;
    border-radius: 8px !important;
    max-width: 340px !important;
    min-width: 280px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gm-style .gm-style-iw-d { 
    overflow: auto !important; 
    padding: 0 !important; 
    max-height: 250px; 
}
.akr-infowindow-content { 
    padding: 16px 20px 12px 20px; 
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}
.akr-infowindow-content h4 { 
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #111827;
}

.akr-infowindow-content .akr-info-detail
{
    margin: 4px 0;
    font-size: 0.9em;
    color: #6b7280;
    display: block; 
    line-height: 1.4;
}
.akr-infowindow-content .akr-info-detail strong { 
    font-weight: 600;
    margin-right: 0.4em;
}

.akr-infowindow-content small { 
    display: block;
    font-size: 0.85em;
    color: #9ca3af;
    margin-top: 8px;
}
.akr-infowindow-content .akr-get-directions-btn { 
    display: block; 
    width: fit-content;
    margin-top: 12px;
    padding: 6px 14px;
    font-size: 0.9em;
    font-weight: 500;
    color: #fff;
    background-color: #C41213;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.akr-infowindow-content .akr-get-directions-btn:hover {
    background-color: #a51011;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
