[x-cloak] { display: none !important; }

.card-dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: #dc2626 !important;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    line-height: 1;
}

.card-dismiss:hover {
    background: #b91c1c !important;
}

section hgroup h2 {
    font-size: 1.35rem;
}

.autocomplete-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    background: var(--pico-background-color);
    position: relative;
    z-index: 10;
}

.autocomplete-list li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    list-style: none !important;
}

.autocomplete-list li::marker,
.autocomplete-list li::before {
    content: none !important;
    display: none !important;
}

.autocomplete-list li:hover {
    background: var(--pico-primary-focus);
}

.voice-progress {
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--pico-muted-border-color);
    overflow: hidden;
}

.voice-progress-bar {
    height: 100%;
    background: var(--pico-primary);
    transition: width 1s linear;
}

.recording-dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: red;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.fare-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fare-card-footer button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button.theme-toggle {
    --pico-background-color: transparent !important;
    --pico-border-color: transparent !important;
    --pico-box-shadow: none !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    padding: 0.35rem 0.4rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--pico-border-radius);
    transition: background-color 0.15s;
    line-height: 1;
}

button.theme-toggle:hover {
    background-color: var(--pico-muted-background) !important;
}

button.theme-toggle:focus-visible {
    outline: 3px solid var(--pico-primary-focus);
    outline-offset: 2px;
}

.site-footer hr {
    margin-bottom: 1.5rem;
}

.footer-inner {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.footer-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
    padding: 1rem 1.1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.75rem;
    background: var(--pico-card-background-color);
}

.footer-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: var(--pico-primary);
    color: #fff;
    flex-shrink: 0;
}

.footer-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-card-body strong {
    font-size: 0.9rem;
}

.footer-card-body small {
    color: var(--pico-muted-color);
    font-size: 0.8rem;
}

.footer-card-link {
    font-size: 0.82rem;
    font-weight: 500;
}

.footer-updated {
    color: var(--pico-muted-color);
    font-size: 0.78rem !important;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
    }
}
