:root {
    --bg: #fff9f5;
    --bg-deep: #ffe7dc;
    --card: rgba(255, 252, 249, 0.94);
    --card-strong: rgba(255, 249, 244, 0.98);
    --line: rgba(104, 74, 93, 0.2);
    --line-strong: rgba(104, 74, 93, 0.34);
    --text: #402538;
    --muted: #78556d;
    --rose: #e36f9a;
    --gold: #efbf77;
    --cyan: #f39ab7;
    --mint: #8bd8bf;
    --shadow: 0 28px 58px rgba(175, 129, 146, 0.2);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --map-scale: 1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 136, 182, 0.22), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(255, 221, 182, 0.18), transparent 21%),
        radial-gradient(circle at 52% 110%, rgba(239, 197, 111, 0.22), transparent 34%),
        linear-gradient(150deg, #fffaf7 0%, #fff0e8 40%, #fff8f4 100%);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background-image:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
        radial-gradient(circle at 28% 72%, rgba(255, 210, 224, 0.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
        radial-gradient(circle at 92% 76%, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.8px),
        radial-gradient(circle at 54% 58%, rgba(255, 225, 199, 0.6) 0 1px, transparent 1.5px);
    opacity: 0.45;
}

body::after {
    background: linear-gradient(120deg, transparent 26%, rgba(255, 255, 255, 0.22) 50%, transparent 74%);
    animation: shimmer 14s linear infinite;
}

.page-shell {
    position: relative;
    width: min(1560px, calc(100% - 18px));
    margin: 0 auto;
    padding: 4px 0 120px;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    pointer-events: none;
}

.page-shell::before {
    left: 10%;
    bottom: 10%;
    width: 220px;
    height: 220px;
    background: rgba(255, 153, 189, 0.9);
}

.page-shell::after {
    right: 10%;
    top: 16%;
    width: 260px;
    height: 260px;
    background: rgba(255, 214, 166, 0.9);
}

.ambient {
    position: fixed;
    width: 36vw;
    aspect-ratio: 1;
    filter: blur(84px);
    opacity: 0.22;
    pointer-events: none;
}

.ambient-left {
    left: -12vw;
    top: 14vh;
    background: radial-gradient(circle, rgba(255, 153, 181, 0.9), transparent 65%);
}

.ambient-right {
    right: -12vw;
    top: 40vh;
    background: radial-gradient(circle, rgba(158, 215, 255, 0.9), transparent 65%);
}

.shooting-star {
    position: fixed;
    width: 190px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 214, 227, 0.95));
    box-shadow: 0 0 18px rgba(255, 194, 217, 0.4);
    transform: rotate(-24deg);
    opacity: 0;
    pointer-events: none;
}

.heart-spark {
    position: fixed;
    width: 28px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 163, 197, 0.92), rgba(255, 210, 146, 0.82));
    transform: rotate(-45deg);
    opacity: 0.34;
    pointer-events: none;
    animation: heartFloat 11s ease-in-out infinite;
}

.heart-spark::before,
.heart-spark::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
}

.heart-spark::before {
    transform: translateY(-50%);
}

.heart-spark::after {
    transform: translateX(50%);
}

.star-one {
    top: 12%;
    right: 8%;
    animation: shooting 9s ease-in-out infinite;
}

.star-two {
    top: 58%;
    left: 10%;
    animation: shooting 12s ease-in-out 3s infinite;
}

.heart-a {
    top: 9%;
    left: 9%;
    animation-duration: 12s;
}

.heart-b {
    top: 20%;
    right: 12%;
    width: 22px;
    opacity: 0.24;
    animation-duration: 15s;
    animation-delay: 1.2s;
}

.heart-c {
    right: 16%;
    bottom: 12%;
    width: 34px;
    opacity: 0.2;
    animation-duration: 13.5s;
    animation-delay: 2.1s;
}

.card {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 252, 249, 0.98), rgba(255, 244, 237, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.map-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.map-panel::before,
.map-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(44px);
    pointer-events: none;
}

.map-panel::before {
    left: -40px;
    bottom: 18%;
    width: 180px;
    height: 180px;
    background: rgba(255, 172, 198, 0.22);
}

.map-panel::after {
    right: 4%;
    top: 8%;
    width: 180px;
    height: 180px;
    background: rgba(255, 215, 167, 0.2);
}

.card-inner {
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(120, 88, 108, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.hero,
.map-panel,
.detail-panel,
.add-panel,
.list-panel {
    padding: 20px;
}

.hero {
    overflow: hidden;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 16px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -8% -30% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 134, 174, 0.18), transparent 66%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto auto 8px 42%;
    width: 96px;
    height: 96px;
    background: radial-gradient(circle, rgba(255, 210, 146, 0.14), transparent 72%);
    pointer-events: none;
}

.hero .hero-actions {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.panel-eyebrow,
.detail-empty-kicker {
    margin: 0 0 8px;
    color: var(--cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero h1,
.panel-heading h2,
.detail-content h2,
.detail-empty h2,
.photo-header h3 {
    margin: 0;
    font-family: "STXingkai", "KaiTi", serif;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(24px, 4.1vw, 42px);
    line-height: 0.94;
    text-shadow: 0 6px 18px rgba(255, 164, 194, 0.18);
}

.hero h1 span {
    color: var(--gold);
}

.hero-copy {
    display: none;
}

.hero-love-note {
    position: relative;
    max-width: 560px;
    margin: 0 0 10px;
    padding-left: 18px;
    color: #9f6f8d;
    font-size: 13px;
    line-height: 1.42;
}

.hero-love-note::before {
    content: "鉂?;
    position: absolute;
    left: 0;
    top: 0;
    color: #ff8db1;
    text-shadow: 0 0 16px rgba(255, 141, 177, 0.22);
}

.hero-actions,
.detail-actions,
.form-actions,
.picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.ghost-btn,
.secondary-btn,
.upload-btn,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.primary-btn,
.upload-btn {
    padding: 13px 22px;
    color: #5a3650;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd38a, #ffb3c8 82%);
    box-shadow: 0 14px 30px rgba(255, 183, 124, 0.22);
}

.primary-btn.compact {
    padding: 12px 18px;
}

.ghost-btn,
.secondary-btn {
    padding: 12px 20px;
    color: var(--text);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.68);
}

.secondary-btn {
    width: 100%;
}

.primary-btn:hover,
.ghost-btn:hover,
.secondary-btn:hover,
.upload-btn:hover,
.chip:hover,
.spot-card-main:hover,
.spot-visit-btn:hover {
    transform: translateY(-2px);
}

.spot-marker:hover,
.spot-marker:focus-visible,
.draft-marker:hover {
    transform: translate(-50%, -50%) translateY(-2px);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.stat-strip article {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 88, 108, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.stat-strip strong {
    display: block;
    font-size: clamp(18px, 1.9vw, 24px);
    color: var(--gold);
    line-height: 1.05;
}

.stat-strip span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.dashboard {
    display: block;
}

.page-panels {
    position: relative;
    overflow: clip;
}

.page-panel {
    min-height: 0;
    transform-origin: center top;
    will-change: transform, opacity, filter;
}

.page-panel.is-active-panel {
    opacity: 1;
}

.page-panel.is-page-animating {
    animation-duration: 0.52s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

.page-panel.is-page-animating[data-transition-direction="forward"] {
    animation-name: pagePanelSlideForward;
}

.page-panel.is-page-animating[data-transition-direction="backward"] {
    animation-name: pagePanelSlideBackward;
}

.map-panel > .map-stage {
    order: 1;
}

.map-panel > .panel-heading {
    order: 2;
    margin-bottom: 0;
    max-width: 980px;
}

.map-panel > .controls {
    order: 3;
    margin-bottom: 0;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-heading h2,
.detail-content h2,
.detail-empty h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.panel-note,
.detailMeta,
.detailDescription,
.detail-empty p,
.photo-tip,
.picker-status {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.list-love-note,
.memory-tip {
    margin: 10px 0 0;
    color: #a07692;
    line-height: 1.7;
}

.controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.search-box {
    display: grid;
    gap: 8px;
}

.search-box label,
.field span {
    color: rgba(73, 49, 65, 0.96);
    font-size: 14px;
    font-weight: 600;
}

.search-box input,
.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid rgba(120, 88, 108, 0.22);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.search-box input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(227, 111, 154, 0.4);
    box-shadow: 0 0 0 4px rgba(227, 111, 154, 0.1);
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.memory-section {
    margin-top: 20px;
    padding: 18px;
    border-radius: calc(var(--radius-lg) - 2px);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 202, 220, 0.26), transparent 22%),
        linear-gradient(160deg, rgba(255, 251, 248, 0.96), rgba(255, 242, 236, 0.9));
    border: 1px solid rgba(229, 182, 198, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.memory-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.memory-heading h3 {
    margin: 0;
    font-size: 24px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.memory-grid textarea {
    min-height: 82px;
}

.memory-save-btn {
    margin-top: 16px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 11px 16px;
    color: #704f68;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(120, 88, 108, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.chip.is-active {
    color: #0f1d35;
    background: linear-gradient(135deg, rgba(255, 215, 122, 0.96), rgba(244, 154, 183, 0.96));
    border-color: transparent;
}

.map-stage {
    position: relative;
    overflow: hidden;
    padding: 0;
    --map-scale: 1;
    --map-translate-x: 0px;
    --map-translate-y: 0px;
    border-radius: calc(var(--radius-xl) - 2px);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 206, 225, 0.34), transparent 22%),
        radial-gradient(circle at 82% 22%, rgba(255, 223, 185, 0.32), transparent 24%),
        linear-gradient(180deg, rgba(255, 248, 242, 0.76), rgba(255, 238, 229, 0.9));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 -16px 32px rgba(255, 226, 214, 0.16);
}

.map-stage[data-zoomable="true"] {
    -webkit-user-select: none;
    user-select: none;
}

.map-stage[data-zoomable="true"][data-zoomed="false"] {
    touch-action: pan-y;
}

.map-stage[data-zoomable="true"][data-zoomed="true"] {
    touch-action: none;
}

.map-canvas {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1000 / 850;
    border-radius: calc(var(--radius-xl) - 2px);
    overflow: hidden;
    border: 1px solid rgba(120, 88, 108, 0.2);
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 191, 215, 0.3), transparent 24%),
        radial-gradient(circle at 80% 18%, rgba(255, 227, 181, 0.24), transparent 22%),
        radial-gradient(circle at 56% 70%, rgba(255, 214, 232, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(255, 244, 236, 1));
}

.map-viewport {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
    transform: translate3d(var(--map-translate-x), var(--map-translate-y), 0) scale(var(--map-scale));
    will-change: transform;
}

.map-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 16% 28%, rgba(255, 255, 255, 0.78) 0 1.8px, transparent 2px),
        radial-gradient(circle at 74% 22%, rgba(255, 219, 230, 0.82) 0 1.8px, transparent 2px),
        radial-gradient(circle at 31% 68%, rgba(255, 245, 212, 0.78) 0 1.6px, transparent 2px),
        radial-gradient(circle at 82% 62%, rgba(255, 255, 255, 0.74) 0 1.6px, transparent 2px),
        radial-gradient(circle at 58% 18%, rgba(255, 206, 226, 0.48) 0 3px, transparent 3.4px),
        radial-gradient(circle at 64% 22%, rgba(255, 226, 178, 0.44) 0 2.6px, transparent 3px);
    opacity: 0.78;
    pointer-events: none;
}

.map-canvas::after {
    content: "";
    position: absolute;
    inset: auto auto -16% 58%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 166, 195, 0.24), transparent 68%);
    pointer-events: none;
}

.map-viewport,
.china-map-image,
.connector-layer,
.marker-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.china-map-image {
    pointer-events: none;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 16px 24px rgba(225, 188, 194, 0.2)) saturate(0.95) brightness(1);
}

.connector-layer {
    pointer-events: none;
}

.anchor-line {
    stroke: rgba(143, 97, 132, 0.18);
    stroke-width: 1.2;
}

.anchor-circle {
    fill: rgba(126, 203, 255, 0.88);
    opacity: 0.82;
}

.anchor-circle.is-visited {
    fill: var(--gold);
}

.anchor-circle.is-custom {
    fill: var(--rose);
}

.marker-layer {
    z-index: 2;
}

.map-zoom-controls {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 4;
    display: none;
    align-items: center;
    gap: 8px;
}

.map-stage[data-zoomable="true"] .map-zoom-controls {
    display: inline-flex;
}

.zoom-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(120, 88, 108, 0.16);
    border-radius: 999px;
    background: rgba(255, 252, 249, 0.96);
    color: #5d3950;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(197, 158, 170, 0.2);
}

.zoom-control.is-reset {
    min-width: 54px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.zoom-control:disabled {
    opacity: 0.42;
    cursor: default;
    box-shadow: none;
}

.map-love-badge {
    position: absolute;
    right: 20px;
    top: 18px;
    z-index: 3;
    padding: 10px 16px 10px 36px;
    border-radius: 999px;
    color: #965d80;
    font-size: 12px;
    letter-spacing: 0.08em;
    background: rgba(255, 250, 246, 0.96);
    border: 1px solid rgba(255, 176, 198, 0.3);
    box-shadow: 0 16px 30px rgba(209, 171, 183, 0.22);
}

.map-love-badge::before {
    content: "鉂?;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff88ab;
}

.spot-marker,
.draft-marker {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
}

.spot-marker.is-dimmed {
    opacity: 0.16;
    filter: saturate(0.55);
}

.marker-dot,
.draft-marker span {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 2px rgba(243, 154, 183, 0.1), 0 0 10px rgba(243, 154, 183, 0.2);
    flex: 0 0 auto;
}

.marker-dot::after,
.draft-marker span::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(243, 154, 183, 0.22);
    opacity: 0.24;
}

.spot-marker.is-visited .marker-dot {
    background: var(--gold);
    box-shadow: 0 0 0 2px rgba(255, 215, 122, 0.1), 0 0 10px rgba(255, 215, 122, 0.2);
}

.spot-marker.is-visited .marker-dot::after {
    border-color: rgba(255, 215, 122, 0.26);
}

.spot-marker.is-custom .marker-dot,
.draft-marker span {
    background: var(--rose);
    box-shadow: 0 0 0 2px rgba(255, 120, 149, 0.1), 0 0 10px rgba(255, 120, 149, 0.2);
}

.spot-marker.is-custom .marker-dot::after,
.draft-marker span::after {
    border-color: rgba(255, 120, 149, 0.24);
}

.spot-marker.is-selected .marker-dot {
    width: 12px;
    height: 12px;
}

.spot-marker.is-selected .marker-dot::after,
.draft-marker span::after {
    opacity: 0.95;
    animation: pulse 2.2s ease-out infinite;
}

.spot-marker.is-selected::before {
    content: "鉂?;
    position: absolute;
    left: 50%;
    top: -8px;
    color: #ff88ab;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 0 16px rgba(255, 136, 171, 0.24);
    transform: translate(-50%, -100%);
}

.spot-marker.is-selected .marker-label {
    border-color: rgba(255, 215, 122, 0.42);
    box-shadow: 0 14px 30px rgba(255, 183, 124, 0.18);
}

.marker-label {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: 190px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(136, 102, 122, 0.18);
    background: rgba(255, 252, 249, 0.96);
    color: var(--text);
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(197, 158, 170, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.spot-marker.is-left .marker-label {
    left: auto;
    right: calc(100% + 10px);
}

.spot-marker:hover .marker-label,
.spot-marker:focus-visible .marker-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}

.picker-hint {
    position: absolute;
    left: 24px;
    top: 22px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 190, 210, 0.45);
    border: 1px solid rgba(255, 120, 149, 0.22);
    color: #7b4c64;
    z-index: 3;
}

.draft-marker {
    z-index: 4;
    cursor: default;
}

.map-legend {
    position: absolute;
    left: 22px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
    z-index: 3;
}

.map-love-badge,
.picker-hint,
.map-legend {
    pointer-events: none;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.is-wishlist {
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(243, 154, 183, 0.4);
}

.legend-dot.is-visited {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(255, 215, 122, 0.4);
}

.legend-dot.is-custom {
    background: var(--rose);
    box-shadow: 0 0 12px rgba(255, 120, 149, 0.42);
}

.detail-panel {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 36px);
    min-height: unset;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(255, 252, 249, 0.99), rgba(255, 244, 237, 0.96));
    border-color: rgba(120, 88, 108, 0.18);
}

.detail-panel::before,
.detail-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.detail-panel::before {
    top: -48px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 169, 198, 0.22), transparent 68%);
}

.detail-panel::after {
    left: -10px;
    bottom: -36px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 214, 151, 0.18), transparent 68%);
}

.detail-modal,
.add-modal {
    position: fixed;
    inset: 0;
    z-index: 48;
    display: grid;
    place-items: center;
    padding: 18px;
}

.add-modal {
    z-index: 49;
}

.detail-backdrop,
.add-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(89, 60, 79, 0.28);
    backdrop-filter: blur(14px);
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(198, 157, 169, 0.2);
}

.detail-empty,
.detail-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.detail-empty {
    justify-content: center;
    gap: 12px;
    min-height: 360px;
    padding: 10px 4px;
}

.detail-content {
    max-height: calc(100vh - 92px);
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 111, 154, 0.54) rgba(255, 236, 230, 0.82);
}

.add-panel {
    position: relative;
    width: min(880px, calc(100vw - 32px));
    max-height: calc(100vh - 36px);
    overflow: hidden;
    margin-top: 0;
    padding: 28px;
    background: linear-gradient(165deg, rgba(255, 252, 249, 0.99), rgba(255, 241, 234, 0.96));
    border-color: rgba(120, 88, 108, 0.18);
}

.add-panel::before,
.add-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.add-panel::before {
    top: -40px;
    right: -22px;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(255, 174, 203, 0.22), transparent 68%);
}

.add-panel::after {
    left: -14px;
    bottom: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 214, 151, 0.18), transparent 68%);
}

.add-panel .panel-heading {
    position: relative;
    z-index: 1;
    padding-right: 46px;
}

.detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 215, 122, 0.12);
    border: 1px solid rgba(255, 215, 122, 0.2);
    color: var(--gold);
    font-size: 13px;
}

.pill.subtle {
    color: var(--cyan);
    border-color: rgba(125, 232, 255, 0.16);
    background: rgba(125, 232, 255, 0.08);
}

.detailMeta {
    margin-top: 6px;
}

.detailDescription {
    margin-top: 14px;
}

.photo-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.photo-header h3 {
    font-size: 28px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.photo-card {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(120, 88, 108, 0.16);
    box-shadow: 0 16px 28px rgba(192, 154, 167, 0.12);
}

.photo-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.photo-card figcaption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}

.photo-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
}

.photo-delete-btn {
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 120, 149, 0.14);
    color: #7c5067;
    cursor: pointer;
}

.add-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-height: calc(100vh - 184px);
    padding-right: 4px;
    overflow-y: auto;
    align-content: start;
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 111, 154, 0.54) rgba(255, 236, 230, 0.82);
}

.detail-content::-webkit-scrollbar,
.add-form::-webkit-scrollbar {
    width: 10px;
}

.detail-content::-webkit-scrollbar-track,
.add-form::-webkit-scrollbar-track {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 243, 236, 0.92), rgba(255, 233, 227, 0.72));
}

.detail-content::-webkit-scrollbar-thumb,
.add-form::-webkit-scrollbar-thumb {
    border: 2px solid rgba(255, 244, 238, 0.92);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 192, 214, 0.94), rgba(227, 111, 154, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.detail-content::-webkit-scrollbar-thumb:hover,
.add-form::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 177, 205, 0.98), rgba(214, 90, 139, 0.98));
}

.field {
    display: grid;
    gap: 10px;
}

.field-full {
    grid-column: 1 / -1;
}

.list-panel {
    margin-top: 0;
    overflow: hidden;
}

.page-list .list-panel {
    margin-top: 0;
}

.list-panel::before,
.list-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.list-panel::before {
    right: -46px;
    top: -56px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 184, 207, 0.22), transparent 70%);
}

.list-panel::after {
    left: -40px;
    bottom: -48px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 215, 151, 0.2), transparent 70%);
}

.list-heading {
    margin-bottom: 16px;
}

.list-romance-banner {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: calc(var(--radius-lg) - 4px);
    background:
        linear-gradient(135deg, rgba(255, 244, 239, 0.96), rgba(255, 233, 242, 0.88)),
        rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(205, 155, 173, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.list-romance-banner p {
    margin: 0;
    color: #9d718f;
    line-height: 1.8;
}

.list-romance-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #8f5d7f;
    font-size: 12px;
    letter-spacing: 0.12em;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(229, 182, 198, 0.2);
}

.spot-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.spot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(165deg, rgba(255, 252, 250, 0.96), rgba(255, 242, 236, 0.92)),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(205, 155, 173, 0.32);
    box-shadow:
        0 22px 44px rgba(203, 167, 176, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.42);
    overflow: hidden;
}

.spot-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 214, 122, 0.9), rgba(244, 154, 183, 0.9));
}

.spot-card::after {
    content: "♡";
    position: absolute;
    right: 14px;
    top: 14px;
    color: rgba(233, 132, 167, 0.22);
    font-size: 28px;
    line-height: 1;
}

.spot-card.is-selected {
    border-color: rgba(255, 215, 122, 0.4);
    box-shadow:
        0 24px 48px rgba(228, 189, 120, 0.16),
        inset 0 0 0 1px rgba(255, 215, 122, 0.18);
}

.spot-card-main,
.spot-visit-btn {
    width: 100%;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.spot-card-main {
    padding: 0;
    display: grid;
    gap: 12px;
}

.spot-postmark {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-top: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(229, 182, 198, 0.16);
}

.spot-stamp {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px dashed rgba(232, 150, 181, 0.38);
    color: #d06a92;
    background: rgba(255, 244, 248, 0.9);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.spot-dates {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.spot-dates.is-empty {
    display: none;
}

.spot-date-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 247, 240, 0.94);
    border: 1px solid rgba(229, 182, 198, 0.18);
    color: #976f88;
    font-size: 12px;
}

.spot-date-badge.is-visited {
    color: #9f7a2f;
    background: rgba(255, 246, 221, 0.96);
    border-color: rgba(255, 215, 122, 0.24);
}

.spot-date-badge.is-empty {
    color: #b08ca4;
    background: rgba(255, 251, 247, 0.86);
    border-style: dashed;
}

.spot-card-top,
.spot-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.spot-card-bottom {
    padding-top: 12px;
    border-top: 1px solid rgba(205, 155, 173, 0.18);
}

.spot-status,
.spot-region,
.spot-category,
.spot-photo-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.spot-status {
    background: rgba(125, 232, 255, 0.1);
    border: 1px solid rgba(125, 232, 255, 0.15);
    color: var(--cyan);
}

.spot-status.is-visited {
    background: rgba(255, 215, 122, 0.12);
    border-color: rgba(255, 215, 122, 0.2);
    color: var(--gold);
}

.spot-status.is-custom {
    background: rgba(255, 120, 149, 0.12);
    border-color: rgba(255, 120, 149, 0.18);
    color: #c55c82;
}

.spot-region,
.spot-category,
.spot-photo-count {
    background: rgba(255, 245, 240, 0.94);
    color: var(--muted);
}

.spot-name {
    margin: 2px 0 0;
    font-size: 22px;
    line-height: 1.3;
}

.spot-desc {
    margin: 0;
    min-height: 50px;
    color: var(--muted);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spot-quote {
    position: relative;
    margin: 0;
    padding: 10px 12px 10px 18px;
    border-radius: calc(var(--radius-md) - 2px);
    background: rgba(255, 248, 244, 0.9);
    border: 1px dashed rgba(229, 182, 198, 0.22);
    color: #7f5d77;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spot-quote::before {
    content: "“";
    position: absolute;
    left: 10px;
    top: 8px;
    color: rgba(233, 132, 167, 0.48);
    font-size: 24px;
    line-height: 1;
}

.spot-quote.is-empty {
    color: #b08ca4;
    font-style: italic;
}

.spot-visit-btn {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 246, 240, 0.96);
    border: 1px solid rgba(136, 102, 122, 0.12);
    font-weight: 700;
}

.bottom-tabs {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 44;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(460px, calc(100vw - 18px));
    padding: 8px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 238, 233, 0.42)),
        rgba(255, 246, 240, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        inset 0 -1px 0 rgba(255, 214, 230, 0.18),
        0 18px 42px rgba(203, 164, 177, 0.24),
        0 6px 16px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    transform: translateX(-50%);
    overflow: hidden;
}

.bottom-tabs::before,
.bottom-tabs::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bottom-tabs::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 55%),
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.48), transparent 34%);
    opacity: 0.9;
}

.bottom-tabs::after {
    inset: auto 8% 4px;
    height: 16px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(149, 111, 140, 0.18), transparent 72%);
    filter: blur(10px);
    opacity: 0.6;
}

.bottom-tab {
    position: relative;
    display: grid;
    gap: 2px;
    min-height: 60px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    color: #8f6983;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.28s ease,
        box-shadow 0.28s ease,
        color 0.28s ease,
        opacity 0.28s ease;
}

.bottom-tab::before,
.bottom-tab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.bottom-tab::before {
    inset: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08));
    opacity: 0.18;
}

.bottom-tab::after {
    inset: auto 16px 8px;
    height: 12px;
    background: radial-gradient(circle, rgba(233, 132, 167, 0.28), transparent 72%);
    filter: blur(8px);
    opacity: 0;
}

.bottom-tab:hover {
    transform: translateY(-2px) scale(1.015);
    color: #6e4661;
}

.bottom-tab:hover::before {
    opacity: 0.32;
}

.bottom-tab.is-active {
    color: #59334e;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 247, 244, 0.26)),
        linear-gradient(135deg, rgba(255, 214, 140, 0.42), rgba(255, 182, 205, 0.58));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.68),
        0 14px 28px rgba(239, 186, 143, 0.22),
        0 2px 10px rgba(255, 255, 255, 0.18);
    transform: translateY(-4px) scale(1.03);
}

.bottom-tab.is-active::before {
    opacity: 0.62;
}

.bottom-tab.is-active::after {
    opacity: 1;
}

.bottom-tab:active {
    transform: translateY(-1px) scale(0.985);
}

.bottom-tab-kicker {
    position: relative;
    z-index: 1;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.72;
}

.bottom-tab-label {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 700;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 94px;
    transform: translateX(-50%);
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 251, 247, 0.96);
    border: 1px solid rgba(136, 102, 122, 0.14);
    box-shadow: 0 18px 40px rgba(197, 158, 170, 0.24);
    z-index: 60;
}

.empty-mini {
    display: grid;
    place-items: center;
    grid-column: 1 / -1;
    min-height: 120px;
    padding: 20px;
    color: var(--muted);
    text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(136, 102, 122, 0.14);
}

.hidden {
    display: none !important;
}

@keyframes shimmer {
    0% {
        transform: translateX(-18%);
    }
    100% {
        transform: translateX(18%);
    }
}

@keyframes shooting {
    0%, 75%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(-24deg);
    }
    80% {
        opacity: 1;
    }
    92% {
        opacity: 0;
        transform: translate3d(-240px, 120px, 0) rotate(-24deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.95;
        transform: scale(0.86);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes heartFloat {
    0%, 100% {
        transform: rotate(-45deg) translate3d(0, 0, 0);
    }
    50% {
        transform: rotate(-45deg) translate3d(0, -14px, 0);
    }
}

@keyframes pagePanelSlideForward {
    0% {
        opacity: 0;
        transform: translate3d(38px, 0, 0) scale(0.988);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes pagePanelSlideBackward {
    0% {
        opacity: 0;
        transform: translate3d(-38px, 0, 0) scale(0.988);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 1250px) {
    .spot-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .page-shell {
        width: calc(100% - 12px);
        padding-top: 10px;
        padding-bottom: 116px;
    }

    .hero,
    .map-panel,
    .detail-panel,
    .add-panel,
    .list-panel {
        padding: 20px;
    }

    .controls,
    .panel-heading,
    .memory-heading,
    .add-form,
    .memory-grid,
    .photo-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .spot-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-modal,
    .add-modal {
        padding: 12px;
    }

    .detail-panel,
    .add-panel {
        width: min(100%, 720px);
        max-height: calc(100vh - 20px);
    }

    .map-stage {
        border-radius: 22px;
    }

    .map-zoom-controls {
        right: 14px;
        bottom: 14px;
    }

    .map-love-badge {
        right: 14px;
        top: 14px;
    }

    .bottom-tabs {
        width: min(420px, calc(100vw - 12px));
        bottom: 12px;
    }
}

@media (max-width: 680px) {
    .page-shell {
        width: calc(100% - 8px);
        padding-top: 6px;
        padding-bottom: 108px;
    }

    .spot-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-copy {
        font-size: 15px;
    }

    .hero-actions,
    .detail-actions,
    .picker-actions,
    .form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .spot-postmark {
        grid-template-columns: 1fr;
        display: grid;
    }

    .spot-dates {
        justify-content: flex-start;
    }

    .primary-btn,
    .ghost-btn,
    .secondary-btn,
    .upload-btn {
        width: 100%;
        justify-content: center;
    }

    .marker-label {
        max-width: 140px;
        font-size: 11px;
        min-height: 28px;
    }

    .hero-love-note {
        font-size: 15px;
    }

    .detail-modal,
    .add-modal {
        padding: 8px;
    }

    .detail-panel,
    .add-panel {
        width: 100%;
        max-height: calc(100vh - 8px);
        padding: 22px 18px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }

    .map-stage {
        border-radius: 18px;
    }

    .map-zoom-controls {
        right: 12px;
        bottom: 12px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-end;
    }

    .zoom-control {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
    }

    .zoom-control.is-reset {
        min-width: 50px;
    }

    .map-love-badge {
        padding: 8px 12px 8px 30px;
        font-size: 11px;
    }

    .map-legend {
        left: 14px;
        right: 14px;
        bottom: 12px;
        gap: 10px;
        font-size: 12px;
    }

    .stat-strip {
        gap: 10px;
    }

    .bottom-tabs {
        width: calc(100vw - 12px);
        gap: 6px;
        padding: 6px;
        bottom: 10px;
    }

    .bottom-tab {
        min-height: 56px;
        padding: 9px 12px;
    }

    .bottom-tab.is-active {
        transform: translateY(-2px) scale(1.01);
    }

    .bottom-tab-kicker {
        font-size: 9px;
    }

    .bottom-tab-label {
        font-size: 13px;
    }
}

@media (max-width: 960px) and (pointer: coarse) {
    .page-panel {
        will-change: auto;
    }

    .spot-marker,
    .draft-marker {
        width: 20px;
        height: 20px;
    }

    .marker-dot,
    .draft-marker span {
        width: 1px;
        height: 1px;
        box-shadow: none;
    }

    .spot-marker.is-selected .marker-dot {
        width: 1px;
        height: 1px;
    }

    .marker-dot::after,
    .draft-marker span::after {
        inset: -2px;
        opacity: 0.18;
    }
}
