/*
Theme Name: 프레스런 숙박 테마
Theme URI: https://presslearn.co.kr
Author: 로알남
Author URI: https://presslearn.co.kr
Description: 숙박 제휴마케팅 전용 테마. 글 하나에 숙소 하나 - 트립닷컴·아고다·야놀자 예약 버튼과 시설·위치 정보를 입력만 하면 완성됩니다.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: presslearn-stay
*/

:root {
  --ink: #17202c;
  --ink-soft: #4b5563;
  --ink-muted: #8b95a1;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --price: #e03131;
  --cta: #2b5ce6;
  --cta-dark: #1e46bd;
  --good-bg: #eef7ee;
  --good-text: #23662b;
  --bad-bg: #fdeeee;
  --bad-text: #9c2b2b;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 62px;
}
.site-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 18px; letter-spacing: -.01em;
  min-width: 0; flex-shrink: 0;
}
.site-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-logo img { width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; }

.header-search { flex: 1; max-width: 420px; }
.header-search form { display: flex; }
.header-search input[type="search"] {
  flex: 1; min-width: 0;
  font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-right: none;
  border-radius: 999px 0 0 999px;
  padding: 9px 18px; outline: none; background: var(--bg-alt);
}
.header-search input[type="search"]:focus { border-color: var(--cta); background: #fff; }
.header-search button {
  font: inherit; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--cta); border: none; cursor: pointer;
  padding: 0 18px; border-radius: 0 999px 999px 0;
}
.header-search button:hover { background: var(--cta-dark); }

/* ---------- home hero ---------- */
.home-hero { padding: 44px 0 10px; text-align: center; }
.home-hero h1 { font-size: 30px; letter-spacing: -.02em; }
.home-hero p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }

.cat-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding-top: 22px; padding-bottom: 6px;
}
.cat-chips a {
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; background: #fff;
  transition: all .12s ease;
}
.cat-chips a:hover, .cat-chips a.active {
  border-color: var(--cta); color: var(--cta); background: #eaf0fe;
}

/* ---------- product grid ---------- */
.archive-title { padding: 34px 0 0; font-size: 22px; }
.grid-section { padding: 26px 0 50px; }
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(23,32,44,.08); transform: translateY(-2px); }
.card-thumb { aspect-ratio: 1 / 1; background: var(--bg-alt); position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 12px; font-weight: 700; color: var(--cta);
  background: #eaf0fe; padding: 3px 10px; border-radius: 999px;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 12px; color: var(--ink-muted); }
.card-title {
  font-size: 15px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-rating { font-size: 13px; color: var(--ink-soft); }
.card-rating .stars { color: #f5a623; }
.card-price { margin-top: auto; padding-top: 6px; font-size: 17px; font-weight: 800; color: var(--price); }
.card-price small { font-size: 13px; font-weight: 600; }
.card-price .dc { color: var(--price); margin-right: 4px; }

.no-posts { padding: 60px 0; text-align: center; color: var(--ink-soft); }

/* pagination */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 6px 0 20px; }
.pagination .page-numbers {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px; padding: 0 10px;
}
.pagination .page-numbers.current { background: var(--cta); border-color: var(--cta); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--cta); color: var(--cta); }

/* ---------- single product ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 22px 0 0; font-size: 14px; color: var(--ink-soft);
}
.back-link:hover { color: var(--cta); }

.product-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  padding-top: 24px; padding-bottom: 40px; align-items: start;
}
.pt-media { position: sticky; top: 82px; min-width: 0; }
.pt-figure {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; aspect-ratio: 1 / 1; margin: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pt-figure img { width: 100%; height: 100%; object-fit: contain; }
.pt-thumbs .pt-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pt-info .badge {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--cta); background: #eaf0fe;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.pt-info h1 { font-size: 26px; line-height: 1.4; letter-spacing: -.02em; margin: 12px 0 0; }
.pt-info .subtitle { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.pt-info .rating { margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.pt-info .rating .stars { color: #f5a623; letter-spacing: 2px; margin-right: 6px; }
.pt-info .rating strong { color: var(--ink); }

.price-box { margin-top: 16px; }
.price-original { font-size: 14px; color: var(--ink-muted); text-decoration: line-through; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.discount { font-size: 22px; font-weight: 800; color: var(--price); }
.price-label { font-size: 14px; color: var(--ink-soft); }
.price { font-size: 32px; font-weight: 800; color: var(--price); letter-spacing: -.02em; }
.price small { font-size: 19px; font-weight: 700; }

.cta-btn {
  display: block; margin-top: 20px;
  background: var(--cta); color: #fff; text-align: center;
  font-size: 17px; font-weight: 700; padding: 16px 20px;
  border-radius: var(--radius);
  transition: background .15s ease, transform .1s ease;
}
.cta-btn:hover { background: var(--cta-dark); }
.cta-btn:active { transform: scale(.985); }
.cta-disclosure { margin-top: 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.cta-note { margin-top: 8px; font-size: 13px; color: var(--ink-muted); line-height: 1.8; }


/* ---------- single sections ---------- */
.section { padding: 36px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: 20px; letter-spacing: -.01em; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.section h2::before {
  content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--cta);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  text-align: left; font-weight: 500; color: var(--ink-soft);
  padding: 11px 8px; width: 30%; white-space: nowrap;
}
.spec-table td { padding: 11px 8px; font-weight: 600; }

.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc-card { border-radius: var(--radius); padding: 20px; font-size: 15px; }
.pc-card.good { background: var(--good-bg); }
.pc-card.bad { background: var(--bad-bg); }
.pc-card h3 { font-size: 15px; margin-bottom: 12px; }
.pc-card.good h3 { color: var(--good-text); }
.pc-card.bad h3 { color: var(--bad-text); }
.pc-card ul { list-style: none; }
.pc-card li { padding: 4px 0 4px 22px; position: relative; }
.pc-card.good li::before { content: "✓"; position: absolute; left: 0; color: var(--good-text); font-weight: 700; }
.pc-card.bad li::before { content: "✕"; position: absolute; left: 0; color: var(--bad-text); font-weight: 700; }

.review-body { font-size: 16px; color: #2c3540; }
.review-body p { margin-bottom: 1.1em; }
.review-body h2, .review-body h3 { margin: 1.6em 0 .6em; }
.review-body h2 { font-size: 20px; }
.review-body h3 { font-size: 18px; }
.review-body img { border-radius: 12px; margin: 1em 0; }
.review-body ul, .review-body ol { padding-left: 1.4em; margin-bottom: 1.1em; }

.final-cta { text-align: center; padding: 44px 0 52px; }
.final-cta p.lead { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.final-cta p.sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 4px; }
.final-cta .cta-btn { max-width: 480px; margin-left: auto; margin-right: auto; }

/* generic page */
.page-body { padding: 40px 0 60px; }
.page-body h1 { font-size: 26px; margin-bottom: 20px; }
.page-content { font-size: 16px; }
.page-content p { margin-bottom: 1.1em; }
.page-content h2 { font-size: 20px; margin: 1.6em 0 .6em; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 30px 0; text-align: center;
}
.footer-menu { display: flex; gap: 18px; justify-content: center; margin-bottom: 14px; font-size: 14px; color: var(--ink-soft); }
.footer-menu a:hover { color: var(--cta); }
.disclosure {
  font-size: 13px; color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; display: inline-block; margin-bottom: 14px;
}
.copyright { font-size: 12px; color: var(--ink-muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-top { grid-template-columns: 1fr; gap: 22px; padding-top: 16px; }
  .pt-media { position: static; max-width: 440px; margin: 0 auto; width: 100%; }
  .home-hero h1 { font-size: 24px; }
  .header-search { display: none; }
  .mobile-search { display: block; padding: 14px 0 0; }
  .pc-grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) {
  .mobile-search { display: none; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card, .cta-btn { transition: none; }
}

.site-logo-img { height: 28px; width: auto; display: block; }

/* ---------- v1.1: 신규 기능 ---------- */
/* 홈 섹션 제목 / 인기 상품 */
.home-section-title { font-size: 20px; font-weight: 800; margin: 26px 0 14px; }
.popular-products { padding-top: 6px; }
.product-grid.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .product-grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 정렬 탭 */
.pls-sort-tabs { display: flex; gap: 6px; margin: 0 0 16px; }
.pls-sort-tab { font-size: 13.5px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.pls-sort-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

/* 가격 기준일 */
.price-date { font-size: 12px; color: var(--ink-muted); margin-bottom: 2px; }

/* 광고 슬롯 */
.pls-slot { margin: 22px auto; }

/* 관련 상품 */
.related-products { border-top: 1px solid var(--line); }
.related-products h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

/* 모바일 하단 고정 구매 버튼 */
.pls-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.pls-sticky-cta .sc-price { font-size: 14px; white-space: nowrap; }
.pls-sticky-cta .sc-price strong { color: var(--price); font-size: 17px; }
.pls-sticky-cta .cta-btn { flex: 1; margin: 0; padding: 12px 10px; font-size: 15px; text-align: center; }
@media (max-width: 768px) {
  .pls-sticky-cta { display: flex; }
  body.single { padding-bottom: 74px; }
}

/* ---------- v1.2: 페이지 구성 ---------- */
/* 상단 배치 */
.product-top.pt-layout-right .pt-media { order: 2; }
.product-top.pt-layout-right .pt-info { order: 1; }
.product-top.pt-layout-stack { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; gap: 20px; }
.product-top.pt-layout-stack .pt-media { max-width: 440px; margin: 0 auto; width: 100%; }
.product-top.pt-layout-stack .pt-info { text-align: center; }
.product-top.pt-layout-stack .pt-info .cta-btn,
.product-top.pt-layout-stack .pt-info /* 카드 열 수 */
.product-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .product-grid.cols-3, .product-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .product-grid, .product-grid.cols-2 { grid-template-columns: 1fr; } }



/* ---------- v1.6: 상품 이미지 갤러리 ---------- */
#pls-main-img { transition: opacity .15s ease; }
.pt-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pt-thumbs .pt-thumb {
  width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 10px;
  overflow: hidden; cursor: pointer; background: #fff; flex: none;
}
.pt-thumbs .pt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-thumbs .pt-thumb.is-active { border-color: var(--cta); }
.pt-thumbs .pt-thumb:hover { border-color: var(--cta-dark); }
@media (max-width: 560px) { .pt-thumbs .pt-thumb { width: 56px; height: 56px; } }

/* ---------- v1.7.1: 모바일 상단 정보 간격 ---------- */
@media (max-width: 768px) {
  .pt-info { padding-top: 10px; }
  .pt-info h1 { font-size: 22px; line-height: 1.45; margin-top: 14px; }
  .pt-info .subtitle { margin-top: 10px; }
  .pt-info .rating { margin-top: 18px; padding-bottom: 18px; }
  .price-box { margin-top: 18px; }
  .price-row { margin-top: 6px; }
  .pt-info .cta-btn { margin-top: 18px; }
  .cta-disclosure { margin-top: 12px; line-height: 1.6; }
  .pt-thumbs { margin-top: 12px; }
}


/* ---------- 숙박: 보조 예약 버튼 · 시설 · 위치 ---------- */
.alt-btns { display: flex; gap: 8px; margin-top: 8px; }
.alt-btn {
  flex: 1; text-align: center; border: 1.5px solid var(--line); color: var(--ink);
  background: #fff; border-radius: var(--radius); padding: 12px 8px;
  font-size: 14px; font-weight: 700; transition: border-color .15s ease, color .15s ease;
}
.alt-btn:hover { border-color: var(--cta); color: var(--cta); }
.product-top.pt-layout-stack .pt-info .alt-btns { max-width: 360px; margin-left: auto; margin-right: auto; }
.facility-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--ink-soft);
}
.stay-address { font-size: 15.5px; color: var(--ink); }
.map-link { color: var(--cta); font-weight: 700; }
.map-link:hover { text-decoration: underline; }
.nearby-list { list-style: none; padding: 0; margin: 10px 0 0; color: var(--ink-muted); font-size: 14px; }
.nearby-list li { padding: 3px 0; }
@media (max-width: 560px) {
  .facility-grid { grid-template-columns: 1fr; }
  .alt-btns { flex-direction: column; }
}

/* ==================================================
 * 트립닷컴 스타일 개편 (v1.1)
 * ================================================== */

/* ---------- 홈 히어로: 그라데이션 + 대형 검색 필 ---------- */
.stay-hero {
  background: linear-gradient(130deg, var(--cta-dark) 0%, var(--cta) 60%, color-mix(in srgb, var(--cta) 55%, #7cc4ff) 100%);
  padding: 52px 0 58px; text-align: center; color: #fff;
}
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .stay-hero { background: linear-gradient(130deg, var(--cta-dark), var(--cta)); }
}
.stay-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.stay-hero p { margin-top: 10px; font-size: 16px; color: rgba(255,255,255,.88); }
.hero-search {
  display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 26px auto 0;
  background: #fff; border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.hs-icon { font-size: 17px; }
.hero-search input[type="search"] {
  flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit;
  background: none; color: var(--ink); min-width: 0;
}
.hero-search button {
  flex: none; border: none; cursor: pointer; font-family: inherit;
  background: var(--cta); color: #fff; font-size: 15px; font-weight: 800;
  border-radius: 999px; padding: 12px 26px; transition: background .15s ease;
}
.hero-search button:hover { background: var(--cta-dark); }

/* 지역 칩: 히어로 아래 필 버튼 */
.cat-chips a {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 14.5px; font-weight: 700; color: var(--ink-soft);
}
.cat-chips a:hover { border-color: var(--cta); color: var(--cta); background: #fff; }
.cat-chips a.active { background: var(--cta); border-color: var(--cta); color: #fff; }

/* ---------- 숙소 카드 (사진 중심) ---------- */
.stay-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.stay-card:hover { box-shadow: 0 10px 26px rgba(15,30,60,.12); transform: translateY(-2px); }
.sc-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-badge {
  position: absolute; top: 10px; left: 10px; background: var(--cta); color: #fff;
  font-size: 12px; font-weight: 800; border-radius: 8px; padding: 4px 10px;
}
.sc-body { display: flex; flex-direction: column; flex: 1; padding: 13px 15px 15px; }
.sc-meta { font-size: 12.5px; color: var(--ink-muted); }
.sc-meta .sc-cat { color: var(--cta); font-weight: 700; }
.sc-meta .sc-grade::before { content: " · "; color: var(--ink-muted); }
.sc-name { margin-top: 4px; font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.sc-rating { margin-top: 7px; display: flex; align-items: center; gap: 7px; }
.sc-rcount { font-size: 12.5px; color: var(--ink-muted); }
.sc-price { margin-top: auto; padding-top: 12px; text-align: right; font-size: 18px; font-weight: 800; color: var(--ink); }
.sc-price small { font-size: 13px; }
.per-night { font-size: 12.5px; color: var(--ink-muted); font-weight: 400; }

/* 점수 배지 (트립식 파란 사각) */
.score-badge {
  display: inline-block; background: var(--cta); color: #fff; font-weight: 800;
  font-size: 15px; border-radius: 8px 8px 8px 2px; padding: 4px 9px; line-height: 1;
}
.score-badge.score-sm { font-size: 12.5px; padding: 3px 7px; }

/* ---------- 숙소 상세: 모자이크 갤러리 ---------- */
.stay-head { padding-top: 6px; }
.stay-gallery {
  display: grid; gap: 8px; border-radius: 16px; overflow: hidden;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px;
}
.stay-gallery.side-0 { grid-template-columns: 1fr; grid-template-rows: 360px; }
.stay-gallery.side-1 { grid-template-columns: 2fr 1fr; grid-template-rows: 320px; }
.stay-gallery.side-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 158px 158px; }
.stay-gallery .sg-main { grid-row: 1 / -1; margin: 0; position: relative; }
.stay-gallery.side-1 .sg-main, .stay-gallery.side-0 .sg-main { grid-row: 1; }
.stay-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-tile { position: relative; padding: 0; border: none; cursor: pointer; background: var(--bg-alt); overflow: hidden; }
.sg-tile:hover img { opacity: .85; }
.sg-tile.is-active::after { content: ''; position: absolute; inset: 0; border: 3px solid var(--cta); pointer-events: none; }
.sg-more-tag {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 4px 10px;
}

/* 타이틀 블록 */
.stay-title { padding: 18px 2px 4px; }
.stay-title .badge { display: inline-block; background: var(--cta-soft, #eaf2ff); color: var(--cta); font-size: 13px; font-weight: 800; border-radius: 8px; padding: 4px 12px; }
.stay-title h1 { margin-top: 10px; font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.stay-title .subtitle { margin-top: 6px; font-size: 15.5px; color: var(--ink-soft); }
.stay-rating { margin-top: 12px; display: flex; align-items: center; gap: 9px; }
.rating-count { font-size: 13.5px; color: var(--ink-muted); }
.stay-title-address { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 2단: 본문 + 예약 카드 ---------- */
.stay-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; padding-top: 10px; padding-bottom: 40px; }
.stay-main { order: 1; min-width: 0; }
.stay-book { order: 2; position: sticky; top: 86px; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 6px 20px rgba(15,30,60,.06); }
.book-card .price-date { font-size: 12.5px; color: var(--ink-muted); }
.book-price { margin-top: 4px; font-size: 26px; font-weight: 800; color: var(--price); }
.book-price small { font-size: 16px; }
.book-card .cta-btn { display: block; text-align: center; margin-top: 14px; }
.book-card .alt-btn { display: block; text-align: center; margin-top: 8px; flex: none; }
.book-card .cta-disclosure { margin-top: 14px; font-size: 11.5px; color: var(--ink-muted); text-align: center; line-height: 1.6; }
.book-card .cta-note { margin-top: 6px; font-size: 12px; color: var(--ink-muted); text-align: center; }

/* 좌측 칼럼 안 섹션: 카드형 구분 */
.stay-main .section { padding: 22px 0; }
.stay-main .section-alt { background: none; }
.stay-main .section + .section { border-top: 1px solid var(--line); }
.stay-main .wrap-narrow { max-width: 100%; padding: 0; }
.stay-main .related-products .wrap { padding: 0; }
.stay-main .related-products .product-grid { grid-template-columns: repeat(2, 1fr); }
.facility-grid li { display: flex; align-items: center; gap: 9px; }
.fac-icon { font-size: 18px; flex: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .stay-cols { grid-template-columns: 1fr; gap: 8px; }
  .stay-book { position: static; order: 0; }
  .stay-main { order: 1; }
}
.sg-strip { display: none; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.strip-thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.strip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-thumb.is-active { border-color: var(--cta); }

@media (max-width: 560px) {
  .sg-strip { display: flex; }
  .stay-hero { padding: 36px 0 40px; }
  .stay-hero h1 { font-size: 24px; }
  .hero-search { margin-top: 20px; padding-left: 14px; }
  .hero-search button { padding: 10px 18px; }
  .stay-gallery { grid-template-columns: 1fr; grid-template-rows: 220px; }
  .stay-gallery .sg-tile { display: none; }
  .stay-gallery .sg-main { grid-row: 1; }
  .stay-title h1 { font-size: 22px; }
  .stay-main .related-products .product-grid { grid-template-columns: 1fr; }
}

/* ==================================================
 * v1.2: A 트립닷컴형 / B 에어비앤비형
 * ================================================== */

/* ---------- A: 히어로 + 검색 카드 ---------- */
.pls-style-a .stay-hero { padding: 44px 0 84px; }
.search-card-wrap { margin-top: -58px; position: relative; z-index: 5; padding-bottom: 6px; }
.search-card {
  background: #fff; border-radius: 18px; box-shadow: 0 12px 34px rgba(15,30,60,.14);
  padding: 6px 22px 18px; max-width: 860px; margin: 0 auto;
}
.sc-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.sc-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none;
  padding: 12px 16px 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.sc-tab-icon { font-size: 20px; }
.sc-tab:hover { color: var(--cta); }
.sc-tab.is-active { color: var(--cta); border-bottom-color: var(--cta); }
.sc-search {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  border: 2px solid var(--cta); border-radius: 12px; padding: 6px 6px 6px 14px;
}
.sc-pin { font-size: 16px; }
.sc-search input[type="search"] { flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit; min-width: 0; color: var(--ink); }
.sc-search button {
  flex: none; border: none; cursor: pointer; font-family: inherit;
  background: var(--cta); color: #fff; font-size: 15px; font-weight: 800;
  border-radius: 9px; padding: 12px 22px;
}
.sc-search button:hover { background: var(--cta-dark); }

/* A 상세: 제목 위, 시설 스트립, 큰 점수 */
.pls-style-a .stay-title { padding: 4px 2px 16px; }
.pls-style-a .stay-title h1 { display: inline; margin-right: 10px; }
.pls-style-a .stay-title .badge { margin-right: 8px; }
.fac-strip {
  display: flex; gap: 6px 26px; flex-wrap: wrap; justify-content: center;
  list-style: none; margin: 18px 0 0; padding: 16px 10px; border-bottom: 1px solid var(--line);
}
.fac-strip li { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.fac-strip-icon { font-size: 22px; }
.fac-strip-more { color: var(--cta); justify-content: center; }
.score-row { display: flex; align-items: center; gap: 14px; padding: 16px 4px 4px; }
.score-big { font-size: 34px; font-weight: 800; color: var(--cta); letter-spacing: -.02em; }
.score-word { font-size: 17px; font-weight: 800; color: var(--cta); display: flex; flex-direction: column; }
.score-word small { font-size: 12.5px; color: var(--ink-muted); font-weight: 400; margin-top: 2px; text-decoration: underline; }

/* A 위치: 주변 안내 2열 */
.pls-style-a .nearby-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.pls-style-a .nearby-list li::before { content: '🚩 '; }
@media (max-width: 560px) { .pls-style-a .nearby-list { grid-template-columns: 1fr; } }

/* ---------- B: 에어비앤비형 ---------- */
.pls-style-b { --radius: 16px; }
.bnb-hero { padding: 34px 0 8px; text-align: center; background: #fff; border-bottom: 1px solid var(--line); }
.bnb-hero h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.bnb-search {
  display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 18px auto 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08); text-align: left;
}
.bnb-search:focus-within { box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.bs-label { flex: none; font-size: 13px; font-weight: 800; color: var(--ink); }
.bnb-search input[type="search"] { flex: 1; border: none; outline: none; font-size: 14.5px; font-family: inherit; min-width: 0; }
.bnb-search button {
  flex: none; border: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%;
  background: var(--cta); color: #fff; font-size: 16px;
}
.home-row { padding-top: 26px; }
.home-row:last-of-type { padding-bottom: 46px; }
.row-title a { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.row-title a:hover { text-decoration: underline; }
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px;
  overflow-x: auto; padding: 14px 2px 8px; scroll-snap-type: x mandatory;
}
.mini-card { display: flex; flex-direction: column; scroll-snap-align: start; }
.mc-thumb { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--bg-alt); }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.mini-card:hover .mc-thumb img { transform: scale(1.04); }
.mc-name { margin-top: 9px; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.mc-grade { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.mc-meta { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* B 상세 */
.pls-style-b .stay-title { padding: 2px 2px 14px; }
.pls-style-b .stay-title h1 { font-size: 25px; }
.pls-style-b .stay-title .stay-rating { display: none; } /* 평점은 아래 박스에서 */
.pls-style-b .stay-gallery { border-radius: 18px; }
.pls-style-b .stay-gallery.side-2, .pls-style-b .stay-gallery { grid-template-rows: 170px 170px; }
.bnb-sum { padding: 16px 2px 4px; }
.bnb-sum-line { font-size: 15px; color: var(--ink-soft); }
.bnb-score {
  display: flex; align-items: center; gap: 16px; margin-top: 14px;
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px;
}
.bnb-score-num { font-size: 24px; font-weight: 800; color: var(--ink); }
.bnb-score-num small { font-size: 13px; color: var(--ink-muted); font-weight: 400; }
.bnb-score-word { font-size: 15px; font-weight: 800; color: var(--ink); }
.bnb-score-count { margin-left: auto; font-size: 13px; color: var(--ink-muted); text-decoration: underline; }
.pls-style-b .stay-card, .pls-style-b .book-card { border-radius: 18px; }
.pls-style-b .cta-btn, .pls-style-b .alt-btn { border-radius: 12px; }

@media (max-width: 720px) {
  .search-card { padding: 2px 14px 14px; }
  .sc-tab { padding: 10px 12px 8px; font-size: 12.5px; }
  .row-scroll { grid-auto-columns: 160px; }
  .pls-style-a .stay-title h1 { display: block; }
}

/* A 상세 디테일 (트립 재현) */
.grade-stars { color: #f5a623; font-size: 17px; letter-spacing: 2px; vertical-align: 3px; }
.pls-style-a .stay-title-address .map-link { text-decoration: underline; font-weight: 600; }
.score-quote { flex: 1; min-width: 0; margin-left: 14px; padding-left: 18px; border-left: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.stay-gallery.side-5 { grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-rows: 165px 165px; }
.stay-gallery.side-5 .sg-main { grid-row: 1 / -1; }
@media (max-width: 560px) {
  .score-quote { display: none; }
}
/* trip-home 레이아웃 */
.trip-home { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: start; padding-top: 18px; }
.trip-side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 86px; }
.ts-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink-soft); }
.ts-item span { font-size: 17px; }
.ts-item:hover { background: var(--bg-alt); color: var(--ink); }
.ts-item.is-active { color: var(--cta); background: color-mix(in srgb, var(--cta) 9%, #fff); }
@supports not (background: color-mix(in srgb, red 9%, white)) { .ts-item.is-active { background: var(--bg-alt); } }
.ts-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.trip-main { min-width: 0; }
.trip-main > .grid-section > .wrap, .trip-main .related-products > .wrap, .trip-main section > .wrap { padding-left: 0; padding-right: 0; max-width: none; }
.trip-hero {
  border-radius: 18px; padding: 46px 30px 74px; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--cta-dark) 0%, var(--cta) 55%, #79b8ff 100%);
}
.trip-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.trip-guarantees { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.92); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trip-guarantees i { font-style: normal; opacity: .5; }
.trip-home .search-card-wrap { margin-top: 0; }
.trip-home .search-card { margin: -52px 26px 0; max-width: none; position: relative; z-index: 5; }
.seg-field { display: flex; align-items: center; gap: 8px; padding: 4px 8px; }
.seg-grow { flex: 1; min-width: 0; }
.seg-div { width: 1px; align-self: stretch; background: var(--line); }
.sc-search select { border: none; outline: none; font-size: 15px; font-family: inherit; font-weight: 600; color: var(--ink); background: none; cursor: pointer; }
.trip-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.trip-banner {
  position: relative; border-radius: 14px; padding: 22px 24px; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px; min-height: 96px; justify-content: center;
}
.tb-1 { background: linear-gradient(115deg, #2453cf, #4f8df5); }
.tb-2 { background: linear-gradient(115deg, #0e8f77, #35c4a2); }
.trip-banner strong { font-size: 19px; font-weight: 800; }
.trip-banner span { font-size: 13px; opacity: .9; }
.trip-banner em { position: absolute; right: 18px; bottom: 8px; font-size: 44px; font-style: normal; opacity: .9; }
.trip-banner:hover { filter: brightness(1.05); }
.trip-coupons { margin-top: 28px; }
.trip-coupons h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.tc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.tc-card {
  display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; transition: box-shadow .15s ease;
}
.tc-card:hover { box-shadow: 0 8px 20px rgba(15,30,60,.1); }
.tc-left { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tc-left strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.tc-left small { font-size: 12.5px; color: var(--ink-muted); }
.tc-right { flex: none; width: 74px; display: flex; align-items: center; justify-content: center; font-size: 26px; border-left: 1.5px dashed var(--line); color: var(--price); }
@media (max-width: 900px) {
  .trip-home { grid-template-columns: 1fr; }
  .trip-side { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 4px; }
  .ts-item { flex: none; }
  .ts-sep { display: none; }
  .trip-banners, .tc-row { grid-template-columns: 1fr; }
  .trip-home .search-card { margin: -46px 10px 0; }
}
/* B 세그먼트 필 */
.bnb-search { max-width: 640px; padding: 6px 6px 6px 0; }
.bs-seg { display: flex; flex-direction: column; gap: 1px; padding: 4px 18px; text-align: left; }
.bs-grow { flex: 1; min-width: 0; }
.bs-seg b { font-size: 12px; font-weight: 800; color: var(--ink); }
.bs-seg input[type="search"], .bs-seg select { border: none; outline: none; font-size: 14px; font-family: inherit; color: var(--ink-soft); background: none; min-width: 0; width: 100%; cursor: pointer; }
.bs-div { width: 1px; align-self: stretch; background: var(--line); }
.mc-thumb { position: relative; }
.mc-badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
