:root {
    --bg: #ffffff;
    --section: #f0f7ff;
    --primary: #00aeef;
    --primary-dark: #0096d6;
    --text: #25211c;
    --muted: #6b7280;
    --border: #e5e7eb;
    --line: #f1f5f9;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --app-width: 680px;
    --font-scale: 1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans KR", sans-serif;
    font-size: calc(16px * var(--font-scale));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    min-height: 100dvh;
    width: 100%;
}

.app-frame {
    width: 100%;
    max-width: var(--app-width);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--bg);
    position: relative;
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 32px;
}

.page-no-nav {
    padding-bottom: 0;
}

.top-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    flex: 1;
    color: var(--primary-dark);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    background: var(--section);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hero {
    position: relative;
    padding: 50px 20px 250px;
    min-height: 580px;
    background: var(--bg);
    overflow: hidden;
}

.hero-art {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 500px;
    overflow: hidden;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
    display: block;
}

.hero-fade {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 42%;
    background: #ffffff;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero-title em {
    font-style: normal;
    color: var(--primary);
}

.hero-desc {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.hero-cta {
    margin-top: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-primary.block {
    width: 100%;
    min-height: 52px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.recommend-card {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    background: var(--bg);
    border: 1px solid #e8f4fd;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
    padding: 16px;
    z-index: 2;
}

.recommend-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.recommend-head h2 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.recommend-head a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.recommend-body {
    display: flex;
    gap: 14px;
}

.recommend-thumb {
    width: 110px;
    height: 140px;
    border-radius: 14px;
    background: var(--section);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recommend-thumb-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.recommend-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--section);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.timeline-item {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.timeline-dot {
    width: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 5px;
}

.timeline-dot i {
    flex: 1;
    width: 1px;
    background: #d1e9ff;
    margin: 2px 0;
}

.timeline-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.timeline-row time {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    min-width: 42px;
}

.section-block {
    padding: 24px 20px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.section-head a {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.empty-box {
    padding: 18px;
    border-radius: 16px;
    background: var(--section);
    border: 1px solid #e8f4fd;
}

.empty-box p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.place-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.place-scroll::-webkit-scrollbar {
    display: none;
}

.place-card {
    width: 148px;
    flex-shrink: 0;
    border-radius: 16px;
    border: 1px solid #e8f4fd;
    background: var(--bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.place-card-photo {
    height: 76px;
    background: var(--section);
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    font-size: 22px;
}

.place-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-card-body {
    padding: 7px 10px 8px;
}

.place-card-cat {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--section);
    color: var(--primary-dark);
    font-size: 9px;
    font-weight: 700;
}

.place-card-name {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-region {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-pin {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.profile-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--section);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.trip-info-mark,
.schedule-map-mark {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.trip-cover-fallback {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.site-footer {
    margin-top: 24px;
    padding: 36px 20px 32px;
    background: #f9fafb;
    text-align: center;
}

.site-footer.is-compact {
    padding-top: 24px;
    padding-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-footer.is-compact .footer-logo {
    width: 40px;
    height: 40px;
}

.footer-title {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    text-align: left;
}

.site-footer.is-compact .footer-title {
    font-size: 18px;
}

.footer-company {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.footer-copy {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.site-footer.is-compact .footer-copy {
    font-size: 12px;
    margin-top: 10px;
}

.footer-line {
    width: 32px;
    height: 1px;
    background: var(--border);
    margin: 22px auto 14px;
}

.site-footer.is-compact .footer-line {
    margin-top: 16px;
}

.footer-legal {
    margin: 0;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
}

.simple-page {
    padding: 24px 20px 0;
}

.simple-page h1 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
}

.simple-page p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.app-bar h1 {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.app-bar a {
    color: var(--text);
    font-size: 20px;
}

.plan-wrap {
    padding: 18px 20px 0;
}

.plan-title {
    margin: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.plan-sub {
    margin: 8px 0 30px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 300;
}

.plan-card {
    padding: 20px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
}

.progress-head span:last-child {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 300;
}

.progress-bar {
    height: 5px;
    border-radius: 99px;
    background: #f3f4f6;
    overflow: hidden;
    margin-bottom: 18px;
}

.progress-bar i {
    display: block;
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.2s ease;
}

.step-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.step-badge {
    flex: 1;
    padding: 12px 8px;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    background: #f9fafb;
    text-align: center;
}

.step-badge.is-active {
    border-color: #bae6fd;
    background: var(--section);
}

.step-badge-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    background: #e5e7eb;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.step-badge.is-active .step-badge-num {
    background: var(--primary);
    color: #fff;
}

.step-badge-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
}

.step-badge.is-active .step-badge-label {
    color: var(--primary-dark);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 300;
}

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

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pill {
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pill.is-selected {
    border-color: var(--primary);
    background: var(--section);
    color: var(--primary-dark);
}

.select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.select-box {
    padding: 15px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.select-box.is-selected {
    border-color: var(--primary);
    background: var(--section);
    color: var(--primary-dark);
}

.step-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.step-desc {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
}

.trip-summary {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 28px;
}

.day-block {
    margin-bottom: 8px;
}

.day-head {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.day-head strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.day-head span {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    padding-bottom: 2px;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.result-summary {
    padding: 18px;
    border-radius: 22px;
    background: var(--section);
    margin-bottom: 18px;
}

.result-summary p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 300;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chip {
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 11px;
    font-weight: 300;
}

.day-card {
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--bg);
}

.day-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.day-card-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
}

.day-card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.schedule-row {
    display: flex;
    gap: 10px;
    padding-top: 12px;
}

.schedule-time {
    width: 48px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.schedule-body h4 {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
}

.schedule-place {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.schedule-note {
    margin: 7px 0 0;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 300;
}

.schedule-photo {
    margin-top: 10px;
    width: 100%;
    border-radius: 14px;
    display: block;
}

.tips-card {
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
}

.tips-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
}

.tips-card li {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 300;
    margin-bottom: 8px;
}

.loading-card,
.error-card {
    padding: 58px 20px;
    border-radius: 22px;
    text-align: center;
}

.loading-card {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.error-card {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.trip-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.trip-list-head h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.trip-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.trip-meta strong {
    font-size: 14px;
}

.trip-sort select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
}

.trip-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 20px;
    border: 1px solid #e8f4fd;
    background: var(--bg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.trip-cover {
    width: 92px;
    height: 118px;
    border-radius: 14px;
    background: var(--section);
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    flex-shrink: 0;
    overflow: hidden;
}

.trip-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trip-card-body {
    flex: 1;
    min-width: 0;
}

.trip-card-title {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
}

.trip-card-title h2 {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.trip-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--section);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 12px;
}

.trip-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.trip-info span:first-child {
    color: var(--primary);
}

.trip-saved {
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.trip-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #bae6fd;
    background: var(--section);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.action-btn.danger {
    border-color: var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger);
}

.empty-trips {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--border);
    text-align: center;
}

.empty-trips-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e6f0ea;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 32px;
    margin: 0 auto 22px;
}

.empty-trips h2 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.empty-trips p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.form-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg);
    margin-bottom: 24px;
}

.form-card h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
}

.place-tile {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg);
}

.place-tile-photo {
    width: 92px;
    height: 92px;
    background: var(--section);
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.place-tile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-tile-body {
    flex: 1;
    padding: 12px;
    min-width: 0;
}

.place-tile-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.place-tile-body p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.place-delete {
    border: none;
    background: transparent;
    color: var(--danger);
    font-size: 18px;
    padding: 0 12px;
    cursor: pointer;
}

.settings-section {
    margin-bottom: 16px;
}

.settings-section h2 {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.settings-panel {
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg);
}

.settings-tile {
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.settings-tile:last-child {
    border-bottom: none;
}

.settings-tile-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--section);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-size: 16px;
}

.settings-tile-head strong {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
}

.settings-tile-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-weight: 700;
}

.profile-link span:first-child {
    color: var(--primary);
    font-size: 20px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    max-width: calc(var(--app-width) - 40px);
    width: max-content;
    padding: 12px 16px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    display: grid;
    place-items: end center;
    z-index: 90;
    padding: 0 0 env(safe-area-inset-bottom);
}

.modal-panel {
    width: 100%;
    max-width: var(--app-width);
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    padding: 20px;
}

.modal-panel h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}

.modal-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.modal-option.is-selected {
    color: var(--primary-dark);
}

.privacy-page h1 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.privacy-content {
    padding: 16px 20px 0;
}

.privacy-updated {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.privacy-intro {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

.privacy-section {
    margin-bottom: 24px;
}

.privacy-section h2 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.privacy-section p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.privacy-section a {
    color: var(--primary-dark);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.hidden {
    display: none !important;
}

.region-map-section {
    padding: 28px 20px 36px;
    background: var(--section);
    border-top: 1px solid var(--line);
}

.region-map-head {
    margin-bottom: 16px;
}

.region-map-head h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.region-map-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.region-map-frame {
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: var(--bg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.region-map {
    width: 100%;
    height: 400px;
    background: #eef6ff;
}

.region-map-empty {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.region-map-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.region-map-tags button {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    background: var(--bg);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.region-map-tags button:active {
    background: var(--section);
}

.region-map-pin-wrap {
    background: transparent;
    border: none;
}

.region-map-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.region-map-pin i {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 174, 239, 0.35);
}

.region-map-pin em {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid #dbeafe;
    color: var(--text);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.region-map .leaflet-control-zoom {
    border: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.region-map .leaflet-control-zoom a {
    width: 32px;
    height: 32px;
    line-height: 32px;
    color: var(--text);
    border-color: var(--border);
    font-size: 16px;
}

.region-map .leaflet-control-zoom a:hover {
    background: var(--section);
    color: var(--primary-dark);
}

.leaflet-popup-content-wrapper {
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    font-family: "Noto Sans KR", sans-serif;
}

.leaflet-popup-content {
    margin: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.region-map-popup strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.region-map-popup a {
    color: var(--primary-dark);
    font-weight: 700;
}

.regions-wrap {
    padding-bottom: 0;
}

.regions-page {
    padding: 16px 20px 0;
}

.regions-lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.regions-empty {
    padding: 40px 0;
    text-align: center;
}

.regions-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.regions-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.regions-filter-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.regions-filter-btn.is-active {
    border-color: #bae6fd;
    background: var(--section);
    color: var(--primary-dark);
}

.regions-block-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
}

.regions-type {
    margin-bottom: 28px;
}

.regions-type-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.regions-type-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.regions-type-head span {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--section);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.regions-type-empty {
    margin: 0;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px dashed var(--border);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.regions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.regions-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.regions-card-media {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--section);
}

.regions-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.regions-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.regions-card-body {
    flex: 1;
    min-width: 0;
}

.regions-card-body h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.regions-card-desc {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.regions-card-address {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 680px) {
    .app-frame {
        max-width: 100%;
    }
}
