.ptf-finder {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  color: #1c1c1c;
}

.ptf-finder__header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
}

.ptf-finder__header p {
  margin: 0 0 1rem;
  color: #4a4a4a;
}

.ptf-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.ptf-progress__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  border-radius: 999px;
  background: #e8ecef;
  font-weight: 700;
}

.ptf-progress__item.is-active {
  background: #8cc640;
  color: #0f2a1a;
}

.ptf-form {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.ptf-step {
  display: none;
}

.ptf-step.is-active {
  display: block;
}

.is-hidden {
  display: none !important;
}

.ptf-step h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.ptf-options {
  display: grid;
  gap: 0.6rem;
}

.ptf-options--grid {
  grid-template-columns: 1fr;
}

.ptf-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.ptf-choice input {
  margin: 0;
}

.ptf-help {
  margin: 0.85rem 0 0;
  color: #5a3f17;
  line-height: 1.4;
}

.ptf-basic-notice {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(90, 63, 23, 0.2);
  background: rgba(140, 198, 64, 0.08);
}

.ptf-step__actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
}

.ptf-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.ptf-field__label {
  display: block;
  font-weight: 600;
  color: #1f252b;
}

.ptf-field--hidden {
  display: none;
}

.ptf-field select {
  min-height: 2.4rem;
  border: 1px solid #d7dde3;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  background: #fff;
}

.ptf-field.is-disabled {
  opacity: 0.6;
}

.ptm-start-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 0.85rem;
}

.ptm-start-field {
  flex: 1 1 auto;
  min-width: 0;
}

.ptm-start-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1f252b;
}

.ptm-start-gps {
  flex: 0 0 auto;
}

.ptm-start-field select,
.ptm-gps-btn {
  height: 46px;
}

.ptm-start-field select {
  width: 100%;
  border: 1px solid #d7dde3;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  background: #fff;
}

.ptm-gps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  min-width: 240px;
  border-radius: 14px;
  border: 1px solid #fb8405;
  background: #fb8405;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  text-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.ptm-gps-btn:hover,
.ptm-gps-btn:focus {
  background: #e67600;
  border-color: #e67600;
  color: #ffffff;
}

.ptm-gps-btn:focus-visible {
  outline: 2px solid rgba(251, 132, 5, 0.28);
  outline-offset: 2px;
}

.ptf-geo__button-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  flex: 0 0 auto;
}

.ptf-geo__button-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #ffffff;
  color: #ffffff;
}

.ptf-geo__helper {
  margin: 0.45rem 0 0;
  color: #576067;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ptf-geo__status {
  margin: 0.7rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(93, 150, 62, 0.22);
  border-radius: 12px;
  background: rgba(247, 250, 244, 0.96);
  color: #26471c;
  font-size: 0.93rem;
  line-height: 1.45;
}

.ptf-geo__status strong {
  font-weight: 700;
}

.ptf-geo__status.is-hidden,
.ptf-geo__clear.is-hidden {
  display: none;
}

.ptf-geo__status.is-pending {
  border-color: rgba(251, 132, 5, 0.28);
  background: rgba(255, 248, 236, 0.96);
  color: #5c3d10;
}

.ptf-geo__status.is-error {
  border-color: rgba(181, 113, 24, 0.32);
  background: rgba(255, 248, 236, 0.96);
  color: #7a4e12;
}

.ptf-field--radius {
  margin-top: 0.75rem;
}

.ptf-radius-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ptf-radius-chip {
  position: relative;
  display: inline-flex;
}

.ptf-radius-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.ptf-radius-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #d7dde3;
  border-radius: 999px;
  background: #fff;
  color: #33414c;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ptf-radius-chip input:checked + span {
  border-color: #6fb23e;
  background: rgba(111, 178, 62, 0.16);
  color: #183514;
  box-shadow: inset 0 0 0 1px rgba(111, 178, 62, 0.2);
}

.ptf-radius-chip input:focus-visible + span {
  outline: 2px solid rgba(111, 178, 62, 0.4);
  outline-offset: 2px;
}

.ptf-optional {
  margin-top: 1rem;
  border: 1px solid #e4e8ec;
  border-radius: 10px;
  padding: 0.7rem;
}

.ptf-optional summary {
  cursor: pointer;
  font-weight: 700;
}

.ptf-optional__grid {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.ptf-results {
  margin-top: 1rem;
}

.ptf-results__status {
  margin: 0;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 0.75rem;
  background: #f9fbf7;
}

.ptf-results__block {
  margin-top: 1rem;
}

.ptf-results__block h2,
.ptf-results__block h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
}

.ptf-cards {
  display: grid;
  gap: 0.75rem;
}

.ptf-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.85rem;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.ptf-card__cover-wrap {
  margin: -0.85rem -0.85rem 0.75rem;
  background: #eef1e7;
  position: relative;
  overflow: hidden;
}

.ptf-card__cover {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ptf-card--compact .ptf-card__cover {
  aspect-ratio: 21 / 9;
}

.ptf-card__cover-wrap--upsell {
  margin-bottom: 0.9rem;
}

.ptf-card__cover--upsell {
  min-height: 168px;
  max-height: 180px;
}

.ptf-card__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.ptf-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.ptf-card__distance {
  margin: -0.15rem 0 0.55rem;
  color: #406d2c;
  font-size: 0.92rem;
  font-weight: 600;
}

.ptf-card__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
  font-size: 0.95rem;
}

.ptf-card__why {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}

.ptf-card__actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ptf-card--upsell {
  border-color: rgba(140, 198, 64, 0.4);
  background: linear-gradient(180deg, rgba(140, 198, 64, 0.12), #fff 65%);
}

.ptf-card--upsell .ptf-card__title,
.ptf-card--upsell .ptf-card__why {
  position: relative;
  z-index: 1;
}

.ptf-lock-badge {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.ptf-lock-badge--supporter {
  background: #d96f2c;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.ptf-lock-badge--supporter::before {
  content: '\1F512';
  font-size: 0.72rem;
  line-height: 1;
}

.ptf-lock-badge--supporter_plus {
  background: #5a3f17;
}

.ptf-card__lockhint {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: #5a3f17;
}

.ptf-results-locked-shell {
  position: relative;
  min-height: 360px;
  max-height: 520px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(90, 63, 23, 0.08);
}

.ptf-results-locked {
  position: relative;
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
  transform: scale(1.025);
  transform-origin: center center;
}

.ptf-results-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.7),
    rgba(255,255,255,0.95)
  );
  z-index: 10;
  animation: ptfFadeIn 0.2s ease;
}

.pt-upgrade-card {
  max-width: 390px;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  text-align: center;
}

.pt-upgrade-card__count {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(90, 63, 23, 0.72);
}

.pt-upgrade-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.pt-upgrade-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.pt-upgrade-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.85rem;
}

@keyframes ptfFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ptf-empty {
  margin: 0;
  color: #5a3f17;
}

@media (min-width: 900px) {
  .ptf-finder {
    padding: 1.25rem;
  }

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

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

  .ptf-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ptf-cards--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ptf-results-overlay {
    padding: 1.5rem;
  }

}

@media (max-width: 767px) {
  .ptm-start-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ptm-start-gps,
  .ptm-gps-btn {
    width: 100%;
  }

  .ptf-step__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ptf-step__actions .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.ptf-view-all {
  margin-top: 1rem;
  text-align: center;
}

.ptf-view-all__button {
  font-weight: 700;
}

@media (max-width: 767px) {
  .ptf-view-all__button {
    width: 100%;
  }
}

.ptf-location-radius {
  margin-top: 1rem;
}

.ptf-location-radius__inner {
  padding: 1rem;
  border: 1px solid rgba(93, 150, 62, 0.25);
  border-radius: 14px;
  background: rgba(247, 250, 244, 0.95);
  text-align: center;
}

.ptf-location-radius__prompt {
  margin: 0 0 0.75rem;
  color: #4b3a1b;
  font-weight: 600;
  line-height: 1.45;
}

.ptf-location-radius__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.ptf-location-radius__button {
  font-weight: 700;
}

@media (max-width: 767px) {
  .ptf-location-radius__actions {
    flex-direction: column;
  }

  .ptf-location-radius__button {
    width: 100%;
  }
}
