/* ColoSwiss v271 — couche d'adaptation téléphone / tablette / ordinateur + espace membre défilant */

/* ---------- Bases communes ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,video,svg,canvas{max-width:100%}
main img{height:auto}
main h1,main h2,main h3,main p,main li,main a{overflow-wrap:break-word}

/* ---------- Espace membre (fenêtre « Mon profil ») : tout est accessible en faisant défiler ---------- */
html body dialog#account.cs225-profile[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important}
html body dialog#account.cs225-profile>.cs201-header{flex:0 0 auto!important}
html body dialog#account.cs225-profile>.inside{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
html body dialog#account.cs225-profile .cs225-shell{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important}
html body dialog#account.cs225-profile .member-space-switch{flex:0 0 auto!important}
html body dialog#account.cs225-profile .cs225-content{min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-behavior:smooth;padding-bottom:40px!important}
html body dialog#account.cs225-profile .cs225-sidebar{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
html body dialog#account.cs225-profile .cs225-view{scroll-margin-top:12px}

@media (max-width:760px){
  html body dialog#account.cs225-profile[open]{inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important;border:0!important}
  html body dialog#account.cs225-profile .cs225-shell{display:flex!important;flex-direction:column!important}
  html body dialog#account.cs225-profile .cs225-sidebar{flex:0 0 auto!important;overflow:visible!important;height:auto!important}
  html body dialog#account.cs225-profile .cs225-nav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:8px!important;padding-bottom:4px}
  html body dialog#account.cs225-profile .cs225-nav::-webkit-scrollbar{display:none}
  html body dialog#account.cs225-profile .cs225-nav-item{flex:0 0 auto!important;white-space:nowrap!important;scroll-snap-align:start}
  html body dialog#account.cs225-profile .cs225-side-foot{display:none!important}
  html body dialog#account.cs225-profile .cs225-content{flex:1 1 auto!important;padding-left:16px!important;padding-right:16px!important;padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}
  html body dialog#account.cs225-profile .member-space-switch{padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
}

/* ---------- « Coups de cœur » et rangées de cartes : plus aucune carte écrasée ---------- */
html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-city-section .cs-city-cards.cs-four-carousel{grid-auto-flow:row!important;grid-auto-columns:auto!important;overflow:visible!important}
html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-city-section .cs-city-cards.cs-four-carousel>*{grid-column:auto!important;grid-row:auto!important;min-width:0!important}
html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs321-coups .cs-city-arrows,html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs321-coups [class*="arrow"]{display:none!important}

html body dialog#account.cs225-profile .member-space-switch{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;padding:12px 28px!important;border-top:1px solid #e3ebf5!important;background:#fff!important}
@media (max-width:760px){html body dialog#account.cs225-profile .member-space-switch{padding:10px 16px max(12px,env(safe-area-inset-bottom))!important;font-size:13px}}

/* ---------- En-tête des pages Logements / Services / Expériences sur téléphone ---------- */
@media (max-width:760px){
  html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top{display:grid!important;grid-template-columns:auto 1fr!important;grid-template-areas:"brand auth" "nav nav"!important;align-items:center!important;gap:10px 12px!important;padding:10px 16px 8px!important;min-height:0!important;height:auto!important}
  html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top .cs-brand-lockup{grid-area:brand!important;display:flex!important;align-items:center!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important}
  html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top .cs-brand-lockup .cs-brand-image{width:auto!important;height:38px!important;max-width:150px!important;object-fit:contain!important}
  html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top .cs-auth{grid-area:auth!important;justify-self:end!important;margin:0!important;width:auto!important}
  html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top .cs-auth a,html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top .cs-auth button{font-size:13px!important;padding:8px 12px!important;min-height:36px!important;white-space:nowrap!important}
  html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top > nav{grid-area:nav!important;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none;margin:0!important;padding:2px 0!important;width:100%!important}
  html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top > nav::-webkit-scrollbar{display:none}
  html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) > header.top > nav a{flex:0 0 auto!important;white-space:nowrap!important;font-size:14px!important;padding:8px 14px!important;min-height:38px!important}
}
 /* v274 rangées accueil alignées + badge Réservé */ html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-city-section:not(.cs321-coups) .cs-city-cards.cs-four-carousel{display:grid!important;grid-template-columns:none!important;grid-template-rows:none!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - 100px)/6)!important;gap:32px 20px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0!important;height:auto!important}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-city-section:not(.cs321-coups) .cs-city-cards.cs-four-carousel>*{scroll-snap-align:start;min-width:0!important;width:auto!important;max-width:none!important;grid-row:1!important;grid-column:auto!important}@media (max-width:1100px){html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-city-section:not(.cs321-coups) .cs-city-cards.cs-four-carousel{grid-auto-columns:calc((100% - 48px)/4)!important;gap:24px 16px!important}}@media (max-width:820px){html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-city-section:not(.cs321-coups) .cs-city-cards.cs-four-carousel{grid-auto-columns:calc((100% - 32px)/3)!important;gap:24px 16px!important}}@media (max-width:600px){html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-city-section:not(.cs321-coups) .cs-city-cards.cs-four-carousel{grid-auto-columns:calc((100% - 16px)/2)!important;gap:24px 16px!important}}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .card .photo .cs-reserved-badge{position:absolute;left:12px;bottom:12px;z-index:3;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font:700 12px/1.1 system-ui,sans-serif;padding:7px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.2)}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-example-photo>span{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .cs-reserved-badge{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) .photo:has(.cs-reserved-badge) .c390-seen{bottom:46px} /* v276 espace hébergeur lisible sur grand écran */ html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) #workspace.hx-dialog .hx-top{padding-left:max(24px,calc((100% - 1280px)/2 + 24px))!important;padding-right:max(24px,calc((100% - 1280px)/2 + 24px))!important}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) #workspace.hx-dialog .hx-body{max-width:none!important;width:100%!important;box-sizing:border-box!important;padding:40px max(24px,calc((100% - 1280px)/2 + 24px)) 80px!important}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) #workspace.hx-dialog .hx-tools{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) #workspace.hx-dialog .hx-tool{min-width:0!important}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) #workspace.hx-dialog .hx-tool *{overflow-wrap:normal!important;word-break:normal!important}@media(max-width:820px){html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) #workspace.hx-dialog .hx-body{padding:24px 16px 80px!important}html:not(#cs271a):not(#cs271b):not(#cs271c) body:not(#cs271d) #workspace.hx-dialog .hx-tools{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important}} /* v277 fiche : pas de doublon Arrivée/Départ sous le calendrier (ordinateur) */ @media(min-width:900px){dialog.cs-listing-detail .ld-calendar-home .listing-calendar-selection,dialog.cs-listing-detail .ld-calendar-home .clarity-date-price,dialog.cs-listing-detail .ld-calendar-home .listing-calendar>.clarity-budget{display:none!important}}