#travelInfo { padding: 10px 0 40px; }
#travelInfo h1, #travelInfo h2, #travelInfo h3, #travelInfo p { margin: 0; }
#travelInfo .ti-eng-font { font-family: 'Montserrat', sans-serif; letter-spacing: 0.5px; }
#travelInfo { --ti-card-fixed-height: 552px; --ti-post-row-height: 72px; --ti-post-row-gap: 4px; --ti-pager-height: 42px; }

/* 레이아웃 & 카드 & 리스트 & 기본 모달 설정 (기존과 동일) */
#travelInfo .ti-board-container { max-width: 1200px; margin: 0 auto; }
#travelInfo .ti-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
#travelInfo .ti-page-title { font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-sub); opacity: 0.8; }
#travelInfo .ti-board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
#travelInfo .ti-btn { background-color: var(--accent-color); color: #FFFFFF; border: 1px solid var(--accent-color); border-radius: 6px; cursor: pointer; transition: all 0.2s; font-family: 'Montserrat', 'Pretendard', sans-serif; font-weight: 600; letter-spacing: 0.5px; }
#travelInfo .ti-btn:hover { background-color: #333; border-color: #333; }
#travelInfo .ti-btn-map { background-color: transparent; color: var(--accent-color); padding: 6px 13px; font-size: 10px; font-weight: 500; letter-spacing: 1.4px; border-radius: 15px; text-transform: uppercase; line-height: 1; }
#travelInfo .ti-btn-map:hover { background-color: var(--accent-color); color: #FFFFFF; }
#travelInfo .ti-btn-outline { background-color: transparent; color: var(--accent-color); border: 1px solid var(--border-color); }
#travelInfo .ti-btn-outline:hover { border-color: var(--accent-color); background-color: transparent; color: var(--accent-color); }
#travelInfo .ti-btn-write { padding: 6px 14px; font-size: 0.8rem; border-radius: 20px; }
#travelInfo .ti-btn-submit { padding: 12px 18px; font-size: 0.82rem; border-radius: 10px; width: min(206px, 23%); min-width: 156px; letter-spacing: 1.6px; }
#travelInfo .ti-btn-temp { padding: 12px 18px; font-size: 0.82rem; border-radius: 10px; width: min(206px, 23%); min-width: 156px; background: transparent; color: var(--accent-color); border: 1px solid var(--border-color); }
#travelInfo .ti-btn-temp:hover { background: rgba(0,0,0,0.04); border-color: var(--accent-color); color: var(--accent-color); }

#travelInfo .ti-card { background: var(--card-bg); border-radius: var(--radius-l); padding: 30px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); position: relative; transition: transform 0.3s, box-shadow 0.3s; width: 100%; overflow: hidden; display: flex; flex-direction: column; height: var(--ti-card-fixed-height); min-height: var(--ti-card-fixed-height); }
#travelInfo .ti-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
#travelInfo .ti-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; width: 100%; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
#travelInfo .ti-card-title { font-size: 1.15rem; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
#travelInfo .ti-card-title .ti-sub-kr { font-size: 0.85rem; font-weight: 400; color: var(--text-sub); letter-spacing: 0; }
#travelInfo .ti-post-list { list-style: none; padding: 0; margin: 0; flex: 0 0 auto; min-height: calc((var(--ti-post-row-height) * 5) + (var(--ti-post-row-gap) * 4)); max-height: calc((var(--ti-post-row-height) * 5) + (var(--ti-post-row-gap) * 4)); display: flex; flex-direction: column; gap: var(--ti-post-row-gap); }
#travelInfo .ti-post-item { height: var(--ti-post-row-height); min-height: var(--ti-post-row-height); padding: 10px 0; border-bottom: 1px solid #F0F0F0; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background-color 0.2s; border-radius: 6px; box-sizing: border-box; }
#travelInfo .ti-post-item:last-child { border-bottom: none; }
#travelInfo .ti-post-item:hover { background-color: #F9F9F9; }
#travelInfo .ti-post-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; filter: grayscale(20%); }
#travelInfo .ti-post-index { flex: 0 0 40px; width: 40px; text-align: center; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.08em; color: #9b9b9b; }
#travelInfo .ti-post-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
#travelInfo .ti-post-info .ti-title { display: block; font-size: 0.95rem; font-weight: 500; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#travelInfo .ti-post-info .ti-address { display:flex; align-items:center; gap:8px; min-width:0; font-size: 0.78rem; color: #9c9c9c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#travelInfo .ti-address-region,
#travelInfo .ti-address-compact { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#travelInfo .ti-address-region { flex:0 0 auto; color:#7f7f7f; font-weight:600; }
#travelInfo .ti-address-divider { flex:0 0 1px; width:1px; height:10px; background:#d8d8d8; }
#travelInfo .ti-address-compact { flex:1 1 auto; color:#9c9c9c; }
#travelInfo .ti-post-date { flex: 0 0 68px; width: 68px; text-align: right; font-size: 0.78rem; color: #A7A7A7; white-space: nowrap; }
#travelInfo .ti-post-avatar { width: 32px; height: 32px; border-radius: 50%; background-color: #111; color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; overflow: hidden; }
#travelInfo .ti-post-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }

#travelInfo .ti-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; color: #BBB; font-size: 0.9rem; gap: 12px; }
#travelInfo .ti-empty-state svg { width: 36px; height: 36px; fill: #E0E0E0; }


#travelInfo .ti-post-pagination { display: none; align-items: center; justify-content: center; gap: 6px; margin-top: auto; min-height: var(--ti-pager-height); padding-top: 12px; border-top: 1px solid #F0F0F0; }
#travelInfo .ti-page-btn { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border-color); background: #fff; color: var(--text-main); font-family: 'Montserrat', 'Pretendard', sans-serif; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.18s ease; }
#travelInfo .ti-page-btn:hover:not(:disabled) { border-color: var(--accent-color); transform: translateY(-1px); }
#travelInfo .ti-page-btn.is-active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
#travelInfo .ti-page-btn:disabled { opacity: 0.35; cursor: default; }
#travelInfo .ti-page-arrow { min-width: 34px; }


#travelInfo .ti-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
#travelInfo .ti-modal-overlay.active { display: flex; opacity: 1; }
#travelInfo .ti-modal-content { background-color: var(--card-bg); width: 100%; max-width: 650px; max-height: 90vh; overflow-y: auto; border-radius: 20px; padding: 40px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); border: 1px solid #F0F0F0; transform: translateY(20px); transition: transform 0.3s ease; }
#travelInfo .ti-write-modal-content { max-width: 1280px; width: calc(100% - 44px); height: min(94vh, 1120px); min-height: min(88vh, 930px); padding: 22px 28px 24px; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; border-radius: 24px; }
#travelInfo .ti-modal-overlay.active .ti-modal-content { transform: translateY(0); }
#travelInfo .ti-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding: 8px 2px 0; }
#travelInfo .ti-modal-title { font-size: 1.45rem; font-weight: 700; letter-spacing: 0.8px; }
#travelInfo .ti-btn-close { background: none; border: none; font-size: 2rem; font-weight: 300; cursor: pointer; color: #CCC; line-height: 1; transition: color 0.2s; }
#travelInfo .ti-btn-close:hover { color: var(--text-main); }

/* =========================================
   지도 모달 (풀스크린 & 플로팅 UI)
   ========================================= */
#travelInfo #ti-mapModal.ti-modal-overlay {
    align-items: flex-start;
    padding-top: calc(var(--topbar-h) + (var(--app-hpad) * 2) + env(safe-area-inset-top) + var(--maint-h, 0px));
    padding-bottom: calc(var(--app-hpad) + env(safe-area-inset-bottom));
}
#travelInfo .ti-map-modal-content { 
    width: min(calc(var(--max-width, 1300px) - (var(--app-hpad) * 2)), calc(100vw - (var(--app-hpad) * 2)));
    max-width: none;
    height: min(
        calc(100vh - (var(--topbar-h) + (var(--app-hpad) * 3) + env(safe-area-inset-top) + env(safe-area-inset-bottom) + var(--maint-h, 0px))),
        calc(min(var(--max-width, 1300px), 100vw) - (var(--app-hpad) * 2))
    );
    max-height: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: block;
    position: relative;
    overflow: visible;
}
#travelInfo .ti-map-shell {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid #F0F0F0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
#travelInfo .ti-map-stage {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    isolation: isolate;
}

/* 닫기 버튼 둥근 플로팅 스타일 */
#travelInfo .ti-floating-close { 
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    z-index: 40;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #EEE;
    background-color: #FFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    font-weight: 400;
    text-align: center;
    color: transparent;
}
#travelInfo .ti-floating-close::before {
    content: '×';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: inherit;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    color: #BEBEBE;
    pointer-events: none;
}

/* 좌측 상단 플로팅 로고 */
#travelInfo .ti-floating-header {
    display: none;
}

/* 상단 중앙 플로팅 필터 */
#travelInfo .ti-map-filter-bar {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 40;
    background-color: #FFF; padding: 6px; border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; gap: 4px; border: 1px solid #EEE;
}
#travelInfo .ti-filter-btn {
    background: transparent; border: none; padding: 8px 18px; border-radius: 30px;
    font-size: 0.75rem; font-weight: 600; cursor: pointer; color: var(--text-sub); transition: all 0.2s;
}
#travelInfo .ti-filter-btn:hover { color: var(--text-main); }
#travelInfo .ti-filter-btn.active { background-color: var(--accent-color); color: #FFF; }

#travelInfo .ti-map-wrapper {
    position: absolute;
    inset: 0;
    background-color: #F4F4F4;
    border-radius: inherit;
    overflow: hidden;
    isolation: isolate;
    contain: layout paint;
}
#travelInfo .ti-live-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    transform: translateZ(0);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0.56)),
      repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0 14px, rgba(0,0,0,0.015) 14px 28px);
}
#travelInfo .ti-live-map > div {
    border-radius: inherit;
}
#travelInfo .ti-map-status {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20;
    min-width: 240px; max-width: min(420px, calc(100% - 40px)); text-align: center;
    padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 18px 30px rgba(0,0,0,0.12);
    font-size: 0.92rem; color: var(--text-main, #111);
}
#travelInfo .ti-map-status.ti-hide { display: none; }
#travelInfo .ti-filter-btn-ghost {
    background: rgba(17,17,17,0.05);
    color: var(--text-main, #111);
}
#travelInfo .ti-filter-btn-ghost.active { background: rgba(17,17,17,0.08); color: var(--text-main, #111); }

#travelInfo .ti-map-marker {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.96);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#travelInfo .ti-map-marker:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 24px rgba(0,0,0,0.22); }
#travelInfo .ti-map-marker.is-selected {
    transform: scale(1.08);
    box-shadow: 0 14px 28px rgba(0,0,0,0.26);
    border-color: #FFFFFF;
    outline: 3px solid rgba(255,255,255,0.72);
    outline-offset: 1px;
}
#travelInfo .ti-map-marker__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
#travelInfo .ti-map-marker--travel { background: #2F6DFF; color: #FFFFFF; }
#travelInfo .ti-map-marker--shop { background: #1F1F1F; color: #FFFFFF; }
#travelInfo .ti-map-marker--restaurant { background: #FF6A3D; color: #FFFFFF; }
#travelInfo .ti-map-marker--cafe { background: #1CBB79; color: #FFFFFF; }

#travelInfo .ti-map-preview-card {
    position: absolute; right: 24px; bottom: 24px; z-index: 21;
    width: min(360px, calc(100% - 48px)); display: flex; flex-direction: column; gap: 10px;
    padding: 18px 18px 16px; border-radius: 22px; background: rgba(255,255,255,0.97);
    border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 20px 40px rgba(0,0,0,0.16);
    backdrop-filter: blur(10px);
}
#travelInfo .ti-map-preview-card.ti-hide { display: none; }
#travelInfo .ti-map-preview-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#travelInfo .ti-map-preview-close { display: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); background: #FFF; color: var(--text-main, #111); font-size: 1.2rem; line-height: 1; cursor: pointer; }
#travelInfo .ti-map-preview-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
    background: rgba(17,17,17,0.06); color: var(--text-main, #111);
}
#travelInfo .ti-map-preview-title { font-size: 1.08rem; font-weight: 800; color: var(--text-main, #111); }
#travelInfo .ti-map-preview-meta { font-size: 0.86rem; color: var(--text-sub, rgba(0,0,0,0.58)); }
#travelInfo .ti-map-preview-row {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px;
    padding: 10px 12px; border-radius: 14px; background: rgba(17,17,17,0.035);
}
#travelInfo .ti-map-preview-row.ti-hide { display: none; }
#travelInfo .ti-map-preview-label { font-size: 0.82rem; font-weight: 700; color: var(--text-sub, rgba(0,0,0,0.58)); }
#travelInfo .ti-map-preview-value { font-size: 0.92rem; color: var(--text-main, #111); word-break: break-word; }
#travelInfo .ti-map-preview-actions { display: flex; gap: 10px; margin-top: 4px; }
#travelInfo .ti-btn-map-link,
#travelInfo .ti-btn-map-open {
    flex: 1 1 0; min-height: 44px; border-radius: 14px; justify-content: center;
}
#travelInfo .ti-btn-map-link {
    display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none;
    background: rgba(17,17,17,0.04); color: var(--text-main, #111); border: 1px solid rgba(0,0,0,0.08);
}
#travelInfo .ti-btn-map-link.ti-hide { display: none; }
#travelInfo .ti-btn-map-open {
    border: 1px solid rgba(0,0,0,0.08); background: #111111; color: #FFFFFF; font-weight: 700;
}

/* 글쓰기 모달 폼 요소 (기존 유지) */
#travelInfo .ti-form-group { margin-bottom: 24px; }
#travelInfo .ti-write-shell { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(340px, 378px); gap: 18px; min-height: 0; flex: 1 1 auto; align-items: stretch; transition: grid-template-columns 0.24s ease, gap 0.24s ease; }
#travelInfo .ti-write-shell.is-library-collapsed { grid-template-columns: minmax(0, 1fr) 26px 0px; }
#travelInfo .ti-write-main { min-width: 0; display: flex; flex-direction: column; min-height: 0; padding: 4px 0 0; position: relative; width: 100%; }
#travelInfo .ti-write-main-topbar { display: flex; justify-content: flex-end; align-items: center; min-height: 34px; margin: 2px 0 16px; width: 100%; }
#travelInfo .ti-write-shell.is-library-collapsed .ti-write-main { max-width: 930px; padding-right: 26px; }
#travelInfo .ti-write-shell.is-library-collapsed .ti-write-main-topbar { max-width: 930px; }
#travelInfo #ti-editor-container { width: 100%; min-width: 0; display: block; }
#travelInfo .ti-editor-group { margin-bottom: 0; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; }
#travelInfo .ti-editor-group > .ql-toolbar.ql-snow,
#travelInfo .ti-editor-group > #ti-editor-container.ql-container.ql-snow { width: 100%; box-sizing: border-box; display: block; }
#travelInfo .ti-inline-search { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 26px; }
#travelInfo .ti-search-btn { padding: 10px 22px; white-space: nowrap; border-radius: 10px; min-width: 112px; }
#travelInfo .ti-info-section-last { margin-bottom: 18px; }
#travelInfo .ti-editor-helper { margin: 6px 0 14px; color: #8d8d8d; font-size: 0.92rem; line-height: 1.55; letter-spacing: -0.01em; }

#travelInfo .ti-form-input { width: 100%; padding: 14px 0 12px; border: none; border-bottom: 1px solid var(--border-color); font-size: 1.03rem; font-family: 'Pretendard', sans-serif; outline: none; transition: border-color 0.3s; background-color: transparent; }
#travelInfo .ti-form-input:focus { border-bottom: 2px solid var(--text-main); }
#travelInfo .ti-form-input[readonly] { cursor: default; color: #1f1f1f; }
#travelInfo .ti-form-input-readonly { background-image: linear-gradient(180deg, rgba(0,0,0,0.01), rgba(0,0,0,0.01)); }
#travelInfo .ti-hide { display: none !important; }
#travelInfo .ti-place-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin-bottom: 18px; }
#travelInfo .ti-place-info-grid .ti-form-group { margin-bottom: 20px; }
#travelInfo .ti-form-group-full { grid-column: 1 / -1; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-form-group { margin-bottom: 18px; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-place-info-grid { margin-bottom: 12px; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-editor-helper { margin: 4px 0 12px; }
#travelInfo .ti-write-modal-content.is-travel-mode #ti-postPhone { display: none; }
#travelInfo .ti-write-modal-content.is-travel-mode .ti-editor-helper { margin: 4px 0 10px; }

#travelInfo .ti-write-modal-content.is-food-mode .ti-editor-group { flex: 0 0 auto; }
#travelInfo .ti-write-modal-content.is-food-mode #ti-editor-container.ql-container.ql-snow { min-height: 320px; }
#travelInfo .ti-write-modal-content.is-food-mode .ql-container.ql-snow { min-height: 320px; }
#travelInfo .ti-write-modal-content.is-food-mode .ql-editor { min-height: 280px; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-submit-area { margin-top: 18px; padding-top: 16px; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-write-main { padding-bottom: 8px; }
#travelInfo .ti-place-search-results { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 228px; overflow-y: auto; padding-right: 4px; }
#travelInfo .ti-place-result-item { width: 100%; border: 1px solid rgba(0,0,0,0.08); background: #fff; border-radius: 14px; padding: 12px 14px; text-align: left; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
#travelInfo .ti-place-result-item:hover { border-color: rgba(0,0,0,0.18); box-shadow: 0 8px 18px rgba(0,0,0,0.05); transform: translateY(-1px); }
#travelInfo .ti-place-result-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
#travelInfo .ti-place-result-meta { margin-top: 6px; font-size: 0.78rem; color: #666; line-height: 1.55; }
#travelInfo .ti-place-result-meta strong { color: var(--text-main); font-weight: 600; }
#travelInfo .ti-place-search-empty { border: 1px dashed rgba(0,0,0,0.12); border-radius: 14px; padding: 14px 16px; color: #777; font-size: 0.85rem; line-height: 1.6; }
#travelInfo .ti-place-search-empty.is-error { color: #8a2b2b; border-color: rgba(138,43,43,0.18); background: rgba(138,43,43,0.04); }

#travelInfo .ti-info-section { margin-bottom: 18px; }
#travelInfo .ti-info-label { font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; color: #999; font-family: 'Montserrat', sans-serif; letter-spacing: 1px; }
#travelInfo .ti-tag-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#travelInfo .ti-divider { width: 1px; height: 14px; background-color: var(--border-color); margin: 0 4px; flex: 0 0 auto; }
#travelInfo .ti-info-tag { padding: 8px 18px; border: 1px solid var(--border-color); background-color: transparent; border-radius: 30px; font-size: 0.85rem; cursor: pointer; color: var(--text-sub); transition: all 0.2s; font-family: 'Pretendard', sans-serif; font-weight: 500; }
#travelInfo .ti-info-tag:hover { border-color: #AAA; color: #555; }
#travelInfo .ti-info-tag.selected { background-color: var(--accent-color); color: #FFF; border-color: var(--accent-color); font-weight: 600; }

#travelInfo .ti-editor-library { border: 1px solid rgba(0,0,0,0.08); border-radius: 24px; padding: 16px 16px 18px; background: #fff; display: flex; flex-direction: column; min-width: 0; width: 100%; min-height: 100%; max-height: none; overflow: hidden; box-shadow: 0 10px 28px rgba(15,15,15,0.03); transition: width 0.24s ease, min-width 0.24s ease, padding 0.24s ease, opacity 0.24s ease, transform 0.24s ease; }
#travelInfo .ti-editor-library.is-collapsed { width: 0; min-width: 0; padding: 0; border-color: transparent; box-shadow: none; opacity: 0; overflow: hidden; transform: translateX(10px); pointer-events: none; }
#travelInfo .ti-editor-library.is-collapsed .ti-library-title,
#travelInfo .ti-editor-library.is-collapsed .ti-library-status,
#travelInfo .ti-editor-library.is-collapsed .ti-library-count,
#travelInfo .ti-editor-library.is-collapsed .ti-library-grid-wrap { display: none; }
#travelInfo .ti-editor-library.is-collapsed .ti-library-header { margin-bottom: 0; justify-content: center; }
#travelInfo .ti-editor-library.is-collapsed .ti-library-header-meta { width: 100%; align-items: center; }
#travelInfo .ti-library-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; padding: 2px 2px 0; }
#travelInfo .ti-library-title { font-size: 1.12rem; font-weight: 700; letter-spacing: 0.08em; }
#travelInfo .ti-library-status { margin-top: 6px; font-size: 0.83rem; color: #777; line-height: 1.45; word-break: keep-all; }
#travelInfo .ti-library-header-copy { min-width: 0; }
#travelInfo .ti-library-header-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; padding-top: 3px; }
#travelInfo .ti-library-edge-rail { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 100%; }
#travelInfo .ti-library-edge-divider { position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; transform: none; border-left: 1px dashed rgba(0,0,0,0.18); }
#travelInfo .ti-library-edge-toggle { position: relative; z-index: 1; align-self: center; width: 26px; min-width: 26px; height: 86px; border: none; border-radius: 0 8px 8px 0; background: #111; color: #fff; font-size: 0.73rem; letter-spacing: 0.08em; writing-mode: vertical-rl; text-orientation: mixed; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.12); transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease; }
#travelInfo .ti-library-edge-toggle:hover { transform: translateX(2px); }
#travelInfo .ti-library-edge-toggle[aria-expanded="false"] { background: #222; }
#travelInfo .ti-library-count { font-size: 0.92rem; font-weight: 600; color: #7f7f7f; }


#travelInfo .ti-library-grid-wrap { min-width: 0; flex: 1 1 auto; overflow: hidden; padding-top: 4px; }
#travelInfo .ti-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; overflow-y: auto; padding-right: 4px; align-content: start; min-width: 0; height: 100%; }
#travelInfo .ti-library-empty { grid-column: 1 / -1; min-height: 280px; border: 1px dashed rgba(0,0,0,0.12); border-radius: 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; color: var(--text-sub); text-align: center; padding: 24px; }
#travelInfo .ti-library-empty-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.05); font-size: 1.6rem; color: var(--text-main); }

#travelInfo .ti-library-empty-title { font-weight: 700; color: var(--text-main); }
#travelInfo .ti-library-empty-copy { font-size: 0.88rem; line-height: 1.55; max-width: 260px; word-break: keep-all; white-space: normal; }
#travelInfo .ti-library-item { border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 9px; transition: opacity 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 8px 18px rgba(14,14,14,0.03); }
#travelInfo .ti-library-item.is-cover { border-color: rgba(0,0,0,0.22); box-shadow: 0 10px 18px rgba(0,0,0,0.06); }
#travelInfo .ti-library-item.is-deleted { opacity: 0.62; filter: grayscale(1); background: linear-gradient(180deg, rgba(250,250,250,1), rgba(243,243,243,1)); }
#travelInfo .ti-library-item.is-deleted .ti-library-thumb { filter: grayscale(1); }
#travelInfo .ti-library-item.is-duplicate { background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,246,246,1)); }
#travelInfo .ti-library-thumb-wrap { position: relative; }
#travelInfo .ti-library-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; display: block; background: #eef1f5; }
#travelInfo .ti-library-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; pointer-events: none; }
#travelInfo .ti-library-badge { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(0,0,0,0.10); background: rgba(17,17,17,0.92); color: #fff; }
#travelInfo .ti-library-badge svg { width: 15px; height: 15px; fill: currentColor; }
#travelInfo .ti-library-badge.is-cover { background: rgba(17,17,17,0.94); }
#travelInfo .ti-library-badge.is-duplicate { background: rgba(255,255,255,0.95); color: #111; margin-left: auto; }
#travelInfo .ti-library-badge.is-used { background: rgba(255,255,255,0.95); color: #111; }
#travelInfo .ti-library-badge.is-deleted { background: rgba(122,31,31,0.94); color: #fff; }
#travelInfo .ti-library-meta { min-width: 0; padding: 0 2px; }
#travelInfo .ti-library-name { font-size: 0.84rem; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#travelInfo .ti-library-sub { margin-top: 4px; font-size: 0.76rem; color: #8a8a8a; }
#travelInfo .ti-library-actions { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 2px; }
#travelInfo .ti-library-action { border: 1px solid rgba(0,0,0,0.08); background: rgba(0,0,0,0.03); color: var(--text-main); border-radius: 11px; padding: 9px 8px; font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
#travelInfo .ti-library-action:hover { background: rgba(0,0,0,0.08); }
#travelInfo .ti-library-action[disabled] { cursor: default; opacity: 0.55; }


#travelInfo .ti-library-item.is-cover.is-deleted { box-shadow: none; }
#travelInfo .ti-library-thumb-wrap::after { content: ""; }
#travelInfo .ql-toolbar.ql-snow { border-color: var(--border-color) !important; border-radius: 18px 18px 0 0; background-color: #FFF; font-family: 'Pretendard', sans-serif; display: block; padding: 10px 12px; }
#travelInfo .ti-editor-group > .ql-toolbar.ql-snow { flex: 0 0 auto; }
#travelInfo .ql-toolbar.ql-snow .ql-formats { margin-right: 12px; }
#travelInfo .ql-toolbar.ql-snow button,
#travelInfo .ql-toolbar.ql-snow .ql-picker-label { transition: color 0.18s ease; }
#travelInfo .ql-toolbar.ql-snow button:hover,
#travelInfo .ql-toolbar.ql-snow .ql-picker-label:hover { color: #111; }

#travelInfo .ti-editor-group > #ti-editor-container.ql-container.ql-snow { flex: 1 1 auto; }
#travelInfo .ql-container.ql-snow { position: relative; border-color: var(--border-color) !important; border-radius: 0 0 18px 18px; font-family: 'Pretendard', sans-serif; font-size: 1rem; min-height: 520px; height: 100%; max-height: none; overflow-y: auto; overflow-x: hidden; background: #fff; }
#travelInfo .ql-editor { position: relative; min-height: 480px; padding: 16px 18px 22px; height: auto !important; overflow-y: visible !important; overflow-x: hidden !important; }
#travelInfo .ti-write-modal-content.is-food-mode .ql-container.ql-snow { min-height: 430px; }
#travelInfo .ti-write-modal-content.is-food-mode .ql-editor { min-height: 390px; }

#travelInfo .ti-write-modal-content.is-food-mode .ti-write-shell { align-items: start; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-write-main { min-height: auto; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-write-shell.is-library-collapsed .ti-write-main { max-width: none; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-write-shell.is-library-collapsed .ti-write-main-topbar { max-width: none; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-editor-group { flex: 0 0 auto; }
#travelInfo .ti-write-modal-content.is-food-mode .ql-container.ql-snow { min-height: 360px; height: 360px; }
#travelInfo .ti-write-modal-content.is-food-mode .ql-editor { min-height: 320px; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-submit-area { margin-top: 12px; padding-top: 6px; }
#travelInfo .ti-write-modal-content.is-food-mode .ti-editor-helper { margin-bottom: 12px; }
#travelInfo .ql-editor.ql-blank::before { left: 16px; right: 16px; font-style: normal; white-space: normal; word-break: keep-all; color: #9a9a9a; }
#travelInfo .ql-editor img { display: block; max-width: 100%; border-radius: 4px; margin: 10px 0; cursor: pointer; }
#travelInfo .ql-editor img.ti-editor-image-selected { outline: 2px solid rgba(17,17,17,0.16); outline-offset: 2px; }
#travelInfo .ti-image-resize-overlay { position: absolute; display: none; border: 1px solid rgba(17,17,17,0.38); border-radius: 6px; box-sizing: border-box; pointer-events: none; z-index: 30; }
#travelInfo .ti-image-resize-overlay.active { display: none; }


#travelInfo .ti-modal-header-actions { display: flex; align-items: center; gap: 12px; }
#travelInfo .ti-draftbox { position: relative; }
#travelInfo .ti-draft-toggle { padding: 10px 16px; min-width: 112px; border-radius: 999px; font-size: 0.8rem; background: transparent; color: var(--accent-color); border: 1px solid var(--border-color); }
#travelInfo .ti-draft-toggle:hover { background: rgba(0,0,0,0.04); color: var(--accent-color); border-color: var(--accent-color); }
#travelInfo .ti-draft-toggle.is-empty { opacity: 0.75; }
#travelInfo .ti-draft-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: min(320px, 78vw); background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); padding: 10px; display: none; z-index: 25; max-height: 340px; overflow-y: auto; }
#travelInfo .ti-draft-dropdown.active { display: block; }
#travelInfo .ti-draft-empty { padding: 16px 12px; text-align: center; color: var(--text-sub); font-size: 0.88rem; }
#travelInfo .ti-draft-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; border-radius: 12px; padding: 8px; transition: background 0.2s ease; }
#travelInfo .ti-draft-item + .ti-draft-item { margin-top: 4px; }
#travelInfo .ti-draft-item:hover { background: rgba(0,0,0,0.03); }
#travelInfo .ti-draft-delete { width: 28px; height: 28px; border: none; border-radius: 999px; background: rgba(0,0,0,0.05); color: #444; cursor: pointer; font-size: 0.95rem; line-height: 1; }
#travelInfo .ti-draft-delete:hover { background: rgba(112,0,0,0.08); color: #6f1111; }
#travelInfo .ti-draft-load { border: none; background: transparent; width: 100%; text-align: left; padding: 0; cursor: pointer; }
#travelInfo .ti-draft-title { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#travelInfo .ti-draft-meta { display: block; margin-top: 5px; font-size: 0.76rem; color: var(--text-sub); }

#travelInfo .ti-submit-area { display:flex; justify-content:flex-end; align-items:center; gap:12px; margin-top:22px; padding: 10px 0 0; width: 100%; position: relative; z-index: 1; background: transparent; backdrop-filter: none; }
#travelInfo .ti-write-shell.is-library-collapsed .ti-submit-area { max-width: 930px; }
#travelInfo .ti-autosave-status { margin-right: auto; font-size: 0.78rem; color: var(--text-sub); padding: 9px 14px; border-radius: 999px; background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.06); }
#travelInfo .ti-autosave-status[data-tone="saving"] { color: #7a5b10; background: rgba(181,138,26,0.08); border-color: rgba(181,138,26,0.18); }
#travelInfo .ti-autosave-status[data-tone="saved"] { color: #1f5e3e; background: rgba(43,122,78,0.08); border-color: rgba(43,122,78,0.18); }
#travelInfo .ti-autosave-status[data-tone="error"] { color: #7a1f1f; background: rgba(122,31,31,0.08); border-color: rgba(122,31,31,0.16); }
#travelInfo .ql-editor .ti-image-caption { margin: -2px auto 14px; font-size: 0.88rem; line-height: 1.5; color: var(--text-sub); text-align: center; max-width: min(90%, 560px); }
#travelInfo .ti-image-toolbar-group { display: none; align-items: center; gap: 4px; margin-left: 14px; padding-left: 12px; min-width: 0; }
#travelInfo .ti-image-toolbar-group.active { display: inline-flex; }
#travelInfo .ti-image-tool-sep { width: 1px; height: 18px; background: rgba(0,0,0,0.12); margin-right: 6px; flex: 0 0 auto; }
#travelInfo .ti-image-icon-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; color: #707070; border-radius: 6px; cursor: pointer; position: relative; flex: 0 0 auto; transition: background-color 0.18s ease, color 0.18s ease; }
#travelInfo .ti-image-icon-btn svg { width: 18px; height: 18px; display: block; }
#travelInfo .ti-image-icon-btn:hover { background: rgba(0,0,0,0.04); color: #222; }
#travelInfo .ti-image-icon-btn.is-active { color: #0ea64b; background: transparent; }
#travelInfo .ti-image-icon-btn.is-active::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: -3px; height: 2px; border-radius: 999px; background: #18b14b; }
#travelInfo .ti-image-icon-btn:focus-visible { outline: 2px solid rgba(16,176,74,0.25); outline-offset: 2px; }


@media (min-width: 1180px) {
#travelInfo .ti-write-modal-content {
    max-width: 1420px;
}
#travelInfo .ti-write-shell,
#travelInfo .ti-write-shell.is-library-collapsed {
    grid-template-columns: 930px 26px minmax(340px, 378px);
    justify-content: start;
}
#travelInfo .ti-write-main,
#travelInfo .ti-write-main-topbar,
#travelInfo .ti-submit-area,
#travelInfo .ti-write-shell.is-library-collapsed .ti-write-main,
#travelInfo .ti-write-shell.is-library-collapsed .ti-write-main-topbar,
#travelInfo .ti-write-shell.is-library-collapsed .ti-submit-area,
#travelInfo .ti-write-modal-content.is-food-mode .ti-write-shell.is-library-collapsed .ti-write-main,
#travelInfo .ti-write-modal-content.is-food-mode .ti-write-shell.is-library-collapsed .ti-write-main-topbar {
    width: 930px;
    max-width: 930px;
}
#travelInfo .ti-write-shell.is-library-collapsed .ti-write-main {
    padding-right: 0;
}
}
@media (max-width: 980px) { #travelInfo .ti-image-toolbar-group { gap: 1px; margin-left: 8px; padding-left: 8px; } #travelInfo .ti-image-tool-sep { margin-right: 1px; height: 20px; } #travelInfo .ti-image-icon-btn { width: 32px; height: 32px; } #travelInfo .ti-image-icon-btn svg { width: 18px; height: 18px; } }
#travelInfo .ti-library-item { cursor: default; }

@media (max-width: 980px) { #travelInfo .ti-write-modal-content { width: calc(100% - 20px); height: auto; min-height: 0; padding: 22px 18px 18px; } #travelInfo .ti-write-shell, #travelInfo .ti-write-shell.is-library-collapsed { grid-template-columns: 1fr; } #travelInfo .ti-library-edge-rail { display: none; } #travelInfo .ti-editor-library { min-height: 0; max-height: none; order: 2; } #travelInfo .ti-editor-library.is-collapsed { width: 100%; min-width: 0; padding: 14px 16px; border-color: rgba(0,0,0,0.08); box-shadow: 0 10px 28px rgba(15,15,15,0.03); opacity: 1; } #travelInfo .ti-editor-library.is-collapsed .ti-library-title, #travelInfo .ti-editor-library.is-collapsed .ti-library-status, #travelInfo .ti-editor-library.is-collapsed .ti-library-count, #travelInfo .ti-editor-library.is-collapsed .ti-library-grid-wrap { display: block; } #travelInfo .ti-library-header { flex-direction: column; align-items: stretch; } #travelInfo .ti-library-header-meta { align-items: stretch; } #travelInfo .ti-submit-area { justify-content: flex-end; } #travelInfo .ti-place-info-grid { grid-template-columns: 1fr; } #travelInfo .ql-container.ql-snow { min-height: 420px; } #travelInfo .ql-editor { min-height: 380px; } }
@media (max-width: 980px) {
  #travelInfo .ti-map-preview-card {
    width: min(340px, calc(100% - 32px));
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 768px) {
  #travelInfo .ti-board-grid { grid-template-columns: 1fr; }
  #travelInfo .ti-modal-content { margin: 15px; padding: 25px; }
  #travelInfo .ti-write-modal-content { margin: 10px; width: calc(100% - 20px); padding: 18px 14px 16px; }
  #travelInfo .ti-inline-search { flex-direction: column; align-items: stretch; }
  #travelInfo .ti-search-btn { width: 100%; }
  #travelInfo .ti-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #travelInfo .ti-library-actions { grid-template-columns: 1fr; }
  #travelInfo #ti-mapModal.ti-modal-overlay {
    align-items: flex-start;
    justify-content: stretch;
    width: 100vw;
    left: 0;
    right: 0;
    padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 8px);
    padding-right: 0;
    padding-left: 0;
    padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
  }
  #travelInfo .ti-map-modal-content {
    width: 100vw !important;
    min-width: 100vw;
    max-width: 100vw !important;
    height: calc(100vh - (var(--topbar-h) + env(safe-area-inset-top) + env(safe-area-inset-bottom) + 14px));
    height: calc(100dvh - (var(--topbar-h) + env(safe-area-inset-top) + env(safe-area-inset-bottom) + 14px));
    margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    left: 0;
    right: 0;
  }
  #travelInfo .ti-map-shell,
  #travelInfo .ti-map-stage,
  #travelInfo .ti-map-wrapper,
  #travelInfo .ti-live-map {
    width: 100vw !important;
    min-width: 100vw;
    max-width: 100vw !important;
    border-radius: 0;
    margin: 0;
  }
  #travelInfo .ti-map-shell {
    border-left: none;
    border-right: none;
  }
  #travelInfo .ti-floating-close {
    top: auto;
    left: 50%;
    right: auto;
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    z-index: 46;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  }
  #travelInfo .ti-floating-close::before {
    font-size: 26px;
  }
  #travelInfo .ti-map-filter-bar {
    top: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    padding: 4px;
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
  }
  #travelInfo .ti-filter-btn {
    min-width: 0;
    padding: 7px 2px;
    font-size: clamp(0.52rem, 1.9vw, 0.64rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
  #travelInfo .ti-map-marker {
    width: 32px;
    height: 32px;
  }
  #travelInfo .ti-map-preview-card {
    left: 10px;
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom) + 10px);
    width: auto;
    padding: 14px 14px 12px;
    border-radius: 18px 18px 0 0;
    transform: translateY(calc(100% + 16px));
    transition: transform 0.22s ease;
    box-shadow: 0 -8px 28px rgba(0,0,0,0.16);
  }
  #travelInfo .ti-map-preview-card.is-open {
    transform: translateY(0);
  }
  #travelInfo .ti-map-preview-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  #travelInfo .ti-map-preview-actions {
    flex-direction: column;
  }
  #travelInfo .ti-btn-map-link,
  #travelInfo .ti-btn-map-open {
    width: 100%;
  }
  #travelInfo #ti-mapModal.ti-preview-active .ti-map-filter-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
  }
  #travelInfo #ti-mapModal.ti-preview-active .ti-floating-close {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px);
  }
  #travelInfo #ti-mapModal.ti-preview-active #tiArchiveMapCanvas [class*="wrap_maptype"],
  #travelInfo #ti-mapModal.ti-preview-active #tiArchiveMapCanvas [class*="wrap_zoom"],
  #travelInfo #ti-mapModal.ti-preview-active #tiArchiveMapCanvas [class*="wrap_btn_zoom"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
  }
  #travelInfo #tiArchiveMapCanvas [class*="wrap_maptype"] {
    left: 10px !important;
    right: auto !important;
    bottom: calc(env(safe-area-inset-bottom) + 12px) !important;
    top: auto !important;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  #travelInfo #tiArchiveMapCanvas [class*="wrap_zoom"],
  #travelInfo #tiArchiveMapCanvas [class*="wrap_btn_zoom"] {
    right: 10px !important;
    left: auto !important;
    bottom: calc(env(safe-area-inset-bottom) + 12px) !important;
    top: auto !important;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  #travelInfo .ti-floating-close {
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }
  #travelInfo .ti-modal-header { align-items: flex-start; gap: 10px; }
  #travelInfo .ti-modal-header-actions { gap: 8px; }
  #travelInfo .ti-draft-toggle { min-width: 96px; padding: 8px 12px; font-size: 0.76rem; }
  #travelInfo .ti-submit-area { justify-content: space-between; flex-wrap: wrap; position: relative; bottom: auto; }
  #travelInfo .ti-autosave-status { width: 100%; margin-right: 0; order: -1; }
  #travelInfo .ti-btn-submit, #travelInfo .ti-btn-temp { width: calc(50% - 6px); min-width: 0; }
}

@media (max-width: 390px) {
  #travelInfo .ti-map-filter-bar {
    left: 8px;
    right: 8px;
    padding: 4px 3px;
    gap: 3px;
  }
  #travelInfo .ti-filter-btn {
    padding: 7px 1px;
    font-size: 0.5rem;
    letter-spacing: -0.04em;
  }
}

/* ==========================
   Detail Modal (Post View)
   ========================== */
#travelInfo .ti-detail-modal-content {
  max-width: 900px;
  width: calc(100% - 24px);
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#travelInfo .ti-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
}

#travelInfo .ti-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--chip-bg, rgba(0,0,0,0.04));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  width: fit-content;
}

#travelInfo .ti-detail-title {
  margin-top: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #111);
}

#travelInfo .ti-detail-meta {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-sub, rgba(0,0,0,0.55));
}

#travelInfo .ti-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card-bg, rgba(255,255,255,0.9));
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
}

#travelInfo .ti-detail-row.ti-hide { display: none; }

#travelInfo .ti-detail-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-sub, rgba(0,0,0,0.55));
  flex: 0 0 auto;
}

#travelInfo .ti-detail-address {
  flex: 1 1 auto;
  font-size: 0.95rem;
  color: var(--text-main, #111);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#travelInfo .ti-detail-copy {
  padding: 8px 12px !important;
  border-radius: 12px;
}

#travelInfo .ti-detail-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(168px, 0.9fr) minmax(118px, 0.74fr);
  gap: 10px;
  margin-top: 14px;
  align-items: stretch;
}

#travelInfo .ti-detail-info-grid .ti-detail-row {
  margin-top: 0;
  min-width: 0;
}

#travelInfo #ti-detailPhoneRow {
  min-width: 168px;
}

#travelInfo #ti-detailPlaceUrlRow {
  min-width: 118px;
}

#travelInfo .ti-detail-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--text-main, #111);
  word-break: break-word;
}

#travelInfo #ti-detailCategoryNameRow .ti-detail-value,
#travelInfo #ti-detailPhoneRow .ti-detail-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#travelInfo .ti-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  width: 100%;
  padding: 0 10px;

  border-radius: 12px;
  background: rgba(17,17,17,0.04);
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  color: var(--text-main, #111);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

#travelInfo .ti-detail-link:hover {
  background: rgba(17,17,17,0.06);
}

#travelInfo .ti-detail-section {
  margin-top: 14px;
}

#travelInfo .ti-detail-section-title {
  margin-bottom: 9px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-sub, rgba(0,0,0,0.62));
}

#travelInfo .ti-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#travelInfo .ti-tagchip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  background: var(--card-bg, rgba(255,255,255,0.9));
  color: var(--text-main, #111);
}

#travelInfo .ti-tagchip-muted {
  opacity: 0.7;
}

#travelInfo .ti-detail-content {
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  background: var(--card-bg, rgba(255,255,255,0.9));
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  overflow: auto;
  flex: 1 1 auto;
}

/* Quill content inside detail */
#travelInfo .ti-detail-content.ql-editor {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

#travelInfo .ti-detail-content img {
  max-width: 100%;
  border-radius: 12px;
}

#travelInfo .ti-detail-map-section {
  padding: 14px;
  border-radius: 16px;
  background: var(--card-bg, rgba(255,255,255,0.9));
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
}

#travelInfo .ti-detail-map-note {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-sub, rgba(0,0,0,0.56));
}

#travelInfo .ti-detail-map {
  width: 100%;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.035) 0 12px, rgba(0,0,0,0.02) 12px 24px);
  border: 1px solid rgba(0,0,0,0.07);
}

@media (max-width: 980px) {
  #travelInfo .ti-detail-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #travelInfo .ti-detail-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #travelInfo .ti-detail-address {
    white-space: normal;
  }
  #travelInfo .ti-detail-copy {
    margin-left: auto;
  }
  #travelInfo .ti-detail-map {
    height: 240px;
  }
}

#travelInfo .ti-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

#travelInfo .ti-btn-danger {
  background: #111;
  color: #fff;
  border: 1px solid rgba(0,0,0,0.12);
}

#travelInfo .ti-btn-danger:hover {
  filter: brightness(0.92);
}

#travelInfo .ti-submit-area { margin-top: 22px; display: flex; justify-content: flex-end; gap: 12px; align-items: center; position: relative; z-index: 1; background: transparent; backdrop-filter: none; padding: 10px 0 0; }


/* ===== Modal width expansion + library panel behavior overrides ===== */
#travelInfo .ti-write-modal-content {
  max-width: none;
  width: min(calc(100vw - 56px), 780px);
  height: auto;
  min-height: 0;
  max-height: min(94vh, 1100px);
  transition: width 0.28s ease, max-width 0.28s ease, padding 0.28s ease;
}
#travelInfo .ti-write-modal-content.is-library-expanded {
  width: min(calc(100vw - 56px), 1040px);
}
#travelInfo .ti-write-shell {
  grid-template-columns: minmax(0, 1fr) 34px 0px;
  gap: 0 20px;
  align-items: start;
}
#travelInfo .ti-write-shell.is-library-collapsed {
  grid-template-columns: minmax(0, 1fr) 34px 0px;
}
#travelInfo .ti-write-shell.is-library-expanded {
  grid-template-columns: minmax(0, 1fr) 34px minmax(320px, 360px);
}
#travelInfo .ti-write-main {
  max-width: 960px;
  padding-right: 0;
}
#travelInfo .ti-write-main-topbar {
  max-width: 960px;
}
#travelInfo .ti-write-shell.is-library-expanded .ti-write-main,
#travelInfo .ti-write-shell.is-library-expanded .ti-write-main-topbar,
#travelInfo .ti-write-shell.is-library-collapsed .ti-write-main,
#travelInfo .ti-write-shell.is-library-collapsed .ti-write-main-topbar {
  max-width: none;
}
#travelInfo .ti-write-modal-content.is-food-mode .ti-write-main {
  max-width: none;
}
#travelInfo .ti-library-edge-rail {
  align-self: stretch;
  min-height: 100%;
}
#travelInfo .ti-library-edge-divider {
  left: calc(50% - 13px);
  top: 12px;
  bottom: 12px;
}
#travelInfo .ti-library-edge-toggle {
  margin-left: 0;
}
#travelInfo .ti-editor-library {
  min-height: calc(100% - 4px);
}
#travelInfo .ti-editor-library.is-collapsed {
  width: 0;
  min-width: 0;
  padding: 0;
  border-width: 0;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
}
#travelInfo .ti-write-modal-content .ql-container.ql-snow {
  min-height: 430px;
  height: auto;
}
#travelInfo .ti-write-modal-content .ql-editor {
  min-height: 390px;
}
#travelInfo .ti-write-modal-content.is-travel-mode .ql-container.ql-snow {
  min-height: 320px;
  height: auto;
}
#travelInfo .ti-write-modal-content.is-travel-mode .ql-editor {
  min-height: 280px;
}
#travelInfo .ti-write-modal-content.is-food-mode .ql-container.ql-snow {
  min-height: 340px;
  height: auto;
}
#travelInfo .ti-write-modal-content.is-food-mode .ql-editor {
  min-height: 300px;
}
#travelInfo .ti-submit-area {
  margin-top: 14px;
  padding-top: 0;
}
#travelInfo .ti-write-modal-content.is-food-mode .ti-submit-area {
  margin-top: 12px;
  padding-top: 0;
}

@media (max-width: 980px) {
  #travelInfo .ti-write-modal-content,
  #travelInfo .ti-write-modal-content.is-library-expanded {
    width: calc(100% - 20px);
  }
  #travelInfo .ti-write-shell,
  #travelInfo .ti-write-shell.is-library-collapsed,
  #travelInfo .ti-write-shell.is-library-expanded {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #travelInfo .ti-library-edge-rail {
    display: none;
  }
  #travelInfo .ti-editor-library,
  #travelInfo .ti-editor-library.is-collapsed {
    width: 100%;
    min-width: 0;
    min-height: 0;
    opacity: 1;
    transform: none;
    padding: 14px 16px;
    border-width: 1px;
    pointer-events: auto;
  }
}

#travelInfo .ti-modal-header-actions { justify-content: flex-end; flex: 0 0 auto; }
#travelInfo .ti-modal-header .ti-draftbox { margin-right: 4px; }
#travelInfo .ti-write-main-topbar { display: none !important; }


#travelInfo .ti-post-thumb-city { display:flex; align-items:center; justify-content:center; background:#f6f6f6; border:1px solid #ececec; color:#2b2b2b; font-weight:700; letter-spacing:-0.03em; text-align:center; object-fit:unset; filter:none; padding:2px; }
#travelInfo .ti-post-thumb-city span { display:block; width:100%; max-width:100%; padding:0 2px; line-height:1.05; font-size:0.58rem; white-space:normal; word-break:keep-all; overflow-wrap:anywhere; }


@media (max-width: 768px) {
  #travelInfo .ti-post-item { gap: 10px; }
  #travelInfo .ti-post-index { flex-basis: 34px; width: 34px; font-size: 0.8rem; }
  #travelInfo .ti-post-date { flex-basis: 60px; width: 60px; font-size: 0.74rem; }
  #travelInfo .ti-post-info .ti-title { font-size: 0.9rem; }
  #travelInfo .ti-post-info .ti-address { gap:6px; font-size: 0.74rem; }
  #travelInfo .ti-address-divider { height:9px; }
  #travelInfo .ti-card { height: var(--ti-card-fixed-height); min-height: var(--ti-card-fixed-height); }
}


/* ===== Mobile write modal layout recovery ===== */
@media (max-width: 768px) {
  #travelInfo #ti-writeModal.ti-modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 8px);
    padding-right: 8px;
    padding-left: 8px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
    overflow: hidden;
    z-index: 990;
  }
  #travelInfo #ti-writeModal .ti-write-modal-content {
    width: calc(100vw - 16px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 14px calc(env(safe-area-inset-bottom) + 18px) !important;
    max-height: calc(100dvh - (var(--topbar-h) + env(safe-area-inset-top) + env(safe-area-inset-bottom) + 16px));
    min-height: 0;
    height: auto;
    border-radius: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 12px;
  }
  #travelInfo #ti-writeModal .ti-modal-header {
    position: sticky;
    top: -16px;
    z-index: 5;
    margin: -16px -14px 14px;
    padding: 16px 14px 12px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  #travelInfo #ti-writeModal .ti-modal-title {
    font-size: 1.18rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }
  #travelInfo #ti-writeModal .ti-modal-header-actions {
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  #travelInfo #ti-writeModal .ti-write-shell,
  #travelInfo #ti-writeModal .ti-write-shell.is-library-collapsed,
  #travelInfo #ti-writeModal .ti-write-shell.is-library-expanded {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  #travelInfo #ti-writeModal .ti-write-main {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 0;
    gap: 0;
  }
  #travelInfo #ti-writeModal .ti-form-group,
  #travelInfo #ti-writeModal .ti-info-section,
  #travelInfo #ti-writeModal .ti-editor-helper,
  #travelInfo #ti-writeModal .ti-editor-group,
  #travelInfo #ti-writeModal .ti-submit-area,
  #travelInfo #ti-writeModal .ti-editor-library {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    float: none !important;
    clear: both;
  }
  #travelInfo #ti-writeModal .ti-form-group {
    margin-bottom: 14px;
  }
  #travelInfo #ti-writeModal .ti-place-info-grid {
    gap: 12px;
    margin-bottom: 14px;
  }
  #travelInfo #ti-writeModal .ti-info-section {
    margin-bottom: 18px;
  }
  #travelInfo #ti-writeModal .ti-info-label {
    margin-bottom: 8px;
    line-height: 1.2;
  }
  #travelInfo #ti-writeModal .ti-tag-group {
    gap: 8px 10px;
  }
  #travelInfo #ti-writeModal .ti-info-section-last {
    margin-bottom: 18px;
  }
  #travelInfo #ti-writeModal .ti-editor-library,
  #travelInfo #ti-writeModal .ti-editor-library.is-collapsed,
  #travelInfo #ti-writeModal .ti-editor-library.ti-library-mobile-inline {
    order: 30;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 16px;
    padding: 16px !important;
    border-width: 1px !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 10px 24px rgba(15,15,15,0.04) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: hidden;
    background: #fff;
  }
  #travelInfo #ti-writeModal .ti-editor-library .ti-library-header {
    margin-bottom: 12px;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  #travelInfo #ti-writeModal .ti-editor-library .ti-library-header-meta {
    align-items: flex-start;
    padding-top: 0;
  }
  #travelInfo #ti-writeModal .ti-library-grid-wrap {
    overflow: visible;
    padding-top: 0;
  }
  #travelInfo #ti-writeModal .ti-library-grid {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #travelInfo #ti-writeModal .ti-library-empty {
    min-height: 160px;
    padding: 18px;
  }
  #travelInfo #ti-writeModal .ti-editor-helper {
    order: 40;
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: keep-all;
  }
  #travelInfo #ti-writeModal .ti-editor-group {
    order: 50;
    margin-bottom: 0;
    min-height: auto;
  }
  #travelInfo #ti-writeModal .ql-toolbar.ql-snow {
    position: sticky;
    top: 63px;
    z-index: 2;
    background: #fff;
  }
  #travelInfo #ti-writeModal .ql-container.ql-snow,
  #travelInfo #ti-writeModal .ti-write-modal-content .ql-container.ql-snow,
  #travelInfo #ti-writeModal .ti-write-modal-content.is-travel-mode .ql-container.ql-snow,
  #travelInfo #ti-writeModal .ti-write-modal-content.is-food-mode .ql-container.ql-snow {
    min-height: 240px !important;
    height: auto !important;
  }
  #travelInfo #ti-writeModal .ql-editor,
  #travelInfo #ti-writeModal .ti-write-modal-content .ql-editor,
  #travelInfo #ti-writeModal .ti-write-modal-content.is-travel-mode .ql-editor,
  #travelInfo #ti-writeModal .ti-write-modal-content.is-food-mode .ql-editor {
    min-height: 200px !important;
  }
  #travelInfo #ti-writeModal .ti-submit-area {
    order: 60;
    margin-top: 16px;
    padding-top: 12px;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  #travelInfo #ti-writeModal .ti-write-modal-content {
    width: calc(100vw - 12px) !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
  #travelInfo #ti-writeModal .ti-modal-title {
    font-size: 1.08rem;
  }
  #travelInfo #ti-writeModal .ti-draft-toggle {
    min-width: 86px;
    padding: 8px 10px;
    font-size: 0.72rem;
  }
  #travelInfo #ti-writeModal .ti-library-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Fixed desktop write-pane width so library expand does not shrink editor ===== */
@media (min-width: 981px) {
  #travelInfo .ti-write-modal-content {
    width: min(calc(100vw - 56px), 900px);
  }
  #travelInfo .ti-write-modal-content.is-library-expanded {
    width: min(calc(100vw - 56px), 1220px);
  }
  #travelInfo .ti-write-shell,
  #travelInfo .ti-write-shell.is-library-collapsed {
    grid-template-columns: minmax(0, 744px) 34px 0px;
    gap: 0 20px;
  }
  #travelInfo .ti-write-shell.is-library-expanded {
    grid-template-columns: minmax(0, 744px) 34px minmax(320px, 360px);
    gap: 0 20px;
  }
  #travelInfo .ti-write-main,
  #travelInfo .ti-write-main-topbar,
  #travelInfo .ti-submit-area,
  #travelInfo .ti-place-info-grid,
  #travelInfo .ti-editor-group,
  #travelInfo .ti-editor-helper {
    width: 744px;
    max-width: 744px;
  }
  #travelInfo .ti-write-shell.is-library-expanded .ti-write-main,
  #travelInfo .ti-write-shell.is-library-expanded .ti-write-main-topbar,
  #travelInfo .ti-write-shell.is-library-expanded .ti-submit-area,
  #travelInfo .ti-write-shell.is-library-collapsed .ti-write-main,
  #travelInfo .ti-write-shell.is-library-collapsed .ti-write-main-topbar,
  #travelInfo .ti-write-shell.is-library-collapsed .ti-submit-area,
  #travelInfo .ti-write-modal-content.is-food-mode .ti-write-main,
  #travelInfo .ti-write-modal-content.is-food-mode .ti-submit-area {
    width: 744px;
    max-width: 744px;
  }
}
