:root {
  --default-colour: black;
  --default-background-colour: #008299;
  --hover-colour: #e30613;
  --active-colour: #e30613;
  --rounded-size: 0.4rem;
  --border-width: 1px;
  --radio-size: 1rem;
  --radio-background-colour: white;
  --base-spacing: 0.25rem;
  --small-font-size: 0.8rem;
  --space-1: var(--base-spacing);
  --space-2: calc(var(--space-1) * 2);
  --space-3: calc(var(--space-1) * 3);
  --space-4: calc(var(--space-1) * 4);
}

/* Add this rule to remove underline from links */
a {
  text-decoration: none; /* Remove underline */
}
/* ... existing code ... */

.clamped-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  overflow: hidden;
}

.search-input {
  padding: 0.5rem 1rem;
  border: 1px solid #737272;
  border-radius: 0.25rem;
  text-decoration: none;
}

.service-details-page-title {
  font-size: 3rem;
}

.service-item {
  color: var(--default-colour);
  margin-bottom: 20px; /* Add spacing between items */
}

.divider {
  border: 1px solid #737272; /*  grey divider */
  margin: 1rem 0; /* Spacing around the divider */
}

.embeddable-event-details {
  display: flex;
  flex-direction: column;
  /* This can be removed, here purely for local aesthetics */
  margin-bottom: 4rem;
  text-decoration: none;
  width: 100%;
}

.service-description {
  color: var(--default-colour);
  font-size: var(--small-font-size);
  line-height: 1.2;
}

.service-description a {
  text-decoration: none;
}

.service-description a:hover {
  text-decoration: none;
}

.service-details-page-description {
  white-space: normal;
}

/* Styles for HTML content within service description */
.service-details-page-description h1 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  color: inherit;
}

.service-details-page-description h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: inherit;
}

.service-details-page-description h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

.service-details-page-description h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

.service-details-page-description h5 {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

.service-details-page-description h6 {
  font-size: 0.95rem;
  font-weight: bold;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

.service-details-page-description p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-details-page-description ul,
.service-details-page-description ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-details-page-description ul {
  list-style-type: disc;
}

.service-details-page-description ol {
  list-style-type: decimal;
}

.service-details-page-description li {
  margin-bottom: 0.5rem;
}

.service-details-page-description a {
  color: var(--default-background-colour, #008299);
  text-decoration: underline;
}

.service-details-page-description a:hover {
  color: var(--hover-colour, #e30613);
}

.service-details-page-description strong {
  font-weight: 600;
}

.service-details-page-description em {
  font-style: italic;
}

/* Service Details Page Box Styles */
.service-details-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.service-header-box,
.service-contact-box,
.service-location-box,
.service-description-box,
.service-events-box {
  background-color: #ffffff;
  border: var(--border-width) solid var(--default-colour);
  border-radius: var(--rounded-size);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--default-colour);
}

.box-icon {
  color: var(--default-colour);
  font-size: 1.1rem;
}

.service-header-box {
  text-align: center;
  background-color: #ffffff;
}

.service-header-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.service-header-image-container {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f3f4f6;
  border: 2px solid #e5e7eb;
}

.service-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-header-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.service-header-box .service-details-page-title {
  margin-bottom: 0.5rem;
  text-align: left;
}

.service-header-box .service-org-name {
  font-size: 1.1rem;
  color: var(--default-colour);
  margin-bottom: 1rem;
  opacity: 0.8;
  text-align: left;
}

/* When no image, center the content */
.service-header-content.no-image {
  justify-content: center;
  text-align: center;
}

.service-header-content.no-image .service-header-text {
  text-align: center;
}

.service-header-content.no-image .service-categories {
  justify-content: center;
}

.service-header-box .service-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
}

.service-header-content:not(:has(.service-header-image-container)) .service-categories {
  justify-content: center;
}

.category-icon {
  margin-right: 0.5rem;
  color: var(--default-colour);
}

.category-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-details p,
.location-details p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon,
.address-icon {
  color: var(--default-colour);
  width: 1rem;
  min-width: 1rem;
}

.venue-address {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.venue-address-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.venue-name {
  font-weight: 600;
  color: var(--default-colour);
}

.venue-address-text {
  color: var(--default-colour);
  opacity: 0.9;
}

.venue-postcode {
  color: var(--default-colour);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Two Column Layout for Service Details Page */
.service-content-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin-top: 1.5rem;
}
.service-content-layout.single-column {
  grid-template-columns: 1fr;
}

/* Service Location Map Styles */
.service-location-map {
  width: 100%;
  height: 300px; /* fixed, consistent map height for detail page */
  border-radius: var(--rounded-size);
  overflow: hidden;
  position: relative;
}

/* Map container height */
.service-location-box .location-details {
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Ensure map container properly constrains content */
.service-location-map .mapboxgl-canvas-container {
  overflow: hidden !important;
  border-radius: var(--rounded-size);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.service-location-map .mapboxgl-map {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
}

.service-location-map .mapboxgl-canvas {
  border-radius: var(--rounded-size);
  width: 100% !important;
  height: 100% !important;
}

/* Ensure marker stays within map bounds */
/* Let Mapbox control marker positioning to ensure accurate placement */
/* .service-location-map .mapboxgl-marker { }
*/

/* Force map container to clip content */
.service-location-map {
  clip-path: inset(0 0 0 0);
}

/* Tidy up Mapbox attribution to avoid overflow/wrapping into content */
.service-location-map .mapboxgl-ctrl-bottom-right {
  right: 6px;
  bottom: 6px;
}
.service-location-map .mapboxgl-ctrl-attrib {
  font-size: 10px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom marker styling */
.custom-marker {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.custom-marker .location-marker {
  width: 2.5rem;
  height: 2.5rem;
  fill: var(--default-colour);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Target Audience Styles */
.service-target-audience {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--rounded-size);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.audience-icon {
  color: var(--default-colour);
  font-size: 1.1rem;
}

.audience-text {
  font-size: 1rem;
  color: var(--default-colour);
  font-weight: 500;
}

/* Opening Hours Styles */
.opening-hours-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.opening-hours-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--default-colour);
}

.hours-icon {
  color: var(--default-colour);
  font-size: 1rem;
}

.opening-hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row .day {
  font-weight: 500;
  color: var(--default-colour);
}

.hours-row .time {
  color: var(--default-colour);
  opacity: 0.8;
}

.service-location-map .mapboxgl-canvas {
  border-radius: var(--rounded-size);
}

/* Ensure the map container fits within the location box */
.service-location-box .location-details {
  width: 100%;
}

.service-location-box .location-details > * {
  width: 100%;
}

.service-left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Responsive design for smaller screens */
@media (max-width: 1024px) {
  .service-content-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-right-column {
    order: -1; /* Move contact info above description on mobile */
  }
}

.events-list {
  list-style: none;
  padding: 0;
}

.events-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.events-list li:last-child {
  border-bottom: none;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--default-colour);
  border-radius: 6px;
  color: var(--default-colour);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.back-button:hover {
  background-color: var(--default-colour);
  color: #ffffff;
}

.filter-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-container {
  flex: 1;
  min-width: 300px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--default-colour);
  border-radius: var(--rounded-size);
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--hover-colour);
}

.search-input::placeholder {
  color: #666;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-dropdown {
  position: relative;
}

.filter-button {
  padding: 0.75rem 1.25rem;
  background: var(--default-background-colour);
  border: var(--border-width) solid var(--default-colour);
  border-radius: var(--rounded-size);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.filter-button:hover {
  border-color: var(--hover-colour);
  color: var(--hover-colour);
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-buttons {
    width: 100%;
  }

  .filter-button {
    flex: 1;
    justify-content: center;
  }
}

.radio-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.option-container {
  position: relative;
  display: flex;
}

.option {
  padding: 0.5rem 1rem;
  position: relative;
  color: var(--default-colour);
  border: var(--border-width) solid currentColor;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: color 0.4s;
  border-left-width: calc(var(--border-width) / 2);
  /* Medway style fonts */
  font-size: 1.5rem;
  font-size: 16px;
  font-style: italic;
  font-weight: 900;
  background-color: #ffffff;
}

.option:focus {
  text-decoration: none;
}

.radio-label-text {
  text-decoration: none;
}

.option:first-child {
  padding-right: 1rem;
  border-top-left-radius: var(--rounded-size);
  border-bottom-left-radius: var(--rounded-size);
  border-left-width: var(--border-width);
}

.option:last-child {
  padding-left: 1rem;
  border-top-right-radius: var(--rounded-size);
  border-bottom-right-radius: var(--rounded-size);
}

.option:focus,
.option:hover {
  color: var(--hover-colour);
}

.option.checked,
.option.active {
  color: var(--active-colour);
}

.radio-button {
  display: flex;
  place-items: center;
}

.radio-outer-ring {
  display: flex;
  flex-direction: column;
  justify-content: center;
  place-items: center;
  height: var(--radio-size);
  width: var(--radio-size);
  border-radius: 100%;
  border: 1px solid currentColor;
  border-color: transparent;
  background-color: currentColor;
}

.radio-inner-ring {
  background-color: var(--radio-background-colour);
  height: calc(var(--radio-size) * 0.375);
  width: calc(var(--radio-size) * 0.375);
  border-radius: 100%;
}

.dropdown-row {
  display: flex;
  flex-direction: row;
  place-items: center;
  gap: var(--space-2);
}

.filter-dropdown {
  display: inline-block;
  position: relative;
  text-align: left;
}

.filter-button {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  color: var(--default-colour);
  border-radius: var(--rounded-size);
  border: var(--border-width) solid currentColor;
  transition: color 0.4s;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  cursor: pointer;
  /* Medway style fonts */
  font-size: 1.5rem;
  font-size: 16px;
  font-style: italic;
  font-weight: 900;
}

.filter-button:focus,
.filter-button:hover,
.filter-button.active {
  color: var(--active-colour);
  text-decoration: none;
}

.filter-icon {
  margin-left: 0.5rem;
  height: 1.5rem;
  width: 1.5rem;
}

.filter-items {
  position: absolute;
  max-height: 32rem;
  overflow-y: auto;
  z-index: 400;
  margin-top: 0.5rem;
  transform-origin: top right;
  width: 14rem;
  border-radius: var(--rounded-size);
  background-color: #ffffff;
  border: var(--border-width) solid currentColor;
}

.filter-items--left {
  left: 0;
}

.filter-items--right {
  right: 0;
}

.filter-items:focus {
  text-decoration: underline;
}

.filter-item {
  display: flex;
  flex-direction: row;
  place-items: center;
  padding: 0.5rem 1rem;
  width: 100%;
  cursor: pointer;
  background-color: #ffffff;
  text-align: left;
  border: 0;
  border-bottom: var(--border-width) solid var(--default-colour);
  transition: color 0.4s;
}

.filter-item label {
  cursor: pointer;
}

.filter-item:first-child {
  border-top-left-radius: var(--rounded-size);
  border-top-right-radius: var(--rounded-size);
}

.filter-item:last-child {
  border-bottom-left-radius: var(--rounded-size);
  border-bottom-right-radius: var(--rounded-size);
  border-bottom: 0;
}

.filter-item:focus,
.filter-item:hover {
  color: var(--hover-colour);
  text-decoration: none;
}

.filter-item label:focus {
  text-decoration: none;
}

.filter-check {
  pointer-events: none;
  margin-right: 0.5rem;
  border-radius: var(--rounded-size);
  height: 1.25rem;
  width: 1.25rem;
  border: var(--border-width) solid currentColor;
  cursor: pointer;
}

.content-container {
  margin-top: 1rem;
}

/* Directory styling to match service detail boxes */
.embeddable-directory {
  background-color: var(--default-background-colour);
  border: none;
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: none;
}

.service-list {
  background-color: #ffffff;
}

.list-view {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: black;
  border-radius: var(--rounded-size);
  text-decoration: none;
  transition: color 0.4s;
}

.event-card h5 {
  color: currentColor;
  text-transform: capitalize;
}

.event-card:hover {
  color: var(--hover-colour);
}

.event-card-image-container {
  display: flex;
  position: relative;
  border-radius: var(--rounded-size);
  border: var(--border-width) solid currentColor;
  margin-bottom: var(--space-2);
}

.event-card-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  place-items: center;
  place-content: center;
  object-fit: cover;
  width: 100%;
  height: 10rem;
  border-radius: var(--rounded-size);
}

.event-card.flat-bottom {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.event-card-details {
  padding: 0.5rem 1rem;
}

.blank-image {
  height: 3rem;
  width: 3rem;
}

.org-chip {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.5rem;
  max-width: 100%;
}

.org-chip-name-container {
  display: flex;
  flex-direction: row;
  place-items: center;
  width: 100%;
  font-size: 12px;
  border: 100%;
  border: 1px solid black;
  background-color: var(--default-background-colour);
  color: black;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.org-chip-name {
  flex: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.library-icon {
  height: 1rem;
  width: 1rem;
}

.event-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.event-details-header {
  flex: 1;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
}

.event-name {
  margin-bottom: var(--space-1);
}

.event-recurrence {
  margin-bottom: var(--space-1);
  line-height: 20px;
}

.event-price {
  margin-bottom: var(--space-1);
  font-weight: 700;
}

.map-view-container {
  height: 75vh;
  width: 100%;
  overflow: hidden;
  border-radius: var(--rounded-size);
  border: var(--border-width) solid currentColor;
  display: flex;
}

.map-list {
  width: 300px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #ffffff;
  flex-shrink: 0;
}

.mobile-map-list {
  display: none;
}

@media (max-width: 768px) {
  .map-list {
    display: none;
  }

  .mobile-map-list {
    display: block;
    width: 100%;
    height: 200px;
    overflow-y: auto;
  }
}

.map-list-item {
  cursor: pointer;
  padding: 10px;
  border-bottom: 1px solid #ccc;
  background-color: #ffffff;
}

.map-list-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.map-list-item p {
  margin: 0;
}

.map-list-item .venue-name {
  font-size: 0.9rem;
  color: #666;
  margin-top: 2px;
}

.map-list-item .venue-address {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
  line-height: 1.3;
}

.map-list-item .distance {
  font-size: 0.85rem;
  font-weight: 600;
  color: #008299;
  margin-top: 6px;
}

.map-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  height: 100%;
}

/* Apply the same approach as service-location-map */
.map-container .mapboxgl-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.map-container .mapboxgl-map {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
}

.map-container .mapboxgl-canvas {
  width: 100% !important;
  height: 100% !important;
}

.map-list-item:hover {
  background-color: #f0f0f0;
}

.map-list-item:active {
  background-color: #e0e0e0;
}

@media (max-width: 768px) {
  .map-view-container {
    flex-direction: column;
    height: 90vh;
  }
}

.location-search {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: #ffffff;
  padding: 0.5rem;
  border-radius: var(--rounded-size);
  border: var(--border-width) solid var(--default-colour);
}

@media (max-width: 768px) {
  .location-search {
    left: 5%;
    transform: translateX(0);
    box-sizing: border-box;
    width: 90%;
  }
}

.location-options {
  display: flex;
  gap: 0.5rem;
}

.map-popup-name {
  text-decoration: underline;
}

.map-popup {
  max-width: 360px;
}

@media (max-width: 768px) {
  .map-popup {
    max-width: 200px;
  }
}

.map-popup-container {
  background-color: var(--default-background-colour);
  max-height: 300px;
  overflow-y: auto;
  min-width: 200px;
  max-width: 100%;
}

/* Ensure Mapbox popups stay within map bounds */
.map-container .mapboxgl-popup {
  max-width: 360px;
  z-index: 10;
  position: absolute !important;
}

.map-container .mapboxgl-popup-content {
  padding: 0.5rem;
  background: var(--default-background-colour);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: var(--rounded-size);
  border: var(--border-width) solid var(--default-colour);
}

/* Ensure popup anchor/tip is properly positioned */
.map-container .mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.map-container .mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  border-bottom-color: var(--default-background-colour);
}

.map-container .mapboxgl-popup-anchor-top {
  position: absolute !important;
}

.map-popup-name {
  margin-bottom: var(--space-2);
}

.location-marker {
  height: 2.5rem;
  width: 2.5rem;
  display: block;
  cursor: pointer;
  fill: var(--default-colour);
  transition: fill 0.2s;
}

.custom-cta-container {
  position: absolute;
  top: 0;
  right: 0;
  margin-right: var(--space-1);
  margin-top: var(--space-1);
}

.signup-link {
  color: var(--default-background-colour);
  background-color: var(--default-colour);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 50;
  font-weight: bold;
}

.cta-wrapper {
  display: flex;
  flex-direction: row;
  gap: var(--space-1);
}

.info-link {
  color: var(--default-colour);
  border: var(--border-width) solid var(--default-colour);
  background-color: var(--default-background-colour);
  padding: 0.5rem 1rem;
  border-radius: var(--rounded-size);
}

.info-link:hover {
  color: var(--hover-colour);
  border-color: var(--hover-colour);
}

.signup-link:hover {
  background-color: var(--hover-colour);
  color: var(--default-background-colour);
}

.distance {
  opacity: 0.7;
  font-size: var(--small-font-size);
}

.location-marker:hover {
  fill: var(--hover-colour);
}

.no-results {
  display: flex;
  flex-direction: column;
  place-items: center;
  margin-top: var(--space-2);
}

.no-results-title {
  width: fit-content;
  margin-bottom: var(--space-4);
}

.no-results-message {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.tts-button {
  color: var(--default-colour);
  background-color: var(--default-background-colour);
  border: var(--border-width) solid currentColor;
  border-radius: var(--rounded-size);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: 0.4s color;
  text-decoration: none;
  cursor: pointer;
}

.tts-button:hover {
  color: var(--hover-colour);
}

/* Language bar: force white text for label and buttons */
.language-bar {
  color: #ffffff;
}

.language-bar .tts-button {
  color: #ffffff;
  border-color: currentColor; /* stays white via currentColor */
  background-color: transparent;
}

.language-bar .tts-button:hover {
  color: #ffffff;
  opacity: 0.85;
}

.map-card {
  margin-bottom: var(--space-2);
}

.popup-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.close-icon {
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  transition: 0.4s color;
}

.close-icon:hover {
  color: var(--hover-colour);
}

@media screen and (max-width: 640px) {
  .dropdown-row {
    margin-top: 1rem;
    justify-content: space-between;
    width: 100%;
  }

  .radio-group {
    width: 100%;
  }

  .option-container {
    width: 100%;
  }

  .option {
    width: 50%;
  }

  .radio-button {
    place-content: center;
  }
}

@media screen and (max-width: 768px) {
  .list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-details h5 {
    padding-bottom: 0.25rem;
    font-size: 14px;
  }

  .event-details p {
    padding-bottom: 0.25rem;
    font-size: 14px;
    line-height: 20px;
  }

  .event-org-name {
    display: none;
  }

  p.event-price {
    font-size: 16px;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

@media screen and (min-width: 768px) {
  .list-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* xl */
@media screen and (min-width: 1280px) {
  .list-view {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.service-categories {
  margin: 10px 0;
  font-size: var(--small-font-size);
}

.category-icon {
  margin-right: 5px;
}

.category-tag {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px;
  border-radius: 12px;
  font-size: 0.9em;
}

.service-contact-info {
  margin: 10px 0;
}

.contact-icon,
.address-icon {
  width: 20px;
  margin-right: 5px;
}

.service-address {
  margin: 10px 0;
  font-size: var(--small-font-size);
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  padding: 0;
  margin: 2rem 0;
}

.page-item {
  margin: 0 0.25rem !important;
}

.page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0.25rem 0.5rem;
  border: var(--border-width) solid var(--default-colour);
  border-radius: var(--rounded-size);
  background-color: #ffffff;
  color: var(--default-colour);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-link:hover,
.page-link:focus {
  background-color: var(--hover-colour);
  color: var(--default-background-colour);
  border-color: var(--hover-colour);
}

.page-item.active .page-link {
  background-color: var(--active-colour);
  color: var(--default-background-colour);
  border-color: var(--active-colour);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

.pagination-ellipsis {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 2rem;
  height: 2rem;
  color: var(--default-colour);
}

.back-button {
  margin-bottom: 20px;
  padding: 0.75rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--default-colour);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--default-colour);
  font-weight: 600;
}

.back-button:hover {
  background-color: var(--default-colour);
  color: #ffffff;
}

.ai-chat {
  display: flex;
  flex-direction: column;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: var(--rounded-size);
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: var(--rounded-size);
  max-width: 70%;
}

.message.user {
  background-color: var(--default-colour);
  color: white;
  align-self: flex-end;
}

.message.ai {
  background-color: var(--default-background-colour);
  align-self: flex-start;
  border: var(--border-width) solid var(--default-colour);
}

.chat-input-form {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input {
  flex-grow: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: var(--rounded-size);
}

.chat-submit {
  margin-left: 10px;
  padding: 5px 10px;
  background-color: var(--default-colour);
  color: white;
  border: none;
  border-radius: var(--rounded-size);
  cursor: pointer;
}

.chat-submit:hover {
  background-color: var(--hover-colour);
}

.tool-use-message {
  font-style: italic;
  animation: pulse 1.5s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Add these styles at the end of the file */

.postcode-autocomplete {
  width: 100%;
}

.postcode-input-container {
  width: 100%;
  display: flex;
}

.postcode-input {
  font-size: var(--small-font-size);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  width: 100%;
  border: var(--border-width) solid var(--default-colour);
  border-right: none;
  border-top-left-radius: var(--rounded-size);
  border-bottom-left-radius: var(--rounded-size);
  background-color: #ffffff;
  padding: 0.5rem;
}

.postcode-button {
  cursor: pointer;
  padding: 0 0.5rem;
  background-color: var(--default-colour);
  border-top-right-radius: var(--rounded-size);
  border-bottom-right-radius: var(--rounded-size);
  color: var(--default-background-colour);
}

.postcode-button-icon {
  width: 1rem;
  height: 1rem;
}

.postcode-error {
  color: #e30613;
  font-size: var(--small-font-size);
  background-color: var(--default-background-colour);
  border-radius: var(--rounded-size);
  margin-top: var(--space-1);
  padding: 0.5rem;
}

.postcode-autocomplete {
  width: 100%;
  position: relative;
}

.postcode-options {
  position: absolute;
  width: 100%;
  background-color: #ffffff;
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: var(--rounded-size);
  overflow: hidden;
}

.postcode-option {
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-size: var(--small-font-size);
  transition: background-color 0.15s, color 0.15s;
}

.postcode-option:hover,
.postcode-option:focus,
.postcode-option[data-headlessui-state='active'],
.postcode-option[aria-selected='true'] {
  background-color: var(--hover-colour);
  color: var(--default-background-colour);
}

.postcode-option-names {
  font-style: italic;
}

.geolocation-button {
  font-size: var(--small-font-size);
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  color: var(--default-colour);
  border: var(--border-width) solid var(--default-colour);
  border-radius: var(--rounded-size);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-weight: bold;
  text-align: center;
  outline: none;
  white-space: nowrap;
}

.geolocation-button:hover,
.geolocation-button:focus {
  background-color: var(--hover-colour);
  color: var(--default-background-colour);
  border-color: var(--hover-colour);
}

.geolocation-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-placeholder {
  padding: var(--space-4);
  background-color: #ffffff;
  border-radius: var(--rounded-size);
  overflow-y: auto;
}

.chat-placeholder h2 {
  font-size: 1.5rem;
  float: none;
  color: var(--default-colour);
  margin-bottom: var(--space-3);
  text-align: center;
}

.tile-selector-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  align-items: center;
  gap: var(--space-4);
}

.tile-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background-color: var(--default-background-colour);
  border-radius: var(--rounded-size);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: var(--border-width) solid var(--default-colour);
}

.tile-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: var(--hover-colour);
  border-color: var(--hover-colour);
}

.tile-option-icon-wrapper {
  background-color: var(--default-background-colour);
  padding: var(--space-1);
  border-radius: 50%;
}

.tile-option-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--default-colour);
}

.tile-option p {
  font-size: var(--small-font-size);
  color: var(--default-colour);
  margin: 0;
}

.divider-text {
  font-size: var(--small-font-size);
  color: var(--default-colour);
  font-style: italic;
  text-align: center;
  margin: var(--space-4);
}

.suggested-questions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2) !important;
  cursor: pointer !important;
}

.suggested-question {
  width: fit-content;
  padding: var(--space-2) !important;
  border-radius: var(--rounded-size);
}

.suggested-question:hover {
  background-color: var(--hover-colour);
  color: var(--default-background-colour);
  border-color: var(--hover-colour);
}

.suggested-questions-container {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  margin: auto;
  text-align: center;
}

@media (max-width: 768px) {
  .filter-row {
    padding: 0.75rem;
  }

  .dropdown-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .filter-button {
    width: 100%;
  }

  .filter-items {
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 50vh;
  }
}

.top-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-and-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.search-container {
  flex: 1;
}

.filter-view-container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  box-sizing: border-box;
  min-height: 3.25rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  min-height: 3.25rem;
  background: #ffffff;
  border: 1px solid #000;

  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

/* ViewSelector styles */
.radio-group {
  display: flex;
}

.option-container {
  display: flex;
  width: 100%;
}

.option {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1px solid #000;
  /* border-radius: 999px; */
  cursor: pointer;
  background: #ffffff;
  text-align: center;
}

.option.checked {
  background: var(--active-colour);
  color: white;
  border-color: var(--active-colour);
}

.radio-label {
  display: none;
}

/* Hide radio button elements */
.radio-button .radio-outer-ring,
.radio-button .radio-inner-ring {
  display: none;
}

.radio-label-text {
  font-weight: bold;
}

/* Ensure the visible "View" option text renders white on dark backgrounds */
/* (Reverted) Do not force white for generic .option to avoid side effects */

@media (max-width: 768px) {
  .search-and-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper {
    margin-bottom: 1rem;
  }

  .filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-button {
    width: 100%;
    text-align: center;
  }

  .option-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #666;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  min-height: 3.25rem;
  border: 1px solid var(--default-colour);
  border-radius: var(--rounded-size);
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--hover-colour);
}

.search-input::placeholder {
  color: #666;
}

.event-locator {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

.event-locator-search {
  padding: 1.5rem;
  background-color: var(--default-background-colour);
  border-bottom: var(--border-width) solid var(--default-colour);
}

.event-locator-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-locator-content {
  display: flex;
  flex: 1;
  height: calc(100vh - 150px);
}

.event-list-container {
  width: 400px;
  border-right: var(--border-width) solid var(--default-colour);
  overflow-y: auto;
  background-color: var(--default-background-colour);
}

.event-list-header {
  padding: 1rem;
  border-bottom: var(--border-width) solid var(--default-colour);
}

.event-list-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.event-count {
  font-size: 0.875rem;
  color: #666;
}

.event-list {
  padding: 1rem;
}

.event-list-card {
  margin-bottom: 1rem;
  border: var(--border-width) solid var(--default-colour);
  border-radius: var(--rounded-size);
}

.event-list-card:hover {
  border-color: var(--hover-colour);
}

.event-map-container {
  flex: 1;
  position: relative;
}

@media (max-width: 768px) {
  .event-locator-content {
    flex-direction: column;
  }

  .event-list-container {
    width: 100%;
    height: 50%;
    border-right: none;
    border-bottom: var(--border-width) solid var(--default-colour);
  }

  .event-map-container {
    height: 50%;
  }
}

.event-card {
  text-decoration: none;
}

.event-card-image {
  width: 100%;
  object-fit: cover;
}

.height-regular {
  height: 240px; /* equivalent to h-60 */
}

.height-small {
  height: 160px; /* equivalent to h-40 */
}

.height-xs {
  height: 96px; /* equivalent to h-24 */
}

.rounded {
  border-radius: 8px;
}

.rounded-top {
  border-radius: 8px 8px 0 0;
}

.text-small {
  font-size: 0.875rem;
}

.text-regular {
  font-size: 1rem;
}

.event-name {
  color: #1f2937; /* equivalent to text-gray-800 */
}

.event-recurrence {
  font-weight: 300;
  margin-bottom: 0.25rem;
}

.event-price {
  font-weight: 500;
}

.event-price span {
  font-weight: 300;
}

/* Category Tiles Styles */
.category-tiles-container {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.category-tiles-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-tiles-header h2 {
  color: var(--default-colour);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.category-tile {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--default-colour);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 4px solid transparent; /* color set inline via style */
  aspect-ratio: 1;
  width: 100%;
  box-sizing: border-box;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-tile-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-image {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  flex: 3;
}

.category-img {
  max-width: 90px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.category-title {
  font-size: 0.75rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.2;
  opacity: 0.7;
  flex: 1;
  display: flex;
  align-items: center;
}

.no-categories-message {
  text-align: center;
  color: var(--default-colour);
  font-size: 1.1rem;
  margin: 2rem 0;
}

/* Category Details Page Styles */
.category-details-page {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-details-header {
  margin-bottom: 2rem;
}

.category-header-tile {
  /* Remove solid blue background and text color to match new design */
  background-color: transparent;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  opacity: 1;
  color: var(--default-colour);
}

.category-subtitle {
  text-align: center;
  color: var(--default-colour);
  font-size: 1.1rem;
  margin: 0;
}

/* Ensure the category title renders white within the header */
.category-details-header .category-title {
  color: #ffffff;
}

/* Circular white badge behind category image */
.category-logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid var(--default-colour);
}

/* Service Tiles Grid */
.services-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
  /* Ensure all tiles in a row share the same height */
  grid-auto-rows: 1fr;
}

.services-tile-grid .service-tile {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.service-tile {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 100%;
}

.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.service-tile-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-tile-image-container {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 12px 12px 0 0;
}

.service-tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-tile-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  height: 60px;
  pointer-events: none;
}

.service-tile-location-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(0, 130, 153, 0.9);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(4px);
}

.service-tile-location-badge .location-icon {
  font-size: 0.7rem;
}

.service-tile-content {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-tile-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--default-colour);
  line-height: 1.3;
}

.service-tile-org {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.service-tile-categories {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.category-tag-small {
  background-color: #CCCCCC;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.more-categories {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.service-tile-description {
  /* Don't force the description to stretch and create excess white space */
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #374151;
  margin-bottom: 1rem;
}

.service-tile-contact {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.contact-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.contact-item .contact-icon {
  font-size: 0.9rem;
}

.no-services {
  text-align: center;
  padding: 3rem;
  color: var(--default-colour);
}

.no-services h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.no-services p {
  font-size: 1.1rem;
  color: #666;
}

/* Category empty state specific styles */
.category-empty-state {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.category-empty-title {
  margin: 0 0 0.75rem 0;
  font-size: 2rem;
  font-weight: 700;
}

.category-empty-text {
  margin: 0 0 1.25rem 0;
  font-size: 1.1rem;
  color: #4b5563;
}

.category-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: #ffffff;
  color: var(--default-colour);
  border: var(--border-width) solid var(--default-colour);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-empty-cta:hover {
  color: var(--hover-colour);
  border-color: var(--hover-colour);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .category-tile {
    min-height: 140px;
    padding: 0.75rem;
    aspect-ratio: 1;
  }
  
  .category-image {
    height: 80px;
    flex: 3;
  }
  
  .category-img {
    max-width: 70px;
    max-height: 70px;
  }
  
  .category-title {
    font-size: 0.65rem;
    font-weight: 300;
    opacity: 0.7;
    flex: 1;
  }
  
  .services-tile-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-details-page {
    padding: 0.5rem;
  }
  
  .category-header-tile {
    padding: 1.5rem;
  }
  
  .category-title {
    font-size: 2rem;
  }
}