.profile-user{position:relative;flex-shrink:0}.profile-user .profile-trigger{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid var(--clay,#007a51);border-radius:50%;background:var(--clay,#007a51);color:#ffffff;font:600 14px var(--sans);cursor:pointer}.profile-trigger:focus-visible{outline:2px solid currentColor;outline-offset:3px}.profile-panel{position:absolute;right:0;top:calc(100% + 12px);width:280px;max-width:calc(100vw - 32px);padding:20px;background:#ffffff;color:#282d27;border:1px solid var(--line,#d9d1c5);box-shadow:0 12px 35px #282d2726;z-index:1000;text-align:left}.profile-panel[hidden]{display:none!important}.profile-panel small{display:block;font:11px var(--sans);text-transform:uppercase;letter-spacing:1px;color:var(--muted,#6c7067)}.profile-panel strong{display:block;margin:10px 0 4px;font:600 15px var(--sans)}.profile-panel p{margin:0 0 14px;font:12px var(--sans);overflow-wrap:anywhere}.profile-panel a,.profile-panel .profile-logout{display:block!important;width:100%;padding:12px 0;margin:0;border:0;border-top:1px solid var(--line,#d9d1c5);background:transparent;height:auto;border-radius:0;font:13px var(--sans);text-align:left;color:inherit;text-decoration:none;cursor:pointer}.profile-panel .profile-logout{color:var(--clay,#007a51)}.profile-panel a:hover,.profile-panel button:hover{text-decoration:underline}

.account-modes{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.account-modes a{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--line,#d9d1c5);border-radius:24px;text-decoration:none;font:500 13px var(--sans);color:var(--ink,#282d27);white-space:nowrap}.account-modes a[aria-current="page"]{background:var(--clay,#007a51);border-color:var(--clay,#007a51);color:#ffffff}.account-modes a:hover{border-color:var(--clay,#007a51)}.account-modes a:focus-visible{outline:2px solid var(--clay,#007a51);outline-offset:3px}@media(max-width:600px){header:not(.home-header) nav{flex-wrap:wrap;justify-content:center}header:not(.home-header){flex-wrap:wrap}header nav .account-modes{justify-content:center}.account-modes a{font-size:13px;padding:8px 10px}}
.profile-panel{border-radius:18px}.profile-panel a,.profile-panel .profile-logout{display:flex!important;align-items:center;gap:12px;line-height:1.5}.profile-panel .profile-menu-icon{display:block;width:21px;height:21px;flex:0 0 21px;color:currentColor}.profile-menu-text{min-width:0;overflow-wrap:anywhere}.profile-panel a:hover,.profile-panel .profile-logout:hover{background:#f2ede5;text-decoration:none}.profile-panel a:focus-visible,.profile-panel .profile-logout:focus-visible{outline:2px solid var(--clay,#007a51);outline-offset:2px;border-radius:4px}

.profile-panel{max-height:min(620px,calc(100dvh - 220px));overflow-y:auto;overscroll-behavior:contain}

header nav .account-profile-login,header nav .profile-user .profile-trigger{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--clay,#007a51);border-radius:50%;background:var(--clay,#007a51);color:#ffffff;cursor:pointer;text-decoration:none}header nav .account-profile-login[hidden],header nav #market-login-button[hidden]{display:none!important}header nav .account-profile-login svg,header nav .profile-trigger svg{display:block;width:22px;height:22px}header nav .account-profile-login:focus-visible{outline:2px solid var(--clay,#007a51);outline-offset:3px}

/* Anchor account access to the header instead of each page's navigation layout. */
body>header{position:relative;min-height:80px}body>header>nav{position:static;padding-right:60px}body>header>nav>.profile-user,body>header>nav>.account-profile-login{position:absolute;top:16px;right:24px;margin:0;z-index:110}body>header>nav>.profile-user .profile-panel{max-height:calc(100dvh - 88px)}@media(max-width:700px){body>header>nav>.profile-user,body>header>nav>.account-profile-login{top:12px;right:16px}body>header>nav{padding-right:52px}}

.profile-panel a[hidden]{display:none!important}

/* One mode switch outside the account menu, shared by desktop and mobile. */
body>header>.account-header-controls{position:absolute;top:16px;right:24px;z-index:110;display:flex;align-items:center;gap:10px}.account-header-controls .profile-user{position:relative}.account-header-controls .account-mode-switch{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid var(--line,#d9d1c5);border-radius:24px;background:#ffffff;color:var(--ink,#282d27);font:600 13px var(--sans);line-height:1.2;white-space:nowrap;text-decoration:none}.account-header-controls .account-mode-switch:hover{border-color:var(--clay,#007a51)}.account-header-controls .account-mode-switch:focus-visible{outline:2px solid var(--clay,#007a51);outline-offset:3px}.account-header-controls .account-profile-login{position:static;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--clay,#007a51);border-radius:50%;background:var(--clay,#007a51);color:#ffffff}.account-header-controls .account-profile-login[hidden]{display:none!important}.account-header-controls .profile-panel{max-height:calc(100dvh - 88px)}
@media(max-width:700px){body>header:has(>.account-header-controls){padding-top:64px}body>header>.account-header-controls{top:12px;right:16px;gap:8px}.account-header-controls .account-mode-switch{font-size:12px;padding:10px 12px}}

.resolution-menu-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;background:#a34a31;color:#fff;border-radius:99px;font-size:12px;margin-left:auto}

.profile-panel[data-mode="host"] [data-profile-community-browse],.profile-panel[data-mode="host"] [data-profile-resolutions]{margin-top:12px;padding-top:18px;border-top:2px solid var(--line,#d9d1c5)}

/* Mobile Home: brand and account controls occupy separate grid cells. */
@media(max-width:700px){
 body[data-home-platform]>header.home-header:has(>.account-header-controls){grid-template-columns:minmax(0,1fr) auto;padding:8px 16px;gap:8px}
 body[data-home-platform]>header.home-header>.brand{grid-column:1;grid-row:1;justify-self:start;min-width:0}
 body[data-home-platform]>header.home-header>.account-header-controls{position:static;grid-column:2;grid-row:1;justify-self:end;gap:6px;min-width:0}
 body[data-home-platform]>header.home-header>.account-header-controls .account-mode-switch{min-height:36px;padding:7px 9px;font-size:11px;box-sizing:border-box}
 body[data-home-platform]>header.home-header>.account-header-controls .profile-trigger,body[data-home-platform]>header.home-header>.account-header-controls .account-profile-login{width:36px;height:36px;min-height:36px;flex-basis:36px}
 body[data-home-platform]>header.home-header>.account-header-controls .profile-panel{position:fixed;top:76px;right:16px;max-width:calc(100vw - 32px)}
 body[data-home-platform]>header.home-header>.catalog-tabs,body[data-home-platform]>header.home-header>.stay-search-wrap{grid-column:1/-1}
 body[data-home-platform]>header.home-header>nav{grid-column:1/-1;grid-row:4;justify-self:center}
 body[data-home-platform]>header.home-header>nav:empty{display:none}
}

.profile-trigger .profile-trigger-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Stable account identity, including a missing or unavailable profile photo. */
.profile-trigger-initials{font:700 15px/1 Manrope,Arial,sans-serif;letter-spacing:.02em;color:#fff;user-select:none}
.account-header-controls .profile-trigger{width:44px;height:44px;flex-shrink:0}
@media(max-width:700px){
 body:not([data-home-platform])>header:has(>.account-header-controls){padding-top:12px;display:flex;flex-wrap:wrap;gap:12px}
 body:not([data-home-platform])>header>.account-header-controls{position:relative;top:auto;right:auto;order:3;flex-wrap:wrap;justify-content:flex-end;width:100%;gap:8px}
 .account-header-controls .profile-panel{position:fixed;top:180px;right:16px;box-sizing:border-box;width:320px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 196px)}
}
/* Identity already has initials/photo; automatic action icons must never prefix it. */
.profile-trigger::before,.profile-avatar-wrap::before{display:none!important;content:none!important}
.profile-trigger{overflow:hidden}.profile-trigger-initials{display:grid;place-items:center;width:100%;height:100%;flex:0 0 100%}
.profile-camera-button svg{display:block;width:22px;height:22px}
body>dialog.messenger-inbox-window{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 32px));max-width:440px;height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #dce4ec;border-radius:20px;background:#f7f9fc;color:#183451;overflow:auto}
body>dialog.messenger-inbox-window::backdrop{background:rgb(0 39 99 / .32)}
.messenger-window-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;background:#fff;border-bottom:1px solid #dce4ec}
.messenger-window-heading h2{margin:0;color:#002763;font:700 24px/1.3 Manrope,Arial,sans-serif}
.messenger-window-close{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:1px solid #dce4ec;border-radius:50%;background:#fff;color:#183451;cursor:pointer}
body>dialog.messenger-frame-window[open]{display:flex;flex-direction:column;overflow:hidden}.messenger-frame-window>iframe{width:100%;flex:1;min-height:0;border:0;background:#f7f9fc}
.messenger-inbox-window .messages-intro,.messenger-inbox-window .messages-main>a[href^='/coanfitriones']{display:none}
@media(max-width:700px){body>dialog.messenger-inbox-window{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.messenger-window-heading{padding:10px 12px}}
/* The signed-out brand header must fit the same portrait envelope. */
body>dialog.messenger-inbox-window{box-sizing:border-box;overflow-x:hidden}
.messenger-inbox-window .messenger-window-heading:has(>.login-brand){display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px 12px;padding:12px 16px}
.messenger-inbox-window .messenger-window-heading>.login-brand{grid-column:1;grid-row:1;width:190px;max-width:100%;margin:0}
.messenger-inbox-window .messenger-window-heading:has(>.login-brand)>h2{grid-column:1/-1;grid-row:2;min-width:0;font-size:20px;margin:0;line-height:1.35}
.messenger-inbox-window .messenger-window-heading:has(>.login-brand)>.messenger-window-close{grid-column:2;grid-row:1}
