/* Shared pieces for the rentals designs: home sheet, tour request, assistant, toast.
   Each page sets on :root: --r-bg --r-panel --r-ink --r-muted --r-line --r-accent --r-accent-ink --r-radius --r-font --r-display, and on dark pages --r-err (a light red, e.g. #FF9C8F) */
.r-lock { overflow: hidden; }
.r-sheet { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; font-family: var(--r-font); color: var(--r-ink); }
.r-sheet[hidden] { display: none; }
.r-sheet-back { position: absolute; inset: 0; background: rgb(15 12 10 / .55); backdrop-filter: blur(4px); animation: r-fade .35s ease; }
.r-sheet-box { position: relative; width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--r-bg); box-shadow: -30px 0 80px -30px rgb(0 0 0 / .5); animation: r-slide .55s cubic-bezier(.22, 1, .36, 1); overscroll-behavior: contain; }
.r-sheet-box:focus { outline: none; }
@keyframes r-fade { from { opacity: 0; } }
@keyframes r-slide { from { transform: translateX(40px); opacity: 0; } }
.r-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--r-bg); color: var(--r-ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .4); }
.r-gal { position: relative; aspect-ratio: 4 / 3; background: var(--r-panel); overflow: hidden; outline-offset: -3px; }
.r-gal img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; animation: r-fade .4s ease; }
.r-arr { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: #1b1714; font-size: 26px; line-height: 1; cursor: pointer; }
.r-arr.prev { left: 12px; } .r-arr.next { right: 12px; }
.r-count, .r-ex { position: absolute; bottom: 12px; padding: 5px 10px; border-radius: 99px; background: rgb(20 16 12 / .72); color: #fff; font-size: 12px; font-weight: 500; }
.r-count { right: 12px; } .r-ex { left: 12px; }
.r-full { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(20 16 12 / .6); color: #fff; font-size: 18px; cursor: pointer; }
.r-sheet.full .r-sheet-box { width: 100%; }
.r-sheet.full .r-gal { aspect-ratio: auto; height: 100%; background: #0d0b0a; }
.r-sheet.full .r-gal img { object-fit: contain; cursor: zoom-out; }
.r-sheet.full .r-pad, .r-sheet.full .r-x { display: none; }
.r-pad { padding: 28px 32px 40px; }
.r-kicker { margin: 0 0 8px; color: var(--r-muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.r-pad h2 { margin: 0 0 6px; font: 400 clamp(28px, 4vw, 38px)/1.08 var(--r-display); letter-spacing: -.01em; }
.r-pad h3 { margin: 28px 0 10px; font-size: 14px; font-weight: 600; }
.r-rent { margin: 6px 0 0; font-size: 24px; font-weight: 600; color: var(--r-accent); }
.r-rent small { font-size: 14px; font-weight: 400; color: var(--r-muted); }
.r-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.r-facts li { padding: 7px 13px; border: 1px solid var(--r-line); border-radius: 99px; font-size: 14px; }
.r-amen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.r-amen li::before { content: "·"; margin-right: 8px; color: var(--r-accent); font-weight: 700; }
.r-costs { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.r-costs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--r-line); }
.r-costs li.soft { color: var(--r-muted); }
.r-costs li.tot { border: 0; font-weight: 600; }
.r-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.r-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--r-accent); border-radius: var(--r-radius); background: var(--r-accent); color: var(--r-accent-ink); font: 600 15px var(--r-font); text-decoration: none; cursor: pointer; transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .3s ease, color .3s ease; }
.r-btn:hover { transform: translateY(-2px); }
.r-btn.line { background: transparent; color: var(--r-ink); border-color: var(--r-line); }
.r-btn.wide { width: 100%; margin-top: 8px; }
.r-note { margin: 18px 0 0; color: var(--r-muted); font-size: 14px; line-height: 1.55; }
.r-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.r-f { display: block; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.r-f > span, .r-f legend { display: block; margin-bottom: 7px; padding: 0; font-size: 14px; font-weight: 600; }
.r-f input, .r-f select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--r-line); border-radius: min(var(--r-radius), 14px); background: var(--r-panel); color: var(--r-ink); font: 16px var(--r-font); }
.r-f input:focus, .r-f select:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; }
.r-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.r-days, .r-times { display: grid; gap: 8px; }
.r-days { grid-template-columns: repeat(6, 1fr); } .r-times { grid-template-columns: repeat(5, 1fr); }
.r-days label, .r-times label { position: relative; }
.r-days input, .r-times input { position: absolute; opacity: 0; inset: 0; }
.r-days span, .r-times span { display: grid; place-items: center; min-height: 52px; padding: 6px 2px; border: 1px solid var(--r-line); border-radius: min(var(--r-radius), 12px); font-size: 13px; text-align: center; cursor: pointer; line-height: 1.25; }
.r-days small { display: block; color: var(--r-muted); font-size: 11px; }
.r-days input:checked + span, .r-times input:checked + span { background: var(--r-accent); border-color: var(--r-accent); color: var(--r-accent-ink); }
.r-days input:checked + span small { color: inherit; opacity: .8; }
.r-days input:focus-visible + span, .r-times input:focus-visible + span { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.r-err { margin: 0 0 10px; color: var(--r-err, #B42318); font-size: 14px; }   /* dark pages set --r-err to a lighter red */
.r-warn { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: rgb(245 158 11 / .16); font-size: 13px; }
.r-done p { font-size: 16px; line-height: 1.6; }
.r-toast { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 70; width: fit-content; max-width: min(460px, calc(100% - 32px)); margin-inline: auto; padding: 13px 18px; border-radius: 14px; background: #1b1714; color: #fff; border: 1px solid rgb(255 255 255 / .2); font: 14px/1.45 var(--r-font); box-shadow: 0 16px 40px -14px rgb(0 0 0 / .55); translate: 0 20px; opacity: 0; pointer-events: none; transition: opacity .3s ease, translate .4s cubic-bezier(.22, 1, .36, 1); }
.r-toast.on { opacity: 1; translate: 0 0; }
/* assistant */
.r-ask { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--r-accent); color: var(--r-accent-ink); font: 600 15px var(--r-font); cursor: pointer; box-shadow: 0 14px 30px -12px rgb(0 0 0 / .55); transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }
.r-ask:hover { transform: translateY(-3px); }
.r-ask .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.r-chat-open .r-ask { opacity: 0; pointer-events: none; }
.r-chat { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: min(392px, 100vw - 40px); height: min(600px, 100dvh - 40px); display: flex; flex-direction: column; background: var(--r-bg); color: var(--r-ink); border: 1px solid var(--r-line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .5); font-family: var(--r-font); animation: r-pop .45s cubic-bezier(.22, 1, .36, 1); }
.r-chat[hidden] { display: none; }
@keyframes r-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.r-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--r-panel); border-bottom: 1px solid var(--r-line); }
.r-chat-head b { display: block; font: 400 22px/1.1 var(--r-display); }
.r-chat-head small { color: var(--r-muted); font-size: 13px; }
.r-chat-head .r-x { position: static; box-shadow: none; background: transparent; }
.r-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.r-msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.r-msg.bot { background: var(--r-panel); align-self: flex-start; }
.r-msg.me { background: var(--r-accent); color: var(--r-accent-ink); align-self: flex-end; }
.r-msg ul { padding-left: 18px; margin: 6px 0; }
.r-msg a { color: inherit; }
.r-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.r-chips button, .r-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--r-line); border-radius: 99px; background: var(--r-bg); color: var(--r-ink); font: 500 14px var(--r-font); text-decoration: none; cursor: pointer; }
.r-msg .r-chip { margin-top: 8px; background: var(--r-bg); }
.r-chips button:hover, .r-chip:hover { border-color: var(--r-accent); }
.r-typing { display: flex; gap: 4px; padding: 12px 14px; align-self: flex-start; background: var(--r-panel); border-radius: 16px; }
.r-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--r-muted); animation: r-dot 1s infinite; }
.r-typing i:nth-child(2) { animation-delay: .15s; } .r-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes r-dot { 50% { opacity: .3; transform: translateY(-3px); } }
.r-lead { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--r-line); border-radius: 16px; }
.r-lead input { min-height: 46px; padding: 0 12px; border: 1px solid var(--r-line); border-radius: 12px; background: var(--r-panel); color: var(--r-ink); font: 16px var(--r-font); }
.r-lead button { min-height: 46px; border: 0; border-radius: 12px; background: var(--r-accent); color: var(--r-accent-ink); font: 600 15px var(--r-font); cursor: pointer; }
.r-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--r-line); }
.r-chat-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--r-line); border-radius: 14px; background: var(--r-panel); color: var(--r-ink); font: 16px var(--r-font); }
.r-chat-form button { width: 48px; border: 0; border-radius: 14px; background: var(--r-accent); color: var(--r-accent-ink); font-size: 20px; cursor: pointer; }
.r-chat-foot { margin: 0; padding: 0 12px 10px; color: var(--r-muted); font-size: 12px; text-align: center; }
@media (max-width: 560px) {
  .r-chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .r-ask { right: 14px; bottom: 14px; min-height: 48px; padding: 0 18px; }
  .r-toast { bottom: 74px; }   /* above the floating button */
  .r-pad { padding: 24px 20px 36px; }
  .r-days { grid-template-columns: repeat(3, 1fr); } .r-times { grid-template-columns: repeat(3, 1fr); }
  .r-two { grid-template-columns: 1fr; }
  .r-amen { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .r-sheet-back, .r-sheet-box, .r-chat, .r-gal img { animation: none; }
  .r-btn, .r-ask, .r-toast { transition: none; }
}
