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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #2d3748;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #2b6cb0, #2c7a7b);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
}

.version-tag {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 0.7rem;
    opacity: 0.5;
    text-align: right;
}

header h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.variant-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.variant-nav a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.variant-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.variant-nav a.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    font-weight: 600;
}

.nav-separator {
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0.4rem;
    align-self: stretch;
}

.variant-nav a.ref-link {
    border-color: rgba(255, 200, 100, 0.5);
    color: #ffd97d;
}

.variant-nav a.ref-link:hover {
    background: rgba(255, 200, 100, 0.15);
}

.variant-nav a.ref-link.active {
    background: rgba(255, 200, 100, 0.25);
    border-color: #ffd97d;
    font-weight: 600;
}

.ref-header {
    background: #6b7280 !important;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.day-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.day-header {
    padding: 1.2rem 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.day-1 .day-header { background: #2b6cb0; }
.day-2 .day-header { background: #2c7a7b; }
.day-3 .day-header { background: #276749; }
.day-4 .day-header { background: #744210; }

.day-header h2 {
    font-size: 1.4rem;
}

.day-header .date {
    font-size: 0.95rem;
    opacity: 0.9;
}

.day-body {
    padding: 1.5rem;
}

.day-body .description {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.tour-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.2rem;
}

.tour-section h3 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.tour-section h3 a {
    color: #2b6cb0;
    text-decoration: none;
}

.tour-section h3 a:hover {
    text-decoration: underline;
}

.tour-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tour-stats .stat {
    display: flex;
    flex-direction: column;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    min-width: 120px;
}

.tour-stats .stat .label {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tour-stats .stat .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.train-section {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}

.train-section h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #2d3748;
}

.train-person {
    margin-bottom: 0.8rem;
}

.train-person:last-child {
    margin-bottom: 0;
}

.train-person .person-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.3rem;
}

.train-connection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.train-connection .train-badge {
    display: inline-block;
    background: #2b6cb0;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.train-connection .train-badge.ec { background: #276749; }
.train-connection .train-badge.ic { background: #744210; }
.train-connection .train-badge.ir { background: #553c9a; }

.train-connection .train-time {
    font-weight: 600;
}

.train-connection .train-route {
    color: #718096;
}

.train-note {
    font-size: 0.8rem;
    color: #a0aec0;
    font-style: italic;
    margin-top: 0.3rem;
}

.train-price {
    font-size: 0.85rem;
    color: #2d3748;
    margin-top: 0.2rem;
}

.train-alt-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 600;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
}

.tour-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.8rem;
}

.tour-images figure {
    margin: 0;
}

.tour-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tour-images figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.4rem;
}

.info-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #2b6cb0, #2c7a7b);
    color: white;
    padding: 1rem 1.5rem;
}

.summary-header h2 {
    font-size: 1.3rem;
}

.summary-body {
    padding: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.summary-stat {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    text-align: center;
}

.summary-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b6cb0;
}

.summary-stat .stat-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.summary-table th {
    text-align: left;
    padding: 0.5rem 0.8rem;
    border-bottom: 2px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-table tfoot td {
    font-weight: 700;
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
    padding-top: 0.7rem;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .tour-images {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.8rem;
    }
}
