:root {
  color-scheme: light;
  --page: #f7f7ef;
  --paper: #fffef9;
  --ink: #29352d;
  --muted: #5e6b5e;
  --accent: #afc8a9;
  --accent-soft: #e8efe3;
  --accent-hover: #c6d9bf;
  --local-accent: #ffda47;
  --rule: #d1d8c9;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 16px; line-height: 1.65; }
button, input, select { font: inherit; }
button, select { color: inherit; }
button, a, select, .feature-option { -webkit-tap-highlight-color: transparent; }
button, .feature-option { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
a { color: inherit; text-underline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 5; left: 16px; top: 12px; background: var(--accent); padding: 10px 16px; border: 2px solid var(--ink); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.page-shell { width: min(100% - 40px, 840px); margin-inline: auto; }
.site-header { padding-block: 30px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 23px; font-weight: 700; letter-spacing: -.6px; }
.brand strong { font-weight: 800; }
.brand-mark { width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.brand-mark svg { width: 20px; height: 20px; }
.local-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 0 8px 12px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.local-link:hover { text-decoration: underline; }
.local-link.local-link--button { flex-shrink: 0; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 9px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; text-decoration: none; }
.local-link--button:hover { background: var(--local-accent); }
.local-link--button:is(:hover, :focus-visible) .local-link-label { text-decoration: underline; }
.local-link--button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.intro { padding-block: 23px 32px; }
.intro h1 { font-size: 36px; font-weight: 800; line-height: 1.45; letter-spacing: -1.1px; word-break: keep-all; }
.intro mark { display: inline-block; color: var(--ink); background: var(--accent); padding-inline: 7px; border-radius: 5px; }
.intro p { margin-top: 13px; color: var(--muted); word-break: keep-all; }
.browse-layout { display: grid; gap: 38px; }
.search-panel { margin: 0; min-width: 0; display: grid; gap: 18px; padding: 22px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 168px; align-items: end; gap: 16px; }
.search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.search-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 600; }
.field select { appearance: none; width: 100%; min-width: 0; min-height: 48px; padding: 9px 42px 9px 14px; font-size: 16px; border: 1px solid var(--ink); border-radius: 7px; background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329352d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px; }
.search-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 9px; background: var(--accent); box-shadow: 3px 3px 0 var(--ink); font-size: 16px; font-weight: 700; }
.search-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-button:disabled { cursor: default; opacity: .6; box-shadow: none; }
.search-button:active, .empty-reset:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.feature-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; border: 0; min-width: 0; }
.filter-caption { margin-right: 2px; color: var(--muted); font-size: 14px; }
.feature-option { position: relative; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--ink); border-radius: 24px; background: var(--paper); font-size: 14px; }
.feature-option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.feature-check { display: none; }
.feature-option:has(input:checked) .feature-check { display: inline-block; }
.feature-option:has(input:checked) { background: var(--accent); font-weight: 600; }
.feature-option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.reset-button { min-height: 44px; margin: 0; padding: 8px 4px; border: 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.results { min-width: 0; }
.results-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.results-header h2 { font-size: 22px; font-weight: 700; letter-spacing: -.5px; line-height: 1.5; scroll-margin-top: 20px; }
.result-count { color: var(--muted); font-size: 14px; }
.result-context { margin-block: -9px 18px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.stay-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.stay-card { position: relative; isolation: isolate; min-width: 0; display: flex; flex-direction: column; padding: 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.stay-card:has(.stay-title-link:hover), .stay-card:has(.stay-title-link:focus-visible) { background: var(--accent-soft); box-shadow: 5px 5px 0 var(--ink); }
.stay-card:has(.stay-title-link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 5px; }
.stay-location { color: var(--muted); font-size: 13px; }
.stay-card h3 { margin-block: 5px 8px; font-size: 18px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.stay-title-link { text-decoration: none; }
.stay-title-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.stay-title-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.stay-title-link:focus-visible { outline: none; }
.stay-summary { margin-bottom: 14px; font-size: 14px; line-height: 1.65; }
.stay-card-footer { display: flex; margin-top: auto; }
.stay-card-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--accent); box-shadow: 2px 2px 0 var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.stay-card-arrow { font-size: 18px; line-height: 1; }
.results-note { margin-block: 0 17px; color: var(--muted); font-size: 14px; }
.pagination { margin-top: 26px; text-align: center; }
.pagination-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; }
.pagination-button { min-width: 44px; min-height: 44px; padding: 8px 11px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); font-size: 14px; }
.pagination-button[aria-current="page"] { background: var(--accent); font-weight: 700; }
.pagination-button:hover:not(:disabled):not([aria-current="page"]) { background: var(--accent-soft); }
.pagination-button:disabled { opacity: .45; box-shadow: none; cursor: default; }
.pagination-current { min-width: 54px; font-size: 14px; font-weight: 700; }
.pagination-gap { color: var(--muted); }
.pagination-range { margin-top: 12px; color: var(--muted); font-size: 13px; }
.scope-note { margin-top: 13px; color: var(--muted); font-size: 14px; }
.empty-state { padding: 30px 22px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.empty-state h3 { font-size: 18px; line-height: 1.6; }
.empty-state p { margin-block: 10px 20px; color: var(--muted); }
.empty-reset { min-height: 44px; padding: 8px 13px; background: var(--accent); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); font-weight: 600; }
.noscript-note { padding: 24px; border: 1px solid var(--ink); border-radius: 12px; }
.real-preview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 36px; padding: 20px 22px; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); }
.real-preview h2 { font-size: 16px; font-weight: 600; }
.real-preview p { margin-top: 5px; font-size: 14px; color: var(--muted); }
.real-preview a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; }
.local-section { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 38px; padding: 22px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.local-section-mark { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 9px; background: var(--page); }
.local-section-mark svg { width: 23px; height: 23px; }
.local-section h2 { min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.6; letter-spacing: -.3px; word-break: keep-all; overflow-wrap: anywhere; }
.local-section-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 9px; background: var(--local-accent); box-shadow: 3px 3px 0 var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.local-section-button:is(:hover, :focus-visible) .local-section-button-label { text-decoration: underline; }
.local-section-button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 22px; padding-block: 30px 32px; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { text-decoration: underline; }
.footer-nav .privacy-link { font-weight: 700; color: var(--ink); }
.footer-note { flex-basis: 100%; }
.document-page { padding-block: 25px 32px; }
.document-content { max-width: 720px; margin-inline: auto; line-height: 1.8; overflow-wrap: anywhere; }
.document-header { margin-bottom: 25px; }
.document-header h1 { font-size: 32px; line-height: 1.4; font-weight: 800; letter-spacing: -.7px; word-break: keep-all; }
.document-header mark { display: inline-block; background: var(--accent); color: var(--ink); padding-inline: 7px; border-radius: 5px; }
.document-lead { margin-top: 14px; color: var(--muted); }
.document-meta { margin-top: 12px; color: var(--muted); font-size: 14px; }
.document-content p + p { margin-top: 12px; }
.document-content section { margin-top: 32px; }
.document-content h2 { margin-bottom: 12px; font-size: 21px; line-height: 1.5; font-weight: 700; letter-spacing: -.3px; }
.document-notice { padding: 18px 20px; margin-block: 24px; border: 1px solid var(--ink); border-radius: 10px; background: var(--paper); }
.document-notice strong { font-size: 16px; font-weight: 700; }
.document-notice strong + p { margin-top: 8px; }
.document-steps { padding-left: 24px; margin-block: 0 16px; }
.document-steps li + li { margin-top: 8px; }
.definition-list { margin: 18px 0; }
.definition-list dt { font-weight: 700; margin-top: 18px; }
.definition-list dd { margin: 6px 0 0; }
.document-sources { padding-top: 24px; border-top: 1px solid var(--rule); }
.document-sources p { font-size: 14px; }

@media (min-width: 600px) and (max-width: 799px) {
  .stay-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-row { grid-template-columns: minmax(0, 1fr) 146px; gap: 12px; }
}

@media (max-width: 599px) {
  .page-shell { width: min(100% - 36px, 840px); }
  .site-header { padding-block: 22px 12px; gap: 12px; }
  .brand { font-size: 19px; gap: 8px; letter-spacing: -.5px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .intro { padding-block: 19px 26px; }
  .intro h1 { font-size: 29px; letter-spacing: -.7px; }
  .intro p { margin-top: 12px; }
  .browse-layout { gap: 30px; }
  .search-panel { padding: 18px 14px; gap: 16px; }
  .search-row { grid-template-columns: 1fr; gap: 16px; }
  .search-fields { gap: 10px; }
  .filter-caption { flex-basis: 100%; }
  .feature-option { padding-inline: 11px; }
  .results-header h2 { font-size: 21px; }
  .stay-list { grid-template-columns: 1fr; gap: 17px; }
  .stay-card { padding: 16px; }
  .real-preview { padding: 18px; }
  .local-section { grid-template-columns: 42px minmax(0, 1fr); margin-top: 31px; padding: 18px; gap: 16px 12px; }
  .local-section h2 { font-size: 16px; }
  .local-section-button { grid-column: 1 / -1; }
  .site-footer { padding-block: 24px; }
  .document-page { padding-block: 19px 20px; }
  .document-header h1 { font-size: 27px; }
  .document-content h2 { font-size: 20px; }
  .document-notice { padding: 16px; }
  .footer-nav { gap: 4px 16px; }
}

@media (max-width: 359px) {
  .page-shell { width: calc(100% - 32px); }
  .brand { font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; }
  .local-link { padding-left: 3px; }
  .local-link.local-link--button { gap: 6px; padding-inline: 8px; font-size: 13px; }
  .search-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .search-button:active, .empty-reset:active, .local-section-button:active, .local-link--button:active { transform: none; }
}

@media (forced-colors: active) {
  .field select { appearance: auto; background-image: none; padding-right: 10px; }
}
