body {
    font-family: -apple-system, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 15px;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 22px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 6px 14px;
    border: none;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.tab-btn.active-all { background: #333; color: #fff; }
.tab-btn.active-dp_off_apt { background: #00b4d8; color: #fff; }
.tab-btn.active-yt_off_apt { background: #9254de; color: #fff; }
.tab-btn.active-bank_import { background: #fa8c16; color: #fff; }

.controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.controls input,
.controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
    background: #fff;
}

.controls input:focus,
.controls select:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.controls input {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.log-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.log-title {
    background: #fafafa;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.log-box {
    max-height: 180px;
    overflow-y: auto;
    padding: 12px 15px;
    background: #fcfcfc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #555;
    line-height: 1.65;
    white-space: pre-wrap;
}

.main-content {
    flex: 1;
}

.province-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.province-title {
    background: #fafafa;
    padding: 12px 15px;
    font-size: 15px;
    margin: 0;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 15px;
}

.station-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.station-card:active {
    background: #f9f9f9;
    transform: scale(0.98);
}

.station-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.station-name {
    font-size: 16px;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.badge-pre {
    background: #fff2e8;
    color: #d4380d;
    border: 1px solid #ffbb96;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(212,56,13,0.06);
}

.badge-dp_off_apt {
    background: #e6fffc;
    color: #00b4d8;
    border: 1px solid #91efff;
}

.badge-yt_off_apt {
    background: #f9f0ff;
    color: #9254de;
    border: 1px solid #d3adf7;
}

.badge-bank_import {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.badge-bank-name {
    background: #fff7e6;
    color: #ad6800;
    border: 1px solid #ffd591;
    border-radius: 12px;
    font-weight: bold;
}

.badge-appoint {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ff7875;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(207,19,34,0.06);
}

#modalOverlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: #fff;
    width: 95%;
    max-width: 680px;
    height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 5px;
}

.modal-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    background: #f5f5f5;
}

.lounge-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border-left: 4px solid #333;
}

.lounge-card-header {
    padding: 15px;
    cursor: pointer;
}

.lc-title {
    font-weight: bold;
    font-size: 15px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.lc-location {
    font-size: 13px;
    color: #555;
    background: #f9f9f9;
    padding: 8px 10px;
    border-radius: 4px;
    line-height: 1.5;
}

.source-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.lounge-detail-body {
    display: none;
    padding: 15px;
    border-top: 1px dashed #eee;
    font-size: 13px;
    color: #444;
}

.detail-section {
    margin-bottom: 15px;
}

.detail-title {
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}

.service-icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 55px;
    text-align: center;
}

.service-icon-item img {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    border-radius: 4px;
}

.gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery img {
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 1;
}

.gallery img.zoomed {
    transform: scale(2.4);
    cursor: zoom-out;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
    background: #fff;
}

.disclaimer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999;
    margin-top: auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .station-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .modal-box {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}