/* Town/city pages only. Colours and box-wave shapes follow the TC homepage.
   Typography inherits the active template's Delight family. */
.main.no-sidebar:has(.tc-town-page) {
    max-width: none;
    padding: 0;
    margin-top: 0 !important;
    z-index: auto;
}
.main:has(.tc-town-page) > .content { min-width: 0; }
.tc-town-page {
    --tc-ink: #092d31;
    --tc-accent: #11545c;
    --tc-muted: #526e68;
    --tc-line: rgba(17, 84, 92, .13);
    --tc-band: #deeee4;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--tc-band);
    color: var(--tc-ink);
    font-family: inherit;
    font-size: inherit;
    line-height: 1.7;
}
.tc-town-page *, .tc-town-page *::before, .tc-town-page *::after { box-sizing: border-box; }
.tc-town-page a { color: inherit; text-decoration: none; }
.tc-town-page :focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
}
.tc-town-page :is(h1, h2, h3, h4) { color: var(--tc-ink); font-family: inherit; font-weight: 400; }
.tc-town-page h2 { margin: 0; font-size: 34px; line-height: 1.3; }
.tc-town-page h3 { margin: 0; font-size: 27px; line-height: 1.35; }
.tc-town-shell { position: relative; width: calc(100% - 80px); max-width: 1480px; margin: 0 auto; }
.tc-town-icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; }

/* Hero remains behind the template's existing header and header waves. */
.tc-town-hero { position: relative; min-height: 510px; display: flex; align-items: center; padding: 170px 0 120px; background: #c8e5d8; }
.tc-town-hero__media { position: absolute; inset: 0; }
.tc-town-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tc-town-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244,248,246,.97), rgba(244,248,246,.93) 62%, rgba(244,248,246,.65) 82%, rgba(244,248,246,.35)); }
.tc-town-hero__inner { z-index: 2; }
.tc-town-eyebrow { margin: 0 0 12px; color: var(--tc-accent); font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.tc-town-hero h1 { max-width: 850px; margin: 0; font-size: clamp(40px, 4vw, 60px); line-height: 1.1; letter-spacing: -.02em; }
.tc-town-hero__intro { max-width: 610px; margin-top: 20px; color: var(--tc-ink); font-size: 18px; font-weight: 400; line-height: 1.7; }
.tc-town-hero__intro > :first-child { margin-top: 0; }
.tc-town-hero__intro > :last-child { margin-bottom: 0; }

/* Real two-layer waves, kept separate from the content wrappers. */
.tc-town-page .box-wave { position: absolute; top: -99px; left: -20px; width: calc(100% + 40px); height: 100px; overflow: hidden; pointer-events: none; z-index: 0; }
.tc-town-page .box-wave svg { position: absolute; left: 0; bottom: -1px; display: block; width: 100%; height: 100%; transform-origin: center bottom; }
.tc-town-page .box-wave .wave-back { opacity: .42; animation: waveBackA 9.4s ease-in-out infinite; }
.tc-town-page .box-wave .wave-front { animation: waveFrontA 6.8s ease-in-out infinite; }
.tc-town-page .box-wave path { fill: var(--tc-band); }
.tc-town-hero > .box-wave { top: auto; bottom: 0; z-index: 1; }
.tc-town-band { position: relative; padding: 38px 0 110px; background: var(--tc-band); }
.tc-town-band > .tc-town-shell { z-index: 1; }
.tc-town-band--discover { --tc-band: #c8e5d8; }
.tc-town-band--areas { --tc-band: #e7f0ea; padding-top: 42px; }
.tc-town-band--guide { --tc-band: #deeee4; padding-bottom: 70px; }

/* Search and navigation */
.tc-town-search-shell { z-index: 3; margin-top: -60px; }
/* Compact town search; form fields and fixed-town behaviour are unchanged. */
.tc-town-search-panel { margin-inline: auto; padding: 18px; border: 1px solid rgba(255,255,255,.9); border-radius: 20px; background: #f0f7f3; box-shadow: 0 8px 24px rgba(9,45,49,.07); }
.tc-town-search { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(180px, 1fr) auto; align-items: end; gap: 12px; margin: 0; border: 0; border-radius: 0; background: transparent; }
.tc-town-search__query { position: relative; min-width: 0; padding: 0; border: 0; }
.tc-town-search__query > .tc-town-icon { position: absolute; left: 14px; bottom: 13px; top: auto; width: 18px; height: 18px; color: #2b7882; pointer-events: none; }
.tc-town-search__query label, .tc-town-search__label { display: block; margin: 0 0 6px; padding: 0; color: #11545c; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .2px; text-transform: none; }
.tc-town-search input[type="search"] { display: block; width: 100%; min-width: 0; height: 44px; margin: 0; border: 1px solid #d3e3db; border-radius: 12px; padding: 10px 12px 10px 40px; background: #fff; box-shadow: none; color: var(--tc-ink); font-family: inherit; font-size: 14px; line-height: 22px; }
.tc-town-search input::placeholder { color: #69827d; opacity: 1; }
.tc-town-search input[type="search"]:focus { border-color: #2b7882; }
.tc-town-search__location { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #2b7882; }
.tc-town-search__location > div { min-width: 0; }
.tc-town-search__location > .tc-town-icon { position: absolute; left: 14px; bottom: 13px; width: 18px; height: 18px; pointer-events: none; }
.tc-town-search__town { display: block; min-height: 44px; padding: 10px 12px 10px 40px; border: 1px solid #d3e3db; border-radius: 12px; overflow-wrap: anywhere; background: #e4f0e9; color: #11545c; font-size: 14px; line-height: 22px; }
.tc-town-search button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin: 0; padding: 10px 22px; border: 0; border-radius: 999px; background: #11545c; color: #fff; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 24px; letter-spacing: .4px; text-transform: none; cursor: pointer; transition: background .2s; }
.tc-town-search button:hover { background: rgba(17,84,92,.8); color: #fff; }
.tc-town-search button .tc-town-icon { width: 14px; height: 14px; font-size: 14px; }
.tc-town-icon.fas.fa-arrow-right { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.tc-town-popular { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.tc-town-popular strong { margin-right: 6px; font-size: inherit; font-weight: 500; }
.tc-town-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 12px; border: 1px solid rgba(17,84,92,.06); border-radius: 25px; background: rgba(255,255,255,.9); font-size: 13px; font-weight: 400; line-height: 1.5; }
.tc-town-chip .tc-town-icon { width: 14px; height: 14px; }
.tc-town-chip:hover, .tc-town-local-nav a:hover { background: #fff; border-color: #85b5a6; }
.tc-town-breadcrumbs { padding: 20px 0 8px; font-size: 13px; line-height: 1.6; color: var(--tc-muted); }
.tc-town-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tc-town-breadcrumbs li { margin: 0; padding: 0; }
.tc-town-breadcrumbs li + li::before { content: "›"; margin-right: 8px; }
.tc-town-breadcrumbs a:hover { text-decoration: underline; }

/* About and compact, genuine directory totals. */
.tc-town-section { position: relative; padding: 0 0 42px; }
.tc-town-section--about { padding: 40px 0 125px; }
.tc-town-about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.tc-town-about__copy, .tc-town-bottom__copy { color: var(--tc-muted); margin-top: 16px; }
.tc-town-about__copy > :first-child, .tc-town-bottom__copy > :first-child { margin-top: 0; }
.tc-town-about__copy > :last-child, .tc-town-bottom__copy > :last-child { margin-bottom: 0; }
.tc-town-page :is(.tc-town-about__copy, .tc-town-bottom__copy, .tc-town-faqs__answer, .tc-town-area__desc, .tc-town-hero__intro) a { text-decoration: underline; text-underline-offset: 3px; }
.tc-town-page :is(.tc-town-about__copy, .tc-town-bottom__copy, .tc-town-faqs__answer, .tc-town-area__desc) img { max-width: 100%; height: auto; }
.tc-town-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 20px; padding: 28px; border-radius: 16px; background: rgba(255,255,255,.25); }
.tc-town-facts:empty { display: none; }
.tc-town-fact { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-town-fact > .tc-town-icon { color: #438b80; }
.tc-town-fact strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.45; }
.tc-town-fact span { display: block; font-size: 12px; line-height: 1.6; color: var(--tc-muted); }
.tc-town-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.tc-town-stat { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 5px 20px rgba(9,45,49,.025); }
.tc-town-stat__icon { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%; background: #e7f0ea; color: #438b80; }
.tc-town-stat__icon .tc-town-icon { width: 27px; height: 27px; }
.tc-town-stat strong { display: block; font-size: 25px; line-height: 1.2; font-weight: 400; }
.tc-town-stat span:not(.tc-town-stat__icon) { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--tc-muted); }

/* Featured and neighbourhood cards share the same layout. */
.tc-town-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.tc-town-heading-row > :first-child { min-width: 0; }
.tc-town-heading-row p { margin: 10px 0 0; font-size: 16px; color: var(--tc-muted); }
.tc-town-view-all { position: relative; isolation: isolate; display: inline-flex; flex: 0 1 auto; align-items: center; min-height: 40px; max-width: 100%; padding: 8px 52px 8px 16px; border-radius: 999px; color: var(--tc-accent) !important; font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: .6px; text-decoration: none; overflow-wrap: anywhere; }
.tc-town-view-all::before { content: ''; position: absolute; z-index: -1; right: 0; top: 50%; width: 40px; height: 40px; border-radius: 999px; transform: translateY(-50%); background: rgba(255,255,255,.75); transition: width .3s ease, height .3s ease; pointer-events: none; }
.tc-town-view-all .tc-town-icon { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; font-size: 16px; transition: transform .3s ease; }
.tc-town-view-all:is(:hover,:focus-visible) { text-decoration: none; }
.tc-town-view-all:is(:hover,:focus-visible) .tc-town-icon { transform: translate(-7px, -50%); }
.tc-town-view-all:is(:hover,:focus-visible)::before { width: 100%; height: 100%; }

.tc-town-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tc-town-card { min-width: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(9,45,49,.05); transition: transform .2s ease, box-shadow .2s ease; }
.tc-town-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(9,45,49,.10); }
.tc-town-card__link { display: flex; flex-direction: column; height: 100%; }
.tc-town-card__image { aspect-ratio: 1.7; overflow: hidden; background: #edf5f0; }
.tc-town-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-town-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 14px; }
.tc-town-card__category { margin-bottom: 8px; color: #438078; font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; }
.tc-town-page .tc-town-card__title { margin: 0 0 10px; font-size: 22px; line-height: 1.3; letter-spacing: .3px; }
.tc-town-card__body > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 22px; color: var(--tc-muted); font-size: 16px; line-height: 1.55; }
.tc-town-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--tc-line); color: #438078; }
.tc-town-card__footer > .tc-town-icon { width: 18px; height: 18px; }
.tc-town-card__location { display: flex; align-items: flex-start; gap: 6px; min-width: 0; color: var(--tc-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.tc-town-card__location .tc-town-icon { width: 15px; height: 15px; margin-top: 1px; }
.tc-town-section--categories { padding-top: 6px; }
.tc-town-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tc-town-category { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.93); font-size: 15px; font-weight: 400; line-height: 1.5; }
.tc-town-category:hover { border-color: #85b5a6; background: #fff; }
.tc-town-category__icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #e7f0ea; color: var(--tc-accent); }
.tc-town-category__label { flex: 1; min-width: 0; }
.tc-town-category > .tc-town-icon { width: 15px; height: 15px; }
.tc-town-services { display: flex; align-items: center; gap: 22px; padding: 20px 24px; border-radius: 14px; background: rgba(255,255,255,.25); }
.tc-town-services > strong { flex: 0 0 auto; max-width: 30%; font-size: 14px; font-weight: 500; line-height: 1.5; }
.tc-town-services .tc-town-popular { margin: 0; }

/* Local areas stay together in one light band, with quiet row separators. */
.tc-town-local-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 0 25px; font-size: 13px; }
.tc-town-local-nav > span { margin-right: 5px; color: var(--tc-muted); }
.tc-town-local-nav a { min-height: 36px; padding: 6px 14px; border: 1px solid var(--tc-line); border-radius: 25px; background: #fff; line-height: 1.7; }
.tc-town-area { padding: 38px 0; border-top: 1px solid var(--tc-line); scroll-margin-top: 32px; }
.tc-town-area:last-child { padding-bottom: 12px; }
.tc-town-area__index { margin: 0 0 9px; color: #438078; font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: 1.5px; text-transform: uppercase; }
.tc-town-area__desc { margin: 10px 0 0; color: var(--tc-muted); font-size: 16px; line-height: 1.65; }
.tc-town-area__desc > :first-child { margin-top: 0; }
.tc-town-area__desc > :last-child { margin-bottom: 0; }

/* Editor content and native, keyboard-accessible FAQs. */
.tc-town-bottom { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 60px; align-items: start; }
.tc-town-bottom--wide { grid-template-columns: 1fr; }
.tc-town-bottom--wide .tc-town-bottom__copy { max-width: 1000px; }
.tc-town-faqs { padding: 26px; border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(9,45,49,.04); }
.tc-town-faqs h3 { margin: 0 0 18px; font-size: 20px; line-height: 1.4; letter-spacing: .3px; }
.tc-town-faqs details { border-top: 1px solid var(--tc-line); }
.tc-town-faqs summary { position: relative; padding: 16px 26px 16px 0; font-size: 14px; font-weight: 500; line-height: 1.6; cursor: pointer; list-style: none; }
.tc-town-faqs summary::-webkit-details-marker { display: none; }
.tc-town-faqs summary::after { content: "+"; position: absolute; right: 0; top: 15px; color: #438078; font-size: 18px; font-weight: 400; }
.tc-town-faqs details[open]:not([data-tc-faq-open="false"]) > summary::after { content: "−"; }
.tc-town-faqs__answer { padding-bottom: 18px; color: var(--tc-muted); font-size: 15px; line-height: 1.7; }
.tc-town-faqs__answer > :first-child { margin-top: 0; }
.tc-town-faqs__answer > :last-child { margin-bottom: 0; }
.tc-town-cta { display: flex; align-items: center; gap: 18px; margin-top: 42px; padding: 24px 28px; border-radius: 16px; background: #c8e5d8; }
.tc-town-cta__icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: var(--tc-accent); color: #fff; }
.tc-town-cta strong { display: block; font-size: 19px; font-weight: 400; line-height: 1.5; }
.tc-town-cta div > span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.6; color: var(--tc-muted); }
.tc-town-cta a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 0; max-width: 100%; gap: 12px; margin-left: auto; padding: 10px 30px; border-radius: 999px; background: #11545c; color: #ffffff; font-size: 16px; font-weight: 500; line-height: 1.6; letter-spacing: 1px; text-decoration: none; transition: gap .2s, background .2s; }
.tc-town-cta a:hover { gap: 20px; background: rgba(17,84,92,.8); color: #ffffff; }
.tc-town-cta a .tc-town-icon { width: 17px; height: 17px; }

@media (max-width: 1100px) {
    .tc-town-about, .tc-town-bottom { gap: 32px; }
    .tc-town-facts { gap: 14px; padding: 20px; }
    .tc-town-card-grid, .tc-town-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-town-page h2 { font-size: 30px; }
    .tc-town-cta { flex-wrap: wrap; }
}
@media (max-width: 800px) {
    .tc-town-shell { width: calc(100% - 48px); }
    .tc-town-hero { min-height: 480px; padding-top: 160px; }
    .tc-town-hero__media::after { background: linear-gradient(90deg, rgba(244,248,246,.97), rgba(244,248,246,.93) 65%, rgba(244,248,246,.78)); }
    .tc-town-search { grid-template-columns: minmax(0, 1.3fr) minmax(140px, 1fr) auto; }
    .tc-town-about, .tc-town-bottom { grid-template-columns: 1fr; }
    .tc-town-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tc-town-stat { gap: 10px; padding: 18px 14px; }
    .tc-town-stat__icon { width: 40px; height: 40px; flex-basis: 40px; }
    .tc-town-heading-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .tc-town-view-all { max-width: 100%; }
    .tc-town-services { flex-direction: column; align-items: flex-start; gap: 12px; }
    .tc-town-services > strong { max-width: none; }
}
@media (max-width: 575px) {
    .tc-town-shell { width: calc(100% - 32px); }
    .tc-town-hero { min-height: 430px; padding: 140px 0 105px; }
    .tc-town-hero h1 { font-size: 40px; overflow-wrap: anywhere; }
    .tc-town-hero__intro { font-size: 16px; }
    .tc-town-page h2 { font-size: 27px; }
    .tc-town-page h3 { font-size: 24px; }
    .tc-town-page .box-wave { top: -64px; height: 65px; }
    .tc-town-hero > .box-wave { top: auto; }
    .tc-town-search-panel { padding: 14px; border-radius: 18px; }
    .tc-town-search { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .tc-town-search__query { grid-column: 1 / -1; }
    .tc-town-search button { padding-inline: 18px; }
    .tc-town-popular { gap: 7px; }
    .tc-town-popular > strong { width: 100%; margin: 0; }
    .tc-town-chip { font-size: 12px; }
    .tc-town-breadcrumbs { font-size: 12px; }
    .tc-town-section--about { padding: 28px 0 90px; }
    .tc-town-about { gap: 26px; }
    .tc-town-about__copy, .tc-town-bottom__copy { font-size: 16px; }
    .tc-town-facts { gap: 16px; padding: 20px 16px; grid-template-columns: 1fr; }
    .tc-town-fact { gap: 14px; }
    .tc-town-stats { gap: 8px; margin-top: 26px; }
    .tc-town-stat { flex-direction: column; text-align: center; gap: 8px; padding: 16px 6px; }
    .tc-town-stat strong { font-size: 23px; }
    .tc-town-stat span:not(.tc-town-stat__icon) { font-size: 11px; }
    .tc-town-band { padding: 24px 0 84px; }
    .tc-town-band--guide { padding-bottom: 36px; }
    .tc-town-section { padding-bottom: 30px; }
    .tc-town-section--about { padding-bottom: 90px; }
    .tc-town-card-grid, .tc-town-category-grid { grid-template-columns: 1fr; gap: 16px; }
    .tc-town-card__image { aspect-ratio: 1.8; }
    .tc-town-page .tc-town-card__title { font-size: 22px; }
    .tc-town-card__body { padding: 18px 20px; }
    .tc-town-category-grid { gap: 10px; }
    .tc-town-category { padding: 12px 14px; }
    .tc-town-services { padding: 18px; }
    .tc-town-local-nav { padding-bottom: 18px; }
    .tc-town-area { padding: 30px 0; }
    .tc-town-area__desc { font-size: 15px; }
    .tc-town-faqs { padding: 20px; }
    .tc-town-faqs h3 { font-size: 20px; }
    .tc-town-cta { gap: 14px; margin-top: 30px; padding: 22px; }
    .tc-town-cta > div { flex: 1 1 190px; }
    .tc-town-cta a { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tc-town-page .box-wave svg { animation: none; }
    .tc-town-card, .tc-town-cta a, .tc-town-search button, .tc-town-view-all::before, .tc-town-view-all .tc-town-icon { transition: none; }
    .tc-town-card:hover { transform: none; }
}

/* 0.5.74: a complete local-guide panel, rather than three empty-looking cards. */
.tc-town-stats {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.35fr) auto;
    align-items: center;
    gap: 32px;
    margin-top: 38px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 18px;
    background: rgba(255,255,255,.48);
}
.tc-town-stats__intro .tc-town-eyebrow { display: block; margin: 0 0 6px; font-size: 11px; letter-spacing: 1.4px; }
.tc-town-stats__intro h3 { font-size: 25px; line-height: 1.3; }
.tc-town-stats__intro p { max-width: 350px; margin: 10px 0 0; color: var(--tc-muted); font-size: 14px; line-height: 1.6; }
.tc-town-stats__numbers { display: flex; align-items: center; justify-content: space-around; gap: 20px; }
.tc-town-stats .tc-town-stat { flex: 1; flex-direction: column; gap: 9px; padding: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; }
.tc-town-stats .tc-town-stat__icon { flex: 0 0 42px; width: 42px; height: 42px; color: var(--tc-accent); background: #d3ebe1; }
.tc-town-stats .tc-town-stat__icon .tc-town-icon { width: 23px; height: 23px; }
.tc-town-stats .tc-town-stat strong { font-size: 30px; font-weight: 400; }
.tc-town-stats .tc-town-stat span:not(.tc-town-stat__icon) { margin-top: 4px; font-size: 13px; }
.tc-town-stats__browse { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 18px; border: 1px solid rgba(17,84,92,.25); border-radius: 27px; color: var(--tc-accent); font-size: 13px; font-weight: 500; line-height: 1.5; }
.tc-town-stats__browse:hover { background: #fff; }
.tc-town-stats__browse .tc-town-icon { width: 18px; height: 18px; }
.tc-town-card__image { position: relative; }
.tc-town-card__featured { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px; background: #11545c; color: #fff; font-size: 11px; font-weight: 500; line-height: 1.5; }
.tc-town-card__featured .tc-town-icon { width: 13px; height: 13px; }

/* Featured: looping cards, with neighbouring cards faded like the Sobi category.
   Local areas: finite native scrolling, full opacity and simple arrow controls. */
.tc-town-page { --tc-town-columns: 4; --tc-town-content-width: min(1480px, calc(100vw - 80px)); }
.tc-town-carousel { min-width: 0; }
.tc-town-heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex: 0 0 auto; max-width: 40%; }
.tc-town-heading-actions .tc-town-view-all { max-width: 100%; }
.tc-town-heading-row .tc-town-eyebrow { margin: 0 0 9px; font-size: 12px; }
.tc-town-carousel__stage { min-width: 0; position: relative; }
.tc-town-carousel--featured .tc-town-carousel__stage { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.tc-town-carousel__viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.tc-town-carousel__viewport::-webkit-scrollbar { display: none; }
.tc-town-carousel__track { position: relative; display: flex; align-items: stretch; gap: 20px; width: 100%; padding: 5px 0 18px; }
.tc-town-carousel__track > .tc-town-card { flex: 0 0 calc((100% - 20px * (var(--tc-town-columns) - 1)) / var(--tc-town-columns)); scroll-snap-align: start; }
.tc-town-carousel--featured .tc-town-carousel__track > .tc-town-card { flex-basis: calc((var(--tc-town-content-width) - 20px * (var(--tc-town-columns) - 1)) / var(--tc-town-columns)); }
.tc-town-carousel.has-card-opacity .tc-town-card { opacity: .3; filter: grayscale(35%); transition: opacity .3s, filter .3s; }
.tc-town-carousel.has-card-opacity .tc-town-card.is-main,
.tc-town-carousel.has-card-opacity .tc-town-card:focus-within { opacity: 1; filter: none; }
.tc-town-carousel--local .tc-town-card { opacity: 1; filter: none; }
.tc-town-carousel .tc-town-card:hover { transform: none; }
.tc-town-carousel__controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.tc-town-carousel__controls[hidden] { display: none; }
.tc-town-carousel__arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(17,84,92,.18); border-radius: 50%; background: transparent; color: var(--tc-accent); cursor: pointer; }
.tc-town-carousel__arrow:hover:not(:disabled) { background: rgba(255,255,255,.6); }
.tc-town-carousel__arrow:disabled { opacity: .3; cursor: default; }
.tc-town-carousel__arrow .tc-town-icon { width: 17px; height: 17px; }
.tc-town-carousel__arrow[data-tc-town-prev] .tc-town-icon { transform: rotate(180deg); }
.tc-town-carousel__count { flex-shrink: 0; min-width: 40px; color: var(--tc-muted); font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.4; white-space: nowrap; text-align: center; }
.tc-town-carousel__dots { display: flex; position: relative; align-items: center; gap: 3px; min-width: 0; max-width: 160px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.tc-town-carousel__dots::-webkit-scrollbar { display: none; }
.tc-town-carousel__dot { display: flex; align-items: center; justify-content: center; flex: 0 0 25px; width: 25px; height: 25px; margin: 0; padding: 0; border: 0; border-radius: 20px; background: transparent; cursor: pointer; }
.tc-town-carousel__dot::before { content: ''; display: block; width: 9px; height: 9px; border-radius: 20px; background: #85b5a6; transition: width 160ms ease, background-color 160ms ease; }
.tc-town-carousel__dot.is-current::before { width: 25px; background: var(--tc-accent); }
@media (prefers-reduced-motion: reduce) { .tc-town-carousel__dot::before { transition: none; } }
.tc-town-carousel.is-dragging .tc-town-carousel__viewport { cursor: grabbing; user-select: none; }
.tc-town-carousel.is-dragging .tc-town-card a { pointer-events: none; }
@media (max-width: 1179px) {
    .tc-town-page { --tc-town-columns: 3; }
    .tc-town-stats { grid-template-columns: 1fr 1.3fr; gap: 24px; }
    .tc-town-stats__browse { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 899px) {
    .tc-town-page { --tc-town-columns: 2; }
}
@media (max-width: 800px) {
    .tc-town-page { --tc-town-content-width: calc(100vw - 48px); }
    .tc-town-heading-actions { max-width: 100%; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 649px) {
    .tc-town-page { --tc-town-columns: 1; }
    .tc-town-stats { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
    .tc-town-stats__intro p { max-width: none; }
    .tc-town-stats__numbers { justify-content: flex-start; }
    .tc-town-stats__browse { grid-column: auto; width: 100%; }
    .tc-town-carousel--featured .tc-town-carousel__track > .tc-town-card { flex-basis: calc(100vw - 64px); }
    .tc-town-carousel__controls { gap: 10px; }
    .tc-town-carousel__dots { max-width: 115px; }
}
@media (max-width: 575px) {
    .tc-town-page { --tc-town-content-width: calc(100vw - 32px); }
    .tc-town-stats .tc-town-stat strong { font-size: 27px; }
    .tc-town-stats .tc-town-stat span:not(.tc-town-stat__icon) { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .tc-town-carousel__viewport { scroll-behavior: auto; }
    .tc-town-carousel.has-card-opacity .tc-town-card { transition: none; }
}

/* Category glyphs come from Sobi's saved category icon, using existing fonts. */
.tc-town-category__icon img { display: block; width: 22px; height: 22px; object-fit: contain; }
.tc-town-category__icon > i { font-size: 20px; line-height: 1; }
