/* Enhanced root variables with better typography and spacing system */
:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102a43;
  background: #f5f7fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

/* Improved layout with better max-width and padding */
.layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

.layout__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Enhanced navigation with better shadows and transitions */
.site-nav {
  margin-top: 1rem;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(28, 124, 84, 0.06);
  box-shadow: 0 2px 8px rgba(28, 124, 84, 0.08);
  transition: transform 0.2s ease;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(28, 124, 84, 0.12);
  border: 1px solid rgba(28, 124, 84, 0.22);
  border-radius: 0.75rem;
  padding: 0.45rem;
  cursor: pointer;
}

.mobile-menu-toggle__icon {
  width: 20px;
  height: 2px;
  background: #1c7c54;
  display: block;
  position: relative;
}

.mobile-menu-toggle__icon::before,
.mobile-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #1c7c54;
  transition: transform 0.2s ease;
}

.mobile-menu-toggle__icon::before {
  top: -6px;
}

.mobile-menu-toggle__icon::after {
  top: 6px;
}

.site-nav--open {
  max-height: 18rem;
  opacity: 1;
  transform: translateY(0);
}

body.nav-open {
  overflow: hidden;
}

/* Improved nav links with better hover states and accessibility */
.nav__link {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1c7c54;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(28, 124, 84, 0.12);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav__link:hover {
  background: rgba(64, 145, 108, 0.1);
  color: #1c7c54;
  border-color: rgba(28, 124, 84, 0.2);
  transform: translateY(-1px);
}

.nav__link:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

.site-footer {
  margin-top: 3rem;
}

.site-footer__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 2.5rem 1rem 3rem;
}

.site-footer__text {
  margin: 0;
  color: #486581;
  font-size: 0.95rem;
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #829ab1;
  font-size: 0.85rem;
}

.site-footer__links a {
  color: #1c7c54;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  text-decoration: underline;
}

.site-footer__separator {
  color: rgba(16, 42, 67, 0.25);
}

/* Enhanced active state with better shadow */
.nav__link--active {
  background: linear-gradient(135deg, #1c7c54, #40916c);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.25), 0 2px 4px rgba(28, 124, 84, 0.15);
  border-color: transparent;
}

.nav__link--active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 124, 84, 0.3), 0 2px 4px rgba(28, 124, 84, 0.15);
}

/* Better brand typography */
.brand {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1c7c54;
  letter-spacing: -0.02em;
}

.brand__tagline {
  margin: 0.5rem 0 0;
  color: #486581;
  font-size: 1.0625rem;
  font-weight: 500;
}

/* Enhanced search card with better shadows and spacing */
.search-card {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(28, 124, 84, 0.08);
}

/* Improved label styling */
.search-card__label {
  display: grid;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #334e68;
}

.search-card__label span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.search-card__icon {
  width: 1rem;
  height: 1rem;
  color: #1c7c54;
  flex-shrink: 0;
}

.search-card__input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d9e2ef;
  border-radius: 0.8rem;
  background: #ffffff;
  transition: all 0.2s ease;
}

.search-card__input-wrapper:focus-within {
  border-color: #1c7c54;
  box-shadow: 0 0 0 3px rgba(28, 124, 84, 0.1);
}

.search-card__input-wrapper input {
  border: none;
  padding: 0;
  flex: 1;
  font-size: 1rem;
  font-family: inherit;
}

.search-card__input-wrapper input:focus {
  outline: none;
  box-shadow: none;
}

/* Better input styling with focus states */
.search-card input[type="text"],
.search-card select {
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  border: 1.5px solid #d9e2ef;
  font-size: 1rem;
  background: #fff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.search-card__segment {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.search-card__segment legend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #334e68;
}

.segment-control {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  margin-top: 0.4rem;
}

.segment-control input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-control label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #4c6f84;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: transparent;
}

.segment-control input[type="radio"]:checked + label {
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(28, 124, 84, 0.25);
}

.segment-control label:hover,
.segment-control input[type="radio"]:focus-visible + label {
  border-color: rgba(28, 124, 84, 0.2);
  box-shadow: 0 0 0 3px rgba(28, 124, 84, 0.12);
}

.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.filter-chip {
  position: relative;
}

.filter-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #4c6f84;
  cursor: pointer;
  border: 1px solid rgba(76, 111, 132, 0.2);
  background: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.filter-chip label:hover {
  border-color: rgba(28, 124, 84, 0.4);
  color: #1c7c54;
}

.filter-chip input[type="checkbox"]:checked + label {
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(28, 124, 84, 0.2);
}

.filter-chip input[type="checkbox"]:focus-visible + label {
  outline: 2px solid rgba(28, 124, 84, 0.4);
  outline-offset: 2px;
}

.search-card__field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-card__label--select {
  flex: 1 1 180px;
}

.search-card__label--select select {
  width: 100%;
}

@media (max-width: 640px) {
  .search-card__field-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-card__label--select {
    width: 100%;
    flex: 1 1 auto;
  }
}

.filter-panel {
  border: 1.5px solid rgba(28, 124, 84, 0.15);
  border-radius: 1rem;
  background: rgba(28, 124, 84, 0.06);
  color: inherit;
}

.filter-panel + .filter-panel {
  margin-top: 0.75rem;
}

.filter-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.9rem 1rem;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1c7c54;
}

.filter-panel__summary::-webkit-details-marker {
  display: none;
}

.filter-panel__summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #334e68;
}

.filter-panel__summary-icon {
  width: 1rem;
  height: 1rem;
  color: #1c7c54;
}

.filter-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #1c7c54;
  color: #ffffff;
}

.filter-panel[open] {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.filter-panel__content {
  display: grid;
  gap: 1.25rem;
  padding: 0 1rem 1rem;
}

.filter-panel__fieldset {
  margin: 0;
}

.filter-panel__selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.filter-panel__summary:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
  border-radius: 1rem;
}

.search-card input[type="text"]:focus,
.search-card select:focus {
  outline: none;
  border-color: #1c7c54;
  box-shadow: 0 0 0 3px rgba(28, 124, 84, 0.1);
}

.search-card input[type="text"]::placeholder {
  color: #9aa5b1;
}

/* Enhanced submit button with better interactions */
.search-card__submit {
  justify-self: start;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

.search-card__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
}

.search-card__submit:active {
  transform: translateY(0);
}

.search-card__submit:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

/* Improved notice styling */
.notice {
  margin-top: 1.5rem;
  padding: 1.125rem 1.5rem;
  border-radius: 0.875rem;
  background: #e3f2fd;
  color: #1e3a8a;
  border: 1px solid rgba(30, 58, 138, 0.15);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.notice--error {
  background: #fee;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.15);
}

.notice--empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.75rem;
  background: rgba(28, 124, 84, 0.06);
  color: #1c7c54;
  border-color: rgba(28, 124, 84, 0.18);
}

.results {
  margin-top: 3rem;
}

.results h2 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #102a43;
}

.results__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

/* Enhanced result items with better shadows and hover states */
.results__item {
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 8px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(28, 124, 84, 0.06);
  transition: all 0.2s ease;
}

.results__item:hover {
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06), 0 12px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.results__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.0625rem;
}

.results__heading span {
  color: #2d6a4f;
  font-size: 0.9375rem;
  font-weight: 600;
}

.reviews__item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.reviews__stats {
  font-size: 0.9375rem;
  color: #1c7c54;
  font-weight: 600;
}

/* Better button styling for reviews count */
.reviews-count-trigger {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.reviews-count-trigger:hover,
.reviews-count-trigger:focus-visible {
  text-decoration: underline;
  opacity: 0.85;
}

.reviews-count-trigger:focus-visible {
  outline: 2px solid rgba(28, 124, 84, 0.4);
  outline-offset: 2px;
  border-radius: 2px;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #102a43;
  color: #ffffff;
  padding: 0.85rem 1.2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 250;
  font-size: 0.95rem;
}

.toast--show {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  background: #1c7c54;
}

.toast--error {
  background: #b91c1c;
}

.spinner,
.spinner::after {
  box-sizing: border-box;
}

.spinner {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid rgba(28, 124, 84, 0.25);
  border-top-color: #1c7c54;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn--secondary {
  background: rgba(28, 124, 84, 0.12);
  color: #1c7c54;
}

.btn--secondary:hover {
  background: rgba(28, 124, 84, 0.2);
}

.reviews__write-link {
  font-weight: 600;
  color: #1c7c54;
  text-decoration: none;
  transition: color 0.2s ease;
}

.reviews__write-link:hover {
  text-decoration: underline;
  color: #2d6a4f;
}

.reviews__write-link:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Enhanced suggestions dropdown */
.reviews-suggestions {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 0.875rem;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 10px 20px rgba(15, 23, 42, 0.08);
  max-height: 16rem;
  overflow-y: auto;
}

.reviews-suggestion {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: background 0.15s ease;
}

.reviews-suggestion:hover {
  background: rgba(28, 124, 84, 0.08);
}

.reviews-suggestion:active {
  background: rgba(28, 124, 84, 0.12);
}

/* Improved modal overlay */
.review-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.review-modal[hidden] {
  display: none;
}

.review-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 67, 0.5);
  backdrop-filter: blur(2px);
}

/* Enhanced reviews viewer modal */
.reviews-viewer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 120;
  animation: fadeIn 0.2s ease;
}

.reviews-viewer:not([hidden]) {
  display: flex;
}

.reviews-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 67, 0.6);
  backdrop-filter: blur(3px);
}

/* Better modal panel styling */
.reviews-viewer__panel {
  position: relative;
  max-width: 680px;
  width: min(92vw, 42rem);
  max-height: min(90vh, 44rem);
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reviews-viewer__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbfc;
}

.reviews-viewer__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #102a43;
  line-height: 1.3;
}

.reviews-viewer__subtitle {
  margin: 0.375rem 0 0;
  color: #627d98;
  font-size: 0.9375rem;
}

/* Better close button */
.reviews-viewer__close {
  border: none;
  background: rgba(72, 101, 129, 0.08);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.375rem 0.625rem;
  color: #486581;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.reviews-viewer__close:hover,
.reviews-viewer__close:focus-visible {
  color: #1c7c54;
  background: rgba(28, 124, 84, 0.1);
}

.reviews-viewer__close:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

.reviews-viewer__body {
  padding: 1.25rem 1.75rem 1.75rem;
  overflow-y: auto;
  display: grid;
  gap: 1.25rem;
}

.reviews-viewer__status {
  font-size: 0.9375rem;
  color: #486581;
}

.reviews-viewer__status--loading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.reviews-viewer__error {
  text-align: center;
}

.reviews-viewer__status--error {
  color: #b91c1c;
}

.reviews-viewer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

/* Enhanced review item cards */
.reviews-viewer__item {
  padding: 1.125rem 1.25rem;
  border-radius: 0.875rem;
  background: #f8fafc;
  border: 1px solid rgba(16, 42, 67, 0.08);
  display: grid;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.reviews-viewer__item:hover {
  background: #f1f5f9;
  border-color: rgba(28, 124, 84, 0.12);
}

.reviews-viewer__rating {
  font-weight: 700;
  color: #1c7c54;
  font-size: 0.9375rem;
}

.reviews-viewer__title-text {
  margin: 0;
  font-weight: 600;
  color: #102a43;
  font-size: 1rem;
}

.reviews-viewer__comment {
  margin: 0;
  color: #243b53;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.reviews-viewer__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #829ab1;
}

.reviews-viewer__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f6ad55;
}

.reviews-viewer__stars .star {
  font-size: 1rem;
  color: #cbd5e0;
}

.reviews-viewer__stars .star--filled {
  color: #f6ad55;
}

.reviews-viewer__rating-number {
  font-weight: 600;
  color: #1c7c54;
}

.reviews-viewer__photos {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.reviews-viewer__photo-btn {
  border: none;
  padding: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.15);
}

.reviews-viewer__photo-btn img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.reviews-viewer__empty {
  font-size: 0.9375rem;
  color: #829ab1;
  text-align: center;
  padding: 2rem 1rem;
}

.reviews-viewer__error,
.reviews-viewer__empty {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.reviews-viewer__empty-subtitle {
  margin: 0;
  color: #9aa5b1;
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 350;
}

.lightbox--visible {
  opacity: 1;
}

.lightbox__image {
  max-width: min(90vw, 48rem);
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.35);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.8);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: #ffffff;
}

.lightbox__nav:disabled {
  opacity: 0.5;
  cursor: default;
}

.lightbox__nav--prev {
  left: 1.5rem;
}

.lightbox__nav--next {
  right: 1.5rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox__close:hover {
  background: #ffffff;
}

body.lightbox-open {
  overflow: hidden;
}

.auth-callback {
  text-align: center;
  max-width: 420px;
  margin: 4rem auto;
}

.auth-callback__content {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.auth-callback__status {
  margin: 0;
  font-weight: 600;
  color: #102a43;
}

.auth-callback__message {
  margin: 0;
  color: #486581;
  font-size: 0.95rem;
}

.auth-callback__error {
  display: grid;
  gap: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.9rem;
  padding: 1.25rem;
}

.auth-callback__error-title {
  margin: 0;
  color: #991b1b;
  font-weight: 600;
}

.auth-callback__error-body {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.9rem;
}

/* Enhanced home hero section */
.home-hero {
  gap: 1rem;
  text-align: center;
}

.home-hero__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #102a43;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.home-hero__lead {
  margin: 0;
  color: #486581;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
}

.home-hero__support {
  margin: 0;
  color: #2d6a4f;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-style: italic;
}

.home-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.home-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-hero__action-emoji {
  margin-right: 0.6rem;
  font-size: 1.2rem;
  line-height: 1;
}

.home-hero__action--primary {
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.25);
}

.home-hero__action--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 124, 84, 0.35);
}

.home-hero__action--secondary {
  background: rgba(28, 124, 84, 0.12);
  color: #1c7c54;
  border: 1px solid rgba(28, 124, 84, 0.2);
}

.home-hero__action--secondary:hover {
  background: rgba(28, 124, 84, 0.2);
}

/* Better donate button */
.home-hero__donate {
  justify-self: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.2);
}

.home-hero__donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 124, 84, 0.3);
}

.home-hero__donate:active {
  transform: translateY(0);
}

.home-hero__donate:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

.home-features {
  margin: 3rem 0 0;
  text-align: center;
}

.home-features__title {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  color: #102a43;
  font-weight: 700;
}

.home-features__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.home-feature {
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(28, 124, 84, 0.08);
  border: 1px solid rgba(28, 124, 84, 0.12);
  color: #1c7c54;
  display: grid;
  gap: 0.6rem;
}

.home-feature__emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.home-feature__heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.home-feature__body {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  color: #264653;
}

/* Enhanced review form */
.review-form {
  position: relative;
  width: min(36rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  z-index: 1;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-form__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Better form close button */
.review-form__close {
  border: none;
  background: rgba(72, 101, 129, 0.08);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #486581;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.review-form__close:hover {
  color: #1c2a39;
  background: rgba(72, 101, 129, 0.12);
}

.review-form__close:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

.review-form__selected {
  margin: 0;
  font-size: 0.9375rem;
  color: #486581;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(28, 124, 84, 0.08);
  border: 1px solid rgba(28, 124, 84, 0.15);
}

.review-form__selected svg {
  color: #1c7c54;
}

.review-form__selected-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c7c54;
}

.review-form__body {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.review-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

fieldset.review-form__field {
  border: none;
  padding: 0;
  margin: 0;
}

.review-form__field span {
  font-weight: 600;
  color: #1c2a39;
  font-size: 0.9375rem;
}

.review-form__optional {
  font-weight: 400;
  color: #9aa5b1;
  font-size: 0.85rem;
}

.review-form__required {
  font-weight: 600;
  color: #b91c1c;
  font-size: 0.85rem;
  text-transform: none;
}

.review-form__field legend {
  font-weight: 600;
  color: #1c2a39;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Better form inputs */
.review-form__field input,
.review-form__field select,
.review-form__field textarea {
  border: 1.5px solid #d9e2ef;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.review-form__field input:focus,
.review-form__field select:focus,
.review-form__field textarea:focus {
  outline: none;
  border-color: #1c7c54;
  box-shadow: 0 0 0 3px rgba(28, 124, 84, 0.1);
}

.review-form__field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.review-form__field small {
  color: #829ab1;
  font-size: 0.875rem;
}

.review-form__photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.review-form__photo-trigger {
  border: 1px solid #2cb1bc;
  background: rgba(44, 177, 188, 0.12);
  color: #0a558c;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.review-form__photo-trigger:hover,
.review-form__photo-trigger:focus-visible {
  background: rgba(44, 177, 188, 0.2);
  box-shadow: 0 8px 18px rgba(10, 85, 140, 0.12);
  transform: translateY(-1px);
}

.review-form__photo-trigger--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.review-form__photo-count {
  font-size: 0.9rem;
  color: #627d98;
}

.review-form__photo-helper {
  display: block;
  margin-top: 0.35rem;
  color: #829ab1;
  font-size: 0.85rem;
}


.review-form__photo-preview {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.review-form__photo-preview--existing {
  margin-top: 0.9rem;
}

.review-form__photo-preview-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #d9e2ec;
  border-radius: 0.75rem;
  background: #f7f9fc;
  padding: 0.65rem 0.8rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.review-form__photo-preview-item:hover {
  border-color: #c7d7eb;
  background: #f0f4f8;
}

.review-form__photo-preview-item--existing {
  background: #f5f8fb;
  border-color: #d2ddea;
}

.review-form__photo-preview-item--marked {
  border-style: dashed;
  border-color: #f0b429;
  background: #fff9ec;
}

.review-form__photo-preview-item--error {
  background: #fff5f5;
  border-color: rgba(214, 69, 69, 0.45);
  color: #a61b1b;
}

.review-form__photo-preview-item--loading {
  opacity: 0.6;
  pointer-events: none;
}

.review-form__photo-preview-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: rgba(16, 42, 67, 0.08);
  color: #0b7285;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-form__photo-preview-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.review-form__photo-preview-item--existing .review-form__photo-preview-icon {
  background: rgba(16, 42, 67, 0.06);
  color: #0a558c;
}

.review-form__photo-preview-item--marked .review-form__photo-preview-icon {
  background: rgba(240, 180, 41, 0.14);
  color: #c27803;
}

.review-form__photo-preview-item--error .review-form__photo-preview-icon,
.review-form__photo-preview-icon--error {
  background: rgba(214, 69, 69, 0.16);
  color: #a61b1b;
}


.review-form__photo-preview-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.review-form__photo-preview-name {
  font-weight: 600;
  color: #102a43;
  word-break: break-word;
}

.review-form__photo-preview-name--removed {
  text-decoration: line-through;
  color: #c46d08;
}

.review-form__photo-preview-meta {
  font-size: 0.85rem;
  color: #829ab1;
}

.review-form__photo-preview-item--marked .review-form__photo-preview-meta {
  color: #c46d08;
}

.review-form__photo-preview-item--error .review-form__photo-preview-meta,
.review-form__photo-preview-message {
  color: #a61b1b;
}

.review-form__photo-preview-message {
  font-weight: 600;
}

.review-form__photo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(240, 180, 41, 0.18);
  color: #a55d00;
  width: fit-content;
}

.review-form__photo-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  margin-left: auto;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.review-form__photo-remove--icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.06);
  color: #102a43;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-form__photo-remove--icon:hover,
.review-form__photo-remove--icon:focus-visible {
  background: rgba(16, 42, 67, 0.1);
}

.review-form__photo-remove--text {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: #0a558c;
  background: rgba(10, 85, 140, 0.1);
}

.review-form__photo-remove--text:hover,
.review-form__photo-remove--text:focus-visible {
  background: rgba(10, 85, 140, 0.15);
  color: #063970;
}

.review-form__photo-remove--undo {
  background: rgba(240, 180, 41, 0.15);
  color: #a55d00;
}

.review-form__photo-remove--undo:hover,
.review-form__photo-remove--undo:focus-visible {
  background: rgba(240, 180, 41, 0.22);
  color: #a55d00;
}

/* Privacy policy layout */
.privacy-section {
  padding: 1.4rem 0;
  border-bottom: 1px solid #e1e8f5;
}

.privacy-section:last-of-type {
  border-bottom: none;
}

.privacy-section__heading {
  font-size: 1.15rem;
  color: #0b3954;
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.privacy-section__heading::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #2cb1bc;
}

.privacy-table {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 1.2rem;
  border-radius: 0.75rem;
  border: 1px solid #dbe2ef;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.65), rgba(247, 250, 252, 0.95));
  box-shadow: inset 0 1px 0 rgba(209, 219, 235, 0.35);
}

.privacy-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 540px;
}

.privacy-table thead th {
  background: rgba(16, 42, 67, 0.08);
  color: #102a43;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #dbe2ef;
}

.privacy-table tbody tr:nth-child(2n) {
  background: rgba(247, 250, 252, 0.9);
}

.privacy-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  color: #243b53;
}

.privacy-table tbody tr:last-child td {
  border-bottom: none;
}

.privacy-table code {
  font-size: 0.9rem;
  background: rgba(16, 42, 67, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
}

@media (max-width: 640px) {
  .privacy-section {
    padding: 1.1rem 0;
  }

  .privacy-section__heading {
    font-size: 1.05rem;
  }

  .privacy-table {
    margin: 1.2rem 0 1rem;
  }
}

/* Enhanced star rating system */
.review-form__stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
}

.review-form__stars input {
  display: none;
}

.review-form__stars label {
  font-size: 1.75rem;
  color: #cbd5e0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.review-form__stars label:hover,
.review-form__stars label:hover ~ label {
  color: #f6ad55;
  transform: scale(1.1);
}

.review-form__stars input:checked ~ label {
  color: #f6ad55;
}

.review-form__stars input:focus-visible + label {
  outline: 2px solid #1c7c54;
  outline-offset: 3px;
  border-radius: 4px;
}

.review-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Better form submit button */
.review-form__actions button {
  border: none;
  border-radius: 999px;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.2);
}

.review-form__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.review-form__actions button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 124, 84, 0.3);
}

.review-form__actions button:active:not(:disabled) {
  transform: translateY(0);
}

.review-form__actions button:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

.review-form__spinner {
  animation: spin 0.9s linear infinite;
  color: #1c7c54;
}

.review-form__status {
  font-size: 0.9375rem;
  color: #486581;
}

.review-form__status--success {
  color: #1c7c54;
  font-weight: 600;
}

.review-form__status--error {
  color: #b91c1c;
  font-weight: 600;
}

/* Enhanced result item header */
.results__item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}

.results__item-primary {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.results__item-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #102a43;
  line-height: 1.3;
}

/* Better rating button */
.results__item-rating {
  font-weight: 600;
  color: #1c7c54;
  font-size: 0.9375rem;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.results__item-rating:hover {
  opacity: 0.8;
}

.results__item-rating:focus-visible {
  outline: 2px solid rgba(28, 124, 84, 0.4);
  outline-offset: 2px;
  border-radius: 2px;
}

.results__item-rating--muted {
  color: #9aa5b1;
  font-weight: 500;
  cursor: default;
}

.results__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.results__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1c7c54;
  background: rgba(28, 124, 84, 0.12);
  border: 1px solid rgba(28, 124, 84, 0.16);
}

.results__item-distance {
  font-size: 0.9375rem;
  color: #486581;
  font-weight: 600;
}

.results__meta-address {
  margin: 1rem 0 0;
  color: #486581;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.results__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin: 1.25rem 0 0;
}

/* Enhanced action links */
.results__action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1c7c54;
  border: 1.5px solid rgba(28, 124, 84, 0.2);
  text-decoration: none;
  background: rgba(28, 124, 84, 0.06);
  transition: all 0.2s ease;
}

.results__action-link:hover {
  background: rgba(28, 124, 84, 0.12);
  border-color: rgba(28, 124, 84, 0.3);
  transform: translateY(-1px);
}

.results__action-link--primary {
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  color: #ffffff;
  border-color: transparent;
}

.results__action-link--primary:hover {
  background: linear-gradient(135deg, #2d6a4f, #1c7c54);
}

.results__action-link:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

.results__distance-breakdown {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: #1c7c54;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  line-height: 1.6;
}

.results__distance-breakdown strong {
  color: #1c7c54;
  font-weight: 600;
}

.results__distance-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #486581;
}

.results__distance-detail svg {
  color: #1c7c54;
}

.donate-page {
  display: grid;
  gap: 3rem;
}

.donate-hero {
  text-align: center;
  display: grid;
  gap: 0.75rem;
}

.donate-hero__title {
  margin: 0;
  font-size: 2.15rem;
  color: #102a43;
  letter-spacing: -0.02em;
}

.donate-icon svg {
  color: #1c7c54;
}

.donate-lead {
  margin: 0;
  color: #486581;
  font-size: 1rem;
}

.donate-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem auto 0;
  padding: 1.7rem 2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(28, 124, 84, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donate-hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(28, 124, 84, 0.32);
}

.donate-hero__button:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 3px;
}

.donate-impact h2,
.donate-cta h2,
.donate-alternatives h2 {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  color: #1c7c54;
  text-align: center;
}

.impact-grid,
.alternatives-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.impact-item,
.alternative-item {
  padding: 1.25rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(16, 42, 67, 0.08);
  display: grid;
  gap: 0.5rem;

}

.impact-item {
  justify-items: center;
  text-align: center;
}

.alternative-item {
  justify-items: center;
  text-align: center;
}

.impact-item .impact-icon {
  margin-bottom: 0.4rem;
}

.alternative-item .alternative-icon {
  margin-bottom: 0.4rem;
}

.impact-item h3 {
  margin: 0;
}

.impact-item p {
  margin: 0.45rem 0 0;
}


.alternative-item h3 {
  margin: 0;
}

.support-icon {
  font-size: 1.2rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1c7c54;
  text-decoration: none;
  font-weight: 600;
}

.whatsapp-link__icon {
  font-size: 1.1rem;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

.impact-icon svg,
.alternative-icon svg {
  color: #1c7c54;
  stroke-width: 1.75;
}

@media (max-width: 600px) {
  .impact-grid,
  .alternatives-grid {
    grid-template-columns: 1fr;
  }
}

.donate-button {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.donate-button .bmc-button {
  padding: 1rem 2rem !important;
  font-size: 1.0625rem !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.15) !important;
  transition: all 0.2s ease !important;
}

.donate-button .bmc-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(28, 124, 84, 0.25) !important;
}

.donate-button .bmc-button img {
  height: 1.75rem !important;
  width: 1.75rem !important;
}

/* Enhanced top bar */
.site-topbar {
  background: #f5f7fa;
  color: #102a43;
  border-bottom: 1px solid rgba(16, 42, 67, 0.06);
  box-shadow: 0 1px 3px rgba(16, 42, 67, 0.02);
}

.site-topbar__inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Better user menu */
.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(28, 124, 84, 0.2);
}

.user-menu__trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.3);
}

.user-menu__trigger:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

.user-menu__chevron {
  font-size: 1rem;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.user-menu--open .user-menu__chevron {
  transform: rotate(180deg);
}

/* Enhanced dropdown panel */
.user-menu__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 0.875rem;
  box-shadow: 0 10px 15px -3px rgba(16, 42, 67, 0.1), 0 4px 6px -2px rgba(16, 42, 67, 0.05);
  padding: 0.5rem 0;
  min-width: 12rem;
  display: none;
  z-index: 20;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu--open .user-menu__panel,
.user-menu__panel--open {
  display: block;
}

.user-menu__item {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1c2a39;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-menu__item:hover {
  background: rgba(28, 124, 84, 0.08);
}

.user-menu__item:focus-visible {
  outline: 2px solid rgba(28, 124, 84, 0.4);
  outline-offset: -2px;
}

.site-topbar__message {
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 600;
}

/* Better CTA button in topbar */
.site-topbar__cta {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1c7c54, #2d6a4f);
  border: none;
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
}

.site-topbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 124, 84, 0.3);
}

.site-topbar__cta:focus-visible {
  outline: 2px solid #1c7c54;
  outline-offset: 2px;
}

/* Enhanced mobile responsive design with better touch targets */
@media (max-width: 600px) {
  .layout {
    padding: 2rem 1.25rem 3rem;
  }

  .site-topbar__inner {
    padding: 0.625rem 1.25rem;
  }

  .layout__header {
    margin-bottom: 1.5rem;
  }

  .brand {
    font-size: 1.875rem;
  }

  .brand__tagline {
    font-size: 0.9375rem;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: 1.5rem;
    background: rgba(28, 124, 84, 0.08);
    border: 1px solid rgba(28, 124, 84, 0.16);
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav--open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav__link {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }

  .search-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .search-card input[type="text"],
  .search-card select {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }

  .search-card__submit {
    width: 100%;
    justify-self: stretch;
    padding: 0.85rem;
  }

  .segment-control {
    width: 100%;
    justify-content: space-between;
    gap: 0.3rem;
  }

  .segment-control label {
    flex: 1 1 0;
    padding: 0.6rem 0.75rem;
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .home-hero__action {
    width: 100%;
    justify-content: center;
  }

  .home-features__grid {
    grid-template-columns: 1fr;
  }

  .results__item {
    padding: 1.25rem 1.25rem;
  }

  .results__item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .results__item-distance {
    align-self: flex-start;
    font-size: 0.875rem;
  }

  .results__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  /* Full-width mobile action buttons with better touch targets */
  .results__action-link {
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    box-sizing: border-box;
  }

  .results__distance-breakdown {
    flex-direction: column;
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .reviews__stats,
  .results__item-rating {
    font-size: 0.9375rem;
  }

  .reviews-viewer__panel,
  .review-form {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 1rem;
  }

  .results__meta-address {
    font-size: 0.9375rem;
  }

  .review-form__field span {
    font-size: 0.9375rem;
  }

  .review-form__selected {
    font-size: 0.875rem;
  }

  .home-hero__title {
    font-size: 1.625rem;
  }

  .home-hero__lead {
    font-size: 1rem;
  }

  .home-hero__support {
    font-size: 0.9375rem;
  }

  .home-hero__donate {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  .donate-hero__title {
    font-size: 1.75rem;
  }

  .donate-hero__button {
    width: 100%;
  }

  .user-menu__trigger {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }

  .results h2 {
    font-size: 1.25rem;
  }

  .results__item-name {
    font-size: 1.125rem;
  }
}

/* Additional responsive breakpoint for tablets */
@media (min-width: 601px) and (max-width: 900px) {
  .layout {
    padding: 3rem 1.5rem 4rem;
  }

  .site-topbar__inner {
    padding: 0.75rem 1.5rem;
  }
}
.alternative-link {
  color: #1c7c54;
  font-weight: 600;
  text-decoration: none;
}

.alternative-link:hover {
  text-decoration: underline;
}
