@import url('../style.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    display: block;
    height: auto;
    padding: 0 12px;
    margin: 0;
    overflow: auto;
}

/* 主容器布局 */
.container {
    max-width: 1200px;
    margin: 80px auto 20px;
    padding: 0 12px;
    display: grid;
}

@media (min-width: 641px) {
    .container {
        grid-template-columns: 240px 1fr;
    }

    /* 左侧瀑布流布局 */
    .sidebar {
        columns: 1 240px;
        column-gap: 24px;
    }

    /* 右侧线路编辑模块 */
    .main-content {
        grid-column: 2;
    }

    .line-list {
        columns: auto 300px;
        column-gap: 12px;
    }
}

.caption {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    color: var(--secondary-text);
}

.section {
    break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
    padding: 12px 18px;
    background-color: var(--card-background);
    border-radius: 18px;
}

#back-to-home img {
    opacity: 1;
}

h1 {
    margin-bottom: 30px;
    color: var(--text-color);
}

.section h2 {
    color: var(--text-color);
    font-size: 18px;
}

.line-editor h2 {
    margin-bottom: 6px;
}

/* Logo编辑器样式 */
.logo-editor {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-editor input {
    flex: 1;
}

#metro-logo {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 100%;
}

#logo-preview {
    width: 100%;
    height: auto;
    margin-top: 10px;
    object-fit: contain;
}

/* 线路编辑器样式 */
.line-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* 线路列表布局 */
.line-list {
    display: block;
}

.line-item, .add-line-button {
    break-inside: avoid;
    margin-bottom: 12px;
    display: inline-block;
    width: 100%;
}

.line-item {
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: var(--background-color);
}

.line-header {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row !important;
}

.line-name {
    flex: 1;
    pointer-events: none;
    background-color: transparent;
    border: none;
    padding: 4px 8px;
    color: var(--text-color);
}

.line-name.editing {
    pointer-events: auto;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
}

.line-header .icon-button {
    padding: 4px;
}

.line-header .icon-button img {
    width: 20px;
    height: 20px;
}

.stations-container {
    margin-top: 12px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.line-item.expanded .stations-container {
    display: block;
    opacity: 1;
}

.station-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.station-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px;
    border-radius: 12px;
    background-color: var(--card-background);
    margin-bottom: 0;
}

.station-content {
    display: none;
    flex-direction: column;
    gap: 10px;
    container-type: inline-size;
    container-name: station-content;
}

.station-item.expanded .station-content {
    display: flex;
}

/* 站台信息行样式 */
.platform-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

@container (max-width: 288px) {
    .platform-info {
        flex-direction: column;
    }
}

.platform-info .platform-controls {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
    width: 220px; /* 确保下拉菜单和复选框有足够空间 */
}

.platform-side {
    width: 96px;
}

/* 交换站台开关样式 */
.swap-platform {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 90px;
}

.swap-platform input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.swap-platform label {
    font-size: 14px;
    color: #666;
    user-select: none;
}

.station-header {
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.station-name {
    flex: 1;
    pointer-events: none;
    background-color: transparent;
    border: none;
    padding: 4px 8px;
    color: var(--text-color);
}

.station-name.editing {
    pointer-events: auto;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
}

.station-header input {
    flex: 1;
}

.station-header .icon-button img{
    width: 18px;
    height: 18px;
}

.add-line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-color);
    height: 60px;
}

.add-line-button img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.add-line-button:hover {
    background-color: var(--hover-background);
}

.add-line-button:hover img {
    opacity: 1;
}

.add-station-button, .add-station-info-template-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
}

.add-station-button img, .add-station-info-template-button img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.add-station-button:hover, .add-station-info-template-button:hover {
    background-color: var(--hover-background);
}

.add-station-button:hover img, .add-station-info-template-button:hover img {
    opacity: 1;
}

.toggle-button {
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-button img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.toggle-button:hover img {
    opacity: 1;
}

.expanded .toggle-button img {
    transform: rotate(180deg);
}

/* 车站编辑器样式 */
.coordinates, .label-offset {
    display: flex;
    gap: 5px;
}

input[type="text"],
input[type="number"],
select {
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 30px;
    width: 100%;
    background-color: var(--card-background);
    color: var(--text-color);
}

/* 按钮样式 */
button {
    padding: 8px 16px;
    border: none;
    border-radius: 24px;
    background-color: var(--background-color);
    color: var(--card-background);
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--hover-background);
}

.remove-line,
.remove-station {
    background-color: #dc3545;
}

.remove-line:hover,
.remove-station:hover {
    background-color: #c82333;
}

.add-station {
    margin-bottom: 15px;
}

/* 导出按钮样式 */
.export-btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #28a745;
}

.export-btn:hover {
    background-color: #218838;
}

/* 响应式设计 */
@media (max-width: 360px) {
    .container {
        margin-top: 80px;
        margin-bottom: 80px;
    }

    .station-item {
        grid-template-columns: 1fr;
    }
    
    .line-header {
        flex-direction: column;
    }

    .header .toolbar {
        display: none;
    }

    .floating-toolbar {
        display: flex !important;
    }
}

@media (min-width: 361px) {
    .floating-toolbar {
        display: none !important;
    }
}

/* 数据编辑器样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--header-background);
    box-shadow: 0 2px 5px var(--shadow-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header h1 {
    font-size: 20px;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 20px;
}

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

/* 浮动工具栏样式 */
.floating-toolbar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    gap: 10px;
    background: var(--card-background);
    padding: 10px;
    border-radius: 40px;
    box-shadow: 0 2px 8px var(--shadow-color);
    z-index: 1000;
}

/* 在小屏幕下显示浮动工具栏 */
@media (max-width: 360px) {
    .header .toolbar {
        display: none;
    }

    .floating-toolbar {
        display: flex !important;
    }
}

/* 在中等屏幕下隐藏浮动工具栏 */
@media (min-width: 361px) and (max-width: 640px) {
    .floating-toolbar {
        display: none !important;
    }
}

/* 在大屏幕下隐藏浮动工具栏 */
@media screen and (min-width: 768px) {
    .floating-toolbar {
        display: none;
    }
}

input[type="file"] {
    display: none;
}

.icon-button {
    padding: 8px;
    border: none;
    border-radius: 30px;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.icon-button img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.icon-button:hover img {
    opacity: 1;
}

/* 链接样式 */
a {
    color: #2c9678;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 高级选项开关样式 */
.advanced-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    padding: 4px 0;
}

.advanced-options-text {
    display: inline;
    line-height: 24px;
    min-width: 120px;
    flex: 1;
}

.advanced-options-text a {
    display: inline;
    white-space: inherit;
}

.caption {
    color: var(--secondary-text);
    font-size: 14px;
    margin-top: 0;
    text-align: left;
    padding: 12px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-text);
    transition: .4s;
    border-radius: 18px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2c9678;
}

input:checked + .slider:before {
    transform: translateX(12px);
}

/* 线路标题样式 */
.line-title, .station-title {
    position: relative;
    flex: 1;
    min-width: 0;
}

.line-name-text, .station-name-text {
    display: block;
    padding: 4px 8px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-name-text.hidden, .station-name-text.hidden {
    display: none;
}

.line-name, .station-name {
    display: none;
    width: 100%;
}

.line-name.editing, .station-name.editing {
    display: block;
    background-color: var(--card-background);
    border: 1px solid var(--secondary-text);
    border-radius: 4px;
}

/* 高级字段样式 */
.advanced-fields {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.show-advanced .advanced-fields {
    display: grid;
}

/* 新增distance字段样式 */
.distance-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 拖放样式 */
body.dragging::after {
    content: '拖放文件到此处';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 9999;
    pointer-events: none;
}

/* 高级选项显示/隐藏 */
.advanced-field {
    display: none;
}

body.show-advanced .advanced-field {
    display: block;
}

/* 编辑状态样式 */
.line-name:not(.editing),
.station-name:not(.editing) {
    pointer-events: none;
    background: transparent;
    border: none;
    padding: 0;
}

.line-name-text,
.station-name-text {
    display: inline-block;
    margin-right: 8px;
}

/* 折叠/展开样式 */
.station-content,
.stations-container {
    display: none;
}

.expanded > .station-content,
.expanded > .stations-container {
    display: block;
}

.toggle-button {
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    outline: none;
}

.toggle-button img {
    transition: transform 0.3s ease;
}

.expanded > .toggle-button img,
.expanded .toggle-button img {
    transform: rotate(90deg);
}

/* 侧边栏样式 */
.sidebar {
    display: inline-block;
    width: 100%;
}

.main-content {
    display: inline-block;
    width: 100%;
}

.settings-module {
    display: inline-block;
    width: 100%;
}

@media (max-width: 640px) {
    .container {
        display: flex;
        flex-direction: column;
    }

    .sidebar-caption {
        display: none;
    }

    .bottom-caption {
        display: block;
    }

    .line-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    #logo-preview {
        height: 60px;
        width: auto;
        max-width: 100%;
        margin: 10px auto;
        display: block;
    }
}

@media (min-width: 641px) {
    .container {
        column-gap: 24px;
    }

    .sidebar-caption {
        display: block;
    }

    .bottom-caption {
        display: none;
    }

    /* 左侧瀑布流布局 */
    .sidebar {
        columns: 1 300px;
        column-gap: 24px;
    }

    /* 右侧线路编辑模块 */
    .main-content {
        grid-column: 2;
    }

    .platform-info {
        flex-wrap: wrap;
    }

    .platform-info .station-name-en {
        flex: 1 1 100%;
        order: -1;
    }

    /* 只有在容器宽度足够大时才启用水平布局 */
    @container (min-width: 600px) {
        .platform-info {
            flex-wrap: nowrap;
        }

        .platform-info .station-name-en {
            flex: 1;
            order: 0;
        }
    }
}

/* 搜索框样式 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 20px;
    z-index: 2000;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-overlay.active {
    display: block;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px;
}

#search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 16px;
    border: 1px solid #dbe0e1;
    border-radius: 24px;
    font-size: 16px;
}

#search-input:focus {
    outline: none;
    border-color: #2c9678;
}

/* 搜索结果高亮样式 */
.search-highlight {
    background-color: rgba(44, 150, 120, 0.2);
    border-radius: 4px;
}

/* 搜索导航样式 */
.search-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    margin: 0 auto;
}

.search-count {
    font-size: 14px;
    color: #666;
    min-width: 40px;
    text-align: center;
}

#prev-result:disabled,
#next-result:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#prev-result:disabled img,
#next-result:disabled img {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
        padding-top: 50px;
    }
    
    .search-navigation {
        order: 2;
        margin: 10px auto;
    }
    
    #search-input {
        padding-right: 16px;
    }
    
    #close-search {
        position: absolute;
        right: 10px;
        top: 10px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        padding: 8px;
    }
}

@media (min-width: 641px) {
    .platform-info {
        flex-wrap: wrap;
    }

    .platform-info .station-name-en {
        flex: 1 1 100%;
        order: -1;
    }

    /* 基于父容器类名来控制布局 */
    .main-content .station-content .platform-info {
        flex-wrap: nowrap;
    }

    .main-content .station-content .platform-info .station-name-en {
        flex: 1;
        order: 0;
    }
}

/* 线网名称编辑器样式 */
.network-name-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.network-name-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.network-name-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid #dbe0e1;
    border-radius: 12px;
}

/* 排序按钮样式 */
.sort-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.sort-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 14px;
    color: #666;
    background: none;
    border: 1px solid #dbe0e1;
}

.sort-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sort-button img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* 拖拽排序样式 */
.station-item.dragging-station {
    opacity: 0.6;
    cursor: move;
    position: relative;
    z-index: 1000;
    transform: translateZ(0);
    background-color: var(--card-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.line-item.dragging-line {
    opacity: 0.8;
    cursor: move;
    position: relative;
    z-index: 1000;
    transform: translateZ(0);
    background-color: var(--background-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.line-item.dragging-target {
    background-color: rgba(0, 0, 0, 0.02);
    border: 2px dashed #dbe0e1;
}

.line-item.dragging-target .station-list {
    background-color: rgba(0, 0, 0, 0.01);
    min-height: 50px;
    padding: 4px;
    border-radius: 8px;
}

/* 拖拽时的占位符样式 */
.station-list {
    position: relative;
    min-height: 40px;
    transition: padding 0.2s;
}

.station-list.drag-over {
    padding: 4px;
}

.station-list.drag-over::after {
    content: '';
    display: block;
    height: 2px;
    background-color: #2c9678;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    opacity: 1;
}

.line-list.drag-over::after {
    content: '';
    display: block;
    height: 3px;
    background-color: #2c9678;
    position: absolute;
    left: 0;
    right: 0;
    opacity: 1;
}

/* 防止拖拽时文本被选中 */
.line-item, .station-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 添加拖拽手柄的视觉提示 */
.drag-handle {
    cursor: grab;
    transition: opacity 0.2s;
    touch-action: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 线路拖拽手柄 */
.line-drag-handle {
    opacity: 0.4;
}

.line-drag-handle:hover {
    opacity: 0.8;
}

.line-drag-handle:active {
    cursor: grabbing;
    opacity: 1;
}

.line-drag-handle img {
    width: 20px;
    height: 20px;
}

/* 车站拖拽手柄 */
.station-drag-handle {
    opacity: 0.3;
}

.station-drag-handle:hover {
    opacity: 0.6;
}

.station-drag-handle:active {
    cursor: grabbing;
    opacity: 0.8;
}

.station-drag-handle img {
    width: 16px;
    height: 16px;
}

/* 防止拖拽图标被选中 */
.drag-handle img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* 预览工具栏样式 */
.preview-toolbar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
    background: var(--card-background);
    padding: 10px;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* 预览区域样式 */
.preview-overlay {
    position: fixed;
    top: 80px;
    left: 20px;
    width: min(360px, calc(100vw - 40px));
    height: min(360px, calc(100vh - 100px));
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.preview-overlay.active {
    display: flex;
}

.preview-header {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #dbe0e1;
}

.preview-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
}

.preview-container {
    flex: 1;
    position: relative;
}

#preview-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* 内嵌预览区域样式 */
.inline-preview {
    display: none;
}

.inline-preview .section {
    padding: 0;
    overflow: hidden;
}

.inline-preview .preview-header {
    padding: 12px 18px;
    border-bottom: 1px solid #dbe0e1;
}

.inline-preview .preview-header h2 {
    margin: 0;
}

.inline-preview .preview-container {
    height: 600px;
    position: relative;
}

.inline-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式布局 */
@media (max-width: 640px) {
    .preview-overlay {
        left: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
    }
}

@media (min-width: 961px) {
    .container {
        max-width: none;
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 24px;
        position: relative;
    }

    .main-content {
        grid-column: 2;
        transition: margin-right 0.3s ease;
    }

    body.show-advanced .main-content {
        margin-right: 384px;  /* 360px + 24px gap */
    }

    .inline-preview {
        position: fixed;
        top: 80px;
        right: 20px;
        width: 360px;
        height: calc(100vh - 100px);
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    body.show-advanced .inline-preview {
        opacity: 1;
        visibility: visible;
    }

    .inline-preview .section {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .inline-preview .preview-container {
        flex: 1;
        height: auto;
    }

    .bottom-caption {
        grid-column: 1 / -1;
    }

    /* 在宽屏模式下隐藏浮动预览窗口 */
    .preview-toolbar,
    .preview-overlay {
        display: none !important;
    }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    #back-to-home img {
        mix-blend-mode: normal;
    }

    input::placeholder {
        color: var(--secondary-text);
    }

    select {
        border: 1px solid var(--border-color);
    }

    .icon-button img {
        opacity: 0.8;
        filter: invert(1);
    }

    .icon-button.fab img {
        opacity: 1;
        filter: none;
    }

    .icon-button#back-to-home img {
        opacity: 0.8;
        filter: invert(0);
    }

    .icon-button:hover img {
        opacity: 1;
    }

    .container img {
        filter: invert(1);

    }

    .line-item {
        background-color: var(--background-color);
    }
}

.station-info {
    display: flex;
    flex-direction: column;
    background-color: var(--card-background);
    padding: 8px;
    margin: 6px 0;
    border-radius: 12px;
    gap: 6px;
}

.station-info-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    break-inside: avoid;
}

.station-info-header .max-car-count {
    width: 108px;
}

.station-info-template {
    background-color: var(--background-color);
    padding: 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.station-info-template-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
}

.station-info-template-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
}

.station-info-template-header .overground {
    width: 120px;
}

.station-layer {
    display: flex;
    flex-direction: row;
    background-color: var(--card-background);
    padding: 4px;
    border-radius: 30px;
}

.platform-facility {
    display: flex;
    flex-direction: column;
    background-color: var(--card-background);
    padding: 6px;
    border-radius: 12px;
}

.platform-facility-header {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.platform-facility .facility-type {
    width: 108px;
}

.platform-facility .facility-location {
    width: -webkit-fill-available;
}

.platform-facility .elevator-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
}

.platform-facility .elevator-controls select {
    width: fit-content;
}

.station-layer-header, .platform-facilities-header, .transfer-labels-header, .exits-header {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.transfer-label, .exit {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}