.rfp-video-guide{color:#203b3e;max-width:1180px;margin-inline:auto}
.rfp-video-guide [hidden]{display:none!important}
.rfp-video-heading{margin-bottom:16px}
.rfp-video-guide .rfp-video-heading h3{color:#203b3e;font-size:clamp(22px,2.4vw,30px);line-height:1.25;margin:0 0 8px}
.rfp-video-guide .rfp-video-heading p{font-size:15px;line-height:1.5;color:#52605d;margin:0}
.rfp-video-screen{width:100%;aspect-ratio:16/9;background:#173c43;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:clamp(16px,3vw,34px);box-sizing:border-box;text-align:center;color:#fffdf8;position:relative}
.rfp-video-guide .rfp-video-screen p{color:#e5eeeb;font-size:16px;line-height:1.6;max-width:560px;margin:0}
.rfp-video-screen video,.rfp-video-screen iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border:0;background:#101f22;border-radius:8px}
.rfp-video-guide .rfp-video-screen .rfp-video-message{position:relative;z-index:1;background:#173c43e8;padding:18px;border-radius:6px}
.rfp-video-guide .rfp-video-load{background:#f9f8f2;color:#203b3e;border:1px solid #b5c5bb;border-radius:6px;min-height:48px;font:inherit;font-weight:750;font-size:16px;padding:12px 22px;cursor:pointer}
.rfp-video-guide .rfp-video-load:hover{background:#e2eade}
.rfp-video-guide a.rfp-video-load{display:inline-flex;align-items:center;text-decoration:none}
.rfp-video-guide .rfp-video-note{font-size:15px;line-height:1.7;color:#52605d;margin:16px 0}
.rfp-video-sources{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.rfp-video-guide .rfp-video-sources button{font:inherit;font-size:15px;min-height:44px;padding:10px 14px;border:1px solid #9eafa3;border-radius:6px;color:#203b3e;background:#f9f8f2;cursor:pointer}
.rfp-video-guide .rfp-video-sources button[aria-pressed="true"]{color:#fffdf8;background:#264e4c;border-color:#264e4c}
.rfp-video-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;border-bottom:1px solid #c2cbc2;padding-bottom:22px}
.rfp-video-guide .rfp-video-footer a{color:#264e4c;text-underline-offset:4px;min-height:44px;display:flex;align-items:center;font-size:15px;font-weight:650}
.rfp-video-guide .rfp-video-footer button{min-height:44px;border:1px solid #9eafa3;border-radius:6px;background:#f9f8f2;color:#203b3e;font:inherit;font-size:15px;padding:10px 16px;cursor:pointer}
.rfp-video-guide .rfp-video-footer [data-film-quote]{background:#a83832;border-color:#a83832;color:#fffdf8;margin-left:auto}
.rfp-video-transcript{padding-top:12px}
.rfp-video-guide .rfp-video-transcript summary{cursor:pointer;min-height:44px;font-size:16px;font-weight:700;color:#203b3e;padding:10px 0}
.rfp-video-transcript section{max-width:840px;padding-top:12px}
.rfp-video-guide .rfp-video-transcript h4{font-size:18px;line-height:1.4;color:#203b3e;margin:0 0 6px}
.rfp-video-guide .rfp-video-transcript p{color:#52605d;font-size:16px;line-height:1.7;margin:0 0 10px}
.rfp-video-guide button:focus-visible,.rfp-video-guide a:focus-visible,.rfp-video-guide summary:focus-visible{outline:3px solid #a83832;outline-offset:4px}
#maison #visit-explorer .visit-dialog .rfp-video-guide button{font-size:15px}
#maison #visit-explorer .visit-dialog .rfp-video-guide h3,#maison #visit-explorer .visit-dialog .rfp-video-guide h4{color:#203b3e}
#maison #visit-explorer .visit-dialog .rfp-video-guide .rfp-video-sources button[aria-pressed="true"]{color:#fffdf8;background:#264e4c;border-color:#264e4c}
#maison #visit-explorer .visit-dialog .rfp-video-guide .rfp-video-screen p{color:#e5eeeb}
#maison #visit-explorer .visit-dialog .rfp-video-guide .rfp-video-load{color:#203b3e;background:#f9f8f2}
#maison #visit-explorer .visit-dialog .rfp-video-guide [data-film-quote]{color:#fffdf8;background:#a83832}
@media(max-width:600px){.rfp-video-screen{aspect-ratio:auto;min-height:280px}.rfp-video-screen:has(video),.rfp-video-screen:has(iframe){aspect-ratio:16/9;min-height:0}.rfp-video-guide .rfp-video-footer [data-film-quote]{width:100%;margin-left:0}.rfp-video-guide .rfp-video-sources button{width:100%;text-align:left}.rfp-video-guide .rfp-video-heading h3{font-size:22px}}
@media(min-width:601px){#maison #visit-explorer.is-fullscreen .visit-dialog .rfp-video-screen{max-height:calc(100dvh - 230px);aspect-ratio:16/9}}

/* V22 player: load after service-videos-v20.css and visit-refresh-v18.css. */
.rfp-video-player{position:relative;display:flex;flex-direction:column;width:100%;min-width:0;isolation:isolate;background:#102b30;border:1px solid #6c827e;border-radius:9px;overflow:visible;color:#fffdf8}
.rfp-video-player .rfp-video-screen{flex:0 0 auto;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:16/9;margin:0 auto;padding:0;border-radius:8px 8px 0 0;background:#102025}
.rfp-video-player .rfp-video-screen video{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:contain;border-radius:0}
.rfp-video-player .rfp-video-transport{position:relative;flex:0 0 auto;display:grid;gap:9px;box-sizing:border-box;width:100%;padding:12px 14px;color:#203b3e;background:#f9f8f2;border-top:1px solid #6c827e;border-radius:0 0 8px 8px;opacity:1;visibility:visible}
.rfp-video-player .rfp-video-timeline{display:flex;align-items:center;gap:14px;width:100%;min-width:0}
.rfp-video-player .rfp-video-seek-label{display:flex;align-items:center;flex:1;min-width:40px;min-height:36px;margin:0}
.rfp-video-player [data-film-seek]{display:block;width:100%;min-width:0;height:32px;margin:0;cursor:pointer;accent-color:#264e4c;touch-action:pan-y;background:transparent}
.rfp-video-player [data-film-time]{flex:0 0 auto;min-width:95px;color:#203b3e;font:650 14px/1.4 system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.rfp-video-player .rfp-video-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.rfp-video-guide .rfp-video-player .rfp-video-buttons button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;height:auto;max-width:100%;box-sizing:border-box;padding:10px 13px;border:1px solid #718b81;border-radius:6px;font:700 14px/1.4 system-ui,sans-serif;color:#203b3e;background:#fffdf8;cursor:pointer;opacity:1;visibility:visible;white-space:normal;touch-action:manipulation}
.rfp-video-guide .rfp-video-player .rfp-video-buttons [data-film-play]{min-width:90px;color:#fffdf8;background:#264e4c;border-color:#264e4c}
.rfp-video-guide .rfp-video-player .rfp-video-buttons [data-film-fullscreen]{margin-left:auto;border-color:#a83832;font-weight:750}
.rfp-video-guide .rfp-video-player .rfp-video-buttons button:hover{color:#fffdf8;background:#264e4c;border-color:#264e4c}
.rfp-video-guide .rfp-video-player .rfp-video-buttons button[aria-pressed="true"]{color:#fffdf8;background:#264e4c;border-color:#264e4c}
.rfp-video-guide .rfp-video-player button:focus-visible,.rfp-video-guide .rfp-video-player input:focus-visible{outline:3px solid #a83832;outline-offset:3px;z-index:1}
.rfp-video-guide .rfp-video-player .rfp-video-control-status{margin:0;color:#52605d;font:500 14px/1.5 system-ui,sans-serif}
.rfp-video-guide .rfp-video-player .rfp-video-control-status:empty{display:none}
.rfp-video-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Keep image + transport within a dialog's available height. Neither the native
   video nor its controls is cropped by the old, competing fullscreen caps. */
#maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-screen{width:min(100%,max(180px,calc(177.777778dvh - 497.777778px)));height:auto;min-height:0;max-height:none;aspect-ratio:16/9}
#maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-screen video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
#maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-transport{color:#203b3e;background:#f9f8f2}
#maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-buttons button{color:#203b3e;background:#fffdf8;font-size:14px}
#maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-buttons [data-film-play],#maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-buttons button[aria-pressed="true"]{color:#fffdf8;background:#264e4c}

/* Fullscreen the whole player, including the normal-flow transport. The same
   layout is used when the browser denies the native Fullscreen API. */
.rfp-video-guide .rfp-video-player.is-expanded,.rfp-video-guide .rfp-video-player:fullscreen{position:fixed;inset:0;z-index:2147483100;box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#102025;overflow:hidden}
.rfp-video-guide .rfp-video-player.is-expanded .rfp-video-screen,.rfp-video-guide .rfp-video-player:fullscreen .rfp-video-screen,#maison #visit-explorer .visit-dialog .rfp-video-player.is-expanded .rfp-video-screen,#maison #visit-explorer .visit-dialog .rfp-video-player:fullscreen .rfp-video-screen{flex:1 1 0;width:100%;height:0;min-height:0;max-height:none;aspect-ratio:auto;border-radius:0}
.rfp-video-guide .rfp-video-player.is-expanded .rfp-video-transport,.rfp-video-guide .rfp-video-player:fullscreen .rfp-video-transport{flex:0 0 auto;border-radius:0;padding-bottom:max(12px,env(safe-area-inset-bottom));padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right))}

/* Textual exits in the house and its top-layer dialog remain self-contained.
   A z-index on the house behind a modal cannot replace the dialog's own exit. */
#maison #visit-explorer.is-fullscreen .visit-fullscreen-toggle,#maison #visit-explorer.is-fullscreen .visit-dialog-fullscreen-exit{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:44px;min-height:44px;height:auto;flex:0 0 auto;padding:10px 13px;border-radius:6px;font-size:14px;font-weight:750;line-height:1.4;white-space:normal}
#maison #visit-explorer .visit-dialog-top{flex:0 0 auto;position:sticky;top:0;z-index:8}
#maison #visit-explorer.is-fullscreen .visit-dialog-top{position:relative}
#maison #visit-explorer .visit-dialog-actions{min-width:0;flex-wrap:wrap}

@media(max-width:600px){
 .rfp-video-player .rfp-video-transport{padding:9px;gap:6px}
 .rfp-video-player .rfp-video-timeline{gap:9px}
 .rfp-video-player [data-film-time]{min-width:86px;font-size:13px}
 .rfp-video-player .rfp-video-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .rfp-video-guide .rfp-video-player .rfp-video-buttons button,#maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-buttons button{min-width:0;font-size:13px;padding:9px 8px}
 .rfp-video-guide .rfp-video-player .rfp-video-buttons [data-film-play]{min-width:0}
 .rfp-video-guide .rfp-video-player .rfp-video-buttons [data-film-fullscreen]{grid-column:span 3;margin-left:0}
 #maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-screen{width:min(100%,max(180px,calc(177.777778dvh - 604.444444px)))}
 #maison #visit-explorer.is-fullscreen .visit-dialog-top{grid-template-columns:minmax(0,1fr)}
 #maison #visit-explorer.is-fullscreen .visit-dialog-actions{display:flex;grid-column:1;grid-row:auto;flex-direction:row;flex-wrap:wrap;gap:7px}
 #maison #visit-explorer.is-fullscreen .visit-dialog-close,#maison #visit-explorer.is-fullscreen .visit-dialog-fullscreen-exit{grid-column:auto;grid-row:auto;justify-self:auto;flex:1 1 auto;max-width:none;font-size:13px}
}
@media(max-height:520px){
 .rfp-video-player .rfp-video-transport{padding-block:6px;gap:3px}
 .rfp-video-player .rfp-video-seek-label{min-height:30px}
 .rfp-video-player [data-film-seek]{height:28px}
 .rfp-video-guide .rfp-video-player .rfp-video-buttons button{padding-block:7px}
 #maison #visit-explorer .visit-dialog .rfp-video-player .rfp-video-screen{width:min(100%,max(160px,calc(177.777778dvh - 408.888889px)))}
}
@media(prefers-reduced-motion:reduce){.rfp-video-player *{scroll-behavior:auto}}
