@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT/fonts/variable/woff2/SUIT-Variable.css");

:root {
  --ink: #171717;
  --muted: #6f6f6a;
  --line: #e5e1d8;
  --soft: #f0eee4;
  --paper: #ffffff;
  --cream: #fbfaf7;
  --teal: #465739;
  --teal-dark: #2f3d2b;
  --olive-light: #758565;
  --olive-soft: #f1f3ea;
  --sage: #ccd5b8;
  --coral: #5f6d4e;
  --yellow: #8b9867;
  --green: #465739;
  --blue: #465739;
  --warm: #f6f4ef;
  --shadow: 0 10px 24px rgba(70, 87, 57, 0.055);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "SUIT Variable", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(90, 107, 61, 0.24);
  outline-offset: 3px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px clamp(12px, 2.8vw, 28px);
  background: rgba(251, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  cursor: pointer;
}

.brand-logo {
  display: block;
  width: auto;
  height: 32px;
  object-fit: contain;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 520;
  white-space: nowrap;
}

.nav-link.icon-nav {
  width: 38px;
  padding: 0;
}

.nav-link svg,
button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-link.active {
  color: var(--teal-dark);
  background: var(--warm);
  border-color: var(--line);
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3.4vw, 36px);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.home-view {
  padding: 0;
}

.home-hero {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 18px auto 34px;
  padding: clamp(38px, 7vw, 74px) 18px 32px;
  text-align: center;
}

.home-kicker {
  margin: 0;
  padding: 6px 10px;
  color: var(--teal-dark);
  background: var(--warm);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 560;
  line-height: 1.08;
}

.home-hero h1 span {
  color: var(--teal-dark);
}

.home-hero p:not(.home-kicker) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.service-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.service-card:hover {
  border-color: var(--sage);
  transform: none;
}

.service-card strong {
  font-size: 20px;
  font-weight: 650;
}

.service-card span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--teal-dark);
  background: var(--warm);
  border-radius: 8px;
}

.primary-service {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.primary-service span:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.primary-service .service-icon {
  color: var(--teal-dark);
  background: var(--cream);
}

.home-summary-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0 calc(0px - clamp(18px, 4vw, 42px)) 34px;
  background: var(--olive-soft);
  border-block: 1px solid var(--line);
}

.home-summary-band div {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 22px 12px;
  background: var(--warm);
}

.home-summary-band strong {
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 600;
}

.home-summary-band span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.view-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.view-title.compact {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 650;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(25px, 2.9vw, 36px);
  font-weight: 560;
  line-height: 1.16;
}

h2 {
  margin-bottom: 14px;
  font-size: 19px;
  font-weight: 620;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 620;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.75fr 1.45fr auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 580;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(90, 107, 61, 0.14);
}

input[type="range"] {
  accent-color: var(--teal);
}

.range-label {
  grid-template-columns: 1fr auto;
}

.range-label input {
  grid-column: 1 / -1;
  min-height: 28px;
  padding: 0;
}

.detail-filter-trigger {
  display: inline-flex;
  align-items: center;
  align-self: end;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--teal-dark);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.detail-filter-trigger.active {
  color: #fff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.detail-filter-trigger svg {
  width: 15px;
  height: 15px;
}

.advanced-filter-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  margin: -4px 0 18px;
  background: rgba(250, 248, 243, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.advanced-filter-panel[hidden] {
  display: none;
}

.advanced-filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.advanced-filter-header h2 {
  margin-bottom: 0;
}

.advanced-filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.4fr;
  gap: 14px;
}

.advanced-filter-grid fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.advanced-filter-grid legend {
  padding: 0 4px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 650;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.check-card input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--teal-dark);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.35fr);
  gap: 18px;
  align-items: start;
}

.map-panel {
  position: sticky;
  top: 86px;
  height: 620px;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(90, 107, 61, 0.18), transparent 30%),
    linear-gradient(40deg, rgba(167, 189, 120, 0.26), transparent 34%),
    var(--olive-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.naver-map-canvas,
.map-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.naver-map-canvas {
  z-index: 1;
  background: var(--olive-soft);
}

.map-fallback {
  z-index: 2;
}

.map-panel.map-ready .map-fallback {
  display: none;
}

.map-panel.map-ready .naver-map-canvas {
  z-index: 2;
}

.food-map {
  background:
    linear-gradient(130deg, rgba(127, 155, 86, 0.2), transparent 30%),
    linear-gradient(40deg, rgba(227, 233, 209, 0.62), transparent 34%),
    var(--warm);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 107, 61, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 107, 61, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
}

.map-panel::before,
.map-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.8;
}

.map-panel::before {
  width: 420px;
  height: 100px;
  top: 120px;
  left: -80px;
  background: rgba(90, 107, 61, 0.18);
  transform: rotate(-18deg);
}

.map-panel::after {
  width: 360px;
  height: 88px;
  right: -90px;
  bottom: 140px;
  background: rgba(167, 189, 120, 0.24);
  transform: rotate(22deg);
}

.map-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 74px;
  min-height: 54px;
  padding: 6px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(90, 107, 61, 0.26);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.map-marker::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

.marker-a {
  top: 22%;
  left: 54%;
}

.marker-b {
  top: 48%;
  left: 28%;
}

.marker-c {
  top: 63%;
  left: 66%;
}

.marker-d {
  top: 34%;
  left: 72%;
}

.map-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(250, 248, 243, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.map-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(280px, calc(100% - 32px));
  padding: 14px;
  color: var(--ink);
  background: rgba(250, 248, 243, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transform: translate(-50%, -50%);
}

.naver-map-marker {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 8px 10px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(90, 107, 61, 0.26);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.naver-map-marker.market {
  background: var(--olive-light);
  box-shadow: 0 12px 26px rgba(127, 155, 86, 0.28);
}

.naver-map-marker::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: inherit;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

.naver-map-marker span {
  font-size: 11px;
  font-weight: 550;
  opacity: 0.9;
}

.naver-map-info {
  min-width: 170px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.45;
}

.naver-map-info strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

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

.section-toolbar h2 {
  margin-bottom: 0;
}

.section-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 580;
}

.card-list {
  display: grid;
  gap: 12px;
}

.listing-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 178px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.listing-card img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
}

.listing-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.listing-meta,
.detail-meta,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--teal-dark);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 560;
}

.pill.warning {
  color: var(--teal-dark);
  background: var(--warm);
  border-color: var(--line);
}

.pill.success {
  color: var(--teal-dark);
  background: var(--olive-soft);
  border-color: var(--sage);
}

.listing-actions,
.complete-actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.price {
  font-size: 18px;
  font-weight: 700;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.primary-icon,
.pay-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 590;
}

.primary-btn {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.primary-btn:hover {
  background: var(--teal-dark);
}

.secondary-btn {
  color: var(--teal-dark);
  background: var(--warm);
  border-color: var(--line);
}

.ghost-btn {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.primary-icon {
  width: 44px;
  padding: 0;
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.stay-detail-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.stay-detail-title {
  max-width: 820px;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 560;
}

.stay-gallery-section {
  margin-bottom: 24px;
}

.stay-photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 10px;
  min-height: 420px;
}

.stay-main-photo,
.stay-side-photos img,
.photo-strip img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.stay-main-photo {
  height: 100%;
  min-height: 420px;
}

.stay-side-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stay-side-photos img {
  height: 205px;
}

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 190px);
  gap: 10px;
  overflow-x: auto;
  padding: 10px 2px 2px;
}

.photo-strip img {
  height: 112px;
}

.room-list-vertical {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.room-option-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(90, 107, 61, 0.08);
}

.room-option-card > img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.room-option-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.mini-detail-block {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-detail-block strong {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 650;
}

.mini-detail-block span {
  color: var(--muted);
  font-size: 13px;
}

.detail-sections-bottom {
  margin-top: 10px;
}

.dash-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.dash-list li::before {
  content: "- ";
  color: var(--teal-dark);
  font-weight: 650;
}

.room-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.room-detail-title {
  margin-bottom: 8px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 560;
}

.room-reserve-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.room-reserve-card span {
  color: var(--muted);
  font-size: 13px;
}

.room-reserve-card strong {
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 650;
}

.room-reserve-card p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 18px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
  min-height: 360px;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.photo-grid img:first-child {
  grid-row: span 2;
}

.detail-intro {
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.info-panel,
.tool-panel,
.summary-panel,
.checkout-form,
.review-form {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.info-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.room-grid,
.product-grid,
.community-grid,
.mypage-grid,
.review-layout {
  display: grid;
  gap: 14px;
}

.room-grid {
  grid-template-columns: repeat(3, 1fr);
}

.room-card,
.product-card,
.mini-card,
.review-card,
.order-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.room-card img,
.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.room-card div,
.product-card div,
.mini-card,
.review-card,
.order-card {
  padding: 14px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.summary-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  border-bottom: 0;
  font-size: 18px;
  font-weight: 700;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-chip {
  min-height: 36px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--paper);
  border-color: var(--line);
}

.pay-chip.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.toss-ready-card,
.toss-widget-box,
.payment-main {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toss-ready-card strong {
  color: var(--teal-dark);
}

.toss-ready-card span,
.toss-widget-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.payment-main {
  padding: 18px;
  background: var(--paper);
  border-color: var(--line);
  box-shadow: none;
}

.toss-widget-box {
  min-height: 220px;
  align-content: start;
  background:
    linear-gradient(135deg, rgba(90, 107, 61, 0.1), transparent 42%),
    var(--warm);
}

.toss-widget-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 18px;
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.key-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.key-row code {
  color: var(--teal-dark);
  font-size: 13px;
  word-break: break-all;
}

.toss-widget-area {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toss-widget-area:empty {
  min-height: 54px;
  background:
    linear-gradient(90deg, var(--warm) 25%, var(--olive-soft) 37%, var(--warm) 63%);
  background-size: 400% 100%;
  animation: loading-stripe 1.4s ease infinite;
}

.toss-widget-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

@keyframes loading-stripe {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.plain-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.store-header {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-intro img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.market-intro-body {
  display: grid;
  align-content: start;
  gap: 12px;
}

.market-intro-body h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.market-controls {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 4px;
}

.market-reco {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 12px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-reco strong {
  font-size: 13px;
}

.market-reco span {
  color: var(--muted);
  font-size: 13px;
}

.market-products {
  display: grid;
  gap: 12px;
}

.store-header img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.category-tab {
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.category-tab.active {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: grid;
}

.product-card div {
  display: grid;
  gap: 9px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 1.1fr);
  gap: 18px;
}

.product-detail img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 8px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 40px 62px 40px;
  align-items: center;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-control button,
.quantity-control input {
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: #fff;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-row img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
}

.community-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.community-view-title {
  margin-bottom: 20px;
}

.recommend-tool-panel {
  display: block;
}

.recommend-tool-panel h2 {
  margin: 0 0 12px;
}

.recommend-tool-panel label {
  margin: 0;
}

.recommend-tool-panel label + label {
  margin-top: 12px;
}

.recommend-tool-panel .result-box {
  margin: 16px 0 0;
}

.tool-panel.wide {
  grid-column: 1 / -1;
}

.mini-card-list,
.review-feed {
  display: grid;
  gap: 10px;
}

.mini-card {
  display: grid;
  gap: 6px;
}

.activity-preview-details {
  display: grid;
  gap: 7px;
  margin-top: 4px;
  padding: 11px 12px;
  color: var(--teal-dark);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.activity-preview-line {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  font-size: 13px;
  line-height: 1.5;
}

.activity-preview-line svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}

.mini-card .reaction-line {
  margin-top: 4px;
}

.interactive-card {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.interactive-card:hover {
  border-color: var(--olive-light);
  box-shadow: var(--shadow);
}

.result-box {
  display: grid;
  gap: 12px;
  min-height: 184px;
  padding: 16px 16px 22px;
  margin-bottom: 10px;
  color: var(--teal-dark);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recommend-total {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.recommend-total span,
.recommend-row span {
  color: var(--muted);
  font-size: 13px;
}

.recommend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

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

.board-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 16px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.board-card:hover {
  border-color: var(--olive-light);
  box-shadow: var(--shadow);
}

.board-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.board-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-card li {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.board-card li span,
.reaction-line,
.card-reactions {
  color: var(--muted);
  font-size: 12px;
}

.reaction-line,
.card-reactions,
.comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-filter {
  margin-bottom: 18px;
}

.recreation-layout,
.board-detail-layout,
.post-detail-layout,
.account-layout,
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.activity-directory,
.board-post-list,
.mypage-hub,
.policy-list {
  display: grid;
  gap: 12px;
}

.support-case-history {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.support-case-item {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-case-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-case-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.activity-card,
.anonymous-post,
.post-detail-card,
.mypage-menu-card,
.policy-link,
.board-write-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-detail-card {
  padding: 0;
  overflow: hidden;
}

.post-detail-media {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.post-detail-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.post-detail-body h1 {
  margin: 0;
}

.post-media-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  gap: 8px;
  color: var(--muted);
  background: var(--warm);
  border: 1px dashed var(--sage);
  border-radius: 8px;
}

.post-media-placeholder svg {
  width: 34px;
  height: 34px;
}

.comment-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-list {
  display: grid;
  gap: 8px;
}

.comment-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-item strong {
  font-size: 12px;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr 44px;
}

.activity-card-head,
.post-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.activity-card-head > div,
.activity-card .card-reactions {
  padding-left: 9px;
}

.activity-note {
  margin-bottom: 0;
}

.activity-detail-description {
  padding-left: 0;
  margin-bottom: 2px;
}

.activity-detail-meta {
  margin-top: 2px;
}

.activity-media-chip {
  margin-top: 8px;
}

.stay-listing-card .listing-meta {
  margin-bottom: 14px;
}

.stay-listing-card .listing-body h3,
.stay-listing-card .listing-body p {
  margin-left: 9px;
}

.stay-listing-card .price {
  margin-left: 9px;
}

#myUsage > .back-btn,
#myGuide > .back-btn {
  margin-bottom: 20px;
}

.mypage-subpage-title {
  margin-bottom: 24px;
}

#recreation > .back-btn {
  margin-bottom: 18px;
}

#activityDetail > .back-btn {
  margin-bottom: 18px;
}

#activitySubmitForm .primary-btn {
  margin-top: 8px;
}

.media-chip,
.anonymous-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 10px;
  color: var(--teal-dark);
  background: var(--olive-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

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

.chat-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(360px, 1fr);
  min-height: 640px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.chat-list {
  display: grid;
  align-content: start;
  background: var(--warm);
  border-right: 1px solid var(--line);
}

.chat-thread {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.chat-thread.active {
  background: var(--olive-soft);
}

.chat-thread strong {
  font-size: 14px;
}

.chat-thread span {
  color: var(--muted);
  font-size: 12px;
}

.chat-room {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 640px;
}

.chat-room-header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  background: var(--cream);
}

.message-row {
  display: grid;
  gap: 4px;
  max-width: min(540px, 84%);
}

.message-row.user {
  justify-self: end;
  justify-items: end;
}

.message-row.owner {
  justify-self: start;
  justify-items: start;
}

.message-row.admin {
  justify-self: center;
  justify-items: center;
  max-width: 90%;
}

.bubble {
  max-width: min(520px, 78%);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.5;
}

.message-row .bubble {
  max-width: 100%;
}

.bubble.owner {
  justify-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
}

.bubble.user {
  justify-self: end;
  color: #fff;
  background: var(--teal);
}

.bubble.admin {
  justify-self: center;
  max-width: 90%;
  color: var(--teal-dark);
  background: var(--warm);
  border: 1px solid var(--line);
  font-size: 13px;
}

.read-status {
  color: var(--muted);
  font-size: 11px;
}

.attachment-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 8px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.chat-input {
  display: grid;
  grid-template-columns: 42px 1fr 44px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.attachment-btn {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--teal-dark);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.attachment-btn input {
  display: none;
}

.mypage-grid {
  grid-template-columns: 1fr 1fr;
}

.mypage-hub {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mypage-menu-card {
  min-height: 210px;
  align-content: start;
}

.mypage-menu-card i {
  width: 28px;
  height: 28px;
  color: var(--teal-dark);
}

.mypage-menu-card strong {
  font-size: 20px;
}

.mypage-menu-card span,
.policy-link span {
  color: var(--muted);
}

.danger-panel {
  border-color: #e7c8b8;
}

.policy-link {
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 74px;
}

.compact-list .listing-card {
  grid-template-columns: 1fr;
  min-height: auto;
}

.compact-list .listing-card img {
  display: none;
}

.review-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 1.1fr);
  align-items: start;
}

.review-form {
  display: grid;
  gap: 14px;
}

.rating-row {
  display: flex;
  gap: 6px;
}

.star-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.star-btn.active {
  color: #fff;
  background: var(--yellow);
  border-color: var(--yellow);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--paper);
  border-color: var(--line);
}

.tag-chip.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.review-card {
  display: grid;
  gap: 8px;
}

.review-score {
  color: var(--teal);
  font-weight: 700;
}

.complete-panel {
  display: grid;
  justify-items: center;
  max-width: 640px;
  margin: 10vh auto;
  padding: 36px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.complete-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}

.complete-icon svg {
  width: 34px;
  height: 34px;
}

.complete-icon.fail {
  background: var(--coral);
}

.complete-icon.cancel {
  background: var(--muted);
}

.payment-result-panel {
  max-width: 720px;
}

.result-details {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 10px 0 4px;
  text-align: left;
}

.result-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.result-detail-row strong {
  text-align: right;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 14px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 26px;
  color: var(--muted);
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--sage);
  border-radius: 8px;
}

@media (max-width: 1080px) {
  .filter-panel,
  .split-layout,
  .detail-hero,
  .detail-sections,
  .checkout-layout,
  .payment-layout,
  .advanced-filter-grid,
  .stay-photo-layout,
  .room-option-card,
  .room-detail-hero,
  .store-header,
  .market-intro,
  .market-controls,
  .product-detail,
  .community-grid,
  .mypage-grid,
  .review-layout,
  .recreation-layout,
  .board-detail-layout,
  .post-detail-layout,
  .account-layout,
  .guide-grid,
  .mypage-hub,
  .room-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .board-grid {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .summary-panel {
    position: relative;
    top: auto;
  }

  .map-panel {
    height: 420px;
    min-height: 420px;
  }

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

  .stay-main-photo {
    min-height: 340px;
  }

  .room-option-card > img {
    max-height: 280px;
  }
}

@media (max-width: 720px) {
  .app-header {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .header-left {
    width: auto;
    min-width: 86px;
  }

  .top-nav {
    width: auto;
    flex: 1;
    justify-content: flex-end;
  }

  .brand-logo {
    height: 28px;
  }

  .nav-link {
    min-height: 32px;
    padding: 0 7px;
    font-size: 13px;
  }

  main {
    padding: 16px;
  }

  .home-hero {
    align-items: start;
    justify-items: start;
    margin-top: 4px;
    padding: 34px 0 24px;
    text-align: left;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-hero-actions {
    justify-content: flex-start;
  }

  .home-service-grid,
  .home-summary-band {
    grid-template-columns: 1fr;
  }

  .home-summary-band {
    margin-inline: -16px;
  }

  .view-title {
    flex-direction: column;
  }

  .advanced-filter-header,
  .stay-detail-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-detail-grid,
  .stay-side-photos {
    grid-template-columns: 1fr;
  }

  .listing-card,
  .chat-shell,
  .cart-row {
    grid-template-columns: 1fr;
  }

  .listing-card img {
    height: 210px;
  }

  .photo-grid,
  .product-grid,
  .room-grid,
  .board-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .market-intro img {
    min-height: 220px;
  }

  .photo-grid img:first-child {
    grid-row: auto;
  }

  .chat-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-shell,
  .chat-room {
    min-height: 560px;
  }

  .cart-row img {
    width: 100%;
    height: 160px;
  }
}
