/* =====================================================================
   TON펜션 메인 (templates/main/main.html) — 자체 배치 (tm-*)
   히어로 좌우 분할 + 예약 검색바 / 정보 띠 / 객실 카드 / 지그재그 / 전폭 띠 / 모자이크 / 카드 / 타임라인 / 소식|오시는 길
   색·글꼴은 pension.css 토큰(--ton-*) 그대로
   ===================================================================== */
.tm-sec { padding: 110px 0; }
.tm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.tm-head .en { display: block; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--ton-primary); margin-bottom: 10px; }
.tm-head h2 { font-family: var(--ton-main-font); font-size: 36px; font-weight: 400; color: var(--ton-dark); line-height: 1.3; }
.tm-head .desc { margin-top: 12px; font-size: 16px; color: var(--ton-text-brown); }
.tm-head.center { justify-content: center; text-align: center; }
.tm-more { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ton-brown); border-bottom: 1px solid var(--ton-brown); padding-bottom: 3px; }
.tm-more::after { content: "→"; }

/* 0. 히어로 */
.tm-quick { background: var(--ton-dark); color: #fff; }
.tm-quick-in { max-width: 1400px; margin: 0 auto; padding: 26px 20px; box-sizing: border-box; display: flex; align-items: center; gap: 40px; }
.tm-quick h3 { font-family: var(--ton-main-font); font-size: 24px; font-weight: 400; }
.tm-search { flex: 1; display: grid; grid-template-columns: 1fr 1fr 220px; gap: 12px; align-items: end; }
.tm-search label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #cbbfae; }
.tm-search .tm-date { height: 42px; border: 1px solid #ddd; border-radius: 4px; padding: 0 38px 0 12px; font-size: 15px; color: #222; width: 100%; box-sizing: border-box; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%236b5a45%27 stroke-width=%271.6%27%3E%3Crect x=%273%27 y=%275%27 width=%2718%27 height=%2716%27 rx=%272%27/%3E%3Cpath d=%27M3 10h18M8 3v4M16 3v4%27/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.tm-search .tm-date::placeholder { color: #999; }
.tm-search button { height: 42px; border: 0; border-radius: 4px; background: var(--ton-brown); color: #fff; font-size: 16px; font-weight: 700; }
.tm-search button:hover { background: var(--ton-primary); }
.tm-search-err { grid-column: 1 / -1; font-size: 13px; color: var(--ton-sun); }

/* 1. 정보 띠 */
.tm-info { background: var(--ton-beige); border-bottom: 1px solid var(--ton-hl); }
.tm-info dl { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); box-sizing: border-box; }
.tm-info dl > div { padding: 26px 24px; border-left: 1px solid var(--ton-hl); }
.tm-info dl > div:first-child { border-left: 0; }
.tm-info dt { font-size: 12px; letter-spacing: 1px; color: var(--ton-primary); font-weight: 700; }
.tm-info dd { margin-top: 6px; font-size: 18px; color: var(--ton-dark); font-family: var(--ton-main-font); }

/* 2. 객실 카드 */
.tm-room-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tm-room-list a { display: block; background: #fff; border: 1px solid var(--ton-line); transition: box-shadow .3s, transform .3s; }
.tm-room-list a:hover { box-shadow: 0 10px 30px rgba(42,35,26,.12); transform: translateY(-4px); }
.tm-room-list .img { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.tm-room-list .img img { width: 100%; height: 100%; object-fit: cover; }
.tm-room-list .body { padding: 22px 24px 26px; }
.tm-room-list .type { font-size: 13px; color: var(--ton-primary); }
.tm-room-list h3 { margin-top: 4px; font-family: var(--ton-main-font); font-size: 24px; color: var(--ton-dark); }
.tm-room-list .meta { margin-top: 6px; font-size: 14px; color: var(--ton-text); }
.tm-room-list .fee { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ton-line); font-size: 17px; font-weight: 700; color: var(--ton-brown); }
.tm-room-list .empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: #999; border: 1px solid var(--ton-line); }

/* 3. ABOUT 지그재그 */
.tm-about { background: var(--ton-beige); }
.tm-zig { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 70px; margin-top: 60px; }
.tm-zig.rev .img { order: 2; }
.tm-zig .img { aspect-ratio: 16 / 10; overflow: hidden; }
.tm-zig .img img { width: 100%; height: 100%; object-fit: cover; }
.tm-zig .no { font-family: var(--ton-main-font); font-size: 46px; color: var(--ton-hover); line-height: 1; }
.tm-zig h3 { margin-top: 14px; font-family: var(--ton-main-font); font-size: 28px; color: var(--ton-dark); font-weight: 400; }
.tm-zig p { margin-top: 14px; font-size: 16px; line-height: 1.8; color: var(--ton-text-brown); max-width: 460px; }

/* 4. SPECIAL 띠 */
.tm-special { position: relative; background: #2a231a center / cover no-repeat; padding: 120px 0; }
.tm-special::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,35,26,.15), rgba(42,35,26,.75)); }
.tm-special .ton-inner { position: relative; display: flex; justify-content: flex-end; }
.tm-special .box { max-width: 480px; background: rgba(255,255,255,.94); padding: 44px 46px; }
.tm-special .en { font-size: 13px; letter-spacing: 3px; color: var(--ton-primary); font-weight: 700; }
.tm-special h2 { margin-top: 10px; font-family: var(--ton-main-font); font-size: 34px; font-weight: 400; color: var(--ton-dark); line-height: 1.3; }
.tm-special p { margin-top: 14px; font-size: 15px; color: var(--ton-text-brown); line-height: 1.7; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tm-chips li { padding: 6px 14px; border: 1px solid var(--ton-primary); border-radius: 100px; font-size: 13px; color: var(--ton-brown); }

/* 5. 모자이크 */
.tm-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.tm-mosaic a { position: relative; overflow: hidden; display: block; }
.tm-mosaic .m1 { grid-row: 1 / 3; }
.tm-mosaic .m6 { display: none; }
.tm-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tm-mosaic a:hover img { transform: scale(1.06); }
.tm-mosaic span { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; background: rgba(42,35,26,.7); color: #fff; font-size: 13px; }

/* 6. 산책길 카드 */
.tm-trail { background: #fff; border-top: 1px solid var(--ton-line); }
.tm-trail-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tm-trail-list li { background: var(--ton-beige); }
.tm-trail-list .img { aspect-ratio: 3 / 2; overflow: hidden; }
.tm-trail-list .img img { width: 100%; height: 100%; object-fit: cover; }
.tm-trail-list .body { position: relative; padding: 34px 24px 26px; text-align: center; }
.tm-trail-list .ic { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--ton-brown); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.tm-trail-list h3 { font-family: var(--ton-main-font); font-size: 21px; color: var(--ton-dark); }
.tm-trail-list p { margin-top: 6px; font-size: 14px; color: var(--ton-primary); }

/* 7. 타임라인 */
.tm-story { background: var(--ton-dark); }
.tm-story .tm-head h2 { color: #fff; }
.tm-story .tm-head .desc { color: #cfc4b2; max-width: 720px; }
.tm-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.tm-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(230,219,196,.35); }
.tm-timeline li { position: relative; padding: 0 14px; text-align: center; }
.tm-timeline .img { aspect-ratio: 4 / 3; overflow: hidden; border: 6px solid #3a3127; }
.tm-timeline .img img { width: 100%; height: 100%; object-fit: cover; }
.tm-timeline b { display: inline-block; margin-top: 14px; padding: 4px 16px; border-radius: 100px; background: var(--ton-primary); color: #fff; font-size: 13px; letter-spacing: 1px; }

/* 8. 소식 | 오시는 길 */
.tm-bottom { background: var(--ton-beige); }
.tm-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.tm-bottom .tm-head { margin-bottom: 24px; }
.tm-notice ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ton-dark); }
.tm-notice li { border-bottom: 1px solid var(--ton-hl); }
.tm-notice a { display: flex; align-items: center; gap: 14px; padding: 20px 6px; }
.tm-notice .bd { flex: none; padding: 3px 10px; border-radius: 100px; background: var(--ton-brown); color: #fff; font-size: 12px; }
.tm-notice .t { flex: 1; min-width: 0; font-size: 16px; color: var(--ton-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-notice a:hover .t { text-decoration: underline; }
.tm-notice .d { flex: none; font-size: 13px; color: var(--ton-primary); }
.tm-notice .empty { padding: 40px 0; text-align: center; color: #999; }
.tm-access .map { aspect-ratio: 16 / 9; background: #ddd; }
.tm-access .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.tm-access .addr { margin-top: 16px; font-family: var(--ton-main-font); font-size: 18px; color: var(--ton-dark); }
.tm-access dl > div { display: flex; gap: 14px; margin-top: 10px; font-size: 14px; }
.tm-access dt { flex: none; width: 70px; font-weight: 700; color: var(--ton-brown); }
.tm-access dd { color: var(--ton-text-brown); }

/* 반응형 */
@media (max-width: 1200px) {
  .tm-zig { gap: 40px; }
}
@media (max-width: 1024px) {
  .tm-info dl { grid-template-columns: repeat(2, 1fr); }
  .tm-info dl > div:nth-child(3) { border-left: 0; }
  .tm-info dl > div:nth-child(n+3) { border-top: 1px solid var(--ton-hl); }
  .tm-room-list, .tm-trail-list { grid-template-columns: repeat(2, 1fr); }
  .tm-bottom-grid { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 768px) {
  .tm-sec { padding: 70px 0; }
  .tm-head { margin-bottom: 28px; }
  .tm-head h2 { font-size: 26px; }
  .tm-quick-in { flex-direction: column; align-items: stretch; gap: 14px; padding: 24px 20px; }
  .tm-quick h3 { font-size: 20px; }
  .tm-search { grid-template-columns: 1fr; }
  .tm-info dl > div { padding: 18px 14px; }
  .tm-info dd { font-size: 15px; }
  .tm-room-list, .tm-trail-list { grid-template-columns: 1fr; gap: 20px; }
  .tm-zig, .tm-zig.rev { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .tm-zig.rev .img { order: 0; }
  .tm-zig h3 { font-size: 22px; }
  .tm-special { padding: 70px 0; }
  .tm-special .ton-inner { justify-content: center; }
  .tm-special .box { padding: 28px 22px; }
  .tm-special h2 { font-size: 26px; }
  .tm-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px 130px; }
  .tm-mosaic .m1 { grid-row: auto; grid-column: 1 / -1; }
  .tm-trail-list .body { padding-top: 32px; }
  .tm-timeline { grid-template-columns: 1fr; gap: 24px; }
  .tm-timeline::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tm-notice a { flex-wrap: wrap; }
  .tm-notice .t { flex-basis: calc(100% - 60px); }
}
