:root {
    --primary-color: #008080;
    --primary-light: #e6f2f2;
    --secondary-color: #ff7f50;
    --bg-color: #f4f7f7;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-radius: 16px;
    --box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

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

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, "Noto Sans TC",
                 sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 16px;
    overflow-x: hidden;
    user-select: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, #008080, #20b2aa);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 14px;
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

header p {
    font-size: .98rem;
    opacity: .92;
}

.hotel-info {
    background: #fff8e7;
    border-left: 5px solid #ffa500;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: .94rem;
    user-select: text;
}

.day-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 2px 9px;
    scrollbar-width: thin;
}

.day-nav button {
    flex: 0 0 auto;
    border: 0;
    background: #fff;
    color: var(--primary-color);
    padding: 8px 17px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: all 0.2s ease;
}

.day-nav button.active {
    background: var(--primary-color);
    color: #fff;
}

.slide-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
    margin: 0 0 7px;
}

.days-container {
    display: flex;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 3px 0 14px;
    cursor: grab;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
}

.days-container.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.days-container::-webkit-scrollbar {
    height: 8px;
}

.days-container::-webkit-scrollbar-track {
    background: #e5eeee;
    border-radius: 10px;
}

.days-container::-webkit-scrollbar-thumb {
    background: #9dbebe;
    border-radius: 10px;
}

.day-card {
    flex: 0 0 100%;
    width: 100%;
    height: calc(100vh - 245px);
    min-height: 500px;
    max-height: 720px;

    background: var(--card-bg);
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0 22px 20px 22px;

    overflow-y: auto;
    scroll-snap-align: start;
    scrollbar-width: thin;
    user-select: text;
}

.day-card::-webkit-scrollbar {
    width: 7px;
}

.day-card::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 10px;
}

.day-card::-webkit-scrollbar-thumb {
    background: #c3d2d2;
    border-radius: 10px;
}

.day-header {
    position: sticky;
    top: 0;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    background: #fff;
    padding: 20px 0 12px 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-light);
}

.day-title {
    font-size: 1.22rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.45;
}

.tag {
    flex: 0 0 auto;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: .83rem;
    font-weight: 600;
    white-space: nowrap;
}

.tag a {
    color: var(--primary-color);
    text-decoration: none;
}

.section-block {
    margin-bottom: 17px;
}

.section-block:last-child {
    margin-bottom: 0;
}

.section-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: .94rem;
}

li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: var(--primary-color);
    font-weight: 700;
}

.food-box {
    background: #fafafa;
    border: 1px dashed #ddd;
    padding: 12px;
    border-radius: 8px;
    margin-top: 7px;
}

a.map-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
}

footer {
    text-align: center;
    padding: 14px;
    color: var(--text-muted);
    font-size: .82rem;
}

@media (max-width: 600px) {
    body {
        padding: 9px;
    }

    header {
        padding: 20px 14px;
    }

    header h1 {
        font-size: 1.42rem;
    }

    header p {
        font-size: .88rem;
    }

    .hotel-info {
        font-size: .87rem;
    }

    .days-container {
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .day-card {
        flex-basis: 100%;
        width: 100%;
        height: calc(100vh - 250px);
        min-height: 450px;
        padding: 0 16px 16px 16px;
    }

    .day-header {
        padding: 16px 0 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .day-title {
        font-size: 1.08rem;
    }

    li {
        font-size: .9rem;
    }
}
