:root {
  --bs-body-font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dtf-bg: #f6f3ee;
  --dtf-surface: #ffffff;
  --dtf-surface-soft: #f8f6f2;
  --dtf-border: rgba(24, 29, 35, 0.08);
  --dtf-text: #181d23;
  --dtf-muted: #667085;
  --dtf-accent: #1f3b57;
  --dtf-accent-soft: #e8eef4;
  --dtf-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --dtf-shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.06);
  --dtf-radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fbfaf7 0%, var(--dtf-bg) 100%);
  color: var(--dtf-text);
  font-family: var(--bs-body-font-family);
  letter-spacing: -0.01em;
  padding-top: 96px;
}

body.public-search-page {
  padding-top: 0;
}

img {
  display: block;
  max-width: 100%;
}

.site-navbar {
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 29, 35, 0.06);
}

.navbar-brand, .footer-brand {
  color: var(--dtf-text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--dtf-text);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-tag {
  color: var(--dtf-muted);
  font-size: 0.76rem;
  line-height: 1.2;
  margin-top: 0.18rem;
}

.nav-link {
  color: rgba(24, 29, 35, 0.78);
  font-weight: 500;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: var(--dtf-text);
}

.hero-section {
  padding: 2rem 0 4rem;
}

.hero-shell {
  background: radial-gradient(circle at top right, rgba(31, 59, 87, 0.08), transparent 28%), var(--dtf-surface-soft);
  border: 1px solid var(--dtf-border);
  border-radius: 32px;
  box-shadow: var(--dtf-shadow);
  padding: 2rem;
}

.eyebrow {
  display: inline-block;
  color: var(--dtf-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-copy h1, .section-title {
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-text, .section-text, .listing-text, .footer-text, .spotlight-image + .card-body p {
  color: var(--dtf-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.search-panel, .featured-spotlight, .category-card, .listing-card, .towns-panel, .town-card, .cta-panel {
  background: var(--dtf-surface);
  border: 1px solid var(--dtf-border);
  border-radius: var(--dtf-radius);
  box-shadow: var(--dtf-shadow-soft);
}

.search-panel {
  padding: 1rem;
}

.form-label {
  color: var(--dtf-text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.search-field {
  background: #fff;
  border: 1px solid var(--dtf-border);
  border-radius: 18px;
  overflow: hidden;
}

.search-field .input-group-text, .search-field .form-control {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.search-field .input-group-text {
  color: var(--dtf-muted);
  padding-left: 1.1rem;
}

.search-field .form-control {
  color: var(--dtf-text);
  padding: 0.95rem 1rem 0.95rem 0.25rem;
}

.search-field .form-control::placeholder {
  color: #98a2b3;
}

.search-button, .btn-dark {
  background: var(--dtf-text);
  border-color: var(--dtf-text);
}

.search-button:hover, .search-button:focus, .btn-dark:hover, .btn-dark:focus {
  background: #0e1116;
  border-color: #0e1116;
}

.btn-outline-dark {
  border-color: rgba(24, 29, 35, 0.16);
  color: var(--dtf-text);
}

.btn-outline-dark:hover, .btn-outline-dark:focus {
  background: var(--dtf-text);
  border-color: var(--dtf-text);
}

.search-chip, .mini-pill {
  background: var(--dtf-surface-soft);
  border: 1px solid rgba(24, 29, 35, 0.07);
  border-radius: 999px;
  color: var(--dtf-muted);
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
}

.featured-spotlight {
  overflow: hidden;
}

.spotlight-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.spotlight-label, .listing-category {
  color: var(--dtf-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rating-badge {
  background: #fff7e8;
  border-radius: 999px;
  color: #9a6700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  white-space: nowrap;
}

.section-space {
  padding: 2rem 0 4.5rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-link {
  color: var(--dtf-text);
  font-weight: 600;
  text-decoration: none;
}

.section-link i {
  margin-left: 0.3rem;
}

.category-card {
  padding: 1.4rem 1.2rem;
  height: 100%;
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--dtf-accent-soft);
  color: var(--dtf-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.category-card h3, .listing-card h3, .town-card h3, .footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.category-card p, .town-card p, .listing-location {
  color: var(--dtf-muted);
  margin-bottom: 0;
}

.listing-card {
  overflow: hidden;
  height: 100%;
}

.listing-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.listing-body {
  padding: 1.35rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  color: var(--dtf-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.listing-meta i {
  color: var(--dtf-accent);
  margin-right: 0.3rem;
}

.towns-panel, .cta-panel {
  padding: 2rem;
}

.town-card {
  padding: 1.3rem;
  min-height: 100%;
}

.site-footer {
  border-top: 1px solid rgba(24, 29, 35, 0.08);
  padding: 1rem 0 2.5rem;
}

.footer-title {
  margin-bottom: 1rem;
}

.footer-links li + li {
  margin-top: 0.7rem;
}

.footer-links a, .footer-links span {
  color: var(--dtf-muted);
  text-decoration: none;
}

.footer-links a:hover, .footer-links a:focus {
  color: var(--dtf-text);
}

.footer-bottom {
  border-top: 1px solid rgba(24, 29, 35, 0.08);
  color: var(--dtf-muted);
  font-size: 0.92rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 88px;
  }
}

@media (max-width: 991.98px) {
  .hero-shell {
    padding: 1.25rem;
    border-radius: 24px;
  }
}

@media (max-width: 991.98px) {
  .hero-copy h1 {
    font-size: calc(1.8rem + 1.5vw);
  }
}

@media (max-width: 991.98px) {
  .towns-panel, .cta-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 1.5rem 0 3.5rem;
  }
}

@media (max-width: 767.98px) {
  .search-panel {
    padding: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .search-button {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .brand-tag {
    display: none !important;
  }
}

/* Business profile: retain the directory's shared visual language. */

.business-profile .profile-breadcrumb {
  font-size: 0.88rem;
}

.business-profile .breadcrumb a {
  color: var(--dtf-accent);
  text-underline-offset: 0.2em;
}

.business-profile .breadcrumb-item.active, .business-profile .profile-location, .business-profile .profile-note {
  color: var(--dtf-muted);
}

.business-profile .profile-note {
  font-size: 0.9rem;
  line-height: 1.7;
}

.business-profile .evidence-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
}

.business-profile .evidence-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 2rem;
  padding: 0.42rem 0.75rem;
  line-height: 1;
  white-space: nowrap;
}

.business-profile .profile-service-icon {
  display: inline-block;
  color: var(--dtf-accent);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.business-profile .profile-contact dt {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.business-profile .profile-contact dd {
  color: var(--dtf-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}

.business-profile .profile-hours th, .business-profile .profile-hours td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--dtf-border);
  font-size: 0.9rem;
}

.business-profile .profile-hours th {
  font-weight: 500;
}

.business-profile .profile-hours td {
  text-align: right;
  color: var(--dtf-muted);
  padding-left: 0.75rem;
}

.business-profile .profile-hours tr:last-child > * {
  border-bottom: 0;
}

.business-profile .profile-demo-note {
  background: var(--dtf-surface-soft);
  border: 1px solid var(--dtf-border);
  border-radius: 18px;
  padding: 1.25rem;
}

.business-profile #enquiry .form-control, .business-profile #enquiry .form-select {
  border-color: var(--dtf-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--dtf-text);
  background-color: var(--dtf-surface-soft);
}

.business-profile #enquiry .form-select {
  padding-right: 2.5rem;
}

.business-profile #enquiry .form-control::placeholder {
  color: var(--dtf-muted);
}

.business-profile #enquiry .form-control:focus, .business-profile #enquiry .form-select:focus {
  border-color: var(--dtf-accent);
  box-shadow: 0 0 0 0.2rem var(--dtf-accent-soft);
}

.business-profile :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--dtf-accent);
  outline-offset: 4px;
}

.business-profile :where(main, section[id]) {
  scroll-margin-top: 110px;
}

.business-profile .profile-skip:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1100;
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  background: var(--dtf-surface);
  color: var(--dtf-text);
  box-shadow: var(--dtf-shadow);
}

@media (max-width: 575.98px) {
  .business-profile .profile-actions {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .business-profile .profile-actions .btn, .business-profile #enquiry button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .business-profile .hero-copy h1 {
    overflow-wrap: break-word;
  }
}

@media (max-width: 575.98px) {
  .business-profile .navbar-brand {
    margin-right: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .business-profile .navbar-toggler {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.business-profile) {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-profile *, .business-profile *::before, .business-profile *::after {
    transition: none !important;
    animation: none !important;
  }
}

.section-space-sm {
  padding: 1.5rem 0 2.5rem;
}

.directory-share-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--dtf-border, #dfe3e6);
  border-radius: 24px;
  background: var(--dtf-surface, #fff);
  box-shadow: 0 16px 40px rgba(20, 28, 35, 0.08);
}

.directory-share-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.share-button,
.share-more-options button {
  border: 1px solid #d5dadd;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #182027;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
}

.share-button:hover,
.share-button:focus-visible,
.share-more-options button:hover,
.share-more-options button:focus-visible {
  border-color: #182027;
  outline: none;
}

.share-native {
  background: #182027;
  border-color: #182027;
  color: #fff;
}

.share-more-options {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.5rem);
  right: 3.5rem;
  min-width: 150px;
  padding: 0.5rem;
  border: 1px solid #dfe3e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(20, 28, 35, 0.14);
}

.share-more-options button {
  display: block;
  width: 100%;
  margin: 0.15rem 0;
  text-align: left;
  border-color: transparent;
}

.share-status {
  flex-basis: 100%;
  min-height: 1.25rem;
  color: #45604f;
  font-size: 0.9rem;
  text-align: right;
}

@media (max-width: 767.98px) {
  .directory-share-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-share-actions {
    justify-content: flex-start;
  }

  .share-button {
    flex: 1 1 calc(50% - 0.6rem);
  }

  .share-more-options {
    right: auto;
    left: 0;
  }

  .share-status {
    text-align: left;
  }
}

