/* 서브 페이지 전용 스타일: 예약 · 후기 · 농장 이야기 */
[hidden] { display: none !important; }

/* ---------- 예약 ---------- */
.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.steps li { display: flex; align-items: center; gap: .7em; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .92rem; color: var(--muted); }
.steps i { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--line-2); color: #fff; font: 800 .85rem var(--f-display); font-style: normal; display: grid; place-items: center; }
.steps li.on { border-color: var(--c); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.steps li.on i, .steps li.done i { background: var(--c); }
.steps li.done { color: var(--ink); }
@media (max-width: 720px) { .steps { grid-template-columns: repeat(4, auto); overflow-x: auto; } .steps li { padding: 10px 12px; font-size: .82rem; white-space: nowrap; } }

.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
@media (max-width: 1000px) { .bk-grid { grid-template-columns: minmax(0, 1fr); } .bk-side { position: static !important; } }
.pane { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 40px); }
.pane > h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.pane > .lead { color: var(--muted); margin-bottom: 24px; }

.opt { position: relative; display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.opt:hover { border-color: var(--leaf); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--ripe); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ripe) 16%, transparent); }
.opt:has(input:focus-visible) { outline: 3px solid var(--ripe); outline-offset: 2px; }
.opt .thumb { width: 74px; height: 74px; border-radius: 10px; overflow: hidden; background: var(--line); }
.opt .thumb img { width: 100%; height: 100%; object-fit: cover; }
.opt b { display: block; font-family: var(--f-display); font-size: 1.08rem; line-height: 1.3; }
.opt small { color: var(--muted); font-size: .86rem; }
.opt .st { font-size: .84rem; font-weight: 700; color: var(--leaf); text-align: right; max-width: 9em; line-height: 1.4; }
.opt.off { opacity: .55; cursor: not-allowed; }
@media (max-width: 560px) { .opt { grid-template-columns: 60px 1fr; } .opt .st { grid-column: 2; text-align: left; max-width: none; } .opt .thumb { width: 60px; height: 60px; } }

.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-h b { font-family: var(--f-display); font-size: 1.3rem; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; font-size: 1.1rem; }
.cal-nav button:hover:not(:disabled) { border-color: var(--ripe); color: var(--ripe); }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dw { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal .dw:first-child { color: var(--red); }
.day { position: relative; min-width: 0; aspect-ratio: 1 / .82; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 0 6px; font-weight: 700; font-size: 1rem; }
.day:hover:not(:disabled) { border-color: var(--leaf); }
.day small { font-size: .68rem; font-weight: 700; color: var(--c, var(--muted)); line-height: 1.2; }
.day::after { content: ""; position: absolute; bottom: 6px; width: 18px; height: 4px; border-radius: 4px; background: var(--c, transparent); }
.day:disabled { background: transparent; border-color: transparent; color: #a9a7b2; cursor: default; }
.day.blank { visibility: hidden; }
.day.full { background: #f1eef4; color: #8b8796; }
.day[aria-pressed="true"] { background: var(--ripe); border-color: var(--ripe); color: #fff; }
.day[aria-pressed="true"] small { color: #fff; } .day[aria-pressed="true"]::after { background: var(--pulp); }
@media (max-width: 560px) { .day { aspect-ratio: 1 / 1.05; font-size: .95rem; } .day small { font-size: .58rem; } .cal { gap: 3px; } .pane { padding: 20px 16px; } }
.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 16px; }
.legend span { display: inline-flex; align-items: center; gap: .5em; }
.legend .chip-dot { width: .8em; height: .8em; }
.slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.slots h3 { flex-basis: 100%; font-size: 1.05rem; }
.slot { padding: .8em 1.3em; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 800; text-align: left; font-size: 1.05rem; }
.slot small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.slot:hover:not(:disabled) { border-color: var(--ripe); }
.slot[aria-pressed="true"] { background: var(--ripe); border-color: var(--ripe); color: #fff; }
.slot[aria-pressed="true"] small { color: #e6d8f0; }
.slot:disabled { opacity: .45; cursor: not-allowed; }
.plan { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 2.3em 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-weight: 600; }
.plan i { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--c); color: #fff; font: 800 .9rem var(--f-display); font-style: normal; display: grid; place-items: center; }
.plan .sh { font-size: .76rem; color: #6d5200; background: color-mix(in srgb, var(--pulp) 34%, #fff); padding: .2em .65em; border-radius: 6px; font-weight: 700; }
.plan .ok { font-size: .8rem; color: var(--muted); }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld.full { grid-column: 1 / -1; }
.fld > label, .fld > .lab { font-weight: 700; font-size: .9rem; }
.fld input:not([type="checkbox"]), .fld textarea, .fld select { padding: .8em 1em; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; width: 100%; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 3px solid color-mix(in srgb, var(--ripe) 30%, transparent); border-color: var(--ripe); outline-offset: 0; }
.fld .hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: .7em; align-items: flex-start; font-size: .92rem; }
.check input { width: 1.3em; height: 1.3em; margin-top: .2em; accent-color: var(--ripe); }
.err { color: #a4262c; font-weight: 700; font-size: .92rem; margin: 14px 0 0; }
.qty { display: flex; align-items: center; gap: 14px; }
.qty button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: 1.3rem; cursor: pointer; }
.qty output { min-width: 2em; text-align: center; font: 800 1.4rem var(--f-display); }
.qty small { color: var(--muted); }

.bk-side { position: sticky; top: 96px; }
.sum { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.arch { overflow: hidden; border-radius: var(--r); background: var(--line); } .arch img { width: 100%; height: 100%; object-fit: cover; }
.sum .arch { margin: 14px 14px 0; aspect-ratio: 16 / 11; }
.sum .arch:not(:has(img[src])) { display: none; }
.sum-b { padding: 18px 22px 22px; }
.sum-b h3 { font-size: 1.2rem; margin-bottom: 14px; }
.sum dl { margin: 0; display: grid; grid-template-columns: 4.5em 1fr; gap: 8px 10px; font-size: .95rem; }
.sum dt { color: var(--muted); font-weight: 600; } .sum dd { margin: 0; font-weight: 700; }
.sum .total { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: baseline; }
.sum .total b { font: 800 1.5rem var(--f-display); color: var(--ripe); }
.sum .rules { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--glass); font-size: .82rem; color: var(--muted); line-height: 1.6; }
.sum .empty { color: var(--muted); font-size: .92rem; }

.done-id { display: inline-block; margin: 6px 0 20px; padding: .5em 1em; border-radius: 12px; background: var(--glass); border: 1px dashed var(--line-2); font: 800 1.3rem/1.2 "Consolas", "Malgun Gothic", monospace; letter-spacing: .06em; color: var(--ripe); }
.notif { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
@media (max-width: 720px) { .notif { grid-template-columns: 1fr; } }
.notif > div > h4 { font: 800 .8rem var(--f-body); letter-spacing: .1em; color: var(--vine); margin: 0 0 8px; }
.bubble { position: relative; background: #eaf3e4; border-radius: 18px 18px 18px 4px; padding: 16px 18px; font-size: .92rem; line-height: 1.65; white-space: pre-line; }
.mail { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: .88rem; line-height: 1.65; white-space: pre-line; }
.mail b { display: block; margin-bottom: 6px; }

/* ---------- 후기 ---------- */
.rsum { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 34px); margin-bottom: 28px; }
.rsum .big { text-align: center; }
.rsum .big b { display: block; font: 800 clamp(48px, 6vw, 72px)/1 var(--f-display); color: var(--ripe); }
.rsum .big .stars { color: var(--pulp); font-size: 1.2rem; letter-spacing: 2px; }
.rsum .big span { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.hist { display: grid; gap: 6px; }
.hist div { display: grid; grid-template-columns: 2.4em 1fr 2.4em; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); }
.hist i { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; position: relative; }
.hist i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 10px; }
@media (max-width: 620px) { .rsum { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px 8px; align-items: center; margin-bottom: 26px; }
.filters select { padding: .55em 1em; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-weight: 700; font-size: .92rem; }
.filters .sp { flex: 1; }
.rc .new { color: #fff; background: var(--red); font-size: .68rem; font-weight: 800; padding: .15em .55em; border-radius: 6px; }

dialog.lb { border: 0; padding: 0; border-radius: 24px; width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: #fff; color: var(--ink); overflow: hidden; }
dialog.lb::backdrop { background: rgba(28, 22, 38, .72); }
.lb-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-height: calc(100dvh - 24px); }
.lb-ph { position: relative; background: #12101a; display: flex; flex-direction: column; min-height: 320px; }
.lb-ph > img { flex: 1; min-height: 0; width: 100%; object-fit: contain; max-height: 68dvh; }
.lb-th { display: flex; gap: 8px; padding: 10px; justify-content: center; }
.lb-th button { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .6; background: #000; }
.lb-th button[aria-pressed="true"] { border-color: var(--pulp); opacity: 1; }
.lb-th img { width: 100%; height: 100%; object-fit: cover; }
.lb-tx { padding: 30px 30px 26px; overflow-y: auto; }
.lb-tx .stars { color: var(--pulp); font-size: 1.2rem; letter-spacing: 2px; }
.lb-tx h3 { font-size: 1.15rem; margin: 6px 0 12px; }
.lb-tx p { font-size: 1rem; line-height: 1.75; }
.lb-tx .who { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .84rem; color: var(--muted); align-items: center; }
.reply { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--glass); border-left: 4px solid var(--vine); font-size: .92rem; }
.reply b { display: block; font-size: .8rem; color: var(--vine); margin-bottom: 4px; }
.lb-x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 820px) { .lb-in { grid-template-columns: 1fr; overflow-y: auto; } .lb-ph > img { max-height: 46dvh; } }

.rform { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 40px); }
.stars-in { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-in input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stars-in label { font-size: 2rem; color: var(--line-2); cursor: pointer; line-height: 1; transition: color .15s; }
.stars-in input:checked ~ label, .stars-in label:hover, .stars-in label:hover ~ label { color: var(--pulp); }
.stars-in input:focus-visible + label { outline: 3px solid var(--ripe); border-radius: 6px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.ok-msg { color: var(--leaf); font-weight: 800; margin-top: 12px; }

/* ---------- 농장 이야기 (v2) ---------- */
.lead-serif { font-family: var(--f-display); font-size: clamp(24px, 3vw, 38px); font-weight: 400; line-height: 1.65; letter-spacing: -.02em; text-align: center; margin: 0; }
.lead-sub { text-align: center; margin: 30px auto 0; color: var(--muted); max-width: 32em; }
.duo { display: grid; grid-template-columns: 7fr 5fr; gap: 14px; }
.duo figure { position: relative; margin: 0; overflow: hidden; background: var(--line); min-height: 420px; }
.duo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 16px; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .duo figure { min-height: 320px; } }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 96px); margin-top: clamp(50px, 7vw, 100px); }
@media (max-width: 800px) { .roles { grid-template-columns: 1fr; } }
.role { border-top: 1px solid var(--line-2); padding-top: 22px; }
.role .who { color: var(--vine); font-weight: 800; font-size: .8rem; letter-spacing: .14em; margin-bottom: 8px; }
.role h3 { margin-bottom: 12px; } .role p { color: #3b423a; margin: 0; }
.pull { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 400; line-height: 1.65; text-align: center; max-width: 22em; margin: clamp(60px, 8vw, 110px) auto 0; letter-spacing: -.02em; }
.pull cite { display: block; margin-top: 18px; font: 600 .88rem var(--f-body); color: var(--muted); font-style: normal; letter-spacing: 0; }
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.tl li { display: grid; grid-template-columns: 11em 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl time { font-weight: 800; color: var(--vine); font-size: .92rem; letter-spacing: .04em; } .tl p { margin: 0; }
@media (max-width: 640px) { .tl li { grid-template-columns: 1fr; gap: 4px; } }
.plants3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 46px; }
.plants3 figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); } .plants3 img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .plants3 { grid-template-columns: 1fr 1fr; } .plants3 figure:last-child { display: none; } }
.plist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 30px; }
@media (max-width: 1000px) { .plist { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 520px) { .plist { grid-template-columns: 1fr; } }
.plist > div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.plist i { font-style: normal; font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--c, var(--vine)); }
.plist b { display: block; font: 600 1.15rem var(--f-display); margin: 4px 0 6px; } .plist span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.65; }
.medias { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.medias li a { display: grid; grid-template-columns: 15em 1fr auto; gap: 16px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .2s; }
.medias li a:hover { background: var(--glass); padding-inline: 14px; }
.medias small { color: var(--vine); font-weight: 800; font-size: .8rem; letter-spacing: .04em; } .medias b { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; line-height: 1.5; }
@media (max-width: 720px) { .medias li a { grid-template-columns: 1fr; gap: 4px; } }
.slot-empty { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); }
.credit-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; font-size: .94rem; color: #3b423a; }
.credit-box h3 { font-size: 1.1rem; margin-bottom: 10px; } .credit-box li { margin-bottom: 6px; }

/* ---------- 예약 완료 · 예약 확인 · 마이페이지 (서버 렌더 화면 추가분) ---------- */
.sum-dl { margin: 0; display: grid; grid-template-columns: 5.5em 1fr; gap: 8px 10px; font-size: .95rem; }
.sum-dl dt { color: var(--muted); font-weight: 600; }
.sum-dl dd { margin: 0; font-weight: 700; }
.notif.one { grid-template-columns: 1fr; }
.my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.my-list li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.my-list .t { font-weight: 700; }
.my-list .m { color: var(--muted); font-size: .9rem; }
.my-list .sp { margin-left: auto; }
.pill { display: inline-block; padding: .25em .8em; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--glass); border: 1px solid var(--line-2); }
.pill.ok { background: #eaf3e4; border-color: #cbe3bd; color: #2c6244; }
.pill.wait { background: #fdf3da; border-color: #efdcae; color: #7a5b10; }
.pill.off { background: #f1eef3; border-color: #ddd5e2; color: #4e1f68; }
@media (max-width: 700px) { .notif { grid-template-columns: 1fr; } }
