@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root {
  --paper: #f6f2e9;
  --panel: #fffdf8;
  --forest: #242e28;
  --muted: #50594f;
  --line: #d9d0c0;
  --serif: AppleMyungjo, Batang, "Noto Serif CJK KR", serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--forest); background: var(--paper); font: 16px/1.55 "Pretendard Variable", system-ui, sans-serif; word-break: keep-all; }
a { color: inherit; }
:focus-visible { outline: 2px solid #a16e30; outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav a { text-decoration: none; font-weight: 600; }
.nav .brand { font: 600 29px/1 var(--serif); }
.hero { background: linear-gradient(90deg, #161d18d9, #161d183b), url("assets/view.webp") center 54% / cover; color: white; }
.hero-copy { padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 10vw, 8rem); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.16; margin-bottom: .65rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.search, .dates { display: grid; grid-template-columns: 1fr 1fr .65fr auto; gap: .9rem; align-items: end; }
.search, .panel, .stay-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.search { position: relative; margin-top: -2.6rem; padding: 1.1rem; box-shadow: 0 8px 24px #242e2815; }
label { display: block; font-weight: 600; min-width: 0; }
input, button { font: inherit; }
input { display: block; width: 100%; min-width: 0; margin-top: .35rem; min-height: 46px; padding: .5rem .65rem; border: 1px solid #898c81; border-radius: 7px; background: white; color: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .55rem 1rem; border: 1px solid var(--forest); border-radius: 7px; background: var(--forest); color: white; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #3c5143; }
[hidden] { display: none !important; }
.results { padding-block: 2.75rem 4rem; }
.notice, .muted { color: var(--muted); font-size: .92rem; }
.notice { margin-top: .35rem; }
[role="status"]:not(:empty) { margin-block: .85rem; overflow-wrap: anywhere; }
.stay-card { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.stay-card img { display: block; width: 100%; height: 100%; min-height: 245px; object-fit: cover; }
.card-copy { padding: clamp(1.25rem, 4vw, 2.5rem); }
.card-copy h3 { font-size: 1.65rem; margin: .3rem 0; }
.price { font-weight: 650; margin: 1.2rem 0 .65rem; }
footer { border-top: 1px solid var(--line); padding: 1.1rem 0; color: var(--muted); }
.reservation { max-width: 800px; padding-block: 2.5rem 4rem; }
.reservation h1 { margin-top: .8rem; }
.panel { padding: clamp(1rem, 4vw, 1.6rem); margin-top: 1.4rem; }
.panel h2 { margin-bottom: .8rem; }
#lookup-form { display: flex; gap: .7rem; align-items: end; }
#lookup-form label { flex: 1; }
@media (max-width: 700px) {
  .search, .dates { grid-template-columns: 1fr 1fr; }
  .stay-card { grid-template-columns: 1fr; }
  .stay-card img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 380px) {
  .search, .dates { grid-template-columns: 1fr; }
}

#naver-map { height: 340px; margin-bottom: 1rem; border-radius: 8px; }
#map-panel .button { margin-top: .75rem; }
@media (min-width: 850px) {
  .search { grid-template-columns: 1.25fr 1fr 1fr .6fr auto; }
}

.platform-home {
  --paper: #f8f9f5;
  --panel: #fff;
  --forest: #21352c;
  --muted: #526359;
  --line: #dce4dc;
}
.platform-home .wrap { width: min(1220px, calc(100% - 64px)); }
.platform-home .top { background: var(--paper); border: 0; }
.platform-home .nav { min-height: 78px; }
.platform-home .brand { font-family: inherit; font-weight: 850; letter-spacing: -.09em; font-size: 32px; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 32px); font-size: .91rem; }
.nav-links a:hover, .map-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.account-link { border: 1px solid #b7c5ba; border-radius: 99px; padding: .55rem 1rem; }

.platform-home .hero {
  color: var(--forest);
  background: radial-gradient(ellipse at 84% 10%, #e3e9d2, transparent 55%), linear-gradient(110deg, #edf2e8, #eef3ec);
  border-radius: 24px;
  margin-inline: max(16px, calc((100% - 1392px) / 2));
}
.platform-home .hero-copy { text-align: center; padding-block: 3.25rem 4.9rem; }
.platform-home h1, .platform-home h2 { font-family: inherit; }
.platform-home h1 { font-weight: 820; font-size: clamp(2.6rem, 5.5vw, 4.55rem); letter-spacing: -.075em; }
.platform-home .hero-copy p { color: var(--muted); font-size: clamp(.95rem, 2vw, 1.12rem); }
.platform-home .search {
  padding: .85rem;
  align-items: stretch;
  gap: .6rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px #233a2911;
}
.platform-home .search label {
  padding: .55rem .8rem .4rem;
  border-radius: 9px;
  background: #f2f5ef;
  font-size: .81rem;
}
.platform-home .search input {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 30px;
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
}
.platform-home button, .platform-home .button { border-radius: 9px; }
.platform-home .search button { padding-inline: clamp(1rem, 3vw, 2.1rem); }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.platform-home h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 780; letter-spacing: -.06em; }
.discovery-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 1.25rem; align-items: start; }
.discovery-layout .stay-card { grid-template-columns: 1fr; margin: 0; border-radius: 16px; }
.discovery-layout .stay-card img { aspect-ratio: 2.1; min-height: 0; object-position: center 49%; }
.discovery-layout .card-copy { padding: 1.3rem 1.45rem; }
.discovery-layout .card-copy h3 { margin: .25rem 0; font-size: 1.45rem; letter-spacing: -.05em; }
.discovery-layout .price { font-size: .93rem; margin-top: 1rem; }
.discovery-layout .panel { margin: 0; padding: 1rem; border-radius: 16px; }
.discovery-layout .panel h3 { margin: 0 0 .75rem; font-size: 1.05rem; }
.discovery-layout #naver-map { height: clamp(250px, 30vw, 390px); background: #edf2e8; }
.map-address, .map-link { font-size: .88rem; color: var(--muted); }
.map-link { display: inline-block; margin-top: .4rem; }
.map-stay-link { display: block; padding: .6rem .75rem; font-size: .85rem; font-weight: 650; }
.platform-home footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.no-map .discovery-layout { display: none; }

@media (max-width: 849px) {
  .platform-home .search { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .platform-home .search label:first-child { grid-column: span 2; }
  .platform-home .search button { grid-column: span 3; }
}
@media (max-width: 700px) {
  .platform-home .wrap { width: calc(100% - 32px); }
  .platform-home .nav { min-height: 64px; }
  .platform-home .hero-copy { padding-block: 2.6rem 4rem; }
  .platform-home .search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-home .search button { grid-column: auto; }
  .platform-home .results { padding-block: 2rem 2.8rem; }
  .discovery-layout { grid-template-columns: 1fr; }
  .discovery-layout #naver-map { height: 330px; }
}
.stay-list { display: grid; gap: 1rem; }
.stay-action { margin-top: .8rem; margin-inline-end: .8rem; }


.partner-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  border-radius: 16px;
  background: #eff8fa;
}
.partner-banner p { color: var(--muted); margin-top: .25rem; }
.partner-banner .button { gap: .5rem; }

.platform-home {
  --paper: #fff;
  --forest: #152d32;
  --muted: #526770;
  --line: #dce8eb;
}
.platform-home .nav { min-height: 76px; }
.platform-home .brand { color: #007483; letter-spacing: -.055em; }
.platform-home .hero {
  color: var(--forest);
  background: #eaf8fa;
  border-radius: 0;
  margin-inline: 0;
}
.platform-home .hero-copy { text-align: left; padding-block: clamp(2rem, 4vw, 3.7rem) 3.25rem; }
.platform-home .hero-copy h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }

.platform-home .search {
  margin-top: -1.6rem;
  gap: 0;
  box-shadow: 0 12px 28px #17384312;
}
.platform-home .search label {
  padding: .45rem .9rem;
  background: transparent;
  border-radius: 0;
  border-inline-end: 1px solid var(--line);
}
.platform-home .search label:focus-within { background: #f0fafb; }
.platform-home .search input { min-height: 34px; }
.platform-home .search button { margin-inline-start: .75rem; }
.platform-home .search button { background: #007483; }
.platform-home .search button:hover { background: #005e6a; }
.platform-home .results { padding-top: clamp(1.7rem, 3.5vw, 2.6rem); }

.discovery-layout .stay-card img { aspect-ratio: 2.35; }
.discovery-layout .card-copy { padding: 1.35rem 1.5rem; }
.discovery-layout .card-copy h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.listing-badge {
  display: inline-block;
  margin-bottom: .35rem;
  padding: .2rem .55rem;
  border-radius: 99px;
  background: #edf6f8;
  color: #365a63;
  font-size: .76rem;
  font-weight: 650;
}
@media (min-width: 701px) {
  .discovery-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .discovery-layout #map-panel { position: sticky; top: 1rem; }
  .discovery-layout #naver-map { height: clamp(300px, 55vh, 550px); }
}
@media (max-width: 700px) {
  .platform-home .hero-copy { padding-block: 1.9rem 3rem; }
  .platform-home .nav-links { gap: .65rem; font-size: .81rem; }
  .platform-home .brand { font-size: 25px; }
  .platform-home .account-link { padding-inline: .6rem; }
}

@media (max-width: 849px) {
  .platform-home .search { gap: .5rem; }
  .platform-home .search label {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding-inline: .65rem;
  }
  .platform-home .search button { margin-inline-start: 0; }
}

.platform-home .hero-copy h1 { font-size: clamp(1.75rem, 3vw, 2.65rem); word-break: keep-all; }
.platform-home .condition-search { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .65fr) auto; }
.platform-home .condition-search > label { grid-column: auto; }
.platform-home .condition-search > button { grid-column: auto; margin: 0; }
.platform-home .partner-nav { color: #006875; font-weight: 750; }
.search-details { grid-column: 1 / -1; padding: .55rem .7rem .1rem; border-top: 1px solid var(--line); }
.search-details summary { width: fit-content; cursor: pointer; color: #005e6a; font-weight: 700; }
.search-detail-fields { display: grid; grid-template-columns: 2fr 1fr; margin: .7rem 0; gap: .5rem; }
.condition-options { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .35rem .65rem; border: 0; min-width: 0; }
.condition-options legend { margin-bottom: .45rem; padding: 0; font-size: .83rem; font-weight: 700; }
.platform-home .condition-options label { display: inline-flex; position: relative; border: 0; padding: 0; background: transparent; }
.platform-home .condition-options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.condition-options span { display: inline-block; padding: .43rem .65rem; border: 1px solid var(--line); border-radius: 99px; }
.condition-options input:checked + span { background: #005e6a; color: white; border-color: #005e6a; }
.condition-options input:focus-visible + span { outline: 2px solid #007483; outline-offset: 2px; }
@media (max-width: 700px) {
  .platform-home .condition-search, .search-detail-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-home .condition-search > .destination-field { grid-column: 1 / -1; }
  .condition-options { margin-inline: .1rem; }
}

.stay-card:not(.has-cover) { grid-template-columns: 1fr; }
.listing-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.listing-gallery { display:grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap:.5rem; margin-top:.5rem; }
.discovery-layout .listing-gallery img { aspect-ratio: 4 / 3; height:auto; border-radius:6px; }

.platform-home .discovery-layout { grid-template-columns: minmax(0, 1fr); }
.platform-home .discovery-layout #map-panel { position: static; }
#map-panel[hidden], .inline-stay-map-canvas[hidden] { display: none; }
.platform-home .discovery-layout #naver-map { height: clamp(280px, 45vh, 450px); }
.map-toggle {
  flex: none;
  min-height: 40px;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--forest);
}
.map-toggle[aria-expanded="true"], .map-toggle:hover { background: var(--forest); color: white; }
.inline-stay-map { margin-top: .75rem; }
.inline-stay-map summary { width: fit-content; cursor: pointer; min-height: 34px; color: var(--forest); font-weight: 650; }
.inline-stay-map-canvas { height: 240px; margin-top: .25rem; border-radius: 10px; background: #edf2e8; }
.inline-stay-map-status:empty { display: none; }
.platform-home #directory-pagination { margin-top: 1rem; }

.map-stay-popup {
  width: min(18.5rem, calc(100vw - 5.5rem));
  border: 1px solid #d5e2e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px #18363d2b;
  overflow: hidden;
  color: var(--forest);
  font: 14px/1.45 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.map-stay-popup figure { margin: 0; background: #f0f5f5; }
.map-stay-popup img { display: block; width: 100%; height: 96px; object-fit: contain; }
.map-stay-popup figcaption { padding: .23rem .7rem; color: #4c6168; font-size: .68rem; }
.map-stay-copy { position: relative; padding: .8rem; }
.map-stay-copy h4 { margin: .12rem 1.6rem .35rem 0; font-size: 1rem; line-height: 1.25; }
.map-stay-copy p { margin: .24rem 0; }
.map-stay-category { color: #006879; font-weight: 700; font-size: .73rem; padding-right: 1.65rem; }
.map-stay-address { color: #475d65; font-size: .76rem; }
.map-stay-facts { color: #354f57; font-size: .76rem; }
.map-stay-price { font-weight: 750; }
.map-stay-close { position: absolute; top: .4rem; right: .4rem; width: 2rem; height: 2rem; padding: 0; display: grid; place-items: center; background: #edf4f5; color: #17353b; border: 0; border-radius: 50%; font-size: 1.25rem; }
.map-stay-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.map-stay-actions a { border: 1px solid #ccdce0; border-radius: 8px; padding: .4rem .55rem; color: #17434a; text-decoration: none; font-size: .75rem; font-weight: 650; }
.map-stay-actions a.map-stay-primary { background: #006879; color: white; border-color: #006879; }

.discovery-layout .stay-card > .listing-gallery {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
  margin: 0;
  padding: .5rem .65rem 0;
}
