/* ---------------------------------------------------------------------------
   Date picker (assets/js/range-calendar.js), 2026-11-08.
   Laid out like Booking.com's app, in the estate palette:
   olive #42462C, terracotta #A9613F, stone #EDE7D9, cream #FBF8F1, charcoal #26221E.
   --------------------------------------------------------------------------- */
.tadp-hidden,body .ta-sheet .tadp-hidden{display:none !important;}

/* The two fields in the form */
body .tadp-fields{grid-column:1 / -1 !important;display:grid !important;grid-template-columns:1fr 1fr;margin:0 0 14px !important;border:1px solid #d8cfbd !important;border-radius:12px !important;overflow:hidden;background:#fff !important;font-family:var(--sans,'Jost'),system-ui,sans-serif;}
body .tadp-fields .tadp-field{display:flex !important;align-items:center;gap:10px;width:100%;min-height:60px;margin:0 !important;padding:10px 14px !important;border:0 !important;border-radius:0 !important;background:none !important;box-shadow:none !important;color:#26221E !important;text-align:left;cursor:pointer;font:inherit !important;letter-spacing:0 !important;text-transform:none !important;}
body .tadp-fields .tadp-field + .tadp-field{border-left:1px solid #d8cfbd !important;}
body .tadp-fields .tadp-field:hover{background:#FBF8F1 !important;}
body .tadp-fields .tadp-field:focus-visible{outline:2px solid #A9613F;outline-offset:-2px;}
.tadp-field svg{flex:none;color:#42462C;}
.tadp-field-txt{display:flex;flex-direction:column;gap:2px;min-width:0;}
.tadp-label{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#6b625a;}
.tadp-val{font-size:16px;color:#8f877c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tadp-field.has-val .tadp-val{color:#26221E;font-weight:500;}

/* The window */
html.tadp-lock,html.tadp-lock body{overflow:hidden !important;}
.tadp-wrap{position:fixed;inset:0;z-index:100000;}
.tadp-wrap[hidden]{display:none;}
.tadp-back{position:absolute;inset:0;background:rgba(38,34,30,.5);opacity:0;transition:opacity .22s ease;}
.tadp-wrap.is-open .tadp-back{opacity:1;}
.tadp{position:absolute;left:0;right:0;bottom:0;height:calc(100% - 28px);height:calc(100dvh - 28px);display:flex;flex-direction:column;background:#FBF8F1;color:#26221E;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px rgba(38,34,30,.18);font-family:var(--sans,'Jost'),system-ui,sans-serif;font-variant-numeric:lining-nums tabular-nums;transform:translateY(100%);transition:transform .22s ease;outline:none;overflow:hidden;}
.tadp-wrap.is-open .tadp{transform:none;}
@media (prefers-reduced-motion:reduce){.tadp,.tadp-back{transition:none;}}

.tadp button{font-family:inherit;letter-spacing:0 !important;text-transform:none !important;box-shadow:none !important;min-width:0 !important;}
.tadp-head{position:relative;display:flex;align-items:center;gap:8px;padding:18px 8px 10px 20px;}
.tadp-grab{position:absolute;top:7px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#d8cfbd;}
.tadp .tadp-title{flex:1;margin:0 !important;font:500 26px/1.1 var(--serif,'Cormorant Garamond'),Georgia,serif !important;letter-spacing:0 !important;text-transform:none !important;color:#26221E !important;}
.tadp .tadp-clear{margin:0 !important;padding:8px 10px !important;border:0 !important;background:none !important;color:#26221E !important;font:500 15px var(--sans,'Jost'),system-ui,sans-serif !important;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.tadp .tadp-clear[hidden]{display:none !important;}
.tadp .tadp-x{width:44px;height:44px;margin:0 !important;padding:0 !important;border:0 !important;border-radius:50% !important;background:none !important;color:#26221E !important;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.tadp .tadp-x:hover{background:#EDE7D9 !important;}

.tadp-wd-row{display:grid;grid-template-columns:repeat(7,1fr);padding:8px 12px;border-bottom:1px solid #e4dccb;background:#FBF8F1;}
.tadp-wd{text-align:center;font-size:13px;font-weight:500;color:#6b625a;}

.tadp-scroll{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 12px 24px;}
.tadp-months{display:block;}
.tadp-month{padding-top:6px;}
.tadp .tadp-mtitle{margin:18px 6px 8px !important;font:600 17px/1.3 var(--sans,'Jost'),system-ui,sans-serif !important;letter-spacing:0 !important;text-transform:none !important;color:#26221E !important;}
.tadp .tadp-note{margin:-2px 6px 10px !important;font-size:14px;line-height:1.4;color:#A9613F;}
/* Days as boxes, like Airbnb's calendar (2026-11-09). Free = white box, booked/closed =
   grey box with a line right across, chosen stay = olive ends and stone nights between. */
.tadp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}
.tadp .tadp-day{position:relative;display:block;width:100%;height:50px;margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:none !important;color:#26221E !important;font:500 16px/1 var(--sans,'Jost'),system-ui,sans-serif !important;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.tadp .tadp-num{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid #d8cfbd;border-radius:10px;background:#fff;overflow:hidden;}
.tadp .tadp-day:hover .tadp-num{border-color:#42462C;box-shadow:inset 0 0 0 1px #42462C;}
.tadp .tadp-day:focus-visible{outline:none;}
.tadp .tadp-day:focus-visible .tadp-num{box-shadow:0 0 0 3px #A9613F;}
.tadp .tadp-day.is-ok{font-weight:600 !important;}
.tadp .tadp-day.is-soft{font-weight:400 !important;}
.tadp .tadp-day.is-today::after{content:'';position:absolute;left:50%;bottom:6px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#A9613F;z-index:2;}
/* past days and days without data: no box */
.tadp .tadp-day.is-off{color:#c9c0b2 !important;cursor:default;}
.tadp .tadp-day.is-off .tadp-num{border-color:transparent;background:transparent;}
.tadp .tadp-day.is-off:hover .tadp-num{box-shadow:none;border-color:transparent;}
/* booked or closed: grey box, line all the way through */
.tadp .tadp-day.is-booked{color:#9a9184 !important;font-weight:400 !important;}
.tadp .tadp-day.is-booked .tadp-num{border-color:#e2dacb;background:#EFEAE0;}
.tadp .tadp-day.is-booked .tadp-num::before{content:'';position:absolute;left:0;right:0;top:50%;height:1.5px;margin-top:-1px;background:#8a8174;transform:rotate(-0deg);}
/* the chosen stay */
.tadp .tadp-day.is-in .tadp-num{background:#EDE7D9;border-color:#d8cfbd;}
.tadp .tadp-day.is-start,.tadp .tadp-day.is-end{color:#FBF8F1 !important;font-weight:600 !important;}
.tadp .tadp-day.is-start .tadp-num,.tadp .tadp-day.is-end .tadp-num{background:#42462C;border-color:#42462C;box-shadow:none;}
.tadp .tadp-day.is-hint .tadp-num{animation:tadp-hint 1.2s ease-in-out 2;}
@keyframes tadp-hint{0%,100%{box-shadow:0 0 0 0 rgba(169,97,63,0);}50%{box-shadow:0 0 0 4px rgba(169,97,63,.9);background:#f3e4da;}}
.tadp.is-loading .tadp-months{opacity:.45;pointer-events:none;}

.tadp-foot{flex:none;padding:12px 16px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #e4dccb;background:#FBF8F1;box-shadow:0 -4px 14px rgba(38,34,30,.05);}
.tadp .tadp-summary{margin:0 0 10px !important;text-align:center;font-size:15px;line-height:1.4;color:#26221E;}
.tadp .tadp-summary strong{font-weight:600;}
.tadp .tadp-ok{display:block;width:100%;height:52px;margin:0 !important;padding:0 16px !important;border:0 !important;border-radius:10px !important;background:#42462C !important;color:#FBF8F1 !important;font:600 17px var(--sans,'Jost'),system-ui,sans-serif !important;cursor:pointer;transition:background .15s ease;}
.tadp .tadp-ok:hover:not(:disabled){background:#A9613F !important;}
.tadp .tadp-ok:disabled{opacity:.4;cursor:default;}
.tadp .tadp-ok:focus-visible{outline:3px solid #A9613F;outline-offset:2px;}

/* Arrows (desktop only) */
.tadp-nav{display:none;}
.tadp .tadp-arrow{width:40px;height:40px;margin:0 !important;padding:0 !important;border:0 !important;border-radius:50% !important;background:none !important;color:#26221E !important;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.tadp .tadp-arrow:hover:not(:disabled){background:#EDE7D9 !important;}
.tadp .tadp-arrow:disabled{opacity:.25;cursor:default;}

/* The message (Saturday to Saturday, minimum stay, whole house only) */
.tadp-alert{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(38,34,30,.4);}
.tadp-alert[hidden]{display:none;}
.tadp-alert-card{width:100%;max-width:360px;padding:24px 22px 18px;border-radius:16px;background:#FBF8F1;box-shadow:0 12px 40px rgba(38,34,30,.3);}
.tadp .tadp-alert-title{margin:0 0 8px !important;font:500 26px/1.15 var(--serif,'Cormorant Garamond'),Georgia,serif !important;letter-spacing:0 !important;text-transform:none !important;color:#26221E !important;}
.tadp .tadp-alert-msg{margin:0 0 18px !important;font-size:16px;line-height:1.5;color:#26221E;}
.tadp-alert-row{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;}
.tadp .tadp-alert-link{color:#A9613F !important;font-weight:500;text-decoration:underline;text-underline-offset:3px;}
.tadp .tadp-alert-ok{min-width:96px !important;height:46px;margin:0 !important;padding:0 22px !important;border:0 !important;border-radius:10px !important;background:#42462C !important;color:#FBF8F1 !important;font:600 16px var(--sans,'Jost'),system-ui,sans-serif !important;cursor:pointer;}
.tadp .tadp-alert-ok:hover{background:#A9613F !important;}

/* Desktop: a window, two months side by side */
@media (min-width:601px){
	.tadp{left:50%;top:50%;right:auto;bottom:auto;width:min(780px,94vw);height:auto;max-height:92vh;border-radius:18px;transform:translate(-50%,-46%);opacity:0;transition:transform .2s ease,opacity .2s ease;box-shadow:0 20px 60px rgba(38,34,30,.3);}
	.tadp-wrap.is-open .tadp{transform:translate(-50%,-50%);opacity:1;}
	.tadp-grab{display:none;}
	.tadp-head{padding:18px 12px 6px 28px;}
	.tadp > .tadp-wd-row{display:none;}
	.tadp-scroll{padding:0 28px 18px;overflow:visible;}
	.tadp-nav{display:flex;justify-content:space-between;position:absolute;left:18px;right:18px;top:12px;z-index:2;pointer-events:none;}
	.tadp-nav .tadp-arrow{pointer-events:auto;}
	.tadp-months{display:grid;grid-template-columns:1fr 1fr;gap:36px;}
	.tadp .tadp-mtitle{margin:20px 0 10px !important;text-align:center;font:500 22px/1.2 var(--serif,'Cormorant Garamond'),Georgia,serif !important;}
	.tadp .tadp-note{text-align:center;margin:-4px 0 8px !important;}
	.tadp-wd-row--month{padding:4px 0 6px;border:0;background:none;}
	.tadp .tadp-day{height:44px;}
	.tadp-foot{display:flex;align-items:center;gap:20px;padding:14px 28px;}
	.tadp .tadp-summary{flex:1;margin:0 !important;text-align:left;}
	.tadp .tadp-ok{width:auto;min-width:200px !important;}
}

/* Early bird tag (inc/early-bird.php), 2026-11-08 */
.tadp .tadp-eb-tag{display:inline-block;margin:-2px 6px 10px !important;padding:3px 9px;border-radius:999px;background:#A9613F;color:#FBF8F1;font:600 12px/1.4 var(--sans,'Jost'),system-ui,sans-serif;letter-spacing:.02em;}
.tadp .tadp-eb-tag--inline{margin:0 !important;vertical-align:1px;}
@media (min-width:601px){.tadp .tadp-month > .tadp-eb-tag{display:table;margin:-4px auto 8px !important;}}
