/* Standortsuche – Modern Cards / Filters */
.ntg-location-search-wrap {
  --ntg-orange: #f39200;
  --ntg-orange-dark: #de7f00;
  --ntg-text: #2b2f38;
  --ntg-muted: #7a8190;
  --ntg-border: #edf0f4;
  --ntg-bg-soft: #f8f9fb;
  --ntg-shadow: 0 18px 45px rgba(18, 31, 53, 0.09);
  --ntg-shadow-soft: 0 10px 30px rgba(18, 31, 53, 0.07);
}

.ntg-location-filter-form {
  margin: 0 0 8px;
}

.ntg-location-searchbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(150px, .8fr) auto;
  gap: 0;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ntg-border);
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--ntg-shadow-soft);
}

.ntg-location-searchbar input,
.ntg-location-searchbar select {
  min-height: 52px;
  border: 0 !important;
  border-right: 1px solid var(--ntg-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ntg-text);
  font-size: 15px;
  padding: 0 18px !important;
  box-shadow: none !important;
}

.ntg-location-searchbar input:focus,
.ntg-location-searchbar select:focus {
  outline: none;
  box-shadow: inset 0 -2px 0 var(--ntg-orange) !important;
}

.ntg-location-searchbar .submit-btn {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: var(--ntg-orange);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 0 26px;
  box-shadow: 0 12px 24px rgba(243, 146, 0, .26);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.ntg-location-searchbar .submit-btn:hover {
  background: var(--ntg-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(243, 146, 0, .33);
}

.ntg-location-filter-actions {
  display: flex;
  justify-content: center;
  margin: 22px 0 10px;
}

.ntg-location-filter-actions .near-me-btn {
  border: 1px solid var(--ntg-orange);
  border-radius: 999px;
  background: #fff;
  color: var(--ntg-orange);
  font-weight: 800;
  padding: 13px 26px;
  box-shadow: 0 10px 26px rgba(243, 146, 0, .13);
  transition: all .2s ease;
  cursor: pointer;
}

.ntg-location-filter-actions .near-me-btn:hover,
.ntg-location-filter-actions .near-me-btn.is-active {
  background: var(--ntg-orange);
  color: #fff;
  transform: translateY(-1px);
}

.ntg-location-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0 22px;
}

.ntg-location-results-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ntg-location-results-icon {
  width: 34px;
  height: 34px;
  color: var(--ntg-orange);
  display: inline-flex;
}

.ntg-location-results-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ntg-location-count {
  margin: 0;
  color: var(--ntg-text);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 0 !important;
}

.ntg-location-count-subline {
  margin: 4px 0 0;
  color: var(--ntg-muted);
  font-size: 15px;
  margin-bottom: 0 !important;
}

.ntg-location-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  background: #fff;
  border: 1px solid var(--ntg-border);
  border-radius: 999px;
  padding: 0 18px;
  box-shadow: var(--ntg-shadow-soft);
  color: var(--ntg-text);
}

.ntg-location-sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--ntg-text);
  opacity: .78;
}

.ntg-location-sort-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ntg-location-sort select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 48px;
  border: 0 !important;
  background: transparent !important;
  color: var(--ntg-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 0 28px 0 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.ntg-location-sort::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: .8;
  pointer-events: none;
}

.ntg-location-sort:hover {
  border-color: rgba(243, 146, 0, .28);
  box-shadow: 0 12px 28px rgba(18, 31, 53, .10);
}

.ntg-location-sort:focus-within {
  border-color: rgba(243, 146, 0, .45);
  box-shadow: 0 0 0 4px rgba(243, 146, 0, .10), var(--ntg-shadow-soft);
}

.ntg-location-search-wrap .no-results-hint {
  display: none;
  margin: 12px 0 22px;
  padding: 14px 16px;
  border: 1px dashed #eab308;
  background: #fffbeb;
  border-radius: 16px;
  color: var(--ntg-text);
}

.ntg-location-search-wrap .no-results-hint button {
  margin-left: 10px;
  border: 1px solid #f0d76a;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #f39200;
}

.ntg-location-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ntg-location-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ntg-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ntg-shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ntg-location-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 146, 0, .24);
  box-shadow: var(--ntg-shadow);
}

.ntg-location-image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ntg-bg-soft);
}

.ntg-location-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.ntg-location-card:hover .ntg-location-image {
  transform: scale(1.045);
}

.ntg-location-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px;
}

.location-category {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.location-category span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(243, 146, 0, .12);
  color: var(--ntg-orange);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 11px;
}

.ntg-location-card h3 {
  margin: 0;
  color: var(--ntg-text);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.ntg-location-address {
  margin: 7px 0 18px;
  color: var(--ntg-muted);
  font-size: 15px;
}

.ntg-location-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.ntg-location-chip {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid var(--ntg-border);
  border-radius: 13px;
  background: #fff;
  color: var(--ntg-text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
  padding: 9px 10px;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(18, 31, 53, .045);
}

.ntg-location-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ntg-location-chip svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: var(--ntg-orange);
}

a.ntg-location-chip:hover {
  border-color: rgba(243, 146, 0, .35);
  color: var(--ntg-orange);
}

.ntg-location-opening {
  width: 100%;
}

.ntg-location-opening--open {
  background: rgba(37, 163, 98, .08);
  border-color: rgba(37, 163, 98, .18);
}

.ntg-location-opening--open svg {
  fill: #25a362;
}

.ntg-location-opening--closed {
  background: rgba(122, 129, 144, .08);
}

.ntg-location-card-actions {
  margin-top: 18px;
}

.ntg-location-more {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  background: var(--ntg-orange);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(243, 146, 0, .22);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ntg-location-more svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform .2s ease;
}

.ntg-location-more:hover {
  background: var(--ntg-orange-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(243, 146, 0, .3);
}

.ntg-location-more:hover svg {
  transform: translateX(3px);
}

.distance-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ntg-text);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  box-shadow: 0 8px 18px rgba(18, 31, 53, .12);
  pointer-events: none;
}

.ntg-location-load-more {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 34px auto 0;
  border: 1px solid var(--ntg-orange);
  border-radius: 999px;
  background: #fff;
  color: var(--ntg-orange);
  font-weight: 800;
  padding: 13px 24px;
  cursor: pointer;
}

.ntg-location-load-more:hover {
  background: var(--ntg-orange);
  color: #fff;
}

@media (max-width: 1180px) {
  .ntg-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ntg-location-searchbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ntg-location-searchbar input,
  .ntg-location-searchbar select {
    border: 1px solid var(--ntg-border) !important;
    border-radius: 14px !important;
  }

  .ntg-location-searchbar .submit-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .ntg-location-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ntg-location-sort {
    width: auto;
    max-width: 100%;
  }

  .ntg-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ntg-location-searchbar {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .ntg-location-grid {
    grid-template-columns: 1fr;
  }

  .ntg-location-card-inner {
    padding: 18px;
  }
}
