/* Cap’Sun Excursions — CSS isolé : n'affecte pas le header, le menu ou le footer. */
@import url('https://unpkg.com/leaflet@1.9.4/dist/leaflet.css');
#capsun-excursions {
  --cs-navy:#10263b;
  --cs-gold:#e9a83a;
  --cs-ink:#23313c;
  --cs-muted:#667582;
  box-sizing:border-box;
  color:var(--cs-ink);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.55;
}
#capsun-excursions *, #capsun-excursions *::before, #capsun-excursions *::after { box-sizing:border-box; }
#capsun-excursions .cs-map-inner { max-width:1240px; margin:0 auto; padding:0 18px; }
#capsun-excursions .cs-section-heading {
  padding:40px 24px 28px;
  margin:24px 0 22px;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(120deg,#10263b,#244b60);
}
#capsun-excursions .cs-eyebrow { font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:#f3c66f; font-weight:700; }
#capsun-excursions .cs-section-heading h2 { font-size:clamp(2rem,4vw,3.2rem); line-height:1.1; margin:10px 0 14px; color:#fff; }
#capsun-excursions .cs-section-heading p { max-width:760px; margin:0; color:#e8eef2; font-size:1.05rem; }
#capsun-excursions .cs-toolbar { max-width:1240px; margin:22px auto 14px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
#capsun-excursions .cs-toolbar label { font-weight:700; }
#capsun-excursions .cs-toolbar select,
#capsun-excursions .cs-toolbar input { font:inherit; border:1px solid #cbd4da; border-radius:8px; background:#fff; padding:11px 12px; min-height:44px; }
#capsun-excursions .cs-toolbar input { flex:1; min-width:210px; }
#capsun-excursions .cs-count { font-size:.9rem; color:var(--cs-muted); margin-left:auto; }
#capsun-excursions .cs-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr); gap:18px; align-items:stretch; margin:0 auto 28px; }
#capsun-excursions .cs-map-wrap { position:relative; min-width:0; }
#capsun-excursions #capsun-map { height:690px; min-height:440px; border-radius:14px; overflow:hidden; border:1px solid #d8e0e5; box-shadow:0 8px 26px #122b3b12; z-index:1; }
#capsun-excursions .cs-map-back { position:absolute; z-index:500; top:88px; left:10px; border:0; border-radius:9px; background:#10263b; color:#fff; padding:11px 15px; font:700 .9rem Arial,Helvetica,sans-serif; box-shadow:0 3px 12px #0004; cursor:pointer; }
#capsun-excursions .cs-map-back:hover,
#capsun-excursions .cs-map-back:focus { background:#244b60; outline:3px solid #e9a83a80; }
#capsun-excursions .cs-side { display:flex; flex-direction:column; gap:14px; min-width:0; }
#capsun-excursions .cs-mobile-card { display:none; scroll-margin-top:14px; }
#capsun-excursions .cs-hint { background:#fff; border:1px solid #e0e6e9; border-radius:12px; padding:15px 17px; font-size:.93rem; color:var(--cs-muted); }
#capsun-excursions .cs-hint strong { color:var(--cs-navy); }
#capsun-excursions #cs-place-card { background:#fff; border:1px solid #e0e6e9; border-radius:14px; overflow:hidden; box-shadow:0 8px 26px #122b3b10; }
#capsun-excursions .cs-card-photo { display:block; width:100%; height:230px; object-fit:cover; background:#dbe5e8; }
#capsun-excursions .cs-card-content { padding:20px; }
#capsun-excursions .cs-tag { display:inline-block; background:#fff3d9; color:#79521b; border-radius:99px; padding:5px 10px; font-size:.75rem; font-weight:700; margin-bottom:8px; }
#capsun-excursions .cs-card-content h2 { margin:0 0 8px; color:var(--cs-navy); font-size:1.5rem; line-height:1.2; }
#capsun-excursions .cs-card-content p { margin:0 0 16px; }
#capsun-excursions .cs-actions { display:flex; gap:9px; flex-wrap:wrap; }
#capsun-excursions .cs-button { display:inline-block; text-decoration:none; border-radius:8px; padding:10px 13px; font-weight:700; font-size:.9rem; }
#capsun-excursions .cs-button-primary { background:var(--cs-navy); color:#fff; }
#capsun-excursions .cs-button-secondary { border:1px solid #ccd6dc; color:var(--cs-navy); background:#fff; }
#capsun-excursions .cs-list-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:2px 0 10px; }
#capsun-excursions .cs-list-heading h3 { font-size:1.1rem; color:var(--cs-navy); margin:0; }
#capsun-excursions #cs-show-all { border:1px solid #ccd6dc; background:#fff; color:var(--cs-navy); border-radius:8px; padding:7px 10px; font:inherit; font-size:.82rem; font-weight:700; cursor:pointer; }
#capsun-excursions .cs-list { display:grid; gap:8px; max-height:320px; overflow:auto; padding-right:3px; }
#capsun-excursions .cs-list button { display:flex; align-items:flex-start; gap:10px; text-align:left; border:1px solid #e0e6e9; background:#fff; border-radius:9px; padding:11px 12px; cursor:pointer; color:var(--cs-ink); font:inherit; }
#capsun-excursions .cs-list button:hover,
#capsun-excursions .cs-list button:focus { border-color:var(--cs-gold); outline:2px solid #e9a83a30; }
#capsun-excursions .cs-dot { flex:0 0 10px; height:10px; border-radius:50%; background:var(--cs-gold); margin-top:7px; }
#capsun-excursions .cs-list small { display:block; color:var(--cs-muted); font-size:.8rem; }
#capsun-excursions .cs-footnote { margin:0 auto 34px; color:#6b7780; font-size:.82rem; }
#capsun-excursions .leaflet-popup-content-wrapper { border-radius:10px; }
#capsun-excursions .leaflet-popup-content { margin:12px 14px; font-family:Arial,sans-serif; }
/* Étiquettes cartographiques et décalages anti-chevauchement */
#capsun-excursions .cs-place-pin,
#capsun-excursions .cs-excursion-pin { background:transparent; border:0; overflow:visible; }
#capsun-excursions .cs-place-label,
#capsun-excursions .cs-excursion-label { display:inline-block; position:relative; white-space:nowrap; transform:translate(var(--label-x,12px),var(--label-y,-50%)); }
#capsun-excursions .cs-place-label { background:rgba(255,255,255,.94); color:#10263b; border:1px solid #e9a83a; border-radius:7px; padding:5px 8px; box-shadow:0 2px 9px #0003; font-size:11px; font-weight:700; line-height:1.2; max-width:190px; }
#capsun-excursions .cs-place-label.is-left,
#capsun-excursions .cs-excursion-label.is-left { --label-x:calc(-100% - 12px); }
#capsun-excursions .cs-place-label.is-right,
#capsun-excursions .cs-excursion-label.is-right { --label-x:12px; }
#capsun-excursions .cs-place-label:after { content:""; position:absolute; top:50%; width:8px; height:8px; background:inherit; border:inherit; transform:translateY(-50%) rotate(45deg); }
#capsun-excursions .cs-place-label.is-left:after { right:-5px; border-left:0; border-bottom:0; }
#capsun-excursions .cs-place-label.is-right:after { left:-5px; border-right:0; border-top:0; }
#capsun-excursions .cs-excursion-label { background:#10263b; color:#fff; opacity:.75; border:1px solid #fff; border-radius:15px; padding:8px 12px; box-shadow:0 3px 12px #0004; font-weight:300; font-size:12px; line-height:1.25; font-family:Arial,Helvetica,sans-serif; }
#capsun-excursions .cs-excursion-label .pin { font-size:10px; margin-right:4px; }
#capsun-excursions .cs-popup-title { font-weight:700; color:var(--cs-navy); font-size:1rem; margin-bottom:3px; }
#capsun-excursions .cs-popup-type { font-size:.78rem; color:#667582; margin-bottom:8px; }
#capsun-excursions .cs-popup-link { color:#244b60; font-weight:700; }

@media(max-width:850px) {
  #capsun-excursions .cs-map-inner { padding:0 12px; }
  #capsun-excursions .cs-layout { grid-template-columns:1fr; gap:14px; }
  #capsun-excursions #capsun-map { height:58vh; min-height:390px; grid-row:2; touch-action:pan-y; }
  /* Sur mobile, le doigt fait défiler la page au lieu de déplacer la carte. */
  #capsun-excursions #capsun-map .leaflet-container { touch-action:pan-y; }
  #capsun-excursions .cs-side { display:flex; flex-direction:column; grid-row:3; }
  #capsun-excursions .cs-mobile-card { display:block; grid-row:1; }
  #capsun-excursions .cs-side #cs-place-card { display:none; }
  #capsun-excursions .cs-side .cs-hint { order:1; }
  #capsun-excursions .cs-side .cs-place-list-panel { order:2; }
  #capsun-excursions .cs-list { max-height:260px; }
  #capsun-excursions .cs-count { width:100%; margin-left:0; }
}
