#detailCardAnchor {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10,14,20,.5);
    backdrop-filter: blur(6px);
}

#detailCardContainer {
    width: min(100%, 640px);
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--background);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    position: relative;
    scrollbar-width: none;
}

.detailCardCloseButtonPositioner {
    position: absolute;
    right: 45px;
    top: 13px;
}

#closeButton {
    border-radius: 999px;
    background: var(--background);
    width: 32px;
    height: 32px;
    position: fixed;
    border: 1px solid var(--border);
    cursor: pointer;
    z-index: 450;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.28);
}

#map {
    width: 100%;
    height: 340px;
}

#map::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--background) 90%);
    pointer-events: none;
    z-index: 450;
}

.detailCardEntry {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
    background-color: var(--background);
}

#priceHistoryRevealer {
    display: grid;
    place-items: center;
    cursor: pointer;
}

#priceHistoryRevealer strong {
    color: var(--primary);
}

.entryFolded {
    height: 0;
    border-bottom: none !important;
}

.entryFolded * {
    display: none !important;
}

#detailCardMisc {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

#detailCardStationInfo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#detailCardStationInfo h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.detailCardStationName {
    display: flex;
    font-size: 13px;
    color: var(--muted-foreground);
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.detailCardText {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    margin: 0;
    color: var(--muted-foreground);
}

.detailCardStationPrice {
    flex-shrink: 0;
    text-align: right;
}

.detailCardStationPriceValue {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    white-space: nowrap;
}

.detailCardStationPriceValue span {
    margin-left: 0.15rem;
    font-size: 13px;
}

.detailCardStationPriceLabel {
    font-size: 15px;
    font-weight: 400;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.detailCardEntry p {
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    box-sizing: border-box;
    margin-top: 0;
}

.detailCardPricesGrid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.detailCardPriceEntry {
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px;
    border-radius: 16px;
    background: var(--background-shaded);
}

.detailCardPriceEntry span {
    color: var(--muted-foreground);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.detailCardPriceEntry strong {
    font-size: 18px;
}

.detailCardPriceEntryHighlighted {
    background-color: var(--primary);
}

.detailCardPriceEntryHighlighted span {
    color: color-mix(in srgb, var(--background), black 12%) !important;
}

.detailCardPriceEntryHighlighted strong {
    color: white !important;
}

.amenityEntry {
    border-bottom: none;
}

#detailCardAmenityGrid {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.detailCardAmenity {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-family: inherit;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    flex-direction: row;
    border-radius: 999px;
    padding: 7px 9px;
    border: 1px solid var(--primary);
    background-color: var(--primary-soft);
}

.detailCardAmenity img {
    width: 24px;
    filter: sepia(4) brightness(1.2) contrast(8) hue-rotate(144deg) brightness(0.7);
}

.detailCardScheduleInfo {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.detailCardIconBadge {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--background-shaded);
}

#detailCardCondensedSchedule h3, .detailCardFallbackWrapper h3 {
    font-weight: 700;
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: var(--foreground);
}

#detailCardCondensedSchedule span {
    color: var(--muted-foreground);
    font-size: 14px;
}

.detailCardFallbackWrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 90%;
    gap: 5px;
}

.detailCardFallbackSchedule {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 90px;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3px;
}

.fallbackScheduleEntry {
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 300;
    display: flex;
    width: 45%;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.gpsEntry {
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--border);
}

.detailCardGPSNavigation {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.detailCardGPSNavigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.25s;
    cursor: pointer;
}

.detailCardGPSNavigation #gpsDirections {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    flex-grow: 1;
}

.detailCardGPSNavigation #gpsDirections:hover {
    background-color: color-mix(in srgb, var(--primary), white 20%);
}

.detailCardGPSNavigation #gpsExternal {
    flex: 0 0 auto;
    padding-inline: 0.9rem;
    padding: 0.75rem 1rem;
    background-color: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.detailCardGPSNavigation #gpsExternal:hover {
    background-color: color-mix(in srgb, var(--background), black 3%);
}

#PriceHistoryEntry {
    display: flex;
    flex-direction: row;
}

#PriceHistoryEntry span {
    color: var(--muted-foreground);
    font-size: 13px;
    font-style: italic;
}

#chartWrapper {
    position: relative;
    height: 330px;
    width: 600px;
    margin: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#detailCardPriceHistory {
    position: relative;
}
