/* ============================================================
   카페 상세 (2026-11-06 재설계)
   참고한 흐름: 네이버 플레이스·애플 지도 장소 카드·에어비앤비 숙소 상세
   - 지도 히어로 위로 둥근 시트가 겹쳐 올라온다
   - 빠른 동작 4개, "내 카공 노트"가 첫 섹션, 아래 고정 버튼
   색·간격은 tokens.css 변수만 쓴다
   ============================================================ */

body.page-place { display: block; overflow-y: auto; min-height: 100dvh; background: var(--surface-page); }
body.page-place main { flex: none; padding: 0; }
body.page-place main.container { padding: 0; max-width: 100%; }
body.page-place .toast-container { bottom: calc(var(--safe-bottom) + 96px); }
body.sheet-open { overflow: hidden; }

.place {
    --place-max: 640px;
    --sheet-pad: 20px;
    position: relative;
    max-width: var(--place-max);
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--surface-card);
    color: var(--text-normal);
}

/* ---------- 상단 바 ---------- */
.place-topbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--place-max);
    z-index: 30;
    display: grid;
    grid-template-columns: 40px 1fr 40px 40px;
    align-items: center;
    gap: 8px;
    padding: calc(var(--safe-top) + 8px) 12px 8px;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}
.place-topbar-title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: var(--font-md);
    font-weight: var(--weight-bold);
    color: var(--text-strong);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}
.place-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-card);
    color: var(--text-strong);
    box-shadow: 0 2px 10px rgba(25, 31, 40, 0.16);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast), box-shadow var(--transition-base), transform var(--transition-fast);
}
.place-icon-btn:active { transform: scale(0.94); }
.place-topbar.is-solid { background: var(--surface-card); box-shadow: 0 1px 0 var(--line); }
.place-topbar.is-solid .place-topbar-title { opacity: 1; transform: none; }
.place-topbar.is-solid .place-icon-btn { box-shadow: none; background: transparent; }
[data-save].is-saved { color: var(--brand); }
[data-save].is-saved .save-svg { fill: currentColor; }

/* ---------- 히어로 ---------- */
.place-hero {
    position: relative;
    height: calc(var(--safe-top) + 272px);
    background: var(--surface-sunken);
    overflow: hidden;
}
/* 네이버 지도가 컨테이너를 position:relative 로 바꾸므로 크기는 width/height 로 준다 */
.place-hero-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.place-hero::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 96px;
    background: linear-gradient(rgba(25, 31, 40, 0.22), transparent);
    pointer-events: none;
}
.place-hero--plain {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(120% 90% at 30% 20%, var(--brand-weak), var(--surface-sunken));
}
.place-hero-art { color: var(--brand); opacity: 0.55; }
.place-hero-open {
    position: absolute;
    right: 14px;
    bottom: 40px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    box-shadow: var(--shadow-md);
    color: var(--text-strong);
    font-size: var(--font-sm);
    font-weight: var(--weight-bold);
    text-decoration: none;
}
.place-pin {
    width: 36px;
    height: 44px;
    position: relative;
    filter: drop-shadow(0 4px 6px rgba(25, 31, 40, 0.3));
}
.place-pin::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--brand);
    transform: rotate(-45deg);
}
.place-pin span {
    position: absolute;
    left: 11px;
    top: 11px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
}

/* ---------- 시트 ---------- */
.place-sheet {
    position: relative;
    z-index: 3;
    margin-top: -24px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--surface-card);
    padding-bottom: calc(var(--safe-bottom) + 104px);
}
.place-head { padding: 26px var(--sheet-pad) 4px; }
.place-eyebrow { margin: 0 0 4px; font-size: var(--font-sm); color: var(--text-weak); }
.place-name {
    margin: 0;
    font-size: var(--font-2xl);
    font-weight: var(--weight-heavy);
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text-strong);
    word-break: keep-all;
}
.place-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.place-open { font-size: var(--font-sm); color: var(--text-weak); margin-right: 4px; }
.place-open b { font-weight: var(--weight-bold); }
.place-open.is-open b { color: var(--success-text); }
.place-open.is-closed b { color: var(--danger-text); }
.place-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-sunken);
    font-size: var(--font-xs);
    font-weight: var(--weight-bold);
    color: var(--text-normal);
}
.place-pill .icon { color: #F5B400; }
.place-pill--brand { background: var(--brand-weak); color: var(--brand-strong); }
.place-pill--brand .icon { color: currentColor; }
.place-sub { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; font-size: var(--font-sm); color: var(--text-normal); }
.place-sub .icon { color: var(--text-weak); }

/* 빠른 동작 */
.place-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 20px 12px 24px;
}
.place-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: var(--font-xs);
    font-weight: var(--weight-medium);
    color: var(--text-normal);
    text-decoration: none;
    cursor: pointer;
}
.place-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--surface-sunken);
    color: var(--text-strong);
    transition: transform var(--transition-fast), background var(--transition-fast);
}
.place-action:active .place-action-icon { transform: scale(0.93); }
.place-action.is-saved .place-action-icon { background: var(--brand-weak); color: var(--brand); }
.place-action.is-disabled { opacity: 0.4; cursor: default; }

/* 섹션 공통: 섹션 사이는 굵은 회색 띠 */
.place-section { padding: 24px var(--sheet-pad); border-top: 8px solid var(--surface-page); }
.place-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.place-section-head h2 { margin: 0; font-size: var(--font-lg); font-weight: var(--weight-heavy); letter-spacing: -0.02em; color: var(--text-strong); }
.place-section-note { font-size: var(--font-xs); color: var(--text-weak); }
.place-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--brand-weak);
    color: var(--brand-strong);
    font: inherit;
    font-size: var(--font-sm);
    font-weight: var(--weight-bold);
    cursor: pointer;
}

/* ---------- 내 카공 노트 ---------- */
.notes-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: var(--radius-md);
    background: var(--surface-sunken);
    padding: 14px 4px;
}
.notes-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.notes-stat + .notes-stat { border-left: 1px solid var(--line); }
.notes-stat-num { font-size: var(--font-xl); font-weight: var(--weight-heavy); color: var(--text-strong); letter-spacing: -0.02em; }
.notes-stat-num small { font-size: var(--font-sm); font-weight: var(--weight-bold); margin-left: 1px; }
.notes-stat-label { font-size: var(--font-xs); color: var(--text-weak); }

.notes-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.notes-metric {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-sunken);
}
.notes-metric-icon {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--surface-card);
}
.notes-metric-label { font-size: var(--font-xs); color: var(--text-weak); }
.notes-metric-value { font-size: var(--font-md); font-weight: var(--weight-heavy); color: var(--text-strong); }
.notes-metric.tone-good { background: var(--success-bg); }
.notes-metric.tone-good .notes-metric-icon, .notes-metric.tone-good .notes-metric-value { color: var(--success-text); }
.notes-metric.tone-mid { background: var(--warning-bg); }
.notes-metric.tone-mid .notes-metric-icon, .notes-metric.tone-mid .notes-metric-value { color: var(--warning-text); }
.notes-metric.tone-bad { background: var(--danger-bg); }
.notes-metric.tone-bad .notes-metric-icon, .notes-metric.tone-bad .notes-metric-value { color: var(--danger-text); }
.notes-metric.tone-none .notes-metric-value { font-size: var(--font-sm); font-weight: var(--weight-medium); color: var(--text-weak); }
.notes-metric.tone-none .notes-metric-icon { color: var(--text-weak); }

.notes-timeline { margin-top: 20px; }
.note-entry { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.note-entry-rail { position: relative; display: flex; justify-content: center; }
.note-entry-rail::before { content: ''; position: absolute; top: 18px; bottom: -6px; width: 2px; background: var(--line); }
.note-entry:last-child .note-entry-rail::before { display: none; }
.note-entry-dot { position: relative; margin-top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-weak); }
.note-entry-main { display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; min-width: 0; }
.note-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.note-entry-date { font-size: var(--font-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
.note-entry-meta { font-size: var(--font-xs); color: var(--text-weak); }
.note-entry-src { font-size: 11px; font-weight: var(--weight-bold); color: #7C3AED; background: rgba(124, 58, 237, 0.1); padding: 1px 6px; border-radius: 6px; }
.note-entry-rating { margin-left: auto; font-size: 14px; letter-spacing: 1px; color: var(--grey-300); }
.note-entry-rating .on { color: #F5B400; }
.note-entry-title { margin: 0; font-size: var(--font-md); font-weight: var(--weight-bold); color: var(--text-strong); word-break: keep-all; }
.note-entry-body { margin: 0; font-size: var(--font-base); line-height: 1.65; color: var(--text-normal); white-space: pre-line; overflow-wrap: anywhere; }
.note-entry-chips, .note-entry-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.note-entry-tags span { font-size: var(--font-sm); color: var(--brand); }
.note-entry-edit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: var(--font-sm);
    color: var(--text-weak);
    cursor: pointer;
}
.tone-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: var(--font-xs);
    font-weight: var(--weight-bold);
    background: var(--surface-sunken);
    color: var(--text-normal);
}
.tone-chip.tone-good { background: var(--success-bg); color: var(--success-text); }
.tone-chip.tone-mid { background: var(--warning-bg); color: var(--warning-text); }
.tone-chip.tone-bad { background: var(--danger-bg); color: var(--danger-text); }

.notes-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    border: 1.5px dashed var(--line-strong);
}
.notes-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-weak); color: var(--brand); margin-bottom: 4px; }
.notes-empty-title { margin: 0; font-size: var(--font-md); font-weight: var(--weight-bold); color: var(--text-strong); }
.notes-empty-desc { margin: 0 0 8px; font-size: var(--font-sm); line-height: 1.6; color: var(--text-weak); word-break: keep-all; }
.notes-empty-desc code { font-size: 12px; background: var(--surface-sunken); padding: 1px 5px; border-radius: 5px; }
.notes-empty-desc a { color: var(--brand); font-weight: var(--weight-bold); }

/* ---------- 영업시간 ---------- */
.hours summary { list-style: none; }
.hours summary::-webkit-details-marker { display: none; }
.hours-today {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--surface-sunken);
    cursor: pointer;
}
.hours-today-day { font-size: var(--font-sm); color: var(--text-weak); }
.hours-today-time { flex: 1; font-size: var(--font-md); font-weight: var(--weight-bold); color: var(--text-strong); }
.hours-toggle { display: inline-flex; color: var(--text-weak); transition: transform var(--transition-base); }
.hours[open] .hours-toggle { transform: rotate(90deg); }
.hours-week { list-style: none; margin: 8px 0 0; padding: 4px 16px; }
.hours-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: var(--font-base); color: var(--text-normal); }
.hours-row + .hours-row { border-top: 1px solid var(--line); }
.hours-row.is-today { font-weight: var(--weight-bold); color: var(--brand-strong); }
.hours-text { margin: 0; font-size: var(--font-base); color: var(--text-normal); white-space: pre-line; }

/* ---------- 정보 ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-icon { display: inline-flex; color: var(--text-weak); flex-shrink: 0; }
.info-text { flex: 1; min-width: 0; font-size: var(--font-base); line-height: 1.5; color: var(--text-strong); text-decoration: none; word-break: keep-all; }
a.info-text { color: var(--text-strong); }
.info-action {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    font: inherit;
    font-size: var(--font-xs);
    font-weight: var(--weight-bold);
    color: var(--text-normal);
    cursor: pointer;
}
.info-chevron { display: inline-flex; color: var(--text-weak); }

/* ---------- 리뷰 요약 (가로로 넘기기) ---------- */
.summary-rail {
    display: flex;
    gap: 10px;
    margin: 0 calc(-1 * var(--sheet-pad));
    padding: 2px var(--sheet-pad) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.summary-rail::-webkit-scrollbar { display: none; }
.summary-card {
    flex: 0 0 min(78%, 300px);
    scroll-snap-align: start;
    margin: 0;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--surface-sunken);
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--text-normal);
    word-break: keep-all;
}
.summary-quote { display: block; height: 22px; font-size: 36px; line-height: 1; font-weight: var(--weight-heavy); color: var(--brand); opacity: 0.5; }

/* ---------- 블로그 ---------- */
.blog-rail { display: flex; flex-direction: column; gap: 8px; }
.blog-summary { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle, #F2F4F6); color: var(--text-strong, #191F28); font-size: 14px; line-height: 1.45; }
.blog-summary svg { flex: none; margin-top: 2px; color: var(--brand, #3182F6); }
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: background var(--transition-fast);
}
.blog-card:active { background: var(--surface-sunken); }
.blog-card-title { font-size: var(--font-base); font-weight: var(--weight-bold); color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-desc { font-size: var(--font-sm); line-height: 1.5; color: var(--text-normal); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { font-size: var(--font-xs); color: var(--text-weak); }
.blog-skel {
    height: 84px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--surface-page) 50%, var(--surface-sunken) 75%);
    background-size: 200% 100%;
    animation: place-shimmer 1.3s infinite linear;
}
@keyframes place-shimmer { to { background-position: -200% 0; } }

/* ---------- 버튼 ---------- */
.place-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: var(--font-md);
    font-weight: var(--weight-bold);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}
.place-btn:active { transform: scale(0.98); }
.place-btn:disabled { opacity: 0.6; cursor: default; }
.place-btn--primary { background: var(--brand); color: var(--on-brand); }
.place-btn--primary:hover { background: var(--brand-strong); }
.place-btn--block { flex: 1; width: 100%; }

/* ---------- 아래 고정 버튼 ---------- */
.place-cta {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: var(--place-max);
    padding: 12px 16px calc(var(--safe-bottom) + 12px);
    background: linear-gradient(to top, var(--surface-card) 78%, rgba(255, 255, 255, 0));
}
[data-theme="dark"] .place-cta { background: linear-gradient(to top, var(--surface-card) 78%, rgba(30, 33, 37, 0)); }
.place-cta-save {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    color: var(--text-strong);
    cursor: pointer;
}

/* ---------- 방문 기록 바텀시트 ---------- */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(25, 31, 40, 0);
    transition: background var(--transition-base);
}
.sheet-backdrop[hidden] { display: none; }
.sheet-backdrop.is-open { background: var(--surface-overlay); }
.sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--place-max, 640px);
    max-height: calc(100dvh - var(--safe-top) - 24px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--surface-card);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
}
.sheet-backdrop.is-open .sheet { transform: none; }
.sheet-grabber { width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--line-strong); flex-shrink: 0; }
.sheet-head { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 6px 12px 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; touch-action: none; }
.sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--text-strong); cursor: pointer; }
.sheet-head-text { min-width: 0; text-align: center; }
.sheet-head h2 { margin: 0; font-size: var(--font-md); font-weight: var(--weight-heavy); color: var(--text-strong); }
.sheet-head-sub { margin: 0; font-size: var(--font-xs); color: var(--text-weak); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sheet-draft { min-width: 40px; font-size: 11px; color: var(--text-weak); text-align: right; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 16px; }
.sheet-foot { flex-shrink: 0; padding: 10px 16px calc(var(--safe-bottom) + 12px); border-top: 1px solid var(--line); }
.sheet-error { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger-text); font-size: var(--font-sm); }
.sheet-delete { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: var(--font-sm); color: var(--danger-text); cursor: pointer; }
.sheet-delete[hidden] { display: none; }

.field { margin: 0; padding: 18px 0 0; border: 0; min-width: 0; }
.field-label { display: block; padding: 0; margin-bottom: 10px; font-size: var(--font-sm); font-weight: var(--weight-bold); color: var(--text-strong); }
/* fieldset 의 legend 는 테두리 위에 얹히므로 일반 블록처럼 흐르게 한다 */
.field > legend.field-label { float: left; width: 100%; }
.field > legend.field-label + * { clear: both; }
.field-hint { font-weight: var(--weight-regular); color: var(--text-weak); font-size: var(--font-xs); margin-left: 4px; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row--wrap { flex-wrap: wrap; overflow: visible; }
.chip-row--tight { gap: 6px; margin-left: auto; }
.chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    font: inherit;
    font-size: var(--font-sm);
    font-weight: var(--weight-medium);
    color: var(--text-normal);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.chip.is-on { background: var(--text-strong); border-color: var(--text-strong); color: var(--surface-card); font-weight: var(--weight-bold); }
.chip--sm { height: 32px; padding: 0 10px; font-size: var(--font-xs); }
.chip--tag.is-on { background: var(--brand-weak); border-color: var(--brand); color: var(--brand-strong); }
.chip--input { padding-right: 6px; }
.chip--input input { border: 0; background: none; font: inherit; font-size: var(--font-sm); color: inherit; width: 128px; }
.chip--input.is-on input { color: var(--surface-card); color-scheme: dark; }
.chip--add { border-style: dashed; color: var(--text-weak); }
.chip--add input { border: 0; background: none; font: inherit; font-size: var(--font-sm); color: var(--text-strong); width: 84px; outline: none; }

.stars { display: flex; align-items: center; gap: 2px; }
.star {
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    padding: 0;
    font-size: 36px;
    line-height: 1;
    color: var(--grey-200);
    cursor: pointer;
    transition: transform 0.12s var(--ease-out), color var(--transition-fast);
}
[data-theme="dark"] .star { color: var(--surface-sunken); }
.star.is-on { color: #F5B400; }
.star:active { transform: scale(1.18); }
.stars-caption { margin-left: 10px; font-size: var(--font-sm); font-weight: var(--weight-bold); color: var(--text-weak); }

.seg-row { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 10px; }
.seg-label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-sm); color: var(--text-normal); }
.seg-label .icon { color: var(--text-weak); }
.seg { display: flex; gap: 6px; }
.seg-opt {
    flex: 1;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface-card);
    font: inherit;
    font-size: var(--font-sm);
    font-weight: var(--weight-medium);
    color: var(--text-normal);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform 0.1s;
}
.seg-opt:active { transform: scale(0.97); }
.seg-opt.is-on { font-weight: var(--weight-bold); }
.seg-opt.tone-good.is-on { background: var(--success-bg); border-color: var(--success); color: var(--success-text); }
.seg-opt.tone-mid.is-on { background: var(--warning-bg); border-color: var(--warning); color: var(--warning-text); }
.seg-opt.tone-bad.is-on { background: var(--danger-bg); border-color: var(--danger); color: var(--danger-text); }

.stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stepper-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface-card);
    font-size: 22px;
    line-height: 1;
    color: var(--text-strong);
    cursor: pointer;
}
.stepper-value { min-width: 64px; text-align: center; font-size: var(--font-lg); font-weight: var(--weight-heavy); color: var(--text-strong); }

.text-input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface-card);
    font: inherit;
    font-size: var(--font-md);
    color: var(--text-strong);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.text-input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus-ring); }
.text-area { resize: none; line-height: 1.6; min-height: 112px; }

/* 넓은 화면: 시트는 가운데 대화상자, 지도 히어로는 조금 더 높게 */
@media (min-width: 720px) {
    .place { box-shadow: 0 0 0 1px var(--line); }
    .place-hero { height: 320px; }
    .sheet-backdrop { align-items: center; }
    .sheet { max-width: 520px; max-height: 88vh; border-radius: var(--radius-xl); transform: translateY(24px); opacity: 0; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
    .sheet-backdrop.is-open .sheet { transform: none; opacity: 1; }
    .sheet-grabber { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sheet, .sheet-backdrop, .place-topbar, .place-topbar-title { transition: none; }
    .blog-skel { animation: none; }
}
