.fcg-widget {
  --fcg-green: #65ae34;
  --fcg-green-dark: #4f9626;
  --fcg-green-soft: #edf8eb;
  --fcg-green-soft-2: #f5fbf3;
  --fcg-text: #111827;
  --fcg-muted: #667085;
  --fcg-border: #e5e8ec;
  --fcg-shadow: 0 8px 24px rgba(17, 24, 39, .07);
  max-width: 1240px;
  margin: 2.5rem auto;
  color: var(--fcg-text);
  font-family: inherit;
  font-size: 16px;
}

.fcg-header {
  max-width: 760px;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.fcg-eyebrow {
  margin-bottom: .45rem;
  color: var(--fcg-green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.fcg-title {
  margin: 0;
  color: #05070a;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.fcg-intro {
  max-width: 680px;
  margin: .75rem auto 0;
  color: #53606f;
  font-size: 16px;
  line-height: 1.55;
}

.fcg-location-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0 0 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #dcedd8;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef8ec 0%, #f7fbf5 100%);
}

.fcg-location-panel--loading { opacity: .82; }
.fcg-location-panel--error {
  border-color: #f0d5d5;
  background: #fff6f6;
}

.fcg-location-summary {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .85rem;
}

.fcg-location-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--fcg-green-dark);
}

.fcg-location-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.fcg-location-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .15rem;
}

.fcg-status-title {
  color: #1c2733;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.fcg-status-detail {
  color: #687383;
  font-size: 13px;
  line-height: 1.45;
}

.fcg-toggle-search {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 40px;
  padding: .58rem 1rem;
  border: 1px solid #85b96b;
  border-radius: 8px;
  background: #fff;
  color: #263528;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.fcg-toggle-search:hover {
  border-color: var(--fcg-green-dark);
  box-shadow: 0 3px 10px rgba(66, 119, 39, .12);
}

.fcg-toggle-search:active { transform: translateY(1px); }
.fcg-toggle-icon { color: var(--fcg-green-dark); font-size: .85rem; transform: rotate(-35deg); }

.fcg-search {
  margin: -.25rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--fcg-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 24, 39, .045);
}

.fcg-search[hidden] { display: none !important; }

.fcg-search-label {
  display: block;
  margin-bottom: .55rem;
  color: #303946;
  font-size: 14px;
  font-weight: 800;
}

.fcg-search-row {
  display: flex;
  align-items: stretch;
  gap: .55rem;
}

.fcg-search-field {
  position: relative;
  display: flex;
  flex: 1 1 460px;
  min-width: 0;
  align-items: center;
}

.fcg-search-field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: #7c8795;
  pointer-events: none;
}

.fcg-search-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 13px 11px 44px;
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  background: #fff;
  color: var(--fcg-text);
  font: inherit;
  font-size: 16px;
}

.fcg-search-input::placeholder {
  color: #707985;
  opacity: 1;
}

.fcg-search-input:focus {
  outline: 3px solid rgba(101, 174, 52, .14);
  border-color: var(--fcg-green);
}

.fcg-search-button,
.fcg-location-button {
  min-height: 44px;
  padding: .65rem 1rem;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.fcg-search-button {
  border: 1px solid var(--fcg-green-dark);
  background: linear-gradient(180deg, #6cba39 0%, #58a329 100%);
  color: #fff;
}

.fcg-location-button {
  border: 1px solid #aeb7c2;
  background: #fff;
  color: #303946;
}

.fcg-search-button:disabled,
.fcg-location-button:disabled,
.fcg-search-input:disabled {
  opacity: .6;
  cursor: wait;
}

.fcg-search-help {
  margin: .5rem 0 0;
  color: #7b8490;
  font-size: 12.5px;
  line-height: 1.45;
}

.fcg-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.fcg-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid var(--fcg-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--fcg-shadow);
}

.fcg-name {
  margin: 0 0 .55rem;
  color: #1b2530;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.fcg-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.fcg-badge {
  display: inline-flex;
  align-items: center;
  padding: .24rem .55rem;
  border-radius: 999px;
  background: #e7f6e5;
  color: #3b9b2b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.fcg-badge--24h { background: #def3dc; color: #2e8c20; }
.fcg-badge--extended { background: #eef6e9; color: #548f31; }

.fcg-distance {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: #374151;
  font-size: 13.5px;
  font-weight: 800;
}

.fcg-distance svg {
  width: 16px;
  height: 16px;
  fill: #667085;
}

.fcg-address {
  margin-top: .9rem;
  color: #3d4652;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
}

.fcg-municipality {
  margin-top: .25rem;
  color: #8a93a0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.fcg-hours {
  display: flex;
  align-items: center;
  gap: .42rem;
  margin-top: .85rem;
  color: #7b8490;
  font-size: 13.5px;
  line-height: 1.45;
}

.fcg-hours svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: #5b6775;
}

.fcg-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: auto;
  padding-top: 1rem;
}

.fcg-action {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .68rem .8rem;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

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

.fcg-action svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.fcg-action--primary {
  border: 1px solid var(--fcg-green-dark);
  background: linear-gradient(180deg, #6cba39 0%, #58a329 100%);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(82, 151, 39, .16);
}

.fcg-action--primary:hover { color: #fff !important; box-shadow: 0 5px 13px rgba(82, 151, 39, .22); }

.fcg-action--secondary {
  border: 1px solid #75808d;
  background: #fff;
  color: #1f2937 !important;
}

.fcg-action--secondary:hover { background: #f7f8f9; color: #111827 !important; }

.fcg-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--fcg-border);
  border-radius: 10px;
  background: #fafbfc;
  color: var(--fcg-muted);
}

.fcg-empty strong { color: #303946; }
.fcg-loading .fcg-results { opacity: .5; }

.fcg-source {
  margin: .9rem 0 0;
  color: #98a0aa;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: right;
}

@media (min-width: 1500px) {
  .fcg-widget { max-width: 1380px; }
  .fcg-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .fcg-widget { margin: 1.5rem auto; }
  .fcg-header { margin-bottom: 1rem; }
  .fcg-title { font-size: clamp(1.85rem, 9vw, 2.35rem); }
  .fcg-intro { font-size: 15px; }
  .fcg-location-panel { align-items: stretch; flex-direction: column; gap: .8rem; }
  .fcg-toggle-search { width: 100%; }
  .fcg-search-row { flex-wrap: wrap; }
  .fcg-search-field { flex-basis: 100%; }
  .fcg-search-button, .fcg-location-button { flex: 1 1 calc(50% - .3rem); }
  .fcg-results { grid-template-columns: 1fr; }
  .fcg-card { min-height: 0; }
  .fcg-source { text-align: left; }
}

@media (max-width: 430px) {
  .fcg-search-button, .fcg-location-button { flex-basis: 100%; }
  .fcg-actions { grid-template-columns: 1fr; }
}
