/* Terraza 6 — the calendar's look (shared by the booking card and the date bars on every other page): free days tinted with the price under them, booked hatched, not-possible faint. */
body.t6v2 .bk2 #bk2-cal { position: relative; }
body.t6v2 .bk2 .bk2-cal { font-family: var(--t6-font); color: var(--t6-ink); }
body.t6v2 .bk2 .bk2-nav { position: absolute; z-index: 2; left: 0; right: 0; top: -3px; display: flex; justify-content: space-between; pointer-events: none; }
body.t6v2 .bk2 .bk2-nav button { pointer-events: auto; display: grid; place-items: center; width: 34px; height: 34px; padding: 0 0 2px; border-radius: 50%; border: 1px solid var(--t6-line); background: #fff; font: 400 19px/1 var(--t6-font); color: var(--t6-forest); cursor: pointer; transition: background .15s, border-color .15s; }
body.t6v2 .bk2 .bk2-nav button:hover:not(:disabled) { background: var(--t6-cream); border-color: #cfc8b8; }
body.t6v2 .bk2 .bk2-nav button:disabled { opacity: .3; cursor: default; }
body.t6v2 .bk2 .bk2-mh { margin: 3px 0 8px; text-align: center; font: 600 16px/1.4 var(--t6-font); letter-spacing: -.015em; color: var(--t6-forest); text-transform: capitalize; }
body.t6v2 .bk2 .bk2-wd { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; text-align: center; font: 500 12px/1.3 var(--t6-font); color: var(--t6-muted); text-transform: capitalize; }
body.t6v2 .bk2 .bk2-wd i { font-style: normal; }
body.t6v2 .bk2 .bk2-g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 1px; }
body.t6v2 .bk2 .bk2-x { height: 41px; }
body.t6v2 .bk2 .bk2-d { appearance: none; -webkit-appearance: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 41px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-family: var(--t6-font); color: var(--t6-ink); -webkit-tap-highlight-color: transparent; }
body.t6v2 .bk2 .bk2-d .n { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; font: 500 14px/1 var(--t6-font); transition: background .12s, color .12s; }
body.t6v2 .bk2 .bk2-d .p { font: 500 10px/1 var(--t6-font); color: var(--t6-muted); white-space: nowrap; }
body.t6v2 .bk2 .bk2-d:focus-visible { outline: none; }
body.t6v2 .bk2 .bk2-d:focus-visible .n { box-shadow: 0 0 0 3px rgba(27, 42, 32, .35); }

/* free: a tinted day, its price under it */
body.t6v2 .bk2 .bk2-d.is-free { cursor: pointer; }
body.t6v2 .bk2 .bk2-d.is-free .n { background: rgba(152, 201, 163, .26); font-weight: 600; }
body.t6v2 .bk2 .bk2-d.is-free:hover .n { background: var(--t6-forest); color: #fff; }
/* no live data: nothing may look "available" */
body.t6v2 .bk2 .is-nolive .bk2-d.is-free:not(:hover) .n { background: transparent; font-weight: 500; }
body.t6v2 .bk2 .is-nolive .bk2-d.is-free { background: transparent; }
/* past days and days without a price: just faint */
body.t6v2 .bk2 .bk2-d.is-past, body.t6v2 .bk2 .bk2-d.is-na { opacity: .3; cursor: default; }
/* booked: hatched, struck through */
body.t6v2 .bk2 .bk2-d.is-booked { cursor: not-allowed; }
body.t6v2 .bk2 .bk2-d.is-booked .n { width: 33px; height: 29px; border-radius: 9px; color: #a29d90; text-decoration: line-through; text-decoration-thickness: 1.5px; background: repeating-linear-gradient(135deg, #f1ece1 0 4px, #fff 4px 8px); }
/* free in principle, but not possible for this stay (minimum stay, or a booked night comes first) */
body.t6v2 .bk2 .bk2-d.is-short, body.t6v2 .bk2 .bk2-d.is-beyond { cursor: not-allowed; }
body.t6v2 .bk2 .bk2-d.is-short .n, body.t6v2 .bk2 .bk2-d.is-beyond .n { color: #b9b4a8; font-weight: 400; }
body.t6v2 .bk2 .bk2-d.is-beyond { opacity: .6; }
/* a booked night right after your stay: you can still leave that morning */
body.t6v2 .bk2 .bk2-d.is-out .n { width: 31px; height: 31px; color: var(--t6-ink); text-decoration: none; background: linear-gradient(135deg, #fff 52%, #efe9db 52%); border: 1.5px dashed var(--t6-moss); }
body.t6v2 .bk2 .bk2-d.is-out .p { color: var(--t6-moss); font-weight: 600; }
body.t6v2 .bk2 .bk2-d.is-out:hover .n { background: var(--t6-forest); color: #fff; }
/* the chosen stay */
body.t6v2 .bk2 .bk2-d.is-in, body.t6v2 .bk2 .bk2-d.is-start, body.t6v2 .bk2 .bk2-d.is-end, body.t6v2 .bk2 .bk2-d.is-hover-end { background: rgba(152, 201, 163, .32); }
body.t6v2 .bk2 .bk2-d.is-in .n { background: transparent; }
body.t6v2 .bk2 .bk2-d.is-start { border-radius: 99px 0 0 99px; }
body.t6v2 .bk2 .bk2-d.is-end, body.t6v2 .bk2 .bk2-d.is-hover-end { border-radius: 0 99px 99px 0; }
body.t6v2 .bk2 .bk2-d.is-start.is-end { border-radius: 99px; }
body.t6v2 .bk2 .bk2-d.is-start .n, body.t6v2 .bk2 .bk2-d.is-end .n, body.t6v2 .bk2 .bk2-d.is-hover-end .n { background: var(--t6-forest); color: #fff; }
body.t6v2 .bk2 .bk2-d.is-start .p, body.t6v2 .bk2 .bk2-d.is-end .p { color: var(--t6-moss); font-weight: 600; }
body.t6v2 .bk2 .bk2-d.is-in.is-free:hover .n { background: var(--t6-forest); color: #fff; }

body.t6v2 .bk2 .bk2-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font: 400 12.5px/1.3 var(--t6-font); color: var(--t6-ink-2); }
body.t6v2 .bk2 .bk2-legend span { display: inline-flex; align-items: center; gap: 7px; }
body.t6v2 .bk2 .lg { display: inline-block; width: 16px; height: 16px; border-radius: 6px; flex: none; }
body.t6v2 .bk2 .lg-free { background: rgba(152, 201, 163, .3); border: 1.5px solid rgba(152, 201, 163, .8); }
body.t6v2 .bk2 .lg-booked { background: repeating-linear-gradient(135deg, #e6dfd0 0 3px, #fff 3px 6px); border: 1px solid #e6dfd0; }
body.t6v2 .bk2 .lg-sel { background: var(--t6-forest); }
body.t6v2 .bk2 .bk2-sum { margin-top: 5px; font: 400 13.5px/1.45 var(--t6-font); color: var(--t6-ink-2); }
body.t6v2 .bk2 .bk2-sum b { font-weight: 600; color: var(--t6-forest); }
body.t6v2 .bk2 .bk2-nodata { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--t6-cream); border: 1px solid var(--t6-line); font: 400 12.5px/1.5 var(--t6-font); color: var(--t6-ink-2); }

/* Terraza 6 — our own date bar (_t6-bar.php + js/t6-bar.js), in place of Lodgify's bar on the home page, the apartment page, the landing pages, the band above the footer …
   Same tokens as the rest of the site (--t6-*). The calendar itself is styled by part21a-cal.css (shared with the booking card). Variants: hero / inline (wide) and boxed (narrow, in a card). */

body.t6v2 .t6b { width: 100%; font-family: var(--t6-font); color: var(--t6-ink); }
body.t6v2 .t6b [hidden], body.t6v2 .t6b-pop[hidden], body.t6v2 .t6b-gpanel[hidden], body.t6v2 .t6b-back[hidden] { display: none !important; }
body.t6v2 .t6b-row { display: flex; align-items: center; gap: 10px; }
body.t6v2 .t6b-fields { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
body.t6v2 .t6b-dates { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; border: 1px solid #ddd6c6; border-radius: 16px; background: #fff; }
body.t6v2 .t6b-f { appearance: none; -webkit-appearance: none; position: relative; display: block; min-width: 0; margin: 0; padding: 10px 16px 11px; border: 0; border-radius: 0; background: transparent; text-align: left; font-family: var(--t6-font); color: var(--t6-ink); cursor: pointer; transition: background .15s, box-shadow .15s; }
body.t6v2 .t6b-f small { display: block; margin: 0; font: 500 12px/1.3 var(--t6-font); color: var(--t6-muted); }
body.t6v2 .t6b-f b { display: block; overflow: hidden; margin-top: 1px; font: 600 15.5px/1.35 var(--t6-font); letter-spacing: -.01em; color: var(--t6-ink); white-space: nowrap; text-overflow: ellipsis; }
body.t6v2 .t6b-f b.ph { color: #9a9588; font-weight: 500; }
body.t6v2 .t6b-dates .t6b-f:first-child { border-radius: 15px 0 0 15px; }
body.t6v2 .t6b-dates .t6b-f:last-child { border-left: 1px solid #ddd6c6; border-radius: 0 15px 15px 0; }
body.t6v2 .t6b-g { border: 1px solid #ddd6c6; border-radius: 16px; background: #fff; padding-right: 34px; }
body.t6v2 .t6b-g::after { content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid var(--t6-forest); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
body.t6v2 .t6b-g[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -1px; }
body.t6v2 .t6b-f:hover { background: var(--t6-cream); }
body.t6v2 .t6b-f.on, body.t6v2 .t6b-f:focus-visible { background: #fff; box-shadow: inset 0 0 0 2px var(--t6-forest); outline: none; z-index: 1; }
body.t6v2 .t6b-go { flex: 0 0 auto; box-sizing: border-box; min-width: 190px; height: 58px; padding: 0 28px; text-decoration: none !important; }
body.t6v2 .t6b-go[aria-disabled="true"] { cursor: pointer; }

/* wide variants sit in the home page's cream bar (padding 10px, min-height 96px) */
body.t6v2 .t6b--hero .t6b-row, body.t6v2 .t6b--inline .t6b-row { min-height: 76px; padding: 0 4px; }
/* narrow variant, in a card: everything stacked */
body.t6v2 .t6b--boxed .t6b-row { flex-direction: column; align-items: stretch; gap: 10px; }
body.t6v2 .t6b--boxed .t6b-fields { grid-template-columns: minmax(0, 1fr); }
body.t6v2 .t6b--boxed .t6b-go { width: 100%; height: 56px; }
body.t6v2 .hp-avail .t6b--boxed { padding: 0; }

/* the calendar popover */
body.t6v2 .t6b-pop { position: fixed; z-index: 1100; box-sizing: border-box; overflow: auto; padding: 22px 24px 20px; border-radius: 26px; background: #fff; border: 1px solid var(--t6-line); box-shadow: 0 30px 80px rgba(8, 16, 11, .3), 0 2px 8px rgba(8, 16, 11, .1); font-family: var(--t6-font); color: var(--t6-ink); }
body.t6v2 .t6b-cal { position: relative; min-height: 120px; }
body.t6v2 .t6b-pop .bk2-ms { display: flex; gap: 36px; }
body.t6v2 .t6b-pop .bk2-m { flex: 1 1 0; min-width: 0; }
body.t6v2 .t6b-pop .bk2-d, body.t6v2 .t6b-pop .bk2-x { height: 47px; }
body.t6v2 .t6b-pop .bk2-d .n { width: 35px; height: 35px; font-size: 15px; }
body.t6v2 .t6b-pop .bk2-d.is-booked .n { width: 39px; height: 35px; border-radius: 10px; }
body.t6v2 .t6b-pop .bk2-d.is-out .n { width: 37px; height: 37px; }
body.t6v2 .t6b-pop .bk2-d .p { font-size: 10.5px; }
body.t6v2 .t6b-pop .bk2-mh { font-size: 16.5px; margin-bottom: 10px; }
body.t6v2 .t6b-pop .bk2-nav { top: -2px; }
body.t6v2 .t6b-pop .bk2-nav button { width: 38px; height: 38px; }
body.t6v2 .t6b-pop .bk2-sum { display: none; }
body.t6v2 .t6b-pop-h, body.t6v2 .t6b-pop-f { display: none; }
body.t6v2 .t6b-load { display: block; width: 100%; height: 280px; border-radius: 16px; background: #f1ece1; animation: t6b-pulse 1.3s ease-in-out infinite; }
@keyframes t6b-pulse { 50% { opacity: .55; } }

/* the guests panel */
body.t6v2 .t6b-gpanel { position: fixed; z-index: 1100; box-sizing: border-box; overflow-y: auto; padding: 4px 18px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--t6-line); box-shadow: 0 30px 80px rgba(8, 16, 11, .3), 0 2px 8px rgba(8, 16, 11, .1); font-family: var(--t6-font); }
body.t6v2 .t6b-gr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--t6-line); }
body.t6v2 .t6b-gr b { display: block; font: 600 15.5px/1.3 var(--t6-font); color: var(--t6-ink); }
body.t6v2 .t6b-gr small { display: block; font: 400 13px/1.3 var(--t6-font); color: var(--t6-muted); }
body.t6v2 .t6b-step { display: flex; align-items: center; gap: 4px; }
body.t6v2 .t6b-step button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0 0 2px; border-radius: 50%; border: 1px solid var(--t6-line); background: #fff; font: 400 20px/1 var(--t6-font); color: var(--t6-forest); cursor: pointer; transition: background .15s, border-color .15s; }
body.t6v2 .t6b-step button:hover:not(:disabled) { background: var(--t6-cream); border-color: var(--t6-forest); }
body.t6v2 .t6b-step button:disabled { opacity: .3; cursor: default; }
body.t6v2 .t6b-step .v { min-width: 28px; text-align: center; font: 600 16px/1 var(--t6-font); color: var(--t6-ink); }
body.t6v2 .t6b-gmax { margin: 10px 0 12px; font: 400 12.5px/1.45 var(--t6-font); color: var(--t6-muted); }
body.t6v2 .t6b-done { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 46px; margin: 0; border: 0; border-radius: var(--t6-r-pill); background: var(--t6-forest); color: #fff; font: 600 14px/1 var(--t6-font); cursor: pointer; }
body.t6v2 .t6b-done:hover { background: var(--t6-forest-2, #223a2a); }

/* phones: the calendar is a sheet from the bottom of the screen */
body.t6v2 .t6b-back { position: fixed; inset: 0; z-index: 1099; background: rgba(10, 18, 13, .5); }
html.t6b-lock { overflow: hidden; }
body.t6v2 .t6b-pop.is-sheet { inset: auto 0 0 0; width: auto; max-height: 92vh; padding: 0 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; border-width: 1px 0 0; }
body.t6v2 .t6b-pop.is-sheet .t6b-pop-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px 12px; }
body.t6v2 .t6b-pop.is-sheet .t6b-pop-h b { font: 600 17px/1.3 var(--t6-font); letter-spacing: -.015em; color: var(--t6-forest); }
body.t6v2 .t6b-x { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0 0 3px; border: 1px solid var(--t6-line); border-radius: 50%; background: #fff; font: 400 24px/1 var(--t6-font); color: var(--t6-forest); cursor: pointer; }
body.t6v2 .t6b-pop.is-sheet .t6b-cal { padding-top: 4px; }
body.t6v2 .t6b-pop.is-sheet .bk2-nav { top: 4px; }
body.t6v2 .t6b-pop.is-sheet .t6b-pop-f { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px -16px 0; padding: 12px 16px 2px; background: #fff; border-top: 1px solid var(--t6-line); }
body.t6v2 .t6b-sum { font: 400 13.5px/1.4 var(--t6-font); color: var(--t6-ink-2); }
body.t6v2 .t6b-sum b { font-weight: 600; color: var(--t6-forest); }
body.t6v2 .t6b-apply { appearance: none; -webkit-appearance: none; flex: none; height: 46px; padding: 0 24px; border: 0; border-radius: var(--t6-r-pill); background: var(--t6-orange); color: #fff; font: 600 14px/1 var(--t6-font); cursor: pointer; }

@media (max-width: 900px) {
  body.t6v2 .t6b--hero .t6b-row, body.t6v2 .t6b--inline .t6b-row { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; }
  body.t6v2 .t6b--hero .t6b-go, body.t6v2 .t6b--inline .t6b-go { width: 100%; height: 56px; }
}
@media (max-width: 640px) {
  body.t6v2 .t6b-fields { grid-template-columns: minmax(0, 1fr); }
  body.t6v2 .t6b-f { padding: 9px 13px 10px; }
  body.t6v2 .t6b-pop.is-sheet .bk2-d, body.t6v2 .t6b-pop.is-sheet .bk2-x { height: 52px; }
  body.t6v2 .t6b-pop.is-sheet .bk2-d .n { width: 38px; height: 38px; font-size: 16px; }
  body.t6v2 .t6b-pop.is-sheet .bk2-d.is-booked .n { width: 42px; height: 38px; }
  body.t6v2 .t6b-pop.is-sheet .bk2-d.is-out .n { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  body.t6v2 .t6b-load { animation: none; }
  body.t6v2 .t6b-g::after { transition: none; }
}
