.gts-sf-app {
  --gts-sf-accent: #d97706;
  --gts-sf-line: #e5e7eb;
  max-width: 800px;
  margin: 0 auto;
  color: #111827;
  font-size: 16px;
}

.gts-sf-filters {
  background: #fff;
  border: 1px solid var(--gts-sf-line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  overflow: visible;
}

.gts-sf-block {
  margin-bottom: 24px;
}

.gts-sf-section-split {
  border-top: 1px solid #c0c0c0;
  padding-top: 16px;
  margin-top: 0;
}

.gts-sf-label,
.gts-sf-field {
  font-weight: 700;
  color: #334155;
}

.gts-sf-field {
  font-size: 0.92rem;
}

.gts-sf-label {
  font-size: 20px;
  margin-bottom: 10px;
}

.gts-sf-label:has(+ .gts-sf-hint) {
  margin-bottom: 6px;
}

.gts-sf-hint {
  font-weight: 400;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.gts-sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gts-sf-cat-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 14px 4px 2px;
}

.gts-sf-cat-card {
  position: relative;
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 148px;
  max-width: 240px;
  margin: 0;
  padding: 10px 10px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  color: inherit;
  box-shadow: none;
  appearance: none;
}

.gts-sf-cat-card.is-on {
  border-color: #16a34a;
  background: #fff7ed;
}

.gts-sf-cat-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  transform: translate(35%, -35%);
  display: none;
  align-items: center;
  justify-content: center;
}

.gts-sf-cat-card.is-on .gts-sf-cat-badge {
  display: flex;
}

.gts-sf-cat-badge::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}

.gts-sf-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-bottom: 8px;
}

.gts-sf-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #808080;
  box-sizing: border-box;
  object-fit: cover;
  flex-shrink: 0;
}

.gts-sf-cat-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}

.gts-sf-cat-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.gts-sf-cat-photo-empty {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #f1f5f9;
}

.gts-sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}

.gts-sf-chip input {
  margin: 0;
}

.gts-sf-chip.is-on {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.gts-sf-tag-group {
  margin: 8px 0 12px;
}

.gts-sf-tag-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
}

.gts-sf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.gts-sf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.gts-sf-field:has(> .gts-sf-label) {
  gap: 0;
}

.gts-sf-field select {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.gts-sf-field select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.gts-sf-btn-gps {
  background: #1b7a45;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.gts-sf-btn-gps:hover {
  background: #146338;
}

.gts-sf-privacy {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 12px;
}

.gts-sf-sort {
  display: flex;
  background: #ffab57;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.gts-sf-sort-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  border-radius: 9px;
  cursor: pointer;
}

.gts-sf-sort-btn.active {
  background: #fff;
  color: #d96b00;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gts-sf-reset {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.gts-sf-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gts-sf-empty {
  color: #64748b;
  padding: 12px 4px;
}

.gts-sf-card {
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.gts-sf-spot-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-areas:
    "title title"
    "photo meta";
  column-gap: 16px;
  row-gap: 12px;
  align-items: start;
}

.gts-sf-spot-block--no-photo {
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "meta";
}

.gts-sf-spot-title-row {
  grid-area: title;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.gts-sf-spot-name {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.gts-sf-spot-name-en {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
}

.gts-sf-spot-thumb-wrap {
  grid-area: photo;
  width: 240px;
  height: 135px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
}

.gts-sf-spot-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gts-sf-spot-thumb-wrap:hover .gts-sf-spot-thumb {
  transform: scale(1.2);
}

.gts-sf-spot-meta {
  grid-area: meta;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gts-sf-spot-meta > * {
  order: 3;
}

.gts-sf-spot-meta > .gts-sf-dist {
  order: 1;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.gts-sf-spot-meta > .gts-sf-spot-intro {
  order: 2;
  margin: 0 0 8px;
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

@media (min-width: 960px) {
  .gts-sf-spot-meta > .gts-sf-spot-intro {
    display: none !important;
  }
}

.gts-sf-spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.gts-sf-spot-tag {
  background: #fff7ed;
  color: #c2410c;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.gts-sf-spot-nearest {
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #334155;
}

.gts-sf-spot-nearest-label {
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.gts-sf-spot-nearest-list {
  margin: 0;
  padding-left: 1.1em;
}

.gts-sf-spot-hotel {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #334155;
}

.gts-sf-spot-hotel-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
}

.gts-sf-spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gts-sf-spot-btn {
  color: #0284c7;
  font-size: 12px;
  background: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.gts-sf-spot-btn:hover {
  background: #e0f2fe;
}

.gts-sf-spot-btn-info {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  font-weight: 700;
}

.gts-sf-pr-badge {
  display: inline-block;
  border: 1px solid #0284c7;
  color: #0284c7;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  font-size: 9px;
  font-weight: bold;
  margin-right: 4px;
  box-sizing: border-box;
}

.gts-sf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gts-sf-overlay[hidden] {
  display: none !important;
}

.gts-sf-overlay-dialog {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
}

.gts-sf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.gts-sf-lightbox[hidden] {
  display: none !important;
}

.gts-sf-lightbox-dialog {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  max-width: min(600px, 100%);
  box-sizing: border-box;
}

.gts-sf-lightbox-img {
  width: 600px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.gts-sf-lightbox-intro {
  margin-top: 12px;
  color: #334155;
  line-height: 1.6;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.gts-sf-lightbox-intro[hidden] {
  display: none !important;
}

.gts-sf-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

.gts-sf-lightbox-info[hidden],
#gts-sf-lightbox-info[hidden] {
  display: none !important;
}

body.gts-sf-lightbox-open {
  overflow: hidden;
}

.gts-sf-overlay-msg {
  font-weight: 700;
  margin-bottom: 16px;
}

.gts-sf-overlay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.gts-sf-overlay.is-notice .gts-sf-overlay-cancel,
.gts-sf-overlay-cancel[hidden] {
  display: none !important;
}

.gts-sf-overlay-cancel,
.gts-sf-overlay-ok {
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.gts-sf-overlay-cancel {
  border: 1px solid #cbd5e1;
  background: #fff;
}

.gts-sf-overlay-ok {
  border: none;
  background: #1b7a45;
  color: #fff;
}

@media (max-width: 959px) {
  .gts-sf-spot-block {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "title"
      "meta";
  }

  .gts-sf-spot-block--no-photo {
    grid-template-areas:
      "title"
      "meta";
  }

  .gts-sf-spot-meta > .gts-sf-spot-intro {
    order: 1;
  }

  .gts-sf-spot-meta > .gts-sf-dist {
    order: 2;
  }

  .gts-sf-spot-thumb-wrap {
    width: 100%;
    height: auto;
    cursor: default;
  }

  .gts-sf-spot-thumb {
    height: auto;
    object-fit: contain;
  }

  .gts-sf-spot-thumb-wrap:hover .gts-sf-spot-thumb {
    transform: none;
  }

  .gts-sf-lightbox {
    display: none !important;
  }
}
