/* Styles for local-preview additions (search page, form feedback, offline map). */
.local-invalid {
  border-color: #dc3232 !important;
  box-shadow: 0 0 0 1px #dc3232 !important;
}
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  font-size: 0.85em;
  color: #dc3232;
}
.wpcf7-response-output {
  display: none;
  margin: 1em 0 0;
  padding: .75em 1em;
  border: 2px solid #0073aa;
  border-radius: 4px;
  white-space: pre-line;
}
.wpcf7-response-output.wpcf7-mail-sent-ok {
  display: block !important;
  border-color: #46b450;
  color: #1e7e34;
}
.wpcf7-response-output.wpcf7-validation-errors {
  display: block !important;
  border-color: #dc3232;
  color: #a00;
}

/* local search page */
.td-search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.td-search-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.td-search-page form {
  display: flex;
  gap: 8px;
  margin: 24px 0 8px;
}
.td-search-page input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #c9d3dc;
  border-radius: 6px;
  font-size: 1rem;
}
.td-search-page button {
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: #003DB1;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.td-search-page .local-count {
  color: #6b7785;
  font-size: .9rem;
  margin: 8px 0 24px;
}
.td-search-page ul.local-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.td-search-page ul.local-results li {
  border-bottom: 1px solid #e3e8ee;
  padding: 18px 0;
}
.td-search-page ul.local-results a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003DB1;
  text-decoration: none;
}
.td-search-page ul.local-results a:hover { text-decoration: underline; }
.td-search-page ul.local-results p {
  margin: 6px 0 0;
  color: #4a5561;
  font-size: .92rem;
  line-height: 1.5;
}
.td-search-page mark { background: #ffe58a; }
.td-search-page .local-empty { padding: 40px 0; color: #6b7785; }

/* contact page: full-width static Google map image, links to Google Maps */
section.section-content.td-map {
  height: auto !important;
  min-height: 0;
}
.section-content.td-map .inner,
.section-content.td-map .inner-s {
  height: auto !important;
  padding: 0 !important;
  width: 100%;
  max-width: none;
}
.local-map-link {
  display: block;
  width: 100%;
  background: #eef2f5;
  line-height: 0;
}
.local-map-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter .15s;
}
.local-map-link:hover img { filter: brightness(.97); }

/* admin-configurable announcement bar */
.local-announcement {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 44px 10px 16px;
  background: #003db1;
  color: #fff;
  font-size: .92rem;
  line-height: 1.4;
  text-align: center;
}
.local-announcement a {
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
}
.local-announcement button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.local-announcement button:hover { background: rgba(255, 255, 255, .3); }
@media (max-width: 600px) {
  .local-announcement { flex-wrap: wrap; gap: 6px; font-size: .85rem; }
}
