:root{--ink:#192d40;--muted:#697582;--green:#256848;--green-dark:#183c31;--soft:#f4f6f8;--line:#e5eaf0;--paper:#ffffff;--white:#fff;--warm:#fff4da;--danger:#a52e37;--shadow:0 14px 35px rgba(13,51,35,.08);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ca8a2e;outline-offset:2px}[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;left:10px;top:-70px;padding:12px;background:#fff;z-index:999}.skip-link:focus{top:10px}.topbar{position:sticky;top:0;z-index:80;display:flex;align-items:center;gap:24px;padding:12px max(22px,calc((100vw - 1340px)/2));height:75px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;white-space:nowrap}.brand-mark{display:grid;place-items:center;background:var(--green-dark);color:#f1d59a;border-radius:13px;width:47px;height:47px}.brand-mark svg{width:33px;height:33px}.brand strong{display:block;font-size:13px;letter-spacing:.07em}.brand small{font-size:10px;font-weight:800;letter-spacing:.3em;color:var(--green)}.desktop-nav{display:flex;gap:4px;align-items:center;margin:auto}.desktop-nav a{padding:10px 13px;border-radius:10px;color:#53655b;font-size:14px;font-weight:650}.desktop-nav a:hover,.desktop-nav a.active{background:var(--soft);color:var(--green)}.top-actions{display:flex;align-items:center;gap:8px}.top-actions form{display:flex;align-items:center;background:#f3f6f1;border:1px solid var(--line);border-radius:12px;padding:0 10px;min-width:175px}.top-actions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}.top-actions input{width:144px;border:0;outline:0;background:transparent;padding:12px 7px;font-size:13px;color:var(--ink)}.admin-link{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--soft)}main{width:min(1280px,calc(100% - 42px));margin:0 auto;min-height:65vh;padding:30px 0 80px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.2em;text-transform:uppercase;color:var(--green);margin:0 0 12px}.hero{display:grid;grid-template-columns:1.15fr .85fr;min-height:375px;border-radius:25px;overflow:hidden;background:var(--green-dark);color:#fff}.hero-body{padding:clamp(28px,5vw,64px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.hero .eyebrow{color:#f4cf85}.hero h1{font-size:clamp(37px,5vw,73px);line-height:1.02;letter-spacing:-.045em;margin:0 0 17px;max-width:12ch}.hero p:not(.eyebrow){font-size:17px;line-height:1.65;max-width:570px;color:#e3e9df;margin:0 0 25px}.hero-visual{background:radial-gradient(circle at 60% 40%,#6f9c7b 0,transparent 52%),linear-gradient(135deg,#477760,#143f31);display:grid;place-items:center;position:relative;overflow:hidden}.hero-visual:before{content:"";width:150%;height:60%;background:#c2d7c8;position:absolute;bottom:-33%;transform:rotate(-19deg);clip-path:polygon(0 72%,16% 31%,33% 57%,55% 5%,77% 47%,100% 0,100% 100%,0 100%);opacity:.4}.hero-visual svg{position:relative;width:76%;max-width:390px;filter:drop-shadow(0 13px 20px #153b2d66)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:12px;padding:11px 18px;border:1px solid transparent;background:var(--green);color:white;font-weight:750;font-size:14px}.btn:hover{filter:brightness(1.08)}.btn.gold{background:#f2c776;color:#243b2c}.btn.outline{background:white;color:var(--green);border-color:#bed2c3}.btn.ghost{background:transparent;border-color:#d0e0d1}.btn.danger{background:#9b3941}.btn.sm{min-height:37px;padding:7px 12px;font-size:12px}.button-row{display:flex;gap:9px;flex-wrap:wrap}.demo-banner,.info-banner,.error-banner{display:flex;gap:10px;align-items:center;margin:16px 0;padding:13px 16px;border-radius:12px;font-size:13px;line-height:1.55}.demo-banner{background:var(--warm);color:#654b1e;border:1px solid #ead7a8}.info-banner{background:var(--soft);color:#28563e}.error-banner{background:#fff0ef;color:#842935;border:1px solid #efbcbf}.section{margin-top:38px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:18px}.section h2,.page-head h1{margin:0;font-size:clamp(23px,3vw,32px);letter-spacing:-.03em}.section-head a{font-weight:750;color:var(--green);font-size:13px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.event-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);transition:transform .16s}.event-card:hover{transform:translateY(-2px)}.event-card img{display:block;width:100%;height:175px;object-fit:cover;background:#e2e8dd}.card-body{padding:16px}.card-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.chip{border-radius:999px;background:var(--soft);color:var(--green);display:inline-flex;align-items:center;gap:6px;padding:6px 9px;font-weight:750;font-size:11px}.card-body h3{font-size:17px;letter-spacing:-.02em;line-height:1.25;margin:12px 0 9px}.card-body p{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 10px}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:14px}.card-footer a{font-size:13px;font-weight:800;color:var(--green)}.fav{background:#fff;border:1px solid var(--line);width:36px;height:36px;border-radius:50%;font-size:20px;display:grid;place-items:center}.fav[aria-pressed=true]{color:#ba594c;background:#fff0ee}.page-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:2px 0 23px}.page-head p{color:var(--muted);line-height:1.5;margin:7px 0 0}.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:white;padding:12px;border:1px solid var(--line);border-radius:15px;margin-bottom:17px}.filters input,.filters select,.field input,.field select,.field textarea{width:100%;padding:11px 12px;border:1px solid #cbd9ce;background:white;border-radius:10px;color:var(--ink);min-height:44px}.filters input{flex:2 1 220px}.filters select{flex:1 1 155px}.result-count{font-size:12px;font-weight:700;color:var(--muted);margin:10px 0 16px}.empty{padding:55px 24px;text-align:center;background:#fff;border:1px dashed #c5d6c8;border-radius:16px;color:var(--muted)}.empty h3{color:var(--ink)}.detail{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}.detail-pic{width:100%;min-height:250px;max-height:420px;object-fit:cover;border-radius:18px;background:var(--soft)}.panel{background:white;border:1px solid var(--line);border-radius:17px;padding:23px;box-shadow:var(--shadow)}.detail h1{font-size:clamp(29px,4vw,46px);line-height:1.12;letter-spacing:-.04em;margin:13px 0}.detail p{line-height:1.7;color:#506358}.meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:23px 0}.meta-grid div{background:var(--paper);border-radius:11px;padding:11px}.meta-grid small{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.meta-grid strong{font-size:13px}.map-view{min-height:420px;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#e6efdf}.map-layout{display:grid;grid-template-columns:1.5fr .65fr;gap:15px}.place-list{max-height:540px;overflow:auto;background:#fff;border-radius:14px;border:1px solid var(--line);padding:8px}.place-row{display:block;width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;padding:13px;border-radius:5px}.place-row strong,.place-row small{display:block}.place-row small{color:var(--muted);margin-top:6px}.place-row:hover{background:var(--soft)}.field{display:flex;flex-direction:column;gap:5px;margin:12px 0;font-size:13px;font-weight:720}.field textarea{min-height:90px;resize:vertical}.field.checkbox{flex-direction:row;align-items:center;font-weight:550}.field.checkbox input{width:18px;height:18px;min-height:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.form-grid .span-all{grid-column:1/-1}.booking-card{max-width:720px;margin:auto}.stepper{display:flex;align-items:center;gap:12px}.stepper button{border:1px solid var(--line);border-radius:10px;width:44px;height:44px;background:var(--soft);font-size:23px}.stepper output{font-weight:900;font-size:21px;min-width:32px;text-align:center}.toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);z-index:120;background:var(--ink);color:white;padding:13px 22px;border-radius:13px;box-shadow:0 12px 35px #0003;max-width:min(90vw,500px);font-size:14px}.bottom-nav{display:none}.initial-loading{display:grid;place-items:center;min-height:45vh;color:var(--muted)}.spinner{width:27px;height:27px;border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.admin-head{display:flex;gap:10px;justify-content:space-between;align-items:center}.admin-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.admin-tabs button{border:1px solid var(--line);background:#fff;padding:10px 13px;border-radius:10px;color:var(--ink);font-weight:700}.admin-tabs button.active{background:var(--green);color:white}.admin-list{display:grid;gap:7px;margin-top:18px}.admin-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px;background:white;border:1px solid var(--line);border-radius:11px}.admin-row strong{display:block;font-size:14px}.admin-row small{display:block;color:var(--muted);margin-top:5px}.admin-toolbar{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center}.state{font-size:12px;border-radius:6px;padding:4px 8px;background:#eaf0e9}.state.draft{background:var(--warm)}.footer-note{margin-top:45px;padding:25px 0;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}@media(max-width:1050px){.topbar{gap:12px}.desktop-nav a{padding:10px 7px}.top-actions input{width:100px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.topbar{height:61px;padding:8px 15px}.brand-mark{width:39px;height:39px}.brand-mark svg{width:28px}.brand strong{font-size:10px}.brand small{font-size:8px}.desktop-nav{display:none}.top-actions{margin-left:auto}.top-actions form{min-width:0;width:38px;padding:0;position:relative;background:none;border:0}.top-actions form:focus-within{position:absolute;left:14px;right:64px;top:8px;z-index:9;width:auto;padding:0 10px;background:white;border:1px solid var(--line);box-shadow:var(--shadow)}.top-actions form svg{min-width:20px}.top-actions input{width:0;padding:11px 0;transition:width .2s}.top-actions form:focus-within input{width:100%;padding:11px 5px}.admin-link{width:35px;height:35px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:100;display:grid;grid-template-columns:repeat(5,1fr);height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);box-shadow:0 -7px 22px #162d2612}.bottom-nav a{display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center;color:#687a6c;font-size:10px;font-weight:700}.bottom-nav a span{font-size:26px;font-weight:400;line-height:1}.bottom-nav a.active{color:var(--green)}main{width:calc(100% - 28px);padding:15px 0 calc(95px + env(safe-area-inset-bottom))}.hero{grid-template-columns:1fr;min-height:0;border-radius:16px}.hero-body{padding:29px 23px}.hero h1{font-size:42px}.hero p:not(.eyebrow){font-size:14px}.hero-visual{min-height:165px;order:-1}.hero-visual svg{max-width:180px}.cards{grid-template-columns:1fr}.event-card{display:grid;grid-template-columns:105px 1fr;min-height:140px}.event-card img{height:100%;min-height:148px}.card-body{padding:11px}.card-body h3{font-size:14px;margin:8px 0}.card-body p{font-size:12px}.card-top .chip{padding:3px 6px}.card-footer{margin-top:8px}.page-head{align-items:start;flex-direction:column;margin-top:10px}.section{margin-top:27px}.detail,.map-layout{grid-template-columns:1fr}.detail-pic{max-height:230px}.panel{padding:16px}.map-view{min-height:350px}.place-list{max-height:230px}.form-grid{grid-template-columns:1fr}.meta-grid{grid-template-columns:1fr 1fr}.admin-row{align-items:flex-start}.admin-row small{max-width:56vw;word-break:break-word}.toast{bottom:85px}}@media(max-width:380px){.event-card{grid-template-columns:90px 1fr}.brand strong{letter-spacing:0}.brand-mark{width:34px;height:34px}.hero h1{font-size:36px}}

.bottom-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.card-image-fallback{display:grid;place-items:center;background:#dbece0;min-height:175px;font-size:45px}.media-dialog{width:min(940px,calc(100vw - 20px));max-height:min(850px,90vh);border:1px solid #c9d9cd;border-radius:20px;box-shadow:0 20px 70px #0005;padding:23px;color:var(--ink);background:#fff}.media-dialog::backdrop{background:#071a12ae;backdrop-filter:blur(4px)}.media-title{display:flex;align-items:start;justify-content:space-between;gap:16px}.media-title h2{margin:0;font-size:23px}.media-title p{margin:6px 0;color:var(--muted);font-size:13px}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:11px;max-height:60vh;overflow-y:auto;padding:4px}.media-tile{border:1px solid var(--line);border-radius:11px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:8px;text-align:left;color:var(--ink);background:var(--paper);min-height:130px}.media-tile:hover,.media-tile:focus-visible{background:var(--soft);border-color:var(--green)}.media-tile img{width:100%;height:100px;object-fit:cover;border-radius:7px;background:white}.media-tile:has(img[src*='/icons/']) img{object-fit:contain;padding:17px}.media-tile span{font-size:11px;font-weight:700;line-height:1.25;width:100%}.elevation-graph{width:100%;max-width:100%;height:auto;border:1px solid var(--line);border-radius:9px;background:#f4f8f4}.media-dialog .field{margin:14px 0}@media(max-width:760px){.bottom-nav a span{display:grid;place-items:center;height:28px}.media-dialog{max-height:96vh;padding:14px;border-radius:14px}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:65vh}}

#reservation-qr{display:flex;align-items:center;justify-content:center;min-height:208px;margin:14px auto 6px}#reservation-qr img,#reservation-qr canvas{width:196px!important;height:196px!important;max-width:100%}.admin-list .admin-row{gap:12px}

/* Formulari GPX tàctil i previsualització de ruta */
.gpx-summary{padding:16px;border-radius:14px;border:1px solid var(--line);background:var(--paper);margin:18px 0}
.gpx-summary h3{font-size:17px;overflow-wrap:anywhere;margin:0 0 12px}
.gpx-summary p{font-size:13px;color:var(--muted)}
.gpx-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.gpx-kpis strong{padding:13px 8px;border-radius:9px;background:white;color:var(--green);text-align:center;font-size:15px;border:1px solid var(--line)}
#gpx-preview-map{min-height:320px;margin-top:12px}
#qr-video{object-fit:cover;aspect-ratio:4/3}
@media(max-width:760px){.gpx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.gpx-summary{padding:10px}}

/* Planificador de recursos: scroll dins del cronograma i etiquetes fixes */
.timeline-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;overscroll-behavior:contain;max-height:min(65vh,650px)}
.timeline-scroll:focus-visible{outline:3px solid #ca8a2e}
.timeline-head{height:38px;position:sticky;top:0;background:#e8efe8;border-bottom:1px solid var(--line);z-index:8}
.timeline-head .timeline-label{background:#dfeadd;font-weight:800;z-index:10}
.timeline-hour{position:absolute;top:11px;font-size:11px;color:#496454;font-weight:700;transform:translateX(3px)}
.timeline-row{position:relative;border-bottom:1px solid var(--line);background:#fff}
.timeline-label{width:156px;position:sticky;left:0;top:0;z-index:5;height:100%;display:flex;align-items:center;padding:9px 13px;font-size:12px;font-weight:750;color:var(--ink);background:#f3f6f1;box-shadow:2px 0 5px #12372d17;white-space:normal;overflow-wrap:anywhere}
.timeline-background{position:absolute;top:0;height:100%;background-image:linear-gradient(to right,#dce7dc 1px,transparent 1px);pointer-events:none}
.timeline-block{position:absolute;display:flex;flex-direction:column;background:#dbece3;color:var(--ink);border:1px solid #87b49b;border-left:4px solid var(--green);border-radius:7px;overflow:hidden;height:57px;z-index:2;min-width:36px}
.timeline-block.conflicting{border-color:#bc7647;background:#fff0db;border-left-color:#bc7647}
.timeline-main{flex:1;min-width:0;text-align:left;padding:4px 7px;border:0;background:transparent;color:inherit;overflow:hidden}
.timeline-main strong,.timeline-main span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.timeline-main strong{font-size:11px}.timeline-main span{font-size:10px;opacity:.8;margin-top:2px}
.timeline-actions{display:flex;justify-content:flex-end;gap:1px;border-top:1px solid #adcaba;background:#ffffffc7}
.timeline-actions button{font-size:10px;font-weight:750;background:none;border:0;min-height:18px;padding:1px 7px;color:var(--green)}
.timeline-actions button:hover{background:var(--soft)}
#plan-day,#plan-venue{min-width:170px}
@media(max-width:760px){.timeline-scroll{max-height:58vh}.timeline-label{width:156px}.timeline-hour{font-size:10px}.timeline-block{height:58px}.timeline-main strong{font-size:11px}}

/* Disponibilitat consultada, sense exposar dades dels participants */
#booking-availability{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:13px}
.availability-caption{display:inline-flex;align-items:center;padding:8px 12px;border-radius:9px;background:var(--soft);border:1px solid var(--line);font-weight:800;color:var(--green);font-size:13px}
.card-image-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#e3eee6,#c6dfd0)}
.card-image-fallback svg{width:min(62%,140px);height:auto}
.category-icon{width:18px;height:18px;object-fit:contain;flex-shrink:0;vertical-align:middle;margin-right:4px}

/* Calendari públic, pensat per al mòbil */
.calendar-jump{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain;margin:12px 0 23px;padding:3px 0 9px}
.calendar-jump a{flex-shrink:0;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:white;font-size:12px;font-weight:750;color:var(--green)}
.calendar-jump a:hover,.calendar-jump a:focus-visible{background:var(--soft)}
.calendar-day{scroll-margin-top:90px;margin:22px 0 34px}
.calendar-day-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:0 2px 13px}
.calendar-day-heading h2{font-size:clamp(19px,2.5vw,25px);margin:0;text-transform:capitalize;letter-spacing:-.03em}
.calendar-day-heading span{font-size:12px;color:var(--muted);white-space:nowrap}
.calendar-events{display:grid;gap:1px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--line)}
.calendar-event{display:grid;grid-template-columns:81px 76px minmax(0,1fr) 36px;align-items:center;gap:15px;padding:11px 14px;background:white;min-height:94px}
.calendar-event>img{width:76px;height:70px;object-fit:cover;border-radius:9px}
.calendar-time{display:flex;flex-direction:column;align-self:start;gap:6px;padding-top:8px}
.calendar-time strong{font-size:16px;color:var(--green);font-variant-numeric:tabular-nums}
.calendar-time small{font-size:11px;color:var(--muted)}
.calendar-content{min-width:0}
.calendar-content h3{font-size:15px;line-height:1.3;margin:7px 0 4px;letter-spacing:-.015em}
.calendar-content h3 a:hover{text-decoration:underline}
.calendar-content p{font-size:12px;color:var(--muted);line-height:1.3;margin:0}
.calendar-arrow{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--soft);color:var(--green);font-size:19px}
@media(max-width:760px){
 .topbar{gap:7px}
 .top-actions{flex:1;min-width:0;margin-left:auto}
 .top-actions form{position:static;width:auto;flex:1;min-width:66px;padding:0 7px;background:#f3f6f1;border:1px solid var(--line);box-shadow:none}
 .top-actions form:focus-within{position:static;left:auto;right:auto;top:auto;width:auto;padding:0 7px;box-shadow:none}
 .top-actions input,.top-actions form:focus-within input{display:block;width:100%;min-width:0;padding:9px 2px;font-size:12px}
 .top-actions svg{width:17px;height:17px;min-width:17px}
 .brand{gap:6px}
 .brand-mark{flex-shrink:0}
 .calendar-day{scroll-margin-top:70px}
 .calendar-event{grid-template-columns:61px 55px minmax(0,1fr) 23px;padding:9px 8px;gap:8px;min-height:79px}
 .calendar-event>img{width:55px;height:56px}
 .calendar-time strong{font-size:12px}
 .calendar-time small{font-size:10px}
 .calendar-content h3{font-size:13px}
 .calendar-content .chip{font-size:10px;padding:4px 6px}
 .calendar-arrow{width:24px;height:30px;font-size:17px}
}
@media(max-width:375px){
 .brand-mark{width:30px;height:35px}
 .brand strong{max-width:82px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px}
 .brand small{font-size:7px;letter-spacing:.15em}
 .topbar{padding:7px 9px}
 .top-actions input{font-size:11px}
 .top-actions form{min-width:55px}
 .admin-link{flex-shrink:0}
}
@media print{
 @page{size:A4;margin:18mm}
 body{background:white;color:#111}
 .topbar,.bottom-nav,.top-actions,.footer-note,#toast,.button-row,.admin-tabs,.filters{display:none!important}
 main{width:100%;min-height:0;margin:0;padding:0}
 .panel{box-shadow:none;border:1px solid #bbb;break-inside:avoid}
 .page-head{margin:0 0 16px}
 .page-head h1{font-size:24px}
 #reservation-qr{min-height:205px;break-inside:avoid}
}

/* Avisos operatius de l'organització, visibles sense interrompre la navegació */
.fair-notices{display:grid;gap:7px;margin:0 0 16px}
.fair-notice{display:flex;align-items:start;gap:12px;padding:12px 15px;border-radius:12px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--green)}
.fair-notice svg{flex:0 0 21px;width:21px;height:21px;color:var(--green);margin-top:1px}
.fair-notice strong{font-size:13px;font-weight:850;color:var(--ink)}
.fair-notice p{font-size:13px;line-height:1.5;color:#4c5d51;margin:4px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.fair-notice.warning{border-left-color:#ba8b41;background:#fffdf8}
.fair-notice.warning svg{color:#9b772e}
.fair-notice.urgent{border-left-color:#ba4c4c;background:#fffafa}
.fair-notice.urgent svg{color:#a33f3f}
@media(max-width:760px){.fair-notice{padding:10px 12px;gap:9px}.fair-notice p{font-size:12px}}

/* Activitat amb diversos dies i sessions: cada aforament és independent */
.session-options{margin-top:18px;padding:17px}
.session-options h2{font-size:19px;margin:0 0 6px}
.session-options>p{font-size:13px;color:var(--muted);margin:0 0 12px}
.session-grid{display:grid;gap:8px}
.session-option{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:#fff}
.session-option>div:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}
.session-option strong{font-size:13px;color:var(--ink)}
.session-option span{font-size:12px;color:var(--muted)}
.session-option [data-session-availability]{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;font-size:12px;color:var(--muted)}
.session-option [data-session-availability] .btn{font-size:12px}
.session-unavailable{font-weight:700}
@media(max-width:600px){.session-options{padding:12px}.session-option{padding:10px;flex-wrap:wrap}.session-option [data-session-availability]{width:100%;justify-content:flex-start}}

/* Contracte públic: fotografia territorial, mapa real directament a portada i agenda contextual. */
.contract-hero{min-height:355px;grid-template-columns:1fr 1fr;box-shadow:0 16px 35px #11372910}
.contract-hero .hero-body{padding:clamp(28px,4vw,55px)}
.contract-hero h1{max-width:14ch;font-size:clamp(34px,4vw,60px)}
.contract-hero .hero-visual{
 min-height:330px;display:block;isolation:isolate;
 background-color:#355e55;
 background-image:linear-gradient(90deg,rgba(13,45,38,.16),transparent 60%),
 url("https://commons.wikimedia.org/wiki/Special:FilePath/1.2.%20Serra%20Falconera%20i%20Mond%C3%BAber%20%28la%20Safor%2C%20Pa%C3%ADs%20Valenci%C3%A0%29.jpg?width=1600");
 background-position:center;background-size:cover;
}
.contract-hero .hero-visual::before{display:none}
.hero-photo-credit{
 position:absolute;bottom:10px;right:12px;max-width:calc(100% - 24px);z-index:1;
 padding:5px 8px;border-radius:7px;background:rgba(13,35,34,.84);color:#fff;
 font-size:10px;line-height:1.4;text-align:right
}
.hero-photo-credit:hover{text-decoration:underline}
.home-quick-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}
.home-quick-nav>a{
 min-width:0;min-height:92px;display:grid;grid-template-columns:41px minmax(0,1fr);
 grid-template-rows:auto auto;align-content:center;column-gap:12px;
 padding:17px;background:#fff;border:1px solid var(--line);border-radius:15px;
 box-shadow:0 8px 20px #1239290a
}
.home-quick-nav>a:hover{border-color:#89b4a0;background:#f8fbf8}
.quick-symbol{
 grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;
 border-radius:11px;background:#e7f1eb;color:#155a43;font-size:24px
}
.home-quick-nav strong{display:block;font-size:15px}
.home-quick-nav small{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
.home-map-count{font-size:12px;font-weight:800;color:var(--green);background:#e7f1eb;border-radius:999px;padding:7px 12px;white-space:nowrap}
.home-discovery-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.83fr);gap:15px}
.home-map-panel{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff;min-width:0}
.home-venue-map{border:0;border-radius:0;min-height:360px;height:360px}
.home-map-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:12px 16px;font-size:12px;color:var(--muted)}
.home-map-footer strong{font-size:13px;color:var(--ink)}
.home-agenda{min-width:0;background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px 18px}
.home-agenda-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.home-agenda-head h3{font-size:19px;letter-spacing:-.02em;margin:0}
.home-agenda-head a{color:var(--green);font-size:12px;font-weight:800}
.home-agenda-item{display:flex;flex-direction:column;gap:5px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}
.home-agenda-item:last-child{border:0}
.home-agenda-item:hover strong{color:var(--green)}
.home-agenda-item time{color:var(--green);font-size:11px;font-weight:800}
.home-agenda-item strong{font-size:14px;line-height:1.35}
.home-agenda-item span{font-size:12px;color:var(--muted)}
.detail-location{margin:14px 0}
.detail-location h2{font-size:17px;margin:0 0 10px}
.detail-venue-map{min-height:260px;height:260px;border-radius:12px}
@media(max-width:950px){
 .home-quick-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-discovery-grid{grid-template-columns:minmax(0,1.3fr) minmax(230px,.8fr)}
 .home-venue-map{min-height:340px;height:340px}
}
@media(max-width:760px){
 .contract-hero{grid-template-columns:1fr;min-height:0}
 .contract-hero .hero-body{padding:25px 22px}
 .contract-hero h1{font-size:clamp(32px,8.3vw,44px)}
 .contract-hero .hero-visual{min-height:195px;order:-1}
 .home-quick-nav{gap:9px;margin-top:12px}
 .home-quick-nav>a{padding:11px;min-height:73px;grid-template-columns:32px minmax(0,1fr);column-gap:8px}
 .quick-symbol{width:32px;height:32px;font-size:20px}
 .home-quick-nav strong{font-size:13px}
 .home-quick-nav small{font-size:11px}
 .home-discovery-grid{grid-template-columns:minmax(0,1fr)}
 .home-venue-map{min-height:335px;height:335px}
 .home-agenda{padding:12px 15px}
 .home-map-footer{padding:10px 12px}
 .hero-photo-credit{font-size:9px}
}
@media(max-width:359px){
 .home-quick-nav>a{grid-template-columns:28px minmax(0,1fr);gap:6px;padding:9px}
 .quick-symbol{width:28px;height:28px;font-size:18px}
 .home-quick-nav strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .home-quick-nav>a{transition:none}
}


/* HOME · Contracte visual 14/10/2026. La geometria és CSS/HTML; les fotografies s'incorporen via home-media.json.
   No s'aplica cap canvi a les pantalles de gestió ni a la navegació de dades. */
body.is-fira-home{background:#fff;color:#172b23}
body.is-fira-home .topbar{height:65px;gap:22px;padding:8px max(22px,calc((100vw - 1372px)/2));box-shadow:0 1px 0 #e7ece7}
body.is-fira-home .brand{gap:9px}
body.is-fira-home .brand-mark{background:transparent;border-radius:0;color:#186341;width:63px;height:43px}
body.is-fira-home .brand-mark svg{width:62px;height:42px}
body.is-fira-home .brand strong{font-size:14px;letter-spacing:-.02em;font-weight:850}
body.is-fira-home .brand small{font-size:10px;letter-spacing:.08em;font-weight:650;color:#334e3e}
body.is-fira-home .desktop-nav{gap:7px}
body.is-fira-home .desktop-nav a{padding:10px 12px;font-weight:680;color:#263a32;border-radius:5px}
body.is-fira-home .desktop-nav a.active{color:#126442;background:transparent;box-shadow:inset 0 -2px 0 #126442}
body.is-fira-home .top-actions form{min-width:0;width:230px;border-color:#e7eae5;background:#fff}
body.is-fira-home .top-actions input{width:100%;font-size:13px}
body.is-fira-home .admin-link{background:#186847;color:#fff;border-radius:7px}
body.is-fira-home main{width:calc(100% - clamp(24px,3vw,80px));max-width:none;min-height:70vh;margin:0 auto;padding:0 0 42px}
/* La capçalera i la portada comparteixen el mateix marge fluid en desktop. */
@media(min-width:761px){
 body.is-fira-home .topbar{padding-inline:clamp(12px,1.5vw,40px)}
}
body.is-fira-home main:focus{outline:none}
.fira-home{width:100%;min-width:0}
.fira-home .fair-notices{margin-top:12px}
.home-contract-hero{position:relative;isolation:isolate;overflow:hidden;width:100%;height:clamp(270px,23.5vw,365px);min-height:270px;margin:8px 0 0;background:#254f45;border-radius:10px;color:#fff}
.home-contract-hero-image,.home-contract-hero-empty{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;z-index:-2}
.home-contract-hero-empty{background:linear-gradient(115deg,#184a3a 0%,#2e6252 56%,#5a8173 100%)}
.home-contract-hero:before{position:absolute;inset:0;z-index:-1;content:"";background:linear-gradient(90deg,rgba(4,22,17,.73) 0%,rgba(4,22,17,.39) 35%,rgba(4,22,17,0) 72%)}
.home-contract-hero-copy{position:absolute;top:50%;left:clamp(22px,4vw,58px);transform:translateY(-50%);max-width:570px}
.home-contract-hero h1{color:#fff;font-size:clamp(35px,4.35vw,66px);letter-spacing:-.045em;line-height:.94;font-weight:950;margin:0 0 12px;text-shadow:0 2px 4px #0006}
.home-contract-hero h1 span{font-weight:950}
.home-contract-motto{color:#f1d86e;font-weight:800;font-size:clamp(14px,1.5vw,21px);margin:0 0 15px;letter-spacing:-.015em}
.home-contract-fact{display:flex;align-items:center;gap:9px;margin:7px 0;color:#fff;font-size:clamp(12px,1.2vw,17px);text-shadow:0 1px 4px #0009}
.home-contract-fact svg{color:#f5d06b;flex-shrink:0}
.home-contract-slogan{position:absolute;right:6%;top:36%;margin:0;text-align:center;color:#fff;font-size:clamp(16px,2.6vw,34px);font-style:italic;font-family:Georgia,serif;line-height:1.16;transform:rotate(-9deg);text-shadow:0 2px 7px #0009}
.home-contract-slogan:after{content:"";height:5px;width:70%;display:block;margin:10px auto 0;border-radius:50%;background:#f6ca61;transform:rotate(-4deg)}
.home-contract-content{padding:14px 0 0}
.home-primary-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:15px;align-items:stretch}
.home-map-card{position:relative;min-width:0;overflow:hidden;border-radius:10px;isolation:isolate;background:#e6e9dd}
body.is-fira-home .home-contract-map{width:100%;height:345px;min-height:345px;border:0;border-radius:10px;z-index:0;background:#dfe6da}
.home-map-controls{position:absolute;z-index:550;left:12px;top:12px;right:12px;display:flex;flex-wrap:wrap;gap:5px;pointer-events:none}
.home-map-filter{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:5px;min-height:30px;border:1px solid #c4d4c8;border-radius:99px;padding:4px 11px;background:rgba(255,255,255,.97);box-shadow:0 2px 6px #0002;color:#2b4938;white-space:nowrap;font-weight:780;font-size:11px}
.home-map-filter[aria-pressed=true]{background:#1a6947;border-color:#1a6947;color:#fff}
.home-map-filter:focus-visible{outline:3px solid #efc864}
.home-map-filter.talk svg{color:#8d46ae}
.home-map-filter.excursion svg{color:#e36b32}
.home-map-filter.workshop svg{color:#286a44}
.home-map-filter.culture svg{color:#2878d0}
.home-map-filter.family svg{color:#9235a0}
.home-map-filter[aria-pressed=true] svg{color:#fff}
.home-map-count-contract{position:absolute;z-index:550;bottom:12px;left:12px;display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:9px;background:rgba(255,255,255,.97);font-size:12px;font-weight:800;color:#153d2b;box-shadow:0 2px 5px #0002;pointer-events:none}
body.is-fira-home .home-agenda{min-width:0;background:#fff;border:0;border-radius:0;box-shadow:none;padding:0 2px 0 0}
.home-agenda-header,.home-featured-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 11px}
.home-agenda-header h2,.home-featured-heading h2{font-size:clamp(19px,1.65vw,24px);font-weight:900;margin:0;letter-spacing:-.035em;line-height:1.12}
.home-agenda-header a,.home-featured-heading a{font-size:12px;font-weight:800;color:#176745;white-space:nowrap}
.home-agenda-tabs{display:flex;gap:4px;min-width:0;margin-bottom:8px}
.home-agenda-tabs button{flex:1;min-width:0;min-height:34px;padding:6px 7px;border-radius:6px;border:1px solid #eef0ed;color:#38423d;background:#f9faf9;font-size:12px;font-weight:650;white-space:nowrap}
.home-agenda-tabs button[aria-pressed=true]{background:#176745;color:#fff;border-color:#176745;font-weight:850}
.home-agenda-list{border:1px solid #edf0ed;border-radius:9px;overflow:auto;height:286px;scrollbar-width:thin}
.home-agenda-row{display:grid;grid-template-columns:53px 43px minmax(0,1fr) auto 12px;align-items:center;column-gap:9px;min-height:69px;padding:7px 10px;border-bottom:1px solid #ebefeb;transition:background .12s}
.home-agenda-row:hover{background:#f6f9f5}
.home-agenda-row:last-child{border:0}
.home-agenda-thumbnail{width:53px;height:51px;object-fit:cover;border-radius:7px}
.home-image-placeholder{display:block;background:linear-gradient(140deg,#a5bdac,#688c77 55%,#2a674a)}
.home-agenda-hour{font-variant-numeric:tabular-nums}
.home-agenda-hour strong{font-size:12px;font-weight:800}
.home-agenda-details{min-width:0;display:flex;flex-direction:column;gap:5px}
.home-agenda-details strong{display:block;font-size:13px;font-weight:850;line-height:1.23;white-space:normal}
.home-agenda-details small{display:flex;align-items:center;gap:3px;color:#69766a;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-agenda-details small svg{color:#166342;flex-shrink:0}
.home-kind-label{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;border-radius:99px;padding:6px 8px;font-weight:800;font-size:10px;color:#7137a4;background:#f0e2f7}
.home-kind-label.excursion{background:#e5f4e8;color:#246a41}
.home-kind-label.workshop{background:#fff0e7;color:#bf5128}
.home-kind-label.family{background:#f6e8f5;color:#8d319b}
.home-kind-label.culture{background:#e6efff;color:#2159ae}
.home-agenda-row>svg{color:#547262}
.home-no-events{font-size:13px;color:#65746b;padding:22px}
.home-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:16px}
.home-category-tile{position:relative;min-width:0;height:113px;isolation:isolate;overflow:hidden;border-radius:8px;background:#2a553f;color:#fff;text-align:center}
.home-category-tile.talk{background:#6e5849}
.home-category-tile.excursion{background:#3e6644}
.home-category-tile.workshop{background:#896039}
.home-category-tile.culture{background:#4a5d56}
.home-category-tile.family{background:#805065}
.home-category-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.home-category-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,15,12,.85),rgba(3,15,12,.10) 87%);z-index:-1}
.home-category-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;height:100%;padding:10px 5px}
.home-category-content svg{margin:0 0 2px;stroke-width:2.8}
.home-category-content strong{font-size:clamp(13px,1.23vw,17px);font-weight:850;letter-spacing:-.02em;line-height:1.12}
.home-category-content small{font-size:clamp(10px,.8vw,12px);font-weight:570;line-height:1.2}
.home-category-tile:hover .home-category-shade{background:linear-gradient(0deg,rgba(3,15,12,.93),rgba(3,15,12,.23) 87%)}
.home-featured-section{margin-top:21px}
.home-featured-heading{margin-bottom:12px}
.home-featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.home-feature{position:relative;min-width:0;border-radius:10px;overflow:hidden;box-shadow:0 6px 19px #0000000e;background:#fff;border:1px solid #e3ebe6}
.home-feature-link{display:flex;flex-direction:column;position:relative;min-width:0}
.home-feature-photo{height:135px;width:100%;object-fit:cover}
.home-feature .home-kind-label{position:absolute;top:116px;left:10px;z-index:2;border:2px solid #fff;padding:4px 9px}
.home-feature-link>strong{font-size:14px;font-weight:850;line-height:1.25;min-height:50px;padding:14px 11px 9px;white-space:normal}
.home-feature-fav{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:33px;height:33px;background:#143d318c;border:1px solid #fff9;border-radius:50%;color:white}
.home-feature-fav[aria-pressed=true]{background:#a54b69}
.home-feature-fav[aria-pressed=true] svg{fill:currentColor}
.fira-home>.demo-banner,.fira-home>.error-banner{font-size:12px;margin:26px 0 0}
.fira-home .footer-note{margin-top:25px}
@media(max-width:1120px){
 body.is-fira-home .topbar{gap:10px}
 body.is-fira-home .top-actions form{width:160px}
 .home-primary-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
 .home-agenda-row{grid-template-columns:42px 38px minmax(0,1fr) auto 10px;gap:6px;padding:6px 5px}
 .home-agenda-thumbnail{width:42px;height:45px}
 .home-agenda-details strong{font-size:12px}
 .home-kind-label{font-size:10px}
 .home-map-filter{font-size:10px;padding:4px 7px}
}
@media(max-width:850px){
 body.is-fira-home main{width:calc(100% - 30px)}
 body.is-fira-home .top-actions form{width:120px}
 .home-primary-grid{grid-template-columns:minmax(0,1fr);gap:15px}
 body.is-fira-home .home-contract-map{height:330px;min-height:330px}
 .home-agenda-list{height:auto;max-height:365px}
 .home-agenda-row{grid-template-columns:58px 48px minmax(0,1fr) auto 12px;min-height:70px;padding:7px}
 .home-agenda-thumbnail{width:58px;height:53px}
 .home-categories{gap:8px}
 .home-category-tile{height:105px}
 .home-category-content strong{font-size:13px}
 .home-category-content small{font-size:10px}
}
@media(max-width:760px){
 body.is-fira-home .topbar{height:60px;gap:5px;padding:7px 12px}
 body.is-fira-home .brand-mark{width:37px;height:38px}
 body.is-fira-home .brand-mark svg{width:36px;height:36px}
 body.is-fira-home .brand strong{font-size:10px;white-space:nowrap}
 body.is-fira-home .brand small{font-size:8px}
 body.is-fira-home .top-actions{min-width:55px}
 body.is-fira-home .top-actions form,body.is-fira-home .top-actions form:focus-within{width:auto;min-width:52px;padding:0 6px}
 body.is-fira-home .top-actions input{width:100%;min-width:0;font-size:11px}
 body.is-fira-home .admin-link{background:#e7f2eb;color:#17573d}
 body.is-fira-home main{width:calc(100% - 20px);padding:0 0 calc(92px + env(safe-area-inset-bottom))}
 .home-contract-hero{height:272px;min-height:272px;border-radius:8px;margin-top:7px}
 .home-contract-hero:before{background:linear-gradient(90deg,rgba(4,22,17,.78),rgba(4,22,17,.12) 95%)}
 .home-contract-hero-copy{left:19px;top:48%;max-width:85%}
 .home-contract-hero h1{font-size:clamp(31px,8.2vw,43px);margin-bottom:10px}
 .home-contract-motto{font-size:13px;margin-bottom:11px}
 .home-contract-fact{font-size:12px;margin:6px 0}
 .home-contract-slogan{font-size:17px;right:10px;top:72%;max-width:37%}
 .home-contract-content{padding-top:10px}
 .home-map-controls{left:7px;top:7px;right:7px;gap:4px}
 .home-map-filter{font-size:10px;padding:4px 7px;min-height:29px}
 body.is-fira-home .home-contract-map{height:275px;min-height:275px}
 .home-agenda{padding:0}
 .home-agenda-header h2,.home-featured-heading h2{font-size:20px}
 .home-agenda-row{grid-template-columns:53px 43px minmax(0,1fr) auto 12px}
 .home-agenda-thumbnail{width:53px;height:48px}
 .home-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}
 .home-category-tile{height:100px}
 .home-category-tile:nth-child(n+4){height:92px}
 .home-category-content strong{font-size:12px}
 .home-category-content small{font-size:10px}
 .home-featured-section{margin-top:16px}
 .home-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .home-feature-photo{height:125px}
 .home-feature .home-kind-label{top:106px}
 .home-feature-link>strong{font-size:13px;min-height:48px}
 .home-featured-heading a,.home-agenda-header a{font-size:11px}
}
@media(max-width:390px){
 .home-map-controls{max-width:calc(100% - 10px)}
 .home-map-filter{padding:3px 6px;font-size:9px}
 .home-map-filter svg{width:13px;height:13px}
 .home-agenda-row{grid-template-columns:42px 35px minmax(0,1fr) auto;gap:6px}
 .home-agenda-thumbnail{width:42px;height:43px}
 .home-agenda-hour strong{font-size:10px}
 .home-agenda-row>svg{display:none}
 .home-kind-label{font-size:9px;padding:4px 6px}
 .home-agenda-details strong{font-size:11px}
 .home-contract-slogan{display:none}
}
@media(prefers-reduced-motion:reduce){
 .home-category-tile,.home-agenda-row{transition:none}
}


/* CABÇALERA PÚBLICA 2026 — muntanyeta, tabs i usuari únic; valencià. */
.topbar .brand-mark{background:none;color:#08603b;border-radius:0;width:68px;height:44px;display:grid;place-items:center;flex:0 0 68px}
.topbar .brand-mark svg{width:68px;height:40px;max-width:100%}
.topbar .brand-name{display:flex;flex-direction:column;gap:1px}
.topbar .brand-name strong{font-size:14px;letter-spacing:-.025em;line-height:1.08;font-weight:850;color:#14241b}
.topbar .brand-name small{font-size:12px;line-height:1.06;color:#16261d;font-weight:650;letter-spacing:0}
.topbar .desktop-nav a{font-weight:700;border-radius:0}
.topbar .desktop-nav a.active{background:none;color:#08603b;box-shadow:inset 0 -2px #08603b}
.topbar .top-actions{display:flex;align-items:center;gap:12px}
.user-menu-wrap{position:relative}
.user-menu-trigger,.mobile-menu-trigger{width:43px;height:43px;min-width:43px;display:grid;place-items:center;border:1px solid #e1eae4;border-radius:10px;background:#f5f8f6;color:#183b2b;cursor:pointer}
.user-menu-trigger svg,.mobile-menu-trigger svg{display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}
.user-menu-trigger:hover,.mobile-menu-trigger:hover{background:#e8f1e9}
.user-dropdown{position:absolute;right:0;top:calc(100% + 9px);width:210px;z-index:110;display:grid;padding:7px;background:#fff;border:1px solid #e0e8e1;border-radius:12px;box-shadow:0 16px 40px #102e2333}
.user-dropdown a{padding:11px 12px;border-radius:7px;font-weight:700;font-size:13px}
.user-dropdown a:hover{background:#edf4ef}
.mobile-menu-trigger{display:none}
.fira-mobile-menu{display:none}
body.is-fira-home .topbar .brand-mark{background:none;width:75px;height:44px;flex-basis:75px}
body.is-fira-home .topbar .brand-mark svg{width:75px;height:41px}
body.is-fira-home .topbar .brand-name strong{font-size:14px}
body.is-fira-home .topbar .brand-name small{font-size:12px;letter-spacing:0}
body.is-fira-home .topbar .desktop-nav a{font-size:13px}
body.is-fira-home .top-actions form{border:0;border-radius:0;background:transparent;width:38px;min-width:38px;padding:0;overflow:visible}
body.is-fira-home .top-actions input{position:absolute;top:-5000px;width:1px;height:1px;opacity:0}
body.is-fira-home .top-actions form:focus-within{position:relative;width:230px;padding:0 8px;background:#f7faf6;border:1px solid #cddbd0;border-radius:9px}
body.is-fira-home .top-actions form:focus-within input{position:static;width:100%;height:auto;opacity:1;padding:9px 5px}
body.is-fira-home .top-actions form:focus-within svg{display:none}
body.is-fira-home .user-menu-trigger{background:#f2f7f3;border:1px solid #dfe9e0}
.home-agenda-hour{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.home-agenda-hour small{display:block;font-size:10px;color:#748078;font-weight:600;font-variant-numeric:tabular-nums}
.home-agenda-row>svg{background:#fff}
.home-contract-hero-image{object-position:center center}
.home-contract-hero:before{background:linear-gradient(90deg,rgba(0,18,13,.7) 0%,rgba(0,18,13,.4) 34%,rgba(0,18,13,.06) 72%)}
.home-contract-slogan{font-family:"Segoe Print","Bradley Hand",Georgia,serif}
.fira-venue-marker{background:transparent;border:0}
.fira-pin{width:27px;height:27px;display:grid;place-items:center;background:#177244;color:white;border:2px solid white;border-radius:50% 50% 50% 6px;transform:rotate(-45deg);box-shadow:0 2px 8px #12261d88}
.fira-pin svg{width:15px;height:15px;transform:rotate(45deg);stroke-width:2.5}
.fira-pin.talk{background:#7c33a1}.fira-pin.workshop{background:#e87724}.fira-pin.excursion{background:#21824a}.fira-pin.family{background:#aa3984}.fira-pin.culture{background:#2d6ac2}
.public-information{max-width:850px;line-height:1.7}
.public-information p{color:#53645a}
@media(min-width:761px) and (max-width:1080px){
 .topbar .desktop-nav{gap:0}
 .topbar .desktop-nav a{font-size:12px;padding:9px 8px}
 .topbar .brand-mark{flex-basis:51px;width:51px}
 .topbar .brand-mark svg{width:51px}
 .topbar .brand-name strong{font-size:12px}
 .topbar .brand-name small{font-size:11px}
}
@media(max-width:760px){
 .topbar,.topbar:has(+.fira-mobile-menu){height:60px}
 .topbar .brand-mark{flex-basis:43px;width:43px;height:38px}
 .topbar .brand-mark svg{width:43px;height:35px}
 .topbar .brand-name strong{font-size:11px!important;max-width:none!important;overflow:visible}
 .topbar .brand-name small{font-size:10px!important;letter-spacing:0!important}
 .topbar .top-actions{gap:5px;flex:1;justify-content:flex-end}
 .topbar .top-actions form,.topbar .top-actions form:focus-within{flex:0 0 35px;position:static;width:35px;min-width:35px;background:transparent;border:0;box-shadow:none;padding:0}
 .topbar .top-actions input{position:absolute!important;top:-999px!important;opacity:0;width:1px!important}
 .topbar .top-actions form:focus-within{position:absolute;left:10px;right:108px;top:7px;z-index:95;width:auto!important;padding:0 10px;background:#fff;border:1px solid #cdded3;border-radius:10px;box-shadow:0 4px 16px #142d1b25}
 .topbar .top-actions form:focus-within input{display:block;position:static!important;opacity:1;min-width:0;width:100%!important;height:auto;top:auto!important;padding:10px 3px;font-size:13px}
 .topbar .top-actions form:focus-within svg{display:none}
 .topbar .user-menu-trigger,.topbar .mobile-menu-trigger{width:37px;height:37px;min-width:37px;border:0;border-radius:8px}
 .mobile-menu-trigger{display:grid}
 .fira-mobile-menu:not([hidden]){position:fixed;z-index:100;top:60px;left:0;right:0;display:flex;flex-direction:column;padding:10px 16px 16px;background:#fff;border-bottom:1px solid #e1eae3;box-shadow:0 12px 26px #12312220;max-height:calc(100dvh - 60px);overflow:auto}
 .fira-mobile-menu a{display:block;padding:13px 12px;border-radius:9px;font-weight:700}
 .fira-mobile-menu a:hover,.fira-mobile-menu a.active{background:#e9f3eb;color:#09643f}
 .user-dropdown{right:-48px}
 body.is-fira-home .topbar{height:60px;padding:7px 12px}
 body.is-fira-home .topbar .brand-mark{flex-basis:43px;width:43px;height:38px}
 body.is-fira-home .topbar .brand-mark svg{width:43px;height:35px}
 body.is-fira-home .topbar .brand-name strong{font-size:11px}
 body.is-fira-home .topbar .brand-name small{font-size:10px}
 body.is-fira-home .top-actions form,body.is-fira-home .top-actions form:focus-within{width:35px;min-width:35px}
 body.is-fira-home .top-actions form:focus-within{width:auto!important}
 body.is-fira-home main{padding:0 0 25px}
 main{padding-bottom:35px}
}
@media(max-width:350px){
 .topbar .brand{gap:4px}
 .topbar .brand-mark{width:34px;flex-basis:34px}
 .topbar .brand-mark svg{width:34px}
 .topbar .brand-name strong{font-size:10px!important}
 .topbar .brand-name small{font-size:9px!important}
 .topbar .top-actions{gap:1px}
 .topbar .user-menu-trigger,.topbar .mobile-menu-trigger{width:33px;min-width:33px}
}


/* Mapa: marcadors identificables i enllaços bidireccionals mapa ↔ programa. */
.fira-venue-marker{background:transparent;border:0}
.fira-pin{position:relative;width:37px;height:37px;box-shadow:0 3px 10px #112c2280}
.fira-pin img{width:25px;height:25px;border-radius:7px;object-fit:cover;transform:rotate(45deg)}
.fira-pin-index{position:absolute;right:-8px;bottom:-4px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border:1px solid #fff;border-radius:50%;background:#fff;color:#153d2b;font-size:10px;font-style:normal;font-weight:900;box-shadow:0 1px 5px #0003;transform:rotate(45deg)}
.fira-place-popup{min-width:195px;max-width:260px;color:#1a342a}
.fira-place-popup>strong{display:block;font-size:14px;margin-bottom:5px}
.fira-place-count{display:block;width:100%;padding:8px 6px;color:#155a43!important;text-decoration:underline!important;text-underline-offset:3px;font-weight:800;font-size:12px}
.fira-place-popup-events{max-height:min(240px,45vh);overflow-y:auto;border-top:1px solid #dbe8df}
.fira-place-popup-events a{display:block;padding:9px 6px;border-bottom:1px solid #e3eee7;color:#1a342a!important;text-decoration:none!important;border-radius:5px}
.fira-place-popup-events a:hover,.fira-place-popup-events a:focus-visible{background:#e9f1eb}
.fira-place-popup-events small,.fira-place-popup-events span{display:block}
.fira-place-popup-events small{font-size:10px;color:#66796c}
.fira-place-popup-events span{font-size:12px;line-height:1.35;font-weight:700;margin-top:2px}
.place-list>.place-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 16px;padding:18px 12px}
.place-row button[data-place]{display:flex;grid-column:1/-1;gap:12px;align-items:flex-start;width:100%;min-width:0;border:0;background:transparent;text-align:left;color:inherit;padding:0}
.place-row button[data-place]>span:last-child{min-width:0}
.place-row button[data-place] strong{overflow-wrap:normal;word-break:normal;font-size:16px;line-height:1.4}.place-row>.fira-directions{display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:13px}.place-row>.fira-directions svg{flex:none;width:16px;height:16px}.place-row>.place-row-events{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.place-row-index{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#e9f1eb;color:#155a43;font-size:12px;font-weight:800}
.place-row-events{flex-shrink:0;color:#155a43;font-size:12px;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.place-navigation,.detail-context-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 18px}
.place-navigation a,.detail-context-links>a:not(.btn){color:#155a43;text-decoration:underline;text-underline-offset:3px;font-size:13px;font-weight:750}
.place-program-summary{display:flex;align-items:center;gap:8px;margin:-8px 0 16px;color:#56685e;font-size:13px}
.event-venue-link{text-decoration:underline;text-underline-offset:2px;color:#155a43}
@media(max-width:760px){.fira-place-popup{min-width:180px;max-width:min(240px,65vw)}.fira-place-popup-events a{padding:11px 6px}.place-row-events{font-size:11px}}

.fira-place-popup-group+.fira-place-popup-group{border-top:2px solid #c5dbcc;margin-top:8px;padding-top:7px}
.fira-place-popup-group>.fira-place-count{font-size:12px;line-height:1.35}

/* Targetes navegables: clic en tota la superfície, controls secundaris independents. */
.event-card,.home-feature{cursor:pointer}
.event-card .card-footer a::after{content:"";position:absolute;inset:0;z-index:0}
.event-card .card-footer a:focus-visible::after{outline:3px solid #ca8a2e;outline-offset:-4px;border-radius:17px}
.event-card .fav,.event-card .event-venue-link{position:relative;z-index:2}
.home-feature-link::after{content:"";position:absolute;inset:0}
.home-feature-link:focus-visible{outline:3px solid #ca8a2e;outline-offset:-3px;border-radius:10px}
.home-feature-fav{z-index:3}

/* La lupa obri efectivament la cerca oculta de la capçalera. */
.topbar .top-actions .global-search-trigger{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
.topbar .top-actions form:has(#search-top:focus) .global-search-trigger{display:none}
@media(prefers-reduced-motion:reduce){.event-card,.home-feature{transition:none!important}}

/* Taxonomia administrable de la Fira: colors reals dels cinc grups. */
.home-categories .home-category-tile{background:var(--category-accent,#2a553f)}
.home-map-filter:not([aria-pressed=true]) svg{color:var(--category-accent,#23806b)}
.event-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.event-tags span{background:#e8f2ec;color:#26543c;border:1px solid #c9ddce;border-radius:999px;font-size:12px;font-weight:700;padding:5px 10px}

/* La cerca oberta ocupa un únic camp flotant també a la portada mòbil.
   Impedix que la regla de la portada (position:relative) desborde la capçalera. */
@media(max-width:760px){
 body.is-fira-home .topbar .top-actions form:focus-within,
 .topbar .top-actions form:focus-within{
  position:absolute!important;left:10px;right:108px;top:7px;
  width:auto!important;min-width:0;max-width:none;flex:none;
  z-index:95;padding:0 9px!important;background:#fff;
  border:1px solid #cdded3;border-radius:10px;
  box-shadow:0 4px 16px #142d1b25;
 }
 body.is-fira-home .topbar .top-actions form:focus-within #search-top{
  position:static!important;display:block;opacity:1;width:100%!important;
  min-width:0;height:auto;top:auto!important;padding:10px 3px;font-size:16px;
 }
}


/* Controls del mapa separats de la cartografia en mòbil:
   no tapen el zoom, els marcadors ni els panells del Leaflet. */
@media(max-width:760px){
 .home-map-controls{
  position:relative;z-index:2;top:auto;left:auto;right:auto;
  display:flex;flex-wrap:wrap;gap:6px;padding:9px;
  background:#f5f8f5;pointer-events:auto;
 }
 .home-map-filter{min-height:40px;padding:8px 11px;font-size:11px}
 .home-agenda-tabs button{min-height:42px;font-size:12px}
 .home-feature-fav{width:42px;height:42px;right:7px;top:7px}
 .event-card .fav{width:42px;height:42px}
}

/* Grups de punts segons el zoom: objectiu tàctil de 44 píxels. */
.fira-map-cluster{display:grid;place-items:center;width:44px;height:44px;border:3px solid #fff;border-radius:50%;background:#155a43;color:#fff;font-size:15px;font-weight:850;box-shadow:0 2px 12px #092b2280}
.fira-map-cluster:hover{background:#277d59}


/* Mostra local de rutes: cartografia i POIs reutilitzats d'A un tir de pedra */
.sample-routes{max-width:1320px;margin:0 auto;padding:22px clamp(14px,3vw,32px) 48px;color:#193c32}
.sample-breadcrumb{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:16px;font-size:12px;color:#66796f}
.sample-breadcrumb a{color:#145b45;font-weight:750;text-decoration:none}
.sample-route-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,34%);gap:20px;align-items:center;margin:0 0 18px}
.sample-route-head small,.sample-index-head small{font-size:11px;letter-spacing:.075em;font-weight:800;color:#418371}
.sample-route-head h1,.sample-index-head h1{font-size:clamp(25px,4vw,41px);font-weight:790;letter-spacing:-.035em;line-height:1.12;margin:6px 0 10px}
.sample-route-head p,.sample-index-head p{font-size:15px;line-height:1.5;max-width:720px;color:#576b62;margin:0}
.sample-route-head img{width:100%;height:155px;object-fit:cover;border-radius:14px;background:#e5eee7}
.sample-route-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
.sample-route-facts>div{display:flex;flex-direction:column;gap:4px;background:#f3f7f3;padding:12px 15px;border:1px solid #dfe9df;border-radius:12px}
.sample-route-facts small{color:#66766e;font-size:11px}.sample-route-facts strong{font-size:18px;font-variant-numeric:tabular-nums}
.sample-map-tabs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 9px;position:relative;z-index:1}
.sample-map-tabs button{border:1px solid #d7e3da;background:#fff;color:#385448;min-height:40px;border-radius:9px;padding:8px 13px;font-size:12px;font-weight:700;cursor:pointer}
.sample-map-tabs button[aria-pressed=true]{background:#176a50;border-color:#176a50;color:#fff}
.sample-view-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,320px);gap:14px;align-items:stretch}
.sample-map-wrap,.sample-pois{border:1px solid #dce8de;border-radius:15px;background:#fff;min-width:0;overflow:hidden}
.sample-map-wrap{position:relative}.sample-route-map{height:465px;width:100%;z-index:0}
.sample-route-map .leaflet-control-zoom{margin-left:13px;margin-bottom:16px;box-shadow:0 5px 19px #142d241f;border:0;border-radius:9px;overflow:hidden}
.sample-route-map .leaflet-control-zoom a{width:37px;height:37px;line-height:36px;font-size:21px}
.sample-route-map .leaflet-top.leaflet-left{top:12px}
.sample-pois{height:465px;display:flex;flex-direction:column}
.sample-pois-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid #e6eee7;flex:none}
.sample-pois-head strong{font-size:15px}.sample-pois-head span{background:#e9f2e9;border-radius:99px;color:#1d7056;padding:4px 9px;font-size:12px;font-weight:800}
.sample-pois-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1}
.sample-pois-list button{display:grid;grid-template-columns:38px minmax(0,1fr) 10px;gap:9px;width:100%;text-align:left;padding:12px 12px;border:0;border-bottom:1px solid #edf1ed;background:#fff;cursor:pointer;align-items:center;color:#234439;min-height:68px}
.sample-pois-list button.selected,.sample-pois-list button:hover{background:#eef7f1}
.sample-pois-list button strong{display:block;font-size:12px;line-height:1.35}
.sample-pois-list button small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;color:#69796f;font-size:11px;line-height:1.38}
.sample-poi-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e6f0eb;color:#166449;font-size:17px}
.sample-poi-chevron{font-size:22px;color:#799286}
.sample-poi-marker{background:transparent;border:0}
.sample-poi-marker span{display:grid;place-items:center;background:#fff;color:#19674c;width:34px;height:34px;border:2px solid #176c4d;box-shadow:0 2px 8px #0003;border-radius:50%;font-size:18px}
.sample-profile{margin-top:14px;background:#fff;border:1px solid #dce8de;border-radius:15px;padding:16px}
.sample-profile-title{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.sample-profile-title h2,.sample-description h2{font-size:18px;margin:0 0 12px;font-weight:760}
.sample-profile-title span{font-size:12px;color:#667a6e}
.sample-elevation svg{width:100%;height:210px;display:block;touch-action:pan-y;cursor:crosshair}
.sample-elevation text{fill:#6b7e71;font:12px system-ui}
.sample-description{margin-top:14px;background:#fff;border:1px solid #dce8de;border-radius:15px;padding:clamp(16px,3vw,28px)}
.sample-description p{font-size:14px;line-height:1.75;max-width:850px;margin:0 0 12px;white-space:normal}
.sample-route-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.sample-route-actions .btn{min-height:42px;display:inline-flex;align-items:center}
.sample-disclaimer{font-size:12px;line-height:1.5;color:#6b7e72;margin:16px 0}
.sample-index-head{background:#e9f3ea;padding:clamp(20px,4vw,40px);border-radius:16px;margin-bottom:20px}
.sample-index-head>span{display:inline-block;margin-top:14px;border-radius:99px;background:#fff;color:#386a55;padding:7px 12px;font-size:11px;font-weight:750}
.sample-route-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sample-route-card{display:flex;flex-direction:column;background:#fff;border:1px solid #dfe9df;border-radius:15px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 4px 12px #173d250a;transition:transform .16s,box-shadow .16s}
.sample-route-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px #173d2516}
.sample-card-media{height:172px;background:linear-gradient(145deg,#cce0cd,#8fae9a);overflow:hidden}
.sample-card-media img{width:100%;height:100%;object-fit:cover}
.sample-card-placeholder{height:100%;display:grid;place-items:center;font-size:65px;color:#ffffffaa}
.sample-card-copy{padding:16px 18px 20px;display:flex;flex-direction:column;flex:1;gap:8px}
.sample-card-copy small{color:#32806a;font-size:10px;font-weight:800;letter-spacing:.04em}
.sample-card-copy h2{font-size:21px;line-height:1.16;margin:0;letter-spacing:-.025em}
.sample-card-copy p{font-size:13px;line-height:1.55;color:#5b7062;margin:0;flex:1}
.sample-card-copy>strong{font-size:12px;color:#136344;margin-top:3px}
.sample-card-facts{display:flex;flex-wrap:wrap;gap:6px}
.sample-card-facts span{border-radius:7px;background:#edf5ed;padding:6px 8px;font-size:11px;font-weight:700;color:#335949}
@media(max-width:760px){
.sample-routes{padding:16px 12px 40px}
.sample-route-head{display:flex;flex-direction:column-reverse;align-items:stretch;gap:12px}
.sample-route-head img{height:170px}
.sample-route-head h1{font-size:28px}
.sample-route-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.sample-route-facts>div{padding:10px 12px}.sample-route-facts strong{font-size:16px}
.sample-map-tabs{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.sample-map-tabs button{font-size:11px;padding:8px 5px;min-width:0}
.sample-view-grid{grid-template-columns:minmax(0,1fr);gap:10px}
.sample-route-map{height:360px}
.sample-pois{height:auto;max-height:290px}
.sample-pois-list{max-height:245px}
.sample-profile{padding:12px}
.sample-elevation svg{height:185px}
.sample-route-list{grid-template-columns:minmax(0,1fr)}
.sample-route-actions .btn{width:100%;justify-content:center}
}

/* Mapa públic: els filtres i les capes tenen una barra pròpia.
   No poden cobrir els botons de zoom ni els marcadors de Leaflet. */
.home-map-toolbar,.fira-map-toolbar{
 display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:10px 12px;
 background:#f6f8f4;border-bottom:1px solid #dfe7df;
}
.home-map-toolbar .home-map-controls{
 position:static;inset:auto;max-width:none;min-width:0;
 flex:1 1 390px;display:flex;flex-wrap:wrap;gap:6px;
 padding:0;pointer-events:auto;z-index:auto;
}
.home-map-toolbar .home-map-filter{
 min-height:38px;padding:7px 11px;font-size:12px;line-height:1.2;
 border:1px solid #cddbd0;box-shadow:none;
}
.home-map-toolbar .home-map-filter[aria-pressed="true"]{background:#176745;color:#fff}
.home-map-toolbar .home-map-filter svg{flex-shrink:0}
.fira-map-layers{
 display:inline-flex;align-items:stretch;flex-wrap:nowrap;
 gap:3px;min-width:0;padding:3px;border:1px solid #d8e4da;
 border-radius:11px;background:#e9efea;
}
.fira-map-layer{
 min-width:0;min-height:36px;white-space:nowrap;
 border:1px solid transparent;border-radius:8px;
 padding:7px 11px;background:transparent;color:#294537;
 font-size:12px;font-weight:750;line-height:1.2;
}
.fira-map-layer:hover{background:#f8fbf8}
.fira-map-layer[aria-pressed="true"]{
 background:#fff;border-color:#bfd5c7;color:#075d3a;
 box-shadow:0 1px 4px #102e2314;
}
.fira-map-layer:focus-visible{outline:3px solid #ca8a2e;outline-offset:2px}
.fira-map-frame{min-width:0;overflow:hidden;border-radius:12px;background:#e8ede6}
.map-layout .fira-map-frame,.detail-location .fira-map-frame{min-width:0}
.fira-map-frame .map-view{min-width:0}
.home-map-card .home-map-count-contract{bottom:12px}
@media(max-width:760px){
 .home-map-toolbar,.fira-map-toolbar{
  display:flex;flex-direction:column;align-items:stretch;
  gap:7px;padding:9px 9px 10px;
 }
 .home-map-toolbar .home-map-controls{
  position:static;inset:auto;max-width:none;
  flex:0 0 auto;width:100%;flex-wrap:wrap;overflow-x:visible;
  gap:6px;padding:1px 1px 5px;scrollbar-width:thin;
  overscroll-behavior-x:contain;
 }
 .home-map-toolbar .home-map-filter{
  flex:0 0 auto;min-height:42px;padding:9px 11px;font-size:12px;
 }
 .fira-map-layers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
 .fira-map-layer{min-height:42px;padding:8px 5px;font-size:12px}
}
@media(max-width:390px){
 .home-map-toolbar .home-map-filter{font-size:12px;padding:9px 10px}
 .fira-map-layer{font-size:11px}
}


/* PORTADA · Agenda fidel a la referència: cinc columnes i llista sense marc.
   Única secció responsable del disseny de l'agenda; també en mòbil. */
body.is-fira-home .home-agenda{
 min-width:0;display:flex;flex-direction:column;
 padding:0 2px 0 0;background:#fff;border:0;box-shadow:none
}
body.is-fira-home .home-agenda-header{
 display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px;padding:8px 0 0 14px
}
body.is-fira-home .home-agenda-header h2{
 display:inline-flex;align-items:center;gap:10px;min-width:0;
 margin:0;font-size:19px;line-height:1.16;letter-spacing:-.02em;
 font-weight:720;color:#1a2d29
}
body.is-fira-home .home-agenda-header h2 svg{
 flex:0 0 23px;width:23px;height:23px;color:#194632;stroke-width:2
}
body.is-fira-home .home-agenda-header a{
 flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
 min-height:30px;padding:5px 11px;border:1px solid #d9e1da;border-radius:8px;
 background:#fff;color:#324239;font-size:11px;line-height:1.2;font-weight:720;
 text-decoration:none
}
body.is-fira-home .home-agenda-header a:hover{background:#f4f7f3}
body.is-fira-home .home-agenda-tabs{
 display:flex;gap:7px;min-width:0;width:100%;margin:0 0 7px;padding-left:17px
}
body.is-fira-home .home-agenda-tabs button{
 flex:0 0 clamp(72px,15%,106px);width:auto;min-width:0;min-height:32px;
 padding:6px 10px;border:1px solid #e6ebe6;border-radius:7px;
 background:#f8f9f8;color:#344238;font-size:11px;line-height:1.1;font-weight:630;
 text-align:center;white-space:nowrap
}
body.is-fira-home .home-agenda-tabs button[aria-pressed=true]{
 border-color:#315d37;background:#315d37;color:#fff;font-weight:790
}
body.is-fira-home .home-agenda-tabs button:focus-visible{
 outline:2px solid #315d37;outline-offset:2px
}
body.is-fira-home .home-agenda-list{
 height:auto;max-height:none;min-width:0;overflow:visible;scrollbar-width:auto;
 border:0;border-radius:0;background:#fff;padding-left:10px
}
body.is-fira-home .home-agenda-row{
 display:grid;
 grid-template-columns:clamp(38px,6.5%,48px) clamp(33px,6.6%,44px) clamp(76px,16.4%,110px) minmax(0,1fr) 15px;
 align-items:center;column-gap:clamp(7px,1.15vw,12px);min-width:0;min-height:76px;
 padding:8px 5px;border:0;border-bottom:1px solid #e6ebe6;
 color:#172c25;background:#fff;text-decoration:none;transition:background .12s
}
body.is-fira-home .home-agenda-row:last-child{border-bottom:0}
body.is-fira-home .home-agenda-row:hover{background:#f6f9f6}
body.is-fira-home .home-agenda-row:focus-visible{
 position:relative;outline:2px solid #2d6a45;outline-offset:-2px;z-index:1
}
body.is-fira-home .home-agenda-hour{
 display:flex;flex-direction:column;align-items:flex-start;align-self:start;justify-content:flex-start;
 margin-top:12px;min-width:0;white-space:nowrap;font-variant-numeric:tabular-nums
}
body.is-fira-home .home-agenda-hour strong{
 font-size:11px;line-height:1.15;font-weight:500;color:#576879
}
body.is-fira-home .home-agenda-type-icon{
 display:grid;place-items:center;justify-self:center;align-self:start;
 width:37px;height:37px;max-width:100%;border:1px solid #e7eae7;
 border-radius:10px;background:#f5f7f5;color:#204d37
}
body.is-fira-home .home-agenda-type-icon svg{
 display:block;width:21px;height:21px;stroke-width:2
}
body.is-fira-home .home-agenda-type-icon:is(
 [data-agenda-kind="screening"],[data-agenda-kind="music"],
 [data-agenda-kind="closing"],[data-agenda-kind="talk"],
 [data-agenda-kind="presentation"]){color:#24332e}
body.is-fira-home .home-agenda-type-icon img{
 display:block;width:22px;height:22px;object-fit:contain
}
body.is-fira-home .home-agenda-thumbnail{
 display:block;width:100%;height:auto;max-height:69px;aspect-ratio:1.5/1;
 object-fit:cover;border-radius:7px
}
body.is-fira-home .home-agenda-details{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 min-width:0;gap:3px;overflow:hidden;padding-left:7px
}
body.is-fira-home .home-agenda-details>strong{
 display:block;max-width:100%;font-size:11.5px;line-height:1.21;font-weight:720;
 color:#202c3c;white-space:normal;overflow-wrap:anywhere
}
body.is-fira-home .home-agenda-location{
 display:flex;align-items:center;gap:4px;max-width:100%;min-width:0;
 font-size:10.5px;line-height:1.15;font-weight:430;color:#67717b;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
body.is-fira-home .home-agenda-location svg{display:none}
body.is-fira-home .home-agenda-badges{
 display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0
}
body.is-fira-home .home-agenda-badge,
body.is-fira-home .home-agenda-badge.excursion,
body.is-fira-home .home-agenda-badge.talk,
body.is-fira-home .home-agenda-badge.workshop,
body.is-fira-home .home-agenda-badge.culture,
body.is-fira-home .home-agenda-badge.family,
body.is-fira-home .home-agenda-badge.secondary{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:18px;max-width:100%;padding:3px 8px;border-radius:99px;
 background:#e8f1e6;color:#45644d;font-size:9.5px;font-weight:500;line-height:1.1;
 white-space:nowrap
}
body.is-fira-home .home-agenda-badge svg{display:none}
body.is-fira-home .home-agenda-chevron{
 display:flex;align-items:center;justify-content:center;color:#263b34
}
body.is-fira-home .home-agenda-chevron svg{display:block;width:17px;height:17px}
@media (min-width:851px){
 body.is-fira-home .home-contract-map{height:365px;min-height:365px}
}
@media(max-width:850px){
 body.is-fira-home .home-agenda-row{
  grid-template-columns:39px 34px clamp(62px,16%,95px) minmax(0,1fr) 14px;
  column-gap:10px;min-height:78px;padding:8px 6px
 }
 body.is-fira-home .home-agenda-details>strong{font-size:13px}
 body.is-fira-home .home-agenda-location{font-size:11px}
}
@media(max-width:480px){
 body.is-fira-home .home-agenda-header{gap:8px;margin-bottom:10px;padding-left:0;padding-top:0}
 body.is-fira-home .home-agenda-header h2{font-size:18px;gap:6px}
 body.is-fira-home .home-agenda-header h2 svg{width:20px;height:20px;flex-basis:20px}
 body.is-fira-home .home-agenda-list{padding-left:0}
 body.is-fira-home .home-agenda-hour{margin-top:12px}
 body.is-fira-home .home-agenda-details{padding-left:0}
 body.is-fira-home .home-agenda-header a{
  min-height:33px;padding:7px 9px;font-size:10px;white-space:nowrap
 }
 body.is-fira-home .home-agenda-tabs{gap:5px;margin-bottom:7px;padding-left:0}
 body.is-fira-home .home-agenda-tabs button{
  flex:1 1 0;width:auto;min-height:35px;padding:7px 3px;font-size:11px
 }
 body.is-fira-home .home-agenda-row{
  grid-template-columns:37px 29px clamp(44px,14%,60px) minmax(0,1fr) 12px;
  column-gap:5px;min-height:66px;padding:7px 3px
 }
 body.is-fira-home .home-agenda-type-icon{width:29px;height:29px;border-radius:8px}
 body.is-fira-home .home-agenda-type-icon svg,
 body.is-fira-home .home-agenda-type-icon img{width:19px;height:19px}
 body.is-fira-home .home-agenda-hour strong{font-size:10px}
 body.is-fira-home .home-agenda-details>strong{font-size:11px}
 body.is-fira-home .home-agenda-location{font-size:10px}
 body.is-fira-home .home-agenda-badge,
 body.is-fira-home .home-agenda-badge.secondary{min-height:16px;padding:2px 6px;font-size:9px}
 body.is-fira-home .home-agenda-chevron svg{width:12px;height:12px}
}
@media(max-width:360px){
 body.is-fira-home .home-agenda-row{
  grid-template-columns:34px 27px 42px minmax(0,1fr) 11px;
  column-gap:4px;padding:7px 2px
 }
 body.is-fira-home .home-agenda-type-icon{width:27px;height:27px}
}

/* HOME 2026 · Dia, franja horària i ubicació dins de cada activitat destacada. */
body.is-fira-home .home-feature{display:flex;flex-direction:column;min-width:0}
body.is-fira-home .home-feature-link{display:flex;flex-direction:column;flex:1;min-width:0}
body.is-fira-home .home-feature-link>strong{min-height:0;padding:15px 12px 7px;line-height:1.32;overflow-wrap:anywhere}
body.is-fira-home .home-feature-meta{display:flex;flex-direction:column;gap:7px;margin-top:auto;padding:3px 12px 13px;min-width:0}
body.is-fira-home .home-feature-meta-row{display:flex;align-items:flex-start;gap:6px;min-width:0;font-size:12px;line-height:1.34}
body.is-fira-home .home-feature-meta-row svg{flex:0 0 15px;height:15px;width:15px;stroke-width:1.85;margin-top:0}
body.is-fira-home .home-feature-meta-row>span{min-width:0;overflow-wrap:anywhere}
body.is-fira-home .home-feature-meta-when{font-size:12px;font-weight:750;color:#285c3d;font-variant-numeric:tabular-nums}
body.is-fira-home .home-feature-meta-where{color:#69786d;font-weight:580}
@media(max-width:760px){
 body.is-fira-home .home-feature-link>strong{font-size:13px;padding:15px 9px 7px}
 body.is-fira-home .home-feature-meta{padding:2px 9px 12px;gap:6px}
 body.is-fira-home .home-feature-meta-row{font-size:11px;gap:5px}
 body.is-fira-home .home-feature-meta-row svg{width:13px;height:13px;flex-basis:13px}
}


/* HOME MAPA · filtres professionals, capes segregades i fitxes fora del tall del mapa. */
body.is-fira-home .home-map-toolbar{
 display:grid;grid-template-columns:minmax(0,1fr);gap:11px;
 padding:12px 13px 13px;background:#fff;border-bottom:1px solid #e0e8df;
}
body.is-fira-home .home-map-toolbar-head{
 display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;flex-wrap:wrap;
}
body.is-fira-home .home-map-toolbar-title{
 display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:850;
 letter-spacing:.005em;color:#204c37;white-space:nowrap;
}
body.is-fira-home .home-map-toolbar-title svg{stroke-width:2.3;color:#176745}
body.is-fira-home .home-map-toolbar .home-map-controls{
 position:static;inset:auto;width:100%;min-width:0;max-width:100%;display:flex;
 flex-wrap:wrap;align-items:center;gap:6px;overflow:visible;padding:0;
 pointer-events:auto;z-index:auto;
}
body.is-fira-home .home-map-toolbar .home-map-filter{
 --filter:#176745;
 display:inline-flex;align-items:center;justify-content:center;gap:6px;
 flex:0 0 auto;min-height:33px;padding:7px 11px;border:1px solid #dae6da;
 border-radius:8px;background:#f7faf6;box-shadow:none;
 color:#3a4e42;font-size:11px;font-weight:770;line-height:1.1;
 white-space:nowrap;transition:background .15s,border-color .15s,color .15s;
}
body.is-fira-home .home-map-toolbar .home-map-filter svg{width:16px;height:16px;flex:0 0 16px;color:var(--category-accent,#246c46)}
body.is-fira-home .home-map-toolbar .home-map-filter:hover{background:#eaf3eb;border-color:#a8c7af}
body.is-fira-home .home-map-toolbar .home-map-filter[aria-pressed="true"]{
 background:#1f633f;border-color:#1f633f;color:#fff;
 box-shadow:0 2px 5px #194d2720;
}
body.is-fira-home .home-map-toolbar .home-map-filter[aria-pressed="true"] svg{color:#fff}
body.is-fira-home .home-map-toolbar .home-map-filter:focus-visible{
 outline:3px solid #e3b953;outline-offset:2px
}
body.is-fira-home .home-map-toolbar .fira-map-layers{
 flex:0 0 auto;display:flex;align-items:center;gap:2px;width:auto;
 padding:3px;border:1px solid #dee8df;border-radius:8px;background:#f1f5f1
}
body.is-fira-home .home-map-toolbar .fira-map-layer{
 min-height:30px;padding:5px 10px;border-radius:6px;font-size:11px;font-weight:750;
 color:#647368
}
body.is-fira-home .home-map-toolbar .fira-map-layer[aria-pressed="true"]{
 color:#155c3b;background:#fff;border-color:#c9ddcf
}
/* El panell s'afegeix directament a body: cap ancestor amb overflow:hidden el pot retallar. */
.fira-home-map-details{
 position:fixed;z-index:12000;width:min(350px,calc(100vw - 24px));
 max-height:min(540px,calc(100dvh - 24px));display:flex;flex-direction:column;
 overflow:hidden;border:1px solid #dce9df;border-radius:17px;
 background:#fff;box-shadow:0 18px 60px #0e302d38,0 2px 12px #102d2714;
 color:#1b3327;font-size:13px;text-align:left;
}
.fira-map-details-head{
 display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding:15px 17px 10px;
 background:#fff
}
.fira-map-details-eyebrow{display:inline-flex;align-items:center;gap:4px;color:#57725f;font-size:10px;font-weight:850;letter-spacing:.07em}
.fira-map-details-head h3{margin:5px 0 0;font-size:20px;line-height:1.2;letter-spacing:-.025em;color:#193a29;font-weight:880}
.fira-map-details-close{
 width:34px;height:34px;min-width:34px;display:grid;place-items:center;padding:0;
 border:1px solid #dce6dc;border-radius:9px;background:#f6f8f5;color:#47594d;
}
.fira-map-details-close:hover{background:#e8f1e9;color:#214f34}
.fira-map-details-meta{
 display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:0 17px 12px;color:#536c5b;font-size:12px;font-weight:750
}
.fira-map-details-meta a{display:inline-flex;align-items:center;gap:5px;color:#176745;font-size:12px;font-weight:850;text-decoration:none}
.fira-map-details-meta a:hover{text-decoration:underline;text-underline-offset:3px}
.fira-map-details-routes{padding:10px 14px 12px;border-top:1px solid #eaf0e9;background:#f8faf7}
.fira-map-details-routes .fira-map-main-directions{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:35px;
 padding:7px 11px;border:1px solid #bfd7c5;border-radius:9px;background:#e9f4eb;
 color:#155d3c;font-size:12px;font-weight:840;text-decoration:none;
}
.fira-map-details-routes .fira-map-main-directions:hover{background:#dcf0e0;border-color:#88b49a}
.fira-map-details-routes .fira-travel-modes{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.fira-map-details-routes .fira-travel-modes a{
 display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:5px 8px;
 background:#fff;border:1px solid #dee8df;border-radius:8px;
 color:#345542;font-size:11px;font-weight:720;text-decoration:none
}
.fira-map-details-routes .fira-travel-modes a:hover{border-color:#91b99d;background:#f3f8f3}
.fira-map-details-routes .fira-travel-modes a svg:first-child{color:#26734b}
.fira-map-details-routes .fira-travel-modes a svg:last-child{color:#799887}
.fira-map-details-events{overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain;padding:2px 9px 8px;background:#fff}
.fira-map-details-event{
 position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;
 padding:11px 31px 11px 9px;border-bottom:1px solid #edf1eb;border-radius:8px;
 text-decoration:none;color:#20382a
}
.fira-map-details-event:last-child{border-bottom:0}
.fira-map-details-event:hover,.fira-map-details-event:focus-visible{background:#eaf4ec}
.fira-map-details-event-meta{display:flex;align-items:center;gap:5px;font-size:11px;color:#65816c}
.fira-map-details-event strong{font-size:13px;line-height:1.35;font-weight:850;color:#173b28}
.fira-map-details-event small{display:flex;align-items:center;gap:4px;font-size:11px;color:#708173}
.fira-map-details-event-go{position:absolute;right:8px;top:50%;transform:translateY(-50%);color:#37774f}
.fira-map-details-empty{padding:12px 8px;color:#667769}
.fira-map-details-places{display:flex;flex-direction:column;max-height:110px;overflow:auto;padding:7px 12px;background:#f7faf6;border-top:1px solid #e8efe8}
.fira-map-details-places a{display:flex;align-items:center;gap:6px;padding:7px 4px;color:#1b6642;text-decoration:none;font-size:12px;font-weight:750}
.fira-map-details-places a svg:last-child{margin-left:auto}
.fira-home-map-details :is(a,button):focus-visible{outline:3px solid #caa34b;outline-offset:1px}
@media(max-width:760px){
 body.is-fira-home .home-map-toolbar{gap:9px;padding:10px 10px 12px}
 body.is-fira-home .home-map-toolbar-head{flex-wrap:wrap;gap:8px}
 body.is-fira-home .home-map-toolbar-title{font-size:12px}
 body.is-fira-home .home-map-toolbar .fira-map-layers{width:auto;max-width:100%;display:inline-flex}
 body.is-fira-home .home-map-toolbar .fira-map-layer{min-height:32px;padding:6px 9px;font-size:11px}
 body.is-fira-home .home-map-toolbar .home-map-controls{
  flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
  width:100%;padding:2px 1px 6px;overscroll-behavior-x:contain
 }
 body.is-fira-home .home-map-toolbar .home-map-filter{min-height:37px;padding:8px 10px;font-size:12px}
 .fira-home-map-details{
  width:auto;left:12px!important;right:12px!important;top:auto!important;
  bottom:calc(12px + env(safe-area-inset-bottom));max-height:min(68dvh,540px);
  border-radius:16px
 }
}
@media(max-width:390px){
 body.is-fira-home .home-map-toolbar-head{display:flex;align-items:flex-start;flex-direction:column}
 body.is-fira-home .home-map-toolbar .fira-map-layers{width:100%;justify-content:space-between}
 body.is-fira-home .home-map-toolbar .fira-map-layer{flex:1}
 .fira-map-details-routes .fira-travel-modes a{font-size:10px;padding:5px 6px}
}
@media(prefers-reduced-motion:reduce){
 body.is-fira-home .home-map-toolbar .home-map-filter{transition:none}
}


/* Coherent iPhone-style public flow: inici, programa, activitat i reserva. */
@media(max-width:780px){
 body{overflow-x:clip;-webkit-tap-highlight-color:transparent}
 #main{min-width:0}
 #main .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:stretch}
 #main .filters #filter-text{grid-column:1/-1;min-width:0;min-height:48px;font-size:16px}
 #main .filters select{min-width:0;max-width:100%;min-height:44px;padding:9px 24px 9px 10px;font-size:13px;border-radius:12px;background-color:#fff}
 #main .cards{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
 #main .event-card{min-width:0;border-radius:18px;overflow:hidden;box-shadow:0 3px 15px #10291b10;border:1px solid #e3e8e4}
 #main .event-card:active{transform:scale(.996)}
 #main .event-card img{max-width:100%;object-fit:cover}
 #main .detail-context-links{display:flex;gap:8px;flex-wrap:wrap}
 #main .detail-context-links .btn{min-height:42px;border-radius:999px}
 #main .session-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
 #main .session-option{min-width:0;border:1px solid #e3e9e5;border-radius:15px;background:#fff;padding:13px;display:flex;gap:10px;flex-wrap:wrap}
 #main .session-option>div:first-child{min-width:0;flex:1 1 190px}
 #main .session-option strong,#main .session-option span{overflow-wrap:anywhere}
 #main .booking-card,#main .panel{max-width:100%;min-width:0}
 #main .booking-card input,#main .booking-card select,#main .booking-card textarea{max-width:100%;font-size:16px}
 #main .btn{touch-action:manipulation}
 body.is-fira-home .home-contract-hero{overflow:hidden}
 body.is-fira-home .home-contract-hero-copy{max-width:100%}
 body.is-fira-home .home-contract-hero h1{overflow-wrap:anywhere}
}


/* HOME · filtres flotants DAMUNT del mapa com a la maqueta aprovada. */
body.is-fira-home .home-map-card{position:relative;isolation:isolate;overflow:hidden;border-radius:10px;background:#dee7dc}
body.is-fira-home .home-map-card .home-contract-map{height:365px;min-height:365px;border:0;border-radius:10px}
body.is-fira-home .home-map-overlay{
 position:absolute;z-index:650;top:10px;left:10px;right:10px;
 display:flex;align-items:flex-start;justify-content:space-between;gap:9px;
 pointer-events:none;min-width:0;
}
body.is-fira-home .home-map-overlay .home-map-controls{
 position:static;inset:auto;min-width:0;max-width:100%;display:flex;flex:1 1 auto;
 align-items:center;gap:6px;flex-wrap:wrap;pointer-events:none;
}
body.is-fira-home .home-map-overlay .home-map-filter{
 flex:0 0 auto;pointer-events:auto;display:inline-flex;align-items:center;
 gap:6px;min-height:34px;padding:6px 11px;
 border:1px solid #d6e5d8;border-radius:99px;
 background:#fff;color:#27452f;box-shadow:0 3px 9px #102b202a;
 font-weight:730;font-size:12px;line-height:1.15;white-space:nowrap
}
body.is-fira-home .home-map-overlay .home-map-filter svg{width:16px;height:16px;flex:0 0 16px;color:var(--category-accent,#237649)}
body.is-fira-home .home-map-overlay .home-map-filter[aria-pressed="true"]{
 background:#176846;color:#fff;border-color:#176846;box-shadow:0 3px 8px #13292038
}
body.is-fira-home .home-map-overlay .home-map-filter[aria-pressed="true"] svg{color:#fff}
body.is-fira-home .home-map-overlay .home-map-filter:focus-visible{
 outline:3px solid #ffcc74;outline-offset:2px
}
body.is-fira-home .home-map-layer-menu{
 flex:0 0 auto;position:relative;pointer-events:auto;
 color:#174c34
}
body.is-fira-home .home-map-layer-menu summary{
 display:flex;align-items:center;gap:6px;cursor:pointer;user-select:none;
 min-height:34px;padding:6px 10px;border-radius:9px;border:1px solid #d8e5d7;
 background:#fff;box-shadow:0 3px 9px #102b202a;font-size:12px;font-weight:790;list-style:none
}
body.is-fira-home .home-map-layer-menu summary::-webkit-details-marker{display:none}
body.is-fira-home .home-map-layer-menu[open] summary{border-color:#8bab95;border-radius:9px 9px 0 0}
body.is-fira-home .home-map-layer-menu .fira-map-layers{
 display:flex;position:absolute;top:100%;right:0;
 min-width:158px;width:max-content;max-width:min(260px,80vw);
 flex-direction:column;gap:3px;padding:6px;
 border:1px solid #cbdccd;background:#fff;border-radius:9px 0 9px 9px;
 box-shadow:0 8px 20px #10251d37
}
body.is-fira-home .home-map-layer-menu .fira-map-layer{
 min-height:33px;width:100%;padding:6px 10px;text-align:left;font-size:12px;
 border-radius:6px;white-space:nowrap;color:#264534
}
body.is-fira-home .home-map-layer-menu .fira-map-layer[aria-pressed="true"]{
 background:#e1f1e6;color:#13623c;box-shadow:none
}
body.is-fira-home .home-map-zoom{
 position:absolute;z-index:650;bottom:13px;right:13px;
 display:flex;flex-direction:column;overflow:hidden;
 border:1px solid #d1dad1;border-radius:9px;background:#fff;
 box-shadow:0 3px 12px #102b2035;
}
body.is-fira-home .home-map-zoom button{
 display:grid;place-items:center;width:36px;height:36px;padding:0;
 background:#fff;border:0;color:#1b3425;font-size:23px;line-height:1;
 font-weight:480;cursor:pointer
}
body.is-fira-home .home-map-zoom button+button{border-top:1px solid #e1e8e0}
body.is-fira-home .home-map-zoom button:hover{background:#eaf4eb}
body.is-fira-home .home-map-zoom button:focus-visible{outline:3px solid #e7b859;outline-offset:-3px}
body.is-fira-home .home-map-count-contract{
 position:absolute;z-index:650;left:12px;bottom:13px;right:auto;
 display:inline-flex;align-items:center;gap:6px;padding:8px 11px;
 background:#fff;box-shadow:0 3px 12px #102b2035;color:#183d2c;
 border-radius:9px;font-size:12px;font-weight:780;pointer-events:none
}
@media(max-width:1120px){
 body.is-fira-home .home-map-overlay .home-map-filter{padding:6px 9px;font-size:11px}
 body.is-fira-home .home-map-overlay{gap:5px}
}
@media(max-width:850px){
 body.is-fira-home .home-map-card .home-contract-map{height:350px;min-height:350px}
 body.is-fira-home .home-map-overlay .home-map-controls{flex-wrap:wrap;gap:5px}
}
@media(max-width:760px){
 body.is-fira-home .home-map-overlay{
  top:8px;left:8px;right:8px;display:flex;align-items:flex-start;gap:4px
 }
 body.is-fira-home .home-map-overlay .home-map-controls{
  position:static;inset:auto;max-width:100%;flex:1 1 auto;width:auto;
  display:flex;flex-wrap:wrap;overflow:visible;gap:5px;padding:0
 }
 body.is-fira-home .home-map-overlay .home-map-filter{
  flex:0 0 auto;min-height:33px;padding:5px 9px;font-size:11px;
  border-radius:99px
 }
 body.is-fira-home .home-map-layer-menu{width:auto;max-width:none}
 body.is-fira-home .home-map-layer-menu summary{min-height:33px;padding:6px 8px}
 body.is-fira-home .home-map-layer-menu summary span{display:none}
 body.is-fira-home .home-map-layer-menu .fira-map-layers{
  display:flex;width:max-content;grid-template-columns:none
 }
 body.is-fira-home .home-map-layer-menu .fira-map-layer{min-height:33px}
 body.is-fira-home .home-map-card .home-contract-map{height:340px;min-height:340px}
 body.is-fira-home .home-map-zoom button{width:35px;height:35px}
}
@media(max-width:390px){
 body.is-fira-home .home-map-overlay .home-map-filter{padding:5px 7px;font-size:10px;min-height:32px}
 body.is-fira-home .home-map-overlay .home-map-filter svg{width:14px;height:14px;flex-basis:14px}
 body.is-fira-home .home-map-layer-menu summary{min-height:32px}
}


/* Rutes programades i itineraris: navegació pública separada. */
.route-library-link{display:flex;align-items:center;margin:0 0 16px}
.route-library-link .btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border-radius:9px;font-size:12px;font-weight:770;padding:9px 13px}
@media(max-width:600px){.route-library-link .btn{width:100%;min-height:44px}}


/* FIRA: una única fitxa d'excursió amb informació d'inscripcions i dades del recorregut. */
.fira-trail-viewer{width:100%;max-width:100%;min-width:0;margin:18px 0 25px}
.fira-trail-content{width:100%;min-width:0;padding:clamp(12px,2vw,22px);border-radius:17px;border:1px solid #dfe9e1;background:#fff;box-shadow:0 4px 22px #1439210b}
.fira-trail-section-title{font-size:clamp(21px,2vw,27px);line-height:1.2;color:#183f2c;font-weight:850;letter-spacing:-.03em;margin:0 0 16px}
.fira-trail-kpis{margin:0 0 14px}
.fira-trail-kpis>div{min-width:0;background:#f4f8f4}
.fira-trail-kpis>div strong{font-size:clamp(17px,1.6vw,21px);font-weight:850}
.fira-trail-content .sample-view-grid{grid-template-columns:minmax(0,1fr) minmax(245px,30%);min-width:0}
.fira-trail-content .sample-pois{height:465px}
.fira-trail-content .sample-route-map{height:465px;min-height:360px}
.fira-trail-content .sample-profile{margin-top:14px}
.fira-trail-content .sample-elevation svg{touch-action:pan-y}
.fira-trail-content .sample-poi-icon{font-size:18px}
.fira-trail-content .sample-map-tabs{margin-bottom:10px}
.fira-route-library-admin{margin-top:20px;padding:18px;border:1px solid #dce9dd;border-radius:14px;background:#f6faf6}
.fira-route-library-admin h3{font-size:17px;font-weight:850;color:#184b32;margin:0 0 7px}
.fira-route-library-admin p{font-size:13px;color:#5e7566;line-height:1.5;margin:0 0 13px}
.fira-route-library-admin select{max-width:100%}
.fira-route-library-admin button{margin-top:10px}
.fira-poi-empty{padding:16px;font-size:13px;color:#697a6d}
.fira-trail-error{padding:16px;border-radius:10px;color:#536b5a;background:#f2f7f2}
@media(max-width:840px){
 .fira-trail-content .sample-view-grid{grid-template-columns:minmax(0,1fr)}
 .fira-trail-content .sample-pois{height:auto;max-height:310px}
 .fira-trail-content .sample-pois-list{max-height:275px}
}
@media(max-width:640px){
 .fira-trail-viewer{margin:12px 0 18px}
 .fira-trail-content{padding:11px;border-radius:12px}
 .fira-trail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fira-trail-content .sample-route-map{height:350px;min-height:350px}
 .fira-trail-content .sample-map-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .fira-trail-content .sample-map-tabs button{min-height:40px;padding:7px 4px;font-size:11px}
 .fira-trail-content .sample-profile{padding:10px}
 .fira-route-library-admin{padding:13px}
}

/* Recursos gràfics incrustats: visibles en targetes, categories i editor. */
.embedded-activity-icon{display:inline-block;vertical-align:middle;flex:none;object-fit:contain;width:1.15em;height:1.15em;max-width:none}
.home-category-content .embedded-activity-icon{width:30px;height:30px;filter:brightness(0) invert(1)}
.category-navigation .embedded-activity-icon,.category-banner-kicker .embedded-activity-icon{width:18px;height:18px}
.category-banner-kicker .embedded-activity-icon{width:22px;height:22px;filter:brightness(0) invert(1)}
.media-selected-preview{display:flex;align-items:center;justify-content:center;min-height:104px;padding:8px;overflow:hidden;border:1px dashed var(--line);background:var(--paper);border-radius:11px;color:var(--muted);font-size:12px}
.media-selected-preview img{display:block;width:100%;max-height:138px;object-fit:contain}
.media-icon-preview{min-height:68px}.media-icon-preview img{max-height:58px;max-width:72px}

/* Fitxa pública: accions i indicacions compactes, sense botons gegants ni enllaços enganxats. */
.reference-detail .event-detail-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 0}
.reference-detail .event-detail-actions .btn{width:auto;min-height:38px;padding:8px 13px;border-radius:10px;font-size:13px;font-weight:650}
.reference-detail .event-detail-actions .event-save-button{display:inline-flex;gap:7px}
.reference-detail .event-detail-actions .event-save-button svg{width:17px;height:17px}
.reference-detail .event-detail-directions{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}
.reference-detail .event-detail-directions .fira-travel-modes{display:flex;flex-wrap:wrap;align-items:center;gap:7px 9px;max-width:100%;margin:0}
.reference-detail .event-detail-directions .fira-travel-heading{display:block;width:100%;font-size:12px;line-height:1.4;font-weight:750;color:var(--muted);margin-bottom:2px}
.reference-detail .event-detail-directions .fira-travel-option{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px 10px;border:1px solid var(--line);background:var(--paper);border-radius:9px;color:var(--green-dark);font-size:12px;font-weight:650;line-height:1.25;white-space:nowrap;text-decoration:none}
.reference-detail .event-detail-directions .fira-travel-option svg{width:16px;height:16px;flex:none}
.reference-detail .event-detail-directions .fira-travel-option svg:last-child{width:12px;height:12px;opacity:.65}
@media(max-width:480px){
 .reference-detail .event-detail-actions{gap:7px}
 .reference-detail .event-detail-actions .btn{min-height:38px;padding:8px 11px;font-size:12px}
 .reference-detail .event-detail-directions .fira-travel-modes{gap:7px}
 .reference-detail .event-detail-directions .fira-travel-option{font-size:12px;min-height:38px;padding:7px 9px}
}


/* PORTADA · targetes de categoria sense regressions (referència 17/10/2026).
   Tipografia, dimensió i icones pròpies; no afecten el detall ni l'editor. */
body.is-fira-home .home-category-tile{
 height:120px;
}
body.is-fira-home .home-category-content{
 justify-content:flex-end;
 gap:2px;
 padding:10px 6px;
 font-family:Arial,Helvetica,sans-serif;
 text-align:center;
}
body.is-fira-home .home-category-content .home-category-icon{
 display:block;
 flex:none;
 width:40px;
 height:40px;
 margin:0 0 2px;
 color:#fff;
 filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
body.is-fira-home .home-category-content strong{
 font-family:inherit;
 font-size:19px;
 font-weight:700;
 line-height:1.1;
 letter-spacing:-.025em;
 color:#fff;
 text-shadow:0 1px 3px rgba(0,0,0,.5);
}
body.is-fira-home .home-category-content small{
 font-family:inherit;
 font-size:14px;
 font-weight:400;
 line-height:1.16;
 color:#fff;
 text-shadow:0 1px 3px rgba(0,0,0,.55);
}
@media(max-width:850px){
 body.is-fira-home .home-category-tile{height:112px}
 body.is-fira-home .home-category-content strong{font-size:17px}
 body.is-fira-home .home-category-content small{font-size:12px}
 body.is-fira-home .home-category-content .home-category-icon{width:35px;height:35px}
}
@media(max-width:760px){
 body.is-fira-home .home-category-tile{height:105px}
 body.is-fira-home .home-category-tile:nth-child(n+4){height:105px}
 body.is-fira-home .home-category-content{padding:9px 4px}
 body.is-fira-home .home-category-content strong{font-size:13px}
 body.is-fira-home .home-category-content small{font-size:10px}
 body.is-fira-home .home-category-content .home-category-icon{width:32px;height:32px}
}

/* Desktop gran: aprofitem l'amplària real sense deixar que mapa i fotografies
   es convertisquen en tires massa panoràmiques. La portada no té max-width. */
@media(min-width:1650px){
 body.is-fira-home .home-contract-hero{height:clamp(410px,24vw,650px)}
 body.is-fira-home .home-contract-hero h1{font-size:clamp(66px,3.8vw,92px)}
 body.is-fira-home .home-primary-grid{gap:clamp(18px,1.35vw,32px)}
 body.is-fira-home .home-map-card .home-contract-map,
 body.is-fira-home .home-contract-map{height:clamp(420px,24vw,630px);min-height:clamp(420px,24vw,630px)}
 body.is-fira-home .home-agenda-header h2{font-size:clamp(20px,1.25vw,27px)}
 body.is-fira-home .home-agenda-row{
  grid-template-columns:clamp(43px,2.5vw,64px) clamp(37px,2.5vw,52px) clamp(100px,6.1vw,145px) minmax(0,1fr) 20px;
  gap:clamp(8px,.8vw,18px);min-height:clamp(92px,6.3vw,133px)
 }
 body.is-fira-home .home-agenda-type-icon{width:clamp(37px,2.45vw,48px);height:clamp(37px,2.45vw,48px)}
 body.is-fira-home .home-agenda-details>strong{font-size:clamp(12px,.82vw,18px)}
 body.is-fira-home .home-agenda-location{font-size:clamp(11px,.7vw,15px)}
 body.is-fira-home .home-agenda-badge{font-size:clamp(10px,.63vw,14px)}
 body.is-fira-home .home-feature-photo{height:clamp(155px,10vw,245px)}
 body.is-fira-home .home-category-tile{height:clamp(135px,8.5vw,210px)}
}

/* L'agenda antiga de quatre columnes s'ha retirat. La vista de referència,
   amb pestanyes i llista única, està definida a fira-home-layout.css. */

/* HOME · Sistema visual coherent per a la nova estructura (17/10/2026).
   Mapes i agenda mantenen les funcions existents. */
body.is-fira-home main{width:calc(100% - clamp(28px,3.2vw,88px))}
body.is-fira-home .home-contract-hero{
 height:clamp(300px,22vw,380px);min-height:300px;
 margin:12px 0 0;border-radius:12px
}
body.is-fira-home .home-contract-hero-copy{
 top:42%;left:clamp(20px,3vw,54px);max-width:63%
}
body.is-fira-home .home-contract-hero h1{
 font-size:clamp(34px,3.55vw,64px);line-height:.96;margin-bottom:11px
}
body.is-fira-home .home-contract-motto{font-size:clamp(13px,1.1vw,18px);margin-bottom:9px}
body.is-fira-home .home-contract-fact{font-size:clamp(12px,.9vw,15px);margin:4px 0}
body.is-fira-home .home-program-pdf{
 position:absolute;bottom:17px;left:clamp(20px,3vw,54px);
 display:inline-flex;align-items:center;gap:10px;min-height:43px;
 border:1px solid #a1b881;border-radius:9px;padding:9px 13px;
 background:#586e37;color:#fff;font-size:13px;font-weight:770
}
body.is-fira-home .home-program-pdf svg{width:17px;height:17px}
body.is-fira-home .home-program-pdf span{
 font-size:10px;letter-spacing:.02em;border:1px solid #cedcab77;
 border-radius:4px;padding:2px 4px
}
body.is-fira-home .home-program-pdf:disabled{
 cursor:not-allowed;opacity:.85;box-shadow:none
}
body.is-fira-home .home-quick-links{
 display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
 gap:clamp(8px,.9vw,17px);align-items:stretch;
 margin:13px 0 0;padding:14px clamp(12px,1.5vw,24px);
 background:#f7f9f6;border:1px solid #e8eee6;border-radius:12px
}
body.is-fira-home .home-quick-link{
 display:flex;align-items:center;gap:clamp(7px,.7vw,12px);
 min-width:0;min-height:49px;padding:4px 3px;
 color:#20362c;text-decoration:none;border-radius:9px
}
body.is-fira-home .home-quick-link:hover{background:#e8f1e9}
body.is-fira-home .home-quick-link:focus-visible{
 outline:2px solid #1b6544;outline-offset:1px
}
body.is-fira-home .home-quick-link-icon{
 display:grid;place-items:center;flex:0 0 clamp(34px,2.7vw,45px);
 width:clamp(34px,2.7vw,45px);height:clamp(34px,2.7vw,45px);
 color:#244f38;background:#e8efe7;border-radius:50%
}
body.is-fira-home .home-quick-link-icon svg{width:55%;height:55%;stroke-width:2.1}
body.is-fira-home .home-quick-link-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
body.is-fira-home .home-quick-link-copy strong{
 font-size:clamp(11px,.78vw,14px);font-weight:780;line-height:1.12
}
body.is-fira-home .home-quick-link-copy small{
 font-size:clamp(10px,.67vw,12px);line-height:1.2;color:#68776f;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
body.is-fira-home .home-contract-content{padding-top:22px}
body.is-fira-home .home-primary-grid{gap:clamp(16px,1.35vw,28px);align-items:start}
body.is-fira-home .home-map-section{min-width:0}
body.is-fira-home .home-block-heading,
body.is-fira-home .home-agenda-header{
 display:flex;align-items:center;justify-content:space-between;
 gap:10px;min-width:0;min-height:38px;margin:0 0 12px;padding:0
}
body.is-fira-home .home-block-heading h2,
body.is-fira-home .home-agenda-header h2{
 display:flex;align-items:center;gap:9px;margin:0;
 min-width:0;color:#20392d;font-size:clamp(16px,1.12vw,21px);
 letter-spacing:-.025em;font-weight:790;line-height:1.15
}
body.is-fira-home .home-block-heading h2 svg,
body.is-fira-home .home-agenda-header h2 svg{
 display:block;flex:0 0 23px;width:23px;height:23px;
 color:#28563b;stroke-width:2
}
body.is-fira-home .home-block-heading>a,
body.is-fira-home .home-agenda-header>a{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:31px;max-width:46%;padding:6px 10px;
 border:1px solid #e2e9e0;border-radius:8px;background:#fff;
 color:#365443;font-size:11px;font-weight:720;line-height:1.2;text-decoration:none;
 text-align:center;white-space:normal
}
body.is-fira-home .home-block-heading>a:hover,
body.is-fira-home .home-agenda-header>a:hover{background:#eff5ed}
body.is-fira-home .home-map-card{
 display:flex;flex-direction:column;overflow:visible;isolation:auto;
 background:#fff;border:1px solid #e5ebe5;border-radius:10px;
 box-shadow:0 2px 9px #0f2e1b0c
}
body.is-fira-home .home-map-frame{
 position:relative;isolation:isolate;min-width:0;overflow:hidden;
 border-radius:9px 9px 0 0
}
body.is-fira-home .home-map-card .home-contract-map{
 width:100%;height:clamp(260px,21vw,340px);min-height:clamp(260px,21vw,340px);
 border-radius:9px 9px 0 0
}
body.is-fira-home .home-map-card .home-map-zoom{z-index:550}
body.is-fira-home .home-map-card .home-map-count-contract{z-index:550}
body.is-fira-home .home-map-card .home-map-filter-footer{
 position:relative;inset:auto;top:auto;left:auto;right:auto;
 display:flex;align-items:flex-start;justify-content:space-between;
 flex-direction:row;order:2;z-index:500;
 min-width:0;gap:7px;padding:10px 11px;
 background:#fff;border-top:1px solid #e8ede7;
 pointer-events:auto;border-radius:0 0 10px 10px
}
body.is-fira-home .home-map-filter-footer .home-map-controls{
 position:static;inset:auto;display:flex;flex:1 1 auto;flex-wrap:wrap;
 align-items:center;gap:5px;min-width:0;max-width:100%;width:auto;
 overflow:visible;padding:0;pointer-events:auto
}
body.is-fira-home .home-map-filter-footer .home-map-filter{
 display:inline-flex;flex:0 0 auto;gap:5px;align-items:center;
 min-height:27px;padding:4px 7px;
 background:#fff;border:1px solid #dce6de;border-radius:99px;
 box-shadow:none;color:#344b3d;font-size:10px;font-weight:690
}
body.is-fira-home .home-map-filter-footer .home-map-filter[aria-pressed=true]{
 background:#ebf3eb;border-color:var(--category-accent,#176846);
 color:#244b33
}
body.is-fira-home .home-map-filter-footer .home-map-filter svg{
 width:14px;height:14px;flex:0 0 14px;color:var(--category-accent,#176846)
}
body.is-fira-home .home-map-filter-footer .home-map-filter-dot{
 display:block;flex:0 0 9px;width:9px;height:9px;
 border-radius:50%;background:var(--category-accent,#176846);
 box-shadow:0 0 0 2px #fff
}
body.is-fira-home .home-map-filter-footer .home-map-layer-menu{
 position:relative;flex:0 0 auto;z-index:10
}
body.is-fira-home .home-map-filter-footer .home-map-layer-menu summary{
 display:flex;align-items:center;gap:5px;
 min-height:27px;padding:4px 7px;font-size:10px;
 background:#f5f8f4;border:1px solid #dce6dd;
 box-shadow:none;border-radius:7px
}
body.is-fira-home .home-map-filter-footer .home-map-layer-menu summary span{display:none}
body.is-fira-home .home-map-filter-footer .home-map-layer-menu .fira-map-layers{
 position:absolute;z-index:50;right:0;top:100%
}
body.is-fira-home .home-map-section .home-map-card .home-contract-map{
 height:clamp(260px,21vw,340px);min-height:clamp(260px,21vw,340px)
}
body.is-fira-home .home-agenda-hour time{
 display:block;font-size:11px;line-height:1.2;font-weight:710;
 color:#335943;font-variant-numeric:tabular-nums
}
body.is-fira-home .home-agenda-hour small{
 display:block;font-size:10px;line-height:1.2;font-weight:520;
 color:#78847b;font-variant-numeric:tabular-nums
}
body.is-fira-home .home-agenda-day-event-meta{
 align-items:flex-start;min-width:0
}
body.is-fira-home .home-agenda-day-event-hours{
 display:flex;flex:0 0 auto;flex-direction:column;gap:3px;
 min-width:39px;font-variant-numeric:tabular-nums
}
body.is-fira-home .home-agenda-day-event-hours time{
 display:block;color:#225c3c;font-weight:800;font-size:11px;line-height:1.1
}
body.is-fira-home .home-agenda-day-event-hours small{
 display:block;font-size:10px;color:#68766d;line-height:1.1
}
body.is-fira-home .home-agenda-day-event-icon{margin-top:2px}
body.is-fira-home .home-categories-heading{margin-top:18px}
body.is-fira-home .home-categories{margin-top:0;gap:clamp(9px,.9vw,17px)}
body.is-fira-home .home-category-tile{height:clamp(95px,7.5vw,122px)}
body.is-fira-home .home-featured-section{margin-top:20px}
body.is-fira-home .home-featured-heading{margin:0 0 12px}
body.is-fira-home .home-featured-grid{gap:clamp(10px,1vw,18px)}
body.is-fira-home .home-feature-photo{height:clamp(125px,9vw,177px)}
@media(min-width:1650px){
 body.is-fira-home .home-primary-grid{gap:clamp(18px,1.35vw,28px)}
 body.is-fira-home .home-map-section .home-map-card .home-contract-map{
  height:clamp(280px,16vw,365px);min-height:clamp(280px,16vw,365px)
 }
 body.is-fira-home .home-category-tile{height:clamp(105px,7vw,135px)}
 body.is-fira-home .home-feature-photo{height:clamp(135px,9vw,195px)}
}
@media(min-width:1200px){
 body.is-fira-home .home-primary-grid{grid-template-columns:minmax(0,31fr) minmax(0,69fr)}
 body.is-fira-home .home-map-card .home-map-filter-footer{
  order:2;position:relative;inset:auto;background:#fff
 }
 body.is-fira-home .home-map-filter-footer .home-map-controls{
  flex-wrap:wrap;overflow:visible;scrollbar-width:none
 }
}
@media(min-width:761px) and (max-width:1199px){
 body.is-fira-home .home-quick-links{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 body.is-fira-home main{width:calc(100% - 22px)}
 body.is-fira-home .home-contract-hero{
  height:310px;min-height:310px;margin-top:8px
 }
 body.is-fira-home .home-contract-hero-copy{top:36%;left:17px;max-width:90%}
 body.is-fira-home .home-contract-hero h1{font-size:clamp(30px,8vw,43px)}
 body.is-fira-home .home-contract-slogan{top:58%;right:12px}
 body.is-fira-home .home-program-pdf{
  bottom:13px;left:17px;min-height:40px;padding:8px 10px;font-size:12px
 }
 body.is-fira-home .home-quick-links{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;margin-top:10px;padding:9px
 }
 body.is-fira-home .home-quick-link{min-height:45px;gap:8px}
 body.is-fira-home .home-quick-link-icon{
  width:34px;height:34px;flex-basis:34px
 }
 body.is-fira-home .home-quick-link-copy strong{font-size:12px}
 body.is-fira-home .home-quick-link-copy small{font-size:10px}
 body.is-fira-home .home-contract-content{padding-top:18px}
 body.is-fira-home .home-map-section .home-map-card .home-contract-map{
  height:290px;min-height:290px
 }
 body.is-fira-home .home-block-heading,
 body.is-fira-home .home-agenda-header{margin-bottom:9px;min-height:34px}
 body.is-fira-home .home-block-heading h2,
 body.is-fira-home .home-agenda-header h2{font-size:17px;gap:6px}
 body.is-fira-home .home-block-heading h2 svg,
 body.is-fira-home .home-agenda-header h2 svg{
  width:20px;height:20px;flex-basis:20px
 }
 body.is-fira-home .home-block-heading>a,
 body.is-fira-home .home-agenda-header>a{
  min-height:31px;max-width:52%;padding:5px 8px;font-size:10px
 }
 body.is-fira-home .home-map-filter-footer .home-map-filter{min-height:28px}
 body.is-fira-home .home-categories-heading{margin-top:20px}
 body.is-fira-home .home-featured-section{margin-top:19px}
}
@media(max-width:390px){
 body.is-fira-home .home-contract-slogan{display:none}
 body.is-fira-home .home-quick-links{gap:4px;padding:7px}
 body.is-fira-home .home-quick-link{gap:5px}
 body.is-fira-home .home-quick-link-copy strong{font-size:11px}
 body.is-fira-home .home-quick-link-copy small{font-size:9px}
 body.is-fira-home .home-map-filter-footer{padding:7px}
}
@media(prefers-reduced-motion:reduce){
 body.is-fira-home .home-quick-link{transition:none}
}

/* Map and locations share the parent surface; actions never squeeze place names. */
.interior-map .map-layout{grid-template-columns:minmax(0,1fr) minmax(300px,.44fr);gap:24px;align-items:stretch}.interior-map .fira-map-frame{padding:0;background:transparent;border:0;box-shadow:none}.interior-map .place-list{min-width:0;max-height:600px;padding:0 8px;border-radius:12px}.interior-map .place-row:last-child{border-bottom:0}.interior-map .map-view{height:520px;min-height:360px}.interior-map .fira-map-toolbar{padding:0 0 12px}@media(max-width:960px){.interior-map .map-layout{grid-template-columns:minmax(0,1fr)}.interior-map .place-list{max-height:none}.interior-map .map-view{height:400px}}@media(max-width:400px){.place-list>.place-row{grid-template-columns:minmax(0,1fr);gap:5px}.place-row>.place-row-events{justify-self:start}}

/* Reserva pública · mateix llenguatge net de les fitxes modernes */
.booking-card.fira-new-booking{max-width:1100px;margin:0 auto;padding:clamp(12px,2vw,24px)}
.fira-booking-head{margin-bottom:24px}.fira-booking-head h1{font-size:clamp(2.1rem,5vw,4rem);letter-spacing:-.05em;line-height:1.05;margin:8px 0 12px;color:var(--ink)}.fira-booking-head p{max-width:65ch}
.fira-booking-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.7fr);gap:clamp(16px,3vw,30px);align-items:start}
.fira-booking-form{margin:0;padding:clamp(18px,3vw,32px);background:#fff;border:1px solid #e5e0dc;border-radius:22px;box-shadow:0 16px 42px #12121209;min-width:0}
.fira-booking-form .form-grid{gap:14px}.fira-booking-form .field{font-size:.94rem;font-weight:650;line-height:1.45}
.fira-booking-form .field:not(.checkbox) input{min-height:48px;border:1px solid #d7d6d3;border-radius:11px;background:#fff;padding:12px;color:var(--ink);font:inherit;width:100%;box-sizing:border-box}
.fira-booking-form input:focus-visible{outline:3px solid #c6dae8;outline-offset:2px}
.fira-booking-people{margin:20px 0}.fira-booking-people .stepper{margin:10px 0 14px}.fira-booking-people .stepper button{width:48px;height:48px;background:#f7f6f4;border:1px solid #e0ded9;border-radius:12px}.fira-booking-people .stepper output{font-size:23px;min-width:42px}
.fira-booking-form .checkbox{margin:20px 0;display:flex;align-items:flex-start;gap:10px;font-weight:400}.fira-booking-form .checkbox input{flex:none;margin-top:4px}
.fira-booking-confirm{min-height:50px;width:100%;border-radius:12px;margin-top:14px}
.fira-booking-summary{background:#faf9f7;border:1px solid #e5e0dc;border-radius:20px;overflow:hidden;position:sticky;top:94px}
.fira-booking-summary img{display:block;width:100%;max-height:230px;object-fit:cover}.fira-booking-summary-body{padding:clamp(18px,2.5vw,26px)}.fira-booking-summary h2{font-size:clamp(1.3rem,2.3vw,1.8rem);line-height:1.15;margin:9px 0 14px}.fira-booking-summary p{margin:8px 0;color:var(--muted)}.fira-booking-free{display:inline-block;font-size:.85rem;font-weight:700;margin-top:12px;background:#f0eeea;color:var(--ink);padding:8px 12px;border-radius:999px}
@media(max-width:760px){.booking-card.fira-new-booking{padding:8px 0}.fira-booking-grid{grid-template-columns:minmax(0,1fr)}.fira-booking-summary{order:-1;position:static}.fira-booking-summary img{max-height:155px}.fira-booking-form{padding:18px;border-radius:16px}.fira-booking-form .form-grid{grid-template-columns:1fr}.fira-booking-head{margin-bottom:14px}}

/* Places públiques: lectura immediata sense cartells grossos. */
.fira-card-places{font-size:.79rem;font-weight:700;line-height:1.4;padding:9px 11px;border-radius:10px;background:#f4f2ef;color:#353330;margin:12px 0}
.availability-caption{display:block;font-size:.92rem;font-weight:750;color:#34332f;margin-bottom:10px}
.fira-capacity-admin{max-width:1250px;margin:0 auto}
.fira-capacity-header{display:flex;align-items:end;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:20px}
.fira-capacity-header h2{font-size:clamp(1.8rem,3vw,2.8rem);letter-spacing:-.045em;margin:7px 0}
.fira-capacity-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:23px}
.fira-capacity-summary>div{background:#f6f4f0;border:1px solid #e7e1d9;padding:20px;border-radius:15px;display:flex;flex-direction:column;gap:4px}
.fira-capacity-summary strong{font-size:clamp(1.5rem,3.2vw,2.5rem);font-variant-numeric:tabular-nums;line-height:1.1}
.fira-capacity-summary span,.fira-capacity-numbers span{font-size:.8rem;color:#67625f}
.fira-capacity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.fira-capacity-item{min-width:0;padding:20px;background:white;border:1px solid #e7e3df;border-radius:17px}
.fira-capacity-item-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.fira-capacity-item h3{font-size:1.08rem;line-height:1.3;margin:0 0 6px}
.fira-capacity-item small{color:#777}
.fira-capacity-state{white-space:nowrap;font-size:.74rem;font-weight:750;background:#f4f2ef;border-radius:999px;padding:5px 9px}
.fira-capacity-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0 15px}
.fira-capacity-numbers>div{display:flex;flex-direction:column;gap:4px}
.fira-capacity-numbers strong{font-size:clamp(1.4rem,2.4vw,2rem);font-variant-numeric:tabular-nums;line-height:1.1}
.fira-capacity-meter{height:8px;background:#ede9e4;border-radius:99px;overflow:hidden}
.fira-capacity-meter span{display:block;height:100%;background:#354e57;border-radius:99px}
@media(max-width:720px){.fira-capacity-list{grid-template-columns:1fr}.fira-capacity-summary{gap:7px}.fira-capacity-summary>div{padding:12px}.fira-capacity-item{padding:16px}.fira-capacity-header{align-items:start}}

.fira-capacity-edit{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-top:17px}.fira-capacity-edit label{display:flex;flex-direction:column;gap:5px;font-size:.8rem;font-weight:650;flex:1;min-width:120px}.fira-capacity-edit input{min-width:0;max-width:180px;border:1px solid #d6d5d3;border-radius:9px;padding:10px 12px;font:inherit;background:white}.fira-capacity-edit button{min-height:42px}.fira-capacity-warning{border-left:3px solid #ad7235;padding:11px 14px;background:#fcf7ef;border-radius:6px;font-size:.9rem}

.fira-debug-booking{max-width:840px;margin:28px auto;padding:0 16px}.fira-debug-booking>h1{font-size:clamp(1.8rem,5vw,3.1rem);line-height:1.1;letter-spacing:-.04em}.fira-debug-booking>.panel{margin-top:24px;padding:clamp(20px,4vw,36px);border-radius:20px}.fira-debug-booking .field{display:grid;gap:9px;margin:20px 0}.fira-debug-booking .field input{width:100%;max-width:230px;padding:13px;border:1px solid #ccc;border-radius:10px}.fira-debug-banner{padding:14px 18px;border-radius:13px;background:#f2efe9;color:#302e2a;line-height:1.5;margin-bottom:24px}.fira-debug-booking .btn{min-height:48px}


/* Reserva nominal mòbil: una pantalla, no un formulari gegant. */
@media(max-width:760px){
 .fira-debug-booking.demo-booking-editor{
  box-sizing:border-box!important;max-width:100%!important;
  margin:0 auto!important;padding:12px 16px calc(100px + env(safe-area-inset-bottom))!important;
  display:flex!important;flex-direction:column!important;gap:0!important;
  min-height:calc(100dvh - 90px)!important;
 }
 .demo-booking-editor>a.history-back{display:inline-flex!important;align-items:center!important;
  font-size:13px!important;margin:0 0 9px!important;padding:3px 0!important;line-height:1.3!important}
 .demo-booking-editor>h1{
  font-size:clamp(25px,6.8vw,32px)!important;line-height:1.1!important;
  letter-spacing:-.045em!important;margin:0 0 4px!important;padding:0!important;
 }
 .demo-booking-editor>p{font-size:14px!important;line-height:1.35!important;margin:0 0 12px!important;color:#5b646b!important}
 .demo-booking-editor .booking-overview-numbers{
  display:flex!important;width:100%!important;gap:0!important;margin:0 0 15px!important;
  padding:0!important;border-radius:12px!important;overflow:hidden!important;
  border:1px solid #e4e8e9!important;background:#f8f9f9!important;
 }
 .demo-booking-editor .booking-overview-numbers>div{
  flex:1!important;min-width:0!important;padding:10px 15px!important;
  background:transparent!important;border:0!important;border-radius:0!important;
 }
 .demo-booking-editor .booking-overview-numbers>div+div{border-left:1px solid #e4e8e9!important}
 .demo-booking-editor .booking-overview-numbers strong{font-size:23px!important;line-height:1.1!important}
 .demo-booking-editor .booking-overview-numbers span{font-size:11px!important;line-height:1.25!important}
 .demo-booking-editor #debug-booking-form.panel{
  display:flex!important;flex-direction:column!important;gap:8px!important;
  padding:13px!important;margin:0!important;
  box-shadow:none!important;border:1px solid #e4e7e9!important;
  border-radius:14px!important;background:#fff!important;
 }
 .demo-booking-editor .demo-nominal-grid{
  display:grid!important;gap:8px!important;border:0!important;padding:0!important;
  margin:0!important;min-width:0!important;
 }
 .demo-booking-editor .demo-nominal-grid legend{
  width:100%!important;font-size:14px!important;font-weight:700!important;
  line-height:1.35!important;padding:0 0 9px!important;margin:0!important;color:#222b32!important;
 }
 .demo-booking-editor .demo-nominal-person{
  display:flex!important;align-items:center!important;gap:13px!important;
  margin:0!important;padding:11px 12px!important;min-height:58px!important;
  border:1px solid #e4e7e9!important;border-radius:10px!important;
  background:#fafafa!important;
 }
 .demo-booking-editor .demo-nominal-person input[type=checkbox]{
  flex:none!important;width:21px!important;height:21px!important;margin:0!important;
 }
 .demo-booking-editor .demo-nominal-person span{display:flex!important;flex-direction:column!important;gap:1px!important}
 .demo-booking-editor .demo-nominal-person strong{font-size:15px!important;line-height:1.3!important}
 .demo-booking-editor .demo-nominal-person small{font-size:12px!important;line-height:1.3!important}
 .demo-booking-editor .demo-add-person{font-size:13px!important;line-height:1.35!important;
  font-weight:650!important;padding:8px 0!important;margin:0!important;min-height:0!important}
 .demo-booking-editor .demo-nominal-count{font-size:12px!important;font-weight:650!important;margin:0!important}
 .demo-booking-editor .demo-nominal-note{display:none!important}
 .demo-booking-editor .booking-overview-button{
  position:fixed!important;left:16px!important;right:16px!important;
  bottom:calc(12px + env(safe-area-inset-bottom))!important;
  z-index:80!important;width:calc(100% - 32px)!important;max-width:560px!important;
  margin:0 auto!important;min-height:48px!important;border-radius:13px!important;
  box-shadow:0 5px 22px #00000024!important;
 }
}
