/* Monkey Forest Stays, the booking page. Loaded after styles.css: tokens, type, header, menu, buttons and the footer come from there.
   Cream ground, forest ink, hairlines. No cards, no shadows, no greys: secondary text is forest at reduced opacity. */

.book-page{background:var(--cream);color:var(--forest);--line:rgba(86,128,67,.3);--line-soft:rgba(86,128,67,.18);--tint:rgba(170,199,121,.16);--fill:rgba(170,199,121,.32)}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
[data-rise]{visibility:hidden}
html.no-motion [data-rise]{visibility:visible}

/* the shared header, on a page that scrolls a form beneath it */
.book-page .header{visibility:visible;background:var(--cream);transition:color .5s,background .3s}
.book-page .header::after{content:'';position:absolute;left:var(--gutter);right:var(--gutter);bottom:0;height:1px;background:var(--line);opacity:0;transition:opacity .3s}
.book-page.is-scrolled .header::after{opacity:1}
.book-page .header-nav a[aria-current]::after{transform:scaleX(1)}
.book-page .header-logo{padding:12px 0;margin:-12px 0}
.book-page.menu-open .header{color:var(--cream);background:transparent}
.book-page.menu-open .header::after{opacity:0}
.menu nav a[aria-current]{opacity:.7}

/* a control scrolled to by focus clears the fixed header and, on a phone, the fixed bar */
.book-page :is(input,textarea,button,a,[role="radio"]){scroll-margin:calc(var(--header) + 16px) 0 24px}

/* text links and text buttons */
.tlink{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;line-height:1.4;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:rgba(86,128,67,.35);transition:text-decoration-color .3s;min-height:24px}
.tlink:hover,.tlink:focus-visible{text-decoration-color:var(--forest)}
.tlink svg{width:15px;height:15px;flex:none}

/* head */
.book{padding:calc(var(--header) + 8vh) var(--gutter) 0}
.book-head,.book-grid{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:58% 34%;justify-content:space-between}
.book-head{align-items:end;margin-bottom:8vh}
.book-title{font-size:clamp(40px,5.9vw,98px);font-weight:500;line-height:.94;letter-spacing:-.025em}
.book-head-side{display:grid;gap:18px;justify-items:start;padding-bottom:.4vw}
.book-sub{font-size:15px;line-height:1.7;max-width:44ch}
.book-back svg{transform:rotate(180deg)}
.book-grid{align-items:start}
.book-main{min-width:0}

/* steps: all four open, each opened by a hairline */
.step{border-top:1px solid var(--line);padding:26px 0 9vh}
.step.has-alert{border-top:2px solid var(--forest);padding-top:25px}
.step-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:10px 28px;margin-bottom:36px}
.step-title{font-size:var(--p5);font-weight:500;line-height:1.02;letter-spacing:-.02em}
.step-status{opacity:.75;text-align:right;margin-left:auto}
.helper{font-size:14px;line-height:1.65;opacity:.85;margin-top:16px;max-width:60ch}
.helper.is-strong{opacity:1;font-weight:500}
.note{font-size:14px;line-height:1.65;opacity:.8;margin-top:14px;max-width:56ch}
.alert{font-size:13px;font-weight:500;line-height:1.5;margin-top:14px;display:grid;gap:10px}
.alert:empty{display:none}
.alts{display:flex;flex-wrap:wrap;gap:8px 26px}
.alts .tlink{font-size:13px;min-height:32px}

/* step 01: two tiers of cells, one value */
.tier{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.tier-b{border-top:0}
.tier-b-wrap{display:grid;grid-template-rows:1fr;transition:grid-template-rows .25s var(--ease),opacity .25s}
.tier-b-wrap.is-closed{grid-template-rows:0fr;opacity:0}
.tier-b-in{overflow:hidden;min-height:0}
.cell{position:relative;display:flex;align-items:center;gap:14px;min-height:64px;padding:14px 16px;text-align:left;border-radius:2px;transition:background .25s,color .25s}
.tier-b .cell{min-height:56px;padding:12px 16px;gap:12px}
.cell+.cell::before{content:'';position:absolute;left:0;top:0;bottom:0;width:1px;background:var(--line);transition:opacity .25s}
.cell[aria-checked="true"]{background:var(--forest);color:var(--cream)}
.cell[aria-checked="true"]::before,.cell[aria-checked="true"]+.cell::before{opacity:0}
.cell:focus-visible{outline-offset:-5px}
@media (hover:hover){.cell:not([aria-checked="true"]):hover{background:var(--tint)}}
.emb{width:40px;height:40px;flex:none;object-fit:cover;border-radius:2px;background:var(--fill)}
.emb-pair{display:flex;flex:none}
.emb-pair .emb+.emb{margin-left:-14px}
.mark{width:24px;height:24px;flex:none;object-fit:contain}
.mark-none{display:none}
.cell-t{display:grid;gap:3px;min-width:0}
.cell-name{font-size:20px;font-weight:500;line-height:1.15}
.tier-b .cell-name{font-size:15px;line-height:1.3}
.cell-sub{opacity:.75}
.cell-flag{opacity:.6}
.readout{margin-top:24px;display:grid;gap:8px;font-size:15px;line-height:1.7;max-width:58ch}
.readout p:first-child{font-weight:500}
.readout-note{margin-top:18px;opacity:.7}

/* step 02: the read-outs and the calendar */
.dates{display:grid;grid-template-columns:1fr 1fr;gap:0 6%}
.date-btn{display:grid;gap:6px;text-align:left;border-top:1px solid var(--line);padding:12px 0 4px;min-height:64px;align-content:start}
.date-btn[aria-pressed="true"]{border-top:2px solid var(--forest);padding-top:11px}
.date-btn .l1{opacity:.7}
.date-v{font-size:20px;font-weight:500;line-height:1.2}
.date-v.is-empty{opacity:.55}
.date-btn:focus-visible{outline-offset:2px}
.cal{position:relative;margin-top:30px}
.cal-months{display:grid;grid-template-columns:1fr;gap:0 6%}
.cal-months[data-count="2"]{grid-template-columns:1fr 1fr}
.cal-months.is-in{animation:calIn .3s both}
.cal-ghost{position:absolute;left:0;right:0;top:0;pointer-events:none;transition:opacity .3s}
.cal-ghost.is-out{opacity:0}
@keyframes calIn{from{opacity:0}to{opacity:1}}
.cal-name{font-size:20px;font-weight:500;line-height:44px;text-align:center}
.cal-nav{position:absolute;top:0;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;z-index:2;transition:background .25s,opacity .25s}
.cal-prev{left:-10px}
.cal-next{right:-10px}
.cal-nav svg{width:18px;height:18px}
.cal-prev svg{transform:rotate(180deg)}
.cal-nav[aria-disabled="true"]{opacity:.3;cursor:default}
@media (hover:hover){.cal-nav:not([aria-disabled="true"]):hover{background:var(--tint)}}
.cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-heads{border-bottom:1px solid var(--line-soft);margin-bottom:6px}
.cal-heads span{text-align:center;padding:10px 0 9px;opacity:.7}
.day,.day-gap{height:48px;min-width:0}
.day{position:relative;display:grid;place-items:center;font-size:15px;font-variant-numeric:tabular-nums;border-radius:0}
.day .d{position:relative;width:40px;height:40px;border-radius:50%;border:1px solid transparent;display:grid;place-items:center;transition:background .2s,color .2s}
.day.is-off{cursor:default}
.day.is-off .d{opacity:.3}
.day.is-taken::after,.lg-n.is-taken::after{content:'';position:absolute;left:50%;top:50%;width:24px;height:1px;margin:0 0 0 -12px;background:var(--forest)}
.day.is-today .d{border-color:var(--forest)}
.day.is-between{background:var(--fill)}
.day.is-in.has-range{background:linear-gradient(to right,rgba(170,199,121,0) 50%,var(--fill) 50%)}
.day.is-out{background:linear-gradient(to left,rgba(170,199,121,0) 50%,var(--fill) 50%)}
.day.is-in .d,.day.is-out .d{background:var(--forest);color:var(--cream);border-color:var(--forest);opacity:1}
.day.is-in::after,.day.is-out::after{display:none}
.day.is-preview{background:var(--tint)}
.day.is-preview-start{background:linear-gradient(to right,rgba(170,199,121,0) 50%,var(--tint) 50%)}
.day.is-preview-end{background:linear-gradient(to left,rgba(170,199,121,0) 50%,var(--tint) 50%)}
.day.is-preview-end .d{background:var(--fill)}
@media (hover:hover){.day.can:not(.is-in):not(.is-out):hover .d{background:var(--fill)}}
.day:focus-visible{outline:0}
.day:focus-visible .d{outline:2px solid var(--forest);outline-offset:2px}
.cal-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 24px;margin-top:20px;border-top:1px solid var(--line-soft);padding-top:16px}
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}
.lg{display:inline-flex;align-items:center;gap:10px}
.lg-n{position:relative;font-size:15px;font-variant-numeric:tabular-nums;width:24px;text-align:center}
.lg-n.is-taken{color:rgba(86,128,67,.3)}
.lg .l1,.lg-show{opacity:.75}
#clear-dates{transition:opacity .25s,text-decoration-color .3s}
#clear-dates.is-hidden{opacity:0;pointer-events:none}

/* step 03: guests */
.stepper{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-top:1px solid var(--line)}
.stepper:last-child{border-bottom:1px solid var(--line)}
.stepper-name{font-size:20px;font-weight:500}
.stepper-ctl{display:flex;align-items:center;gap:14px}
.stepper-n{font-size:20px;font-weight:500;min-width:2.2ch;text-align:center;font-variant-numeric:tabular-nums}
.round{width:44px;height:44px;flex:none;border:1px solid rgba(86,128,67,.35);border-radius:50%;display:grid;place-items:center;transition:background .25s,opacity .25s}
.round svg{width:18px;height:18px}
.round[aria-disabled="true"]{opacity:.3;cursor:default}
@media (hover:hover){.round:not([aria-disabled="true"]):hover{background:var(--tint)}}

/* step 04: details */
.fields{display:grid;grid-template-columns:1fr 1fr;gap:30px 6%}
.field{display:grid;gap:6px;align-content:start;min-width:0}
.field-wide{grid-column:1/-1}
.field label{opacity:.75}
.field input,.field textarea{font:inherit;font-size:16px;line-height:1.5;color:var(--forest);background:transparent;border:0;border-bottom:1px solid rgba(86,128,67,.35);border-radius:0;padding:9px 0 10px;width:100%;outline:0;resize:none;-webkit-appearance:none;appearance:none}
.field input:focus,.field textarea:focus{border-bottom:2px solid var(--forest);padding-bottom:9px}
.field input:-webkit-autofill{-webkit-text-fill-color:var(--forest);transition:background-color 99999s 0s,color 99999s 0s}
.field-help{font-size:13px;line-height:1.5;opacity:.75;margin-top:4px}
.field .alert{margin-top:4px}
.helper-store{margin-top:30px}
.helper-store .tlink{margin-left:8px}

/* the summary */
.sum{position:sticky;top:calc(var(--header) + 2vh);--pich:clamp(96px,calc(100svh - var(--header) - 2vh - 584px),300px)}
.sum-top{display:flex;align-items:flex-end;gap:16px;margin-bottom:20px}
.sum-pic{position:relative;flex:none;width:min(100%,calc(var(--pich) * 4 / 3));aspect-ratio:4/3;border-radius:2px;overflow:hidden;background:var(--cream)} /* the villa render is a cut-out: it stands on the page's own cream, not on a panel */
.sum-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s}
.sum-pic img.is-on{opacity:1}
.sum-pic-label{opacity:.7;padding-bottom:2px}
.sum-pic-label:empty{display:none}
.sum-line{display:flex;justify-content:space-between;align-items:baseline;gap:20px;border-top:1px solid var(--line);padding:11px 0;min-height:45px}
.sum-line dt,.sum-line .l1{opacity:.75;flex:none}
.sum-v{font-size:15px;font-weight:500;line-height:1.4;text-align:right}
.sum-k{font-size:14px;line-height:1.5}
.sum-line.is-sum .sum-k{font-weight:500}
.sum-total{align-items:baseline;padding:14px 0 16px}
.sum-total .sum-v{font-size:var(--p5);line-height:1.02;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.sum-total.is-open .sum-v{font-size:15px;font-weight:400;line-height:1.6;letter-spacing:0}
.sum-price{border-bottom:1px solid var(--line)}
.sum-send{width:100%;justify-content:space-between;height:52px;margin-top:22px;padding:0 22px 0 26px;font-size:15px}
.sum-note{font-size:14px;line-height:1.6;opacity:.8;margin-top:14px}
.sum-call{margin-top:6px}
.sum-call a{display:inline-block;padding:12px 0;margin:-12px 0;font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:rgba(86,128,67,.35)}
.sum.is-blink .sum-rows,.sum.is-blink .sum-price{animation:blink .25s both}
@keyframes blink{from{opacity:.35}to{opacity:1}}

/* the sent state */
.sent{padding-bottom:9vh}
.sent-band{height:12vh;min-height:72px;border-radius:2px;background:var(--night) url('../stays/art/pattern-leaves-night-tile.webp') center/220px auto repeat}
.sent-band.is-gone{display:none}
.sent-title{font-size:var(--p5);font-weight:500;line-height:1.02;letter-spacing:-.02em;margin-top:5vh;outline:0;max-width:13ch}
.sent-body{font-size:15px;line-height:1.75;max-width:44ch;margin-top:26px}
.sent-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 30px;margin-top:36px}
.sent-break{flex:0 0 100%;height:0;margin:0}
.sent-copy{display:block;width:100%;margin-top:26px;font:inherit;font-size:14px;line-height:1.6;color:var(--forest);background:transparent;border:1px solid var(--line);border-radius:2px;padding:14px 16px;resize:none}

/* the foot: a painted treeline stands on the footer hairline */
.book-foot{margin-top:4vh}
.book-trees{display:flex;align-items:flex-end}
.book-tree{display:block;width:50%;height:auto}
.book-tree-b{transform:scaleX(-1);width:calc(50% + 1px);margin-left:-1px}
.book-page .foot{margin:0 var(--gutter);border-top:1px solid var(--line);padding:20px 0 28px;color:var(--forest)}

/* the phone bar */
.bar{display:none}

@media (max-width:1180px){
  .book-head,.book-grid{grid-template-columns:57% 38%}
}
@media (min-width:992px) and (max-height:700px){
  .sum-top{display:none}
}
@media (max-width:991px){
  .book{padding-top:calc(var(--header) + 5vh)}
  .book-head,.book-grid{grid-template-columns:minmax(0,1fr)}
  .book-head{gap:22px;margin-bottom:6vh}
  .step{padding:22px 0 7vh}
  .step.has-alert{padding-top:21px}
  .step-head{margin-bottom:26px}
  .cell{padding:12px 10px;gap:10px;align-items:flex-start}
  .tier-b .cell{flex-direction:column;gap:8px;padding:12px 8px}
  .mark-none{display:block}
  .tlink{min-height:44px}
  .alts{gap:0 26px}
  .alts .tlink{min-height:44px}
  .cal-months[data-count="2"]{grid-template-columns:1fr}
  .day,.day-gap{height:auto;aspect-ratio:1/1;min-height:44px}
  .cal-prev{left:-6px}
  .cal-next{right:-6px}
  .sum{position:relative;top:auto;border-top:1px solid var(--line);padding:26px 0 0;margin-top:0}
  .sum-top{display:none}
  .sum-rows .sum-line:first-child{border-top:0;padding-top:0}
  .book-page .foot{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px) + 24px)}
  .book-page .foot-top{min-height:44px}
  .bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;min-height:calc(64px + env(safe-area-inset-bottom,0px));padding:6px var(--gutter) calc(6px + env(safe-area-inset-bottom,0px));background:var(--cream);border-top:1px solid var(--line);align-items:center;justify-content:space-between;gap:14px}
  .bar-l{display:grid;gap:2px;min-width:0;flex:1 1 auto}
  .bar-v{font-size:20px;font-weight:500;line-height:1.1;font-variant-numeric:tabular-nums}
  .bar-l .l1{opacity:.75}
  .bar-send{flex:none;height:44px;padding:0 16px 0 18px;gap:10px}
  .book-page.menu-open .bar{display:none}
  .book-page :is(input,textarea,button,a,[role="radio"]){scroll-margin-bottom:calc(64px + env(safe-area-inset-bottom,0px) + 24px)}
}
@media (max-width:699px){
  .step-head{flex-direction:column;align-items:flex-start;gap:10px}
  .step-status{text-align:left;margin-left:0}
  .book-tree{width:100%}
  .book-tree-b{display:none}
  .fields{grid-template-columns:minmax(0,1fr)}
  .helper-store .tlink{margin-left:0;display:flex;margin-top:8px}
}
@media (max-width:479px){
  .bar-send svg{display:none}
  .bar-send{padding:0 16px}
  .bar.is-text .bar-v{font-size:17px}
  .tier-b .flag-more{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .emb,.emb-pair{display:none}
  .cell-name{font-size:18px}
  .tier-b .cell-name{font-size:15px}
  .cell{padding:12px 8px}
}
@media (max-width:374px){
  .bar{gap:10px}
  .bar-send{padding:0 14px;font-size:13px}
  .bar.is-text .bar-v{font-size:16px}
  .tier-b .cell{padding:12px 6px}
  .tier-b .cell-name{font-size:14px}
}

html.no-motion .cal-months.is-in,html.no-motion .sum.is-blink .sum-rows,html.no-motion .sum.is-blink .sum-price{animation:none}
html.no-motion .sum-pic img,html.no-motion .tier-b-wrap,html.no-motion .cell,html.no-motion .cal-ghost{transition:none}
