:root {
  --ink: #14231d;
  --muted: #67736e;
  --surface: #ffffff;
  --surface-soft: #f5f7f3;
  --line: #dfe6e1;
  --green-950: #10281e;
  --green-800: #1d4936;
  --green-650: #2c674b;
  --green-100: #e5f1e9;
  --gold: #d4a747;
  --gold-soft: #f5e8c8;
  --danger: #9e3c35;
  --shadow: 0 18px 50px rgba(20, 48, 36, 0.11);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0, rgba(212, 167, 71, 0.08), transparent 25rem),
    #f8faf7;
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.75;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background: rgba(16, 40, 30, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  color: var(--green-950);
  background: var(--gold);
}

.button-primary:hover {
  background: #e1b85e;
}

.button-dark {
  color: #fff;
  background: var(--green-800);
}

.button-ghost {
  color: inherit;
  border-color: var(--line);
  background: transparent;
}

.site-header .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.full-width {
  width: 100%;
}

.button-danger-outline {
  color: var(--danger);
  border-color: rgba(158, 60, 53, 0.35);
  background: #fff;
}

.hero {
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(16, 40, 30, 0.98), rgba(29, 73, 54, 0.92)),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255, 255, 255, 0.03) 22px 23px);
}

.hero-grid {
  min-height: 330px;
  padding-block: 64px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 70px;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 720px;
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.65rem);
  line-height: 1.25;
}

.hero-copy p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.hero-summary {
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.hero-summary div {
  display: grid;
  text-align: center;
}

.hero-summary strong {
  color: var(--gold);
  font-size: 1.75rem;
}

.hero-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.workspace {
  margin-top: -34px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}

.filter-panel,
.results-panel {
  border: 1px solid rgba(27, 68, 50, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filter-panel {
  padding: 24px;
  position: sticky;
  top: 102px;
}

.results-panel {
  min-height: 560px;
  padding: 28px;
}

.panel-heading,
.results-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2,
.results-heading h2,
.drawer-header h2 {
  margin: 3px 0 0;
  line-height: 1.35;
}

.text-button {
  padding: 4px;
  border: 0;
  color: var(--green-650);
  background: transparent;
}

.field {
  margin-bottom: 16px;
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: #fbfcfa;
  transition: 160ms ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-650);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 103, 75, 0.1);
}

.duplicate-warning {
  padding: 16px;
  border: 1px solid rgba(158, 60, 53, 0.28);
  border-radius: var(--radius-md);
  background: #fff8f6;
}

.duplicate-warning-heading strong {
  color: var(--danger);
}

.duplicate-warning-heading p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.duplicate-match-list {
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}

.duplicate-match {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.duplicate-match div {
  display: grid;
}

.duplicate-match span,
.duplicate-match small {
  color: var(--muted);
}

.trust-note {
  margin-top: 24px;
  padding-top: 22px;
  display: flex;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.trust-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-800);
  background: var(--green-100);
  font-weight: 900;
}

.trust-note strong {
  font-size: 0.84rem;
}

.trust-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.result-count {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 0.8rem;
}

.category-chips {
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chip {
  padding: 7px 13px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
}

.chip.active {
  color: #fff;
  border-color: var(--green-800);
  background: var(--green-800);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  padding: 20px;
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fff, #fbfcfa);
  transition: 180ms ease;
}

.resource-card:hover {
  border-color: rgba(44, 103, 75, 0.32);
  box-shadow: 0 13px 30px rgba(22, 52, 39, 0.08);
  transform: translateY(-2px);
}

.card-top,
.card-footer,
.location-line,
.rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-top,
.card-footer {
  justify-content: space-between;
}

.category-badge,
.status-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
}

.category-badge {
  color: var(--green-800);
  background: var(--green-100);
}

.status-badge {
  color: #735a24;
  background: var(--gold-soft);
}

.resource-card h3 {
  margin: 0;
  font-size: 1.07rem;
}

.resource-card p {
  min-height: 48px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.location-line,
.rating-line {
  color: var(--muted);
  font-size: 0.78rem;
}

.rating-star {
  color: var(--gold);
}

.card-link {
  padding: 5px 0;
  border: 0;
  color: var(--green-650);
  background: transparent;
  font-weight: 800;
}

.empty-state {
  min-height: 330px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.empty-state > span {
  color: var(--gold);
  font-size: 4rem;
  line-height: 1;
}

.empty-state h3 {
  margin: 15px 0 0;
}

.empty-state p {
  margin: 4px 0 18px;
  color: var(--muted);
}

.pagination {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(5, 17, 12, 0.57);
  backdrop-filter: blur(3px);
}

.drawer {
  width: min(720px, 96vw);
  position: fixed;
  z-index: 60;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  background: #fff;
  box-shadow: 20px 0 70px rgba(0, 0, 0, 0.22);
  transform: translateX(-105%);
  transition: transform 240ms ease;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  min-height: 92px;
  padding: 20px 28px;
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.drawer-body {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.full-span {
  grid-column: 1 / -1;
}

.form-section {
  margin: 12px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section h3 {
  margin: 0;
}

.form-section p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.checkbox-field {
  margin: 10px 0 20px;
  padding: 15px;
  display: flex;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.checkbox-field input {
  margin-top: 6px;
}

.checkbox-field span {
  display: grid;
}

.checkbox-field small {
  color: var(--muted);
}

.drawer-footer {
  padding-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.form-message {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 10px;
  color: var(--danger);
  background: #fbeceb;
}

.detail-hero {
  margin: -28px -28px 24px;
  padding: 34px 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-950), var(--green-650));
}

.detail-hero h3 {
  margin: 0 0 6px;
  font-size: 1.55rem;
}

.detail-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.detail-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-stats div {
  padding: 10px;
  display: grid;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.detail-stats strong {
  color: var(--gold);
}

.detail-stats span {
  font-size: 0.72rem;
}

.detail-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section h4 {
  margin: 0 0 12px;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-item {
  padding: 11px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.detail-item small {
  display: block;
  color: var(--muted);
}

.contact-box {
  padding: 16px;
  border: 1px solid #d7e8dd;
  border-radius: 14px;
  background: var(--green-100);
}

.feedback-box {
  padding: 20px;
  border-radius: 16px;
  background: var(--green-950);
  color: #fff;
}

.feedback-box p {
  margin: 3px 0 14px;
  color: rgba(255, 255, 255, 0.68);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-action {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.toast {
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 18px;
  position: fixed;
  z-index: 100;
  right: 50%;
  bottom: 24px;
  border-radius: 12px;
  color: #fff;
  background: var(--green-950);
  box-shadow: var(--shadow);
  transform: translateX(50%);
}

.skeleton {
  min-height: 210px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #f1f3f0 25%, #fafbfa 50%, #f1f3f0 75%);
  background-size: 200% 100%;
  animation: loading 1.2s infinite;
}

.hidden {
  display: none !important;
}

@keyframes loading {
  to {
    background-position-x: -200%;
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 650px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header .button-ghost {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 42px 58px;
  }

  .hero-summary {
    padding: 16px 8px;
  }

  .workspace {
    margin-top: -22px;
  }

  .filter-panel,
  .results-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .resource-grid,
  .form-grid,
  .dynamic-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .full-span {
    grid-column: auto;
  }

  .drawer {
    width: 100%;
  }

  .drawer-header,
  .drawer-body {
    padding-inline: 20px;
  }

  .detail-hero {
    margin-inline: -20px;
    padding-inline: 20px;
  }
}
