/* County guide pages: quick-connect form */
.county-connect > summary {
    display: block;
    cursor: pointer;
    list-style: none;
    text-align: center;
}

.county-connect > summary::-webkit-details-marker {
    display: none;
}

.county-connect[open] > summary {
    margin-bottom: 1rem;
}

.county-connect__form .field {
    margin-bottom: 0.9rem;
}

/* County guide pages: map under the intro text */
.county-map {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 12px;
    background: #e8eef3;
}

.county-map__canvas {
    position: absolute;
    inset: 0;
}

.county-map__consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: #e8eef3;
}

.county-map__consent[hidden] {
    display: none;
}

.county-map__consent h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.county-map__consent p {
    max-width: 420px;
    margin: 0 0 14px;
}

.county-map__note {
    margin: 12px 0 0;
    font-size: 0.85rem;
}

.county-map__message {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

/* On wide screens the map fills the space under the text, beside the form. */
@media (min-width: 851px) {
    .county-intro .service-intro__grid {
        grid-template-rows: auto 1fr;
    }

    .county-intro .service-intro__copy {
        grid-column: 1;
        grid-row: 1;
    }

    .county-intro .service-enquiry {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .county-intro .county-map {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
    }
}

/* Town names beside the map dots */
.county-map__town {
    padding: 1px 6px;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0b1f3a;
}

.county-lang {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.county-lang a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.county-stats {
  width: 100%;
  max-width: 34rem;
  margin: 1.25rem 0;
  border-collapse: collapse;
}

.county-stats caption {
  padding-bottom: 0.5rem;
  text-align: left;
  font-weight: 600;
}

.county-stats th,
.county-stats td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.18);
  text-align: left;
}

.county-stats td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.county-stats thead th {
  border-bottom-width: 2px;
}

.county-stats tfoot th,
.county-stats tfoot td {
  border-bottom: 0;
  border-top: 2px solid rgba(11, 31, 58, 0.18);
  font-weight: 700;
}


/* Town page "at a glance" figures */
.town-stats {
  max-width: none;
  margin: 1.25rem 0 0.5rem;
}

.town-stats caption {
  font-size: 1.05rem;
}

.town-stats th {
  font-weight: 600;
}

.town-stats td {
  text-align: left;
}

.town-stats__sub th,
.town-stats__sub td {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: #4a5568;
}

.town-stats__sub th {
  padding-left: 1.75rem;
}

.town-stats__src {
  font-size: 0.85rem;
  color: #5a6472;
}

.town-stats__note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5a6472;
}

/* Town page: figures sit under the intro, beside the advert box; on phones they follow the box */
@media (min-width: 851px) {
  .service-intro__grid--glance {
    row-gap: 0;
  }

  .service-intro__grid--glance > .service-intro__copy {
    grid-column: 1;
    grid-row: 1;
  }

  .service-intro__grid--glance > .service-enquiry {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .service-intro__grid--glance > .town-glance {
    grid-column: 1;
    grid-row: 2;
  }
}

.town-glance .town-stats {
  margin-top: 0.5rem;
}

/* "What you get" list in the Own this space box */
.tm-own__gets-title {
  margin: 1rem 0 0.4rem;
  font-weight: 700;
}

.tm-own__gets {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.tm-own__gets li {
  position: relative;
  margin: 0 0 0.45rem;
  padding-left: 1.6rem;
  line-height: 1.45;
}

.tm-own__gets li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #c84d0a;
  font-weight: 800;
}
/* 2026-11-17: Own this space card refresh (town pages) */
.service-enquiry.tm-own {
  --tm-own-pad: 32px;
  overflow: hidden;
  border-top: 1px solid #e4e8ec;
  padding-top: 37px;
}
.service-enquiry.tm-own::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: var(--orange-accent);
}
.service-enquiry .tm-own__price {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.tm-own__price strong {
  color: var(--navy);
}
.service-enquiry.tm-own .tm-own__claim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tm-own__arrow {
  flex: none;
  margin-top: -2px;
}
.tm-own .tm-own__ops {
  margin: 1.5rem calc(var(--tm-own-pad) * -1) -32px;
  padding: 1.4rem var(--tm-own-pad) 1.75rem;
  background: #f4f6f9;
  border-top: 1px solid #e3e8ef;
}
.service-enquiry .tm-own__reassure {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.tm-own__quote {
  margin: 0.8rem 0 0;
  padding: 0 0 0 0.85rem;
  border-left: 3px solid var(--orange-accent);
  font-size: 0.9rem;
  line-height: 1.5;
}
.service-enquiry .tm-own__quote p {
  margin: 0 0 0.35rem;
}
.tm-own__quote cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
}
@media (max-width: 600px) {
  .service-enquiry.tm-own {
    --tm-own-pad: 22px;
    padding-top: 32px;
  }
  .tm-own .tm-own__ops {
    margin-bottom: -25px;
  }
}

/* Town page questions */
.town-faq h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.1rem;
}

/* All towns page */
.town-index {
  columns: 2 280px;
  column-gap: 2.5rem;
}
.town-index__county {
  break-inside: avoid;
  margin: 0 0 1.4rem;
}
.town-index__county h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.town-index__county ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.town-index__county li {
  margin: 0 0 0.25rem;
}