/* Municipality and district pages share the compact catalogue components. */
.town-page.listing-page{padding-bottom:40px}
.town-page .town-hero.county-title{margin-top:0;gap:6px 14px}
.town-page .town-hero .town-map-link{grid-column:1/-1;justify-self:start;min-height:40px;padding:8px 14px;margin-top:6px;font-size:15px;line-height:1.35}
.town-page .town-useful{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;margin:0 0 16px;border:0}
.town-page .town-useful a{justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--ink);border-radius:4px;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.3;text-decoration:none}
.town-page .town-useful .ap-icon{width:24px;height:24px;flex-shrink:0}
.town-page .town-useful a:is(:hover,:focus-visible),.town-page .town-map-link:is(:hover,:focus-visible){background:var(--brand-blue);color:var(--brand-yellow);text-decoration:underline;text-underline-offset:4px}
.town-page .town-districts{padding:0;margin:0 0 16px;border:1px solid var(--ink);border-radius:4px;background:var(--paper)}
.town-page .town-districts>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:48px;padding:12px 16px;font-size:16px;line-height:1.35;cursor:pointer}
.town-page .town-districts>summary:after{content:'+';margin-left:auto;font-size:22px;line-height:1}
.town-page .town-districts[open]>summary:after{content:'−'}
.town-page .town-districts>summary .ap-icon{width:24px;height:24px;flex-shrink:0}
.town-page .town-district-current{font-size:13px;padding:3px 8px;border:1px solid var(--ink);border-radius:4px}
.town-page .town-districts>summary:is(:hover,:focus-visible){background:var(--brand-blue);color:var(--brand-yellow)}
.town-page .town-districts>summary:is(:hover,:focus-visible) .town-district-current{border-color:currentColor}
.town-page .town-districts>p{font-size:14px;line-height:1.5;padding:0 16px;margin:8px 0 12px}
.town-page .town-districts nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 16px 16px}
.town-page .town-districts nav a{min-height:44px;padding:8px 10px;border-radius:4px;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.4}
.town-page .town-districts nav a:is(:hover,:focus-visible),.town-page .town-districts nav a[aria-current]{background:var(--brand-blue);color:var(--brand-yellow);text-decoration:underline;text-underline-offset:4px}
.town-page #continguts,.town-page [data-town-entry]{scroll-margin-top:calc(var(--site-header-height,120px) + 16px)}
.town-page .town-find{padding:16px;border:1px solid var(--ink);border-top:4px solid var(--brand-yellow);border-radius:4px;background:var(--paper);margin-bottom:16px}
.town-page .town-find{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 12px}.town-page .town-search-submit{min-height:44px;margin:0;font-size:16px;padding:8px 14px}.town-find>.town-content-tools,.town-find>#town-content-count,.town-find>.hub-empty,.town-find>.search-feedback{grid-column:1/-1}@media(max-width:600px){.town-page .town-find{grid-template-columns:minmax(0,1fr)}.town-page .town-search-submit{width:100%}}
.town-page .town-search,.town-index-page .town-search{max-width:none;font-size:15px;font-weight:400;line-height:1.4;gap:6px}
.town-page .town-search input,.town-index-page .town-search input{min-height:44px;padding:8px 12px;font-size:16px;border-radius:4px;background:var(--paper)}
.town-page .town-content-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin-top:8px}
.town-page .town-content-tools p{margin:0;font-size:14px;line-height:1.4}
.town-page .town-content-tools .filter-reset{min-height:32px;font-size:14px;padding:4px 0;flex-shrink:0}
.town-page .town-section-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 24px}
html body .town-page .town-section-nav a[data-tone]{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:48px;padding:8px 10px;border:1px solid var(--ink);border-radius:4px;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.3;text-decoration:none}
html body .town-page .town-section-nav a .town-nav-name{margin:0;font-size:15px;min-width:0}
html body .town-page .town-section-nav a .town-nav-icon{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:4px;margin:0}
.town-page .town-nav-icon .ap-icon{width:23px;height:23px}
.town-page .town-section-nav [data-tone=blue] .town-nav-icon{background:var(--brand-blue);color:var(--brand-yellow)}
.town-page .town-section-nav [data-tone=gold] .town-nav-icon{background:var(--brand-yellow);color:var(--brand-blue)}
.town-page .town-section-nav [data-tone=cream] .town-nav-icon{background:var(--brand-cream);color:var(--brand-blue)}
html body .town-page .town-section-nav a [data-town-nav-count]{font-size:12px;line-height:1.3;margin-left:auto;font-variant-numeric:tabular-nums}
html body .town-page .town-section-nav a:is(:hover,:focus-visible),html body .town-page .town-section-nav a[aria-current]{background:var(--brand-blue);color:var(--brand-yellow);text-decoration:underline;text-underline-offset:4px;outline-offset:2px}
.town-page .town-section-nav a:is(:hover,:focus-visible) .town-nav-icon,.town-page .town-section-nav a[aria-current] .town-nav-icon{background:var(--brand-yellow);color:var(--brand-blue)}
.town-page .town-section-nav a[hidden]{display:none!important}
.town-page .town-section{margin:28px 0;padding-top:16px;border-top:3px solid var(--brand-yellow);scroll-margin-top:calc(var(--site-header-height,120px) + 16px)}
.town-page .town-section .sectionhead{align-items:center;gap:12px;padding:0;margin-bottom:12px;border:0}
.town-page .town-section .sectionhead h2{display:flex;align-items:center;gap:10px;font-size:32px;line-height:1.15;margin:0}
.town-page .town-section .sectionhead h2 .ap-icon{width:30px;height:30px;flex-shrink:0}
.town-page .town-section [data-town-section-count]{font-size:13px;line-height:1.4;white-space:normal;padding:0;text-align:right;flex-shrink:0}
html body .town-page .listing-card-body h3{font-size:23px!important;line-height:1.18!important;margin:0 0 8px}
.town-page .town-section .hub-card-body .listing-card-action{margin-top:4px}
.town-page .town-section .hub-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.town-page .agenda-town-exhibitions{grid-column:1/-1;font-size:14px;margin:8px 0}
.town-page .town-more{width:100%;min-height:44px;margin-top:16px;font-size:15px;border-radius:4px}
.town-page .town-more:is(:hover,:focus-visible){background:var(--brand-blue);color:var(--brand-yellow)}
.town-page .town-section>.map-note{font-size:13px;line-height:1.5;margin:12px 0}
.town-page .town-coming{padding:16px;margin:24px 0;border-radius:4px;background:var(--paper)}
.town-page .town-coming h2{font-size:24px;line-height:1.25}
.town-page .town-coming ul{font-size:14px;line-height:1.5;gap:6px}
.town-page .public-faq{margin:24px 0 0}.town-page .public-faq>h2{font-size:28px;line-height:1.2}
.town-index-page .town-search{padding:16px;border:1px solid var(--ink);border-top:4px solid var(--brand-yellow);border-radius:4px;background:var(--paper)}
.town-index-page #town-index-count{font-size:14px;line-height:1.4;margin:12px 0}
.town-index-page .town-index-grid{gap:12px;margin:16px 0}
.town-index-page .town-index-link{min-height:52px;padding:12px 16px;font-size:17px;line-height:1.35;border-radius:4px;background:var(--paper);color:var(--ink)}
.town-index-page .town-index-link:is(:hover,:focus-visible){background:var(--brand-blue);color:var(--brand-yellow);text-decoration:underline;text-underline-offset:4px}
@media(max-width:1000px){.town-page .town-section-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 .town-page .town-hero .town-map-link{font-size:14px;min-height:38px;padding:8px 10px}
 .town-page .town-useful{gap:6px;margin-bottom:12px}.town-page .town-useful a{gap:5px;padding:8px 6px;font-size:14px;min-height:42px}.town-page .town-useful .ap-icon{width:21px;height:21px}
 .town-page .town-districts{margin-bottom:12px}.town-page .town-districts>summary{padding:10px 12px;font-size:15px;gap:6px}.town-page .town-district-current{font-size:12px}.town-page .town-districts nav{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 12px;gap:6px}
 .town-page .town-districts>p{padding:0 12px;font-size:13px}.town-page .town-districts nav a{font-size:13px}
 .town-page .town-find{padding:12px;margin-bottom:12px}.town-page .town-search,.town-index-page .town-search{font-size:14px}
 .town-page .town-content-tools{gap:8px}.town-page .town-content-tools p,.town-page .town-content-tools .filter-reset{font-size:13px}
 .town-page .town-section-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:20px}
 html body .town-page .town-section-nav a[data-tone]{padding:8px;gap:6px;font-size:14px;min-height:48px}
 html body .town-page .town-section-nav a .town-nav-name{font-size:14px}
 html body .town-page .town-section-nav a .town-nav-icon{width:26px;height:26px}.town-page .town-nav-icon .ap-icon{width:21px;height:21px}
 .town-page .town-section{margin:24px 0;padding-top:12px}.town-page .town-section .sectionhead h2{font-size:27px;gap:8px}.town-page .town-section .sectionhead h2 .ap-icon{width:25px;height:25px}
 .town-page .town-section [data-town-section-count]{font-size:12px;max-width:90px}
 html body .town-page .listing-card-body h3{font-size:21px!important;line-height:1.18!important;margin-bottom:6px}
 .town-page .town-section .hub-list{grid-template-columns:1fr;gap:12px}
 .town-page .town-more{font-size:14px;margin-top:12px}.town-page .town-coming ul{font-size:13px}
 .town-index-page .town-search{padding:12px}.town-index-page .town-index-grid{gap:8px}.town-index-page .town-index-link{min-height:48px;padding:10px 12px;font-size:16px}
}
@media(max-width:360px){html body .town-page .listing-card-body h3{font-size:20px!important}.town-page .town-useful a{font-size:13px;gap:4px}.town-page .town-useful .ap-icon{width:19px;height:19px}.town-page .town-section .sectionhead h2{font-size:25px}}

.town-page .town-secondary{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 16px;font-size:15px}
.town-page .town-secondary a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}

/* Tasts municipals i de districte. Les llistes completes viuen en l’apartat que els correspon. */
body:not(#x) main.town-page.town-compact-page{
 .profilecrumb{margin:12px 0}
 .town-hero.county-title{margin:0 0 16px;gap:6px 12px}
 .town-hero .eyebrow{margin:2px 0;font-size:15px}
 .town-hero h1{margin:0}
 .town-hero p{margin:0;font-size:17px}
 .town-hero-links{grid-column:1/-1;display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap}
 .town-hero .town-map-link,.town-hero-links>.textlink{display:inline-flex;align-items:center;min-height:44px;margin:0}
 .town-districts{border-color:var(--line);border-radius:12px}
 .town-find{gap:6px 8px;padding:12px;margin:0 0 16px;border-radius:16px}
 .town-find input{min-height:44px}
 .town-content-tools{margin:0}
 .town-tastes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
 .town-tastes>.town-section{
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;
  min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:16px;
  background:var(--brand-cream);overflow-wrap:anywhere
 }
 .town-tastes :is(.town-section,[data-town-section-count],[data-town-empty])[hidden]{display:none}
 .town-tastes>.town-section.is-expanded{grid-column:1/-1}
 .town-section .sectionhead{width:100%;margin:0;padding:0;border:0;gap:8px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}
 .town-section .sectionhead h2{font-size:clamp(20px,2.1vw,26px);gap:8px;min-width:0}
 .town-section .town-icon{
  display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;
  color:var(--brand-cream);background:var(--brand-blue);border-radius:8px
 }
 .town-section .town-icon .ap-icon{width:21px;height:21px}
 .town-section [data-town-section-count]{max-width:75px;font-size:12px;line-height:1.2}
 .town-tastes .town-section :is(.hub-grid,.hub-list){width:100%;grid-template-columns:minmax(0,1fr);margin:0;gap:8px}
 .town-tastes .town-section.is-expanded :is(.hub-grid,.hub-list){grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
 .town-section :is(.hub-grid,.hub-list):empty{display:none}
 .town-section .hub-card{
  display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:8px;
  min-width:0;margin:0;padding:8px;border-radius:10px;background:var(--page)
 }
 .town-section .listing-card-media{width:72px;height:72px;border-radius:8px}
 .town-section .listing-card-media .hub-picto .ap-icon{width:32px;height:32px}
 .town-section .listing-card-body .ap-category{font-size:12px;margin:0 0 3px;padding:2px 5px}
 .town-section .listing-card-body .ap-category .ap-icon{width:15px;height:15px}
 .town-section .listing-card-body h3{margin:0 0 4px}
 .town-section .listing-card-body .listing-card-action{display:none}
 .town-section .listing-card-facts{margin-bottom:0}
 .town-section .hub-empty,.town-context-taste>p,.town-sports-fixture p{margin:0;padding:0;border:0;background:none;font-size:14px;line-height:1.4}
 .town-section :is(.news-card,.ephemeral-card){margin:0;padding:10px;border:0;border-radius:10px;background:var(--page)}
 .town-section .ephemeral-card>summary{padding:0}
 .town-section .agenda-compact>summary::after{content:none}
 .town-section .news-card h3{margin:4px 0;font-size:21px;line-height:1.2}
 .town-section .news-details{margin-top:4px}
 .town-section .news-details summary{min-height:32px}
 .town-section-link{
  display:inline-flex;align-items:center;justify-content:space-between;gap:6px;max-width:100%;
  min-height:44px;margin-top:auto;padding:6px 10px;border:1px solid var(--brand-blue);border-radius:8px;
  color:var(--brand-blue);background:var(--page);font-size:15px;line-height:1.25;text-decoration:none
 }
 .town-section-link:is(:hover,:focus-visible){color:var(--brand-cream);background:var(--brand-blue)}
 .town-section-link:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
 .public-faq details{padding:12px}
}
@media(max-width:980px){
 body:not(#x) main.town-page.town-compact-page .town-tastes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 body:not(#x) main.town-page.town-compact-page{
  .town-hero p{font-size:16px}
  .town-hero-links{column-gap:12px}
  .town-tastes{gap:8px}
  .town-tastes>.town-section{padding:10px}
  .town-tastes>.town-section[data-town-section]:not([data-town-empty-section]){grid-column:1/-1}
  .town-tastes :is([data-town-empty-section],.town-context-taste) .sectionhead h2{font-size:18px}
  .town-tastes :is([data-town-empty-section],.town-context-taste) .town-icon{width:26px;height:26px}
  .town-tastes :is([data-town-empty-section],.town-context-taste) .town-icon .ap-icon{width:18px;height:18px}
  .town-section-link{font-size:14px}
 }
 .wrap:has(>main.town-compact-page)+.site-footer{
  padding:20px 0;
  .wrap{gap:12px 16px}
  .footer-brand{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
  .footer-brand p{margin:0}
  .footer-brand p:last-child{flex-basis:100%}
  .footer-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
  .footer-meta :is(a,summary){display:inline-flex;align-items:center;min-height:28px;overflow-wrap:anywhere}
  .footer-meta .photo-credits{grid-column:1/-1}
 }
}
