/* GC Gardens Map UI v1.9.0 */
.gc-wrap {
  --gc-gap: 16px;
  --gc-green: #134e1f;
  --gc-green-dark: #0b3d18;
  --gc-green-soft: #eaf4ea;
  --gc-green-border: #9ab89f;
  --gc-link: #166534;
  margin-top: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.gc-directory-intro {
  margin: 0 0 28px;
  max-width: 850px;
}

.gc-directory-intro p {
  color: #25352a;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.gc-directory-intro .gc-directory-submit-link {
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
}

.gc-directory-submit-link a {
  color: var(--gc-link);
}

.gc-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gc-gap);
}

.gc-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.gc-label {
  color: var(--gc-green);
  font-weight: 700;
}

.gc-where {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.gc-where input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #9ca3af;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.gc-where input:focus,
.gc-btn:focus-visible,
.gc-reset-link:focus-visible,
.gc-chip:focus-visible,
.gc-card a:focus-visible {
  outline: 3px solid rgba(22, 101, 52, 0.3);
  outline-offset: 2px;
}

.gc-btn {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #9ca3af;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.gc-btn.is-secondary {
  background: #fff;
  border-color: var(--gc-green-border);
  color: var(--gc-green-dark);
}

.gc-btn.is-primary {
  background: var(--gc-green);
  border-color: var(--gc-green);
  color: #fff;
}

.gc-btn:hover:not(:disabled) {
  background: var(--gc-green-soft);
  border-color: var(--gc-green);
  color: var(--gc-green-dark);
}

.gc-btn.is-primary:hover:not(:disabled) {
  background: var(--gc-green-dark);
  color: #fff;
}

.gc-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.gc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-chip {
  appearance: none;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
}

.gc-chip.is-active {
  border-color: var(--gc-green);
  background: var(--gc-green-soft);
  color: var(--gc-green-dark);
  font-weight: 650;
}

.gc-reset-row {
  display: flex;
  justify-content: flex-end;
  min-height: 30px;
  margin: 6px 0 2px;
}

.gc-reset-link {
  appearance: none;
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--gc-link);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gc-reset-link:hover {
  color: var(--gc-green-dark);
}

.gc-load-row {
  display: flex;
  justify-content: center;
  margin: 18px 0 16px;
}

.gc-status {
  min-height: 24px;
  margin: 4px 0 12px;
  color: #475569;
  text-align: center;
  font-size: 14px;
}

.gc-status.is-error {
  color: #b91c1c;
}

.gc-status.is-loading {
  color: var(--gc-green);
}

.gc-status.is-success {
  color: #166534;
}

.gc-map-wrap {
  margin-bottom: 24px;
}

.gc-map-wrap.is-hidden,
.gc-btn.is-hidden,
.is-hidden {
  display: none !important;
}

.gc-map {
  width: 100%;
  height: min(420px, 55vh);
  min-height: 320px;
  overflow: hidden;
  border: 2px solid var(--gc-green-border);
  border-radius: 16px;
  background: #e2e8f0;
}

.leaflet-container img {
  max-width: none !important;
}

.gc-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gc-gap);
}

.gc-card.v {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gc-card.v.is-clickable {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gc-card.v.is-clickable:hover,
.gc-card.v.is-clickable:focus-within {
  border-color: var(--gc-green-border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .gc-card.v.is-clickable {
    transition: none;
  }

  .gc-card.v.is-clickable:hover,
  .gc-card.v.is-clickable:focus-within {
    transform: none;
  }
}

.gc-img {
  display: block;
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f3f4f6;
}

.gc-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-img.is-placeholder {
  flex-direction: column;
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f5f7ef, #dcecdf);
  color: var(--gc-green-dark);
}

.gc-placeholder-mark {
  display: block;
  height: 38px;
  position: relative;
  width: 46px;
}

.gc-placeholder-mark::before,
.gc-placeholder-mark::after {
  background: #72a06f;
  border-radius: 100% 0 100% 0;
  content: "";
  height: 27px;
  position: absolute;
  top: 4px;
  width: 20px;
}

.gc-placeholder-mark::before {
  left: 6px;
  transform: rotate(-28deg);
}

.gc-placeholder-mark::after {
  right: 6px;
  transform: rotate(62deg);
}

.gc-placeholder-text {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gc-body {
  padding: 12px;
}

.gc-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.gc-title a {
  color: #0f172a;
  text-decoration: none;
}

.gc-title a:hover {
  color: var(--gc-link);
  text-decoration: underline;
}

.gc-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.gc-badge.sponsored {
  border: 1px solid #f59e0b;
  background: #fef3c7;
  color: #92400e;
}

.gc-badge.featured {
  border: 1px solid #6c986e;
  background: var(--gc-green-soft);
  color: var(--gc-green-dark);
}

.gc-badge.popular {
  border: 1px solid #10b981;
  background: #dcfce7;
  color: #065f46;
}

.gc-region,
.gc-distance {
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 13px;
}

.gc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.gc-links a,
.gc-next-event a,
.gc-popup a {
  color: var(--gc-link);
  text-decoration: none;
}

.gc-links a:hover,
.gc-next-event a:hover,
.gc-popup a:hover {
  text-decoration: underline;
}

.gc-bottom {
  padding: 10px 12px 12px;
  border-top: 1px solid #f3f4f6;
  background: #f7faf6;
}

.gc-bottom-title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.gc-next-event {
  display: grid;
  gap: 2px 7px;
  grid-template-columns: auto minmax(0, 1fr);
  line-height: 1.35;
}

.gc-next-label {
  color: #4b5b4f;
  font-size: 12px;
  font-weight: 750;
  grid-row: 1 / span 2;
}

.gc-next-event a {
  font-size: 13px;
  font-weight: 650;
}

.gc-next-event .gc-when {
  color: #6b7280;
  font-size: 12px;
  grid-column: 2;
}

.gc-empty {
  grid-column: 1 / -1;
  padding: 24px 16px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
  text-align: center;
}

.gc-sentinel {
  height: 1px;
}

.gc-popup {
  min-width: 150px;
  font-size: 14px;
}

.gc-popup > a {
  font-weight: 700;
}

.gc-popup-region {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 1600px) {
  .gc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .gc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .gc-controls { grid-template-columns: 1fr; }
  .gc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .gc-where { grid-template-columns: 1fr 1fr; }
  .gc-where input { grid-column: 1 / -1; }
  .gc-btn { white-space: normal; }
  .gc-map { min-height: 280px; height: 42vh; }
}

@media (max-width: 560px) {
  .gc-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-wrap *,
  .gc-wrap *::before,
  .gc-wrap *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
