:root {
  --bg-top: #eff8ea;
  --bg-bottom: #d8ead4;
  --ink: #173126;
  --muted: #617769;
  --card: rgba(255, 255, 255, 0.84);
  --line: rgba(23, 49, 38, 0.08);
  --green: #2b7a4b;
  --green-dark: #1b5633;
  --sage: #e5f2e4;
  --gold: #d4aa4f;
  --shadow: 0 18px 42px rgba(32, 72, 49, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 28%),
    linear-gradient(145deg, var(--bg-top), var(--bg-bottom));
}

.page-shell {
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.hero,
.filter-panel,
.results-panel,
.result-card,
.tag {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 28px;
  padding: 28px;
}

.hero-home .hero-utility {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.hero-utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.featured-company-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 11px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.featured-company-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.featured-company-logo {
  display: block;
  width: auto;
  height: 46px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.brand-lockup .eyebrow {
  margin: 0;
}

.hero-home .brand-lockup .eyebrow {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  filter: drop-shadow(0 10px 18px rgba(32, 72, 49, 0.18));
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 2.35vw, 2.15rem);
}

.hero-copy {
  margin-top: 14px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.hero-heading-copy {
  min-width: 0;
}

.hero-side-stack {
  display: flex;
  flex: 0 1 300px;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

.slider-panel {
  margin-top: 18px;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(23, 49, 38, 0.08);
}

.slider-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.slider-panel-copy h2 {
  font-size: 1.2rem;
}

.slider-panel-note {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 720px;
}

.slider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.slider-grid.is-hidden {
  display: none;
}

.slider-field {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(229, 242, 228, 0.78);
  border: 1px solid rgba(43, 122, 75, 0.1);
}

.slider-field-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.slider-field-top label {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 800;
}

.slider-value {
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.plant-slider {
  width: 100%;
  accent-color: var(--green);
  cursor: pointer;
}

.slider-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.slider-scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.slider-scale-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.slider-scale-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  color: var(--green-dark);
}

.slider-scale-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.secondary-hero-link {
  background: linear-gradient(135deg, var(--gold), #b98c32);
}

.hero-search {
  display: flex;
  justify-content: flex-end;
  flex: 1 1 auto;
  margin-top: 8px;
}

.hero-search-inline {
  margin-top: 0;
  margin-left: auto;
  flex: 0 1 290px;
}

.hero-search-title {
  margin-top: 2px;
  margin-bottom: 4px;
  flex: 0 1 auto;
  width: 100%;
}

.search-input {
  width: 100%;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(23, 49, 38, 0.12);
  padding: 8px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  margin-top: 18px;
}

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

.filter-panel {
  background: rgba(214, 232, 210, 0.96);
}

.standalone-panel {
  margin-top: 18px;
}

.panel-header,
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.results-meta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 4px;
}

.results-utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #b98c32);
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(153, 112, 28, 0.14);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.zone-helper-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(23, 49, 38, 0.08);
}

.zone-helper-copy h3 {
  font-size: 1rem;
}

.zone-helper-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.zone-helper-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.zone-input {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(23, 49, 38, 0.1);
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  font: inherit;
}

.zone-result {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 700;
}

select,
button {
  font: inherit;
}

select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(23, 49, 38, 0.1);
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
}

.secondary-button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #b98c32);
  color: white;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.results-count {
  color: var(--muted);
  font-weight: 700;
}

.results-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.section-group {
  display: grid;
  gap: 10px;
}

.section-heading-card {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(229, 242, 228, 0.9);
  border: 1px solid rgba(43, 122, 75, 0.08);
}

.category-title {
  font-size: 1.15rem;
}

.result-actions {
  display: none;
}

.result-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  border-radius: 20px;
  overflow: hidden;
}

.plant-image {
  min-height: 170px;
  background: rgba(229, 242, 228, 0.48);
}

.plant-image img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.result-content {
  padding: 14px 14px 14px 0;
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.result-title h3 {
  font-size: 1.16rem;
}

.latin-name {
  margin-top: 4px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  font-weight: 800;
  font-size: 0.92rem;
}

.score-pill small {
  opacity: 0.82;
  font-size: 0.72rem;
}

.summary-copy {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.94rem;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.result-link-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.84rem;
}

.tag-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag strong {
  color: var(--green-dark);
}

.color-tag {
  background: rgba(225, 236, 226, 0.9);
  border: 1px solid rgba(43, 122, 75, 0.16);
}

.tag-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.tag-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ddb24f, #be8f2f);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 10px 22px rgba(153, 112, 28, 0.18);
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 10px 22px rgba(32, 72, 49, 0.16);
}

.guide-overview-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.guide-image-card,
.guide-facts-card,
.guide-section-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 49, 38, 0.08);
}

.guide-image-card {
  overflow: hidden;
  min-height: 165px;
  max-height: 165px;
}

.guide-image {
  display: block;
  width: 100%;
  min-height: 165px;
  max-height: 165px;
  height: 100%;
  object-fit: cover;
}

.guide-facts-card {
  padding: 14px;
}

.guide-facts-card h2 {
  margin-top: 4px;
  font-size: 1.2rem;
}

.guide-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.guide-fact {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(229, 242, 228, 0.78);
  border: 1px solid rgba(43, 122, 75, 0.08);
}

.guide-fact-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.guide-fact-value {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.22;
  font-size: 0.84rem;
}

.guide-fact-value-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.guide-fact-value-with-icon .tag-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.guide-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.guide-section-card {
  padding: 18px 20px;
}

.plant-copy {
  display: grid;
  gap: 12px;
}

.plant-copy h3 {
  font-size: 1.2rem;
}

.guide-bullet-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state {
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
  border: 1px dashed rgba(23, 49, 38, 0.14);
}

.master-table-shell {
  margin-top: 16px;
}

.master-table-scroll {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(23, 49, 38, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.master-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.master-table th,
.master-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 49, 38, 0.08);
  vertical-align: middle;
}

.master-table th {
  background: rgba(229, 242, 228, 0.84);
}

.master-table tbody tr:hover {
  background: rgba(229, 242, 228, 0.34);
}

.master-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.sort-indicator {
  min-width: 28px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.master-plant-cell {
  display: grid;
  gap: 4px;
}

.master-latin-name {
  color: var(--muted);
  font-style: italic;
  font-size: 0.88rem;
}

.master-muted {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.library-note-card {
  margin-top: 14px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(229, 242, 228, 0.78);
  border: 1px solid rgba(43, 122, 75, 0.08);
  color: var(--muted);
}

.image-library-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.library-search-input {
  width: min(420px, 100%);
}

.image-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.image-slot-card {
  display: grid;
  gap: 10px;
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 49, 38, 0.08);
}

.image-slot-card.is-selected {
  box-shadow: 0 0 0 2px rgba(76, 122, 62, 0.42);
  transform: translateY(-1px);
}

.image-slot-header h3 {
  font-size: 1rem;
}

.image-slot-file {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.image-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border-radius: 18px;
  border: 1px dashed rgba(43, 122, 75, 0.24);
  background: rgba(229, 242, 228, 0.5);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
  caret-color: transparent;
  outline: none;
}

.image-dropzone.dragging {
  border-color: rgba(153, 112, 28, 0.78);
  transform: translateY(-1px);
}

.image-dropzone:focus {
  border-color: rgba(76, 122, 62, 0.55);
}

.image-slot-placeholder {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.image-slot-preview {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.image-slot-input {
  display: none;
}

.image-slot-actions {
  display: flex;
  justify-content: flex-end;
}

.compact-button {
  padding: 8px 12px;
  font-size: 0.84rem;
}

.nursery-filter-grid {
  margin-top: 16px;
  margin-bottom: 16px;
}

.nursery-card {
  display: grid;
  gap: 10px;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 49, 38, 0.08);
}

.nursery-card-featured {
  background: linear-gradient(180deg, rgba(255, 248, 228, 0.95), rgba(255, 255, 255, 0.8));
  border-color: rgba(190, 143, 47, 0.28);
  box-shadow: 0 16px 30px rgba(190, 143, 47, 0.12);
}

.nursery-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.nursery-tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.featured-tag {
  background: linear-gradient(135deg, #f1c75f, #c8902f);
  color: white;
  font-weight: 800;
}

.nursery-link-row {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .hero-heading-row {
    flex-direction: column;
  }

  .hero-utility {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-company-link {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-side-stack {
    width: 100%;
    align-items: stretch;
    gap: 18px;
  }

  .hero-search {
    justify-content: stretch;
  }

  .search-input {
    width: 100%;
  }

  .hero-search-inline {
    margin-left: 0;
  }

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

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

  .guide-overview-grid {
    grid-template-columns: 1fr;
  }

  .guide-image-card,
  .guide-image {
    min-height: 190px;
    max-height: 190px;
  }

  .guide-facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-content {
    padding: 0 14px 14px;
  }
}

@media (max-width: 1080px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .featured-company-link {
    gap: 10px;
    padding: 10px 12px;
  }

  .featured-company-badge {
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .guide-facts-grid {
    grid-template-columns: 1fr;
  }

  .result-content {
    padding: 0 14px 14px;
  }

  .result-top,
  .panel-header,
  .results-header,
  .slider-panel-header {
    flex-direction: column;
  }

  .results-meta {
    align-items: start;
  }
}
