/* ══════════════════════════════════════════════════════════════════════════
 * spots-widget.css — Cartões de pontos turísticos por localização
 * ══════════════════════════════════════════════════════════════════════════ */

/* ── Wrappers ────────────────────────────────────────────────────────────── */
.sw-wrap-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.sw-wrap-strip::-webkit-scrollbar { height: 4px; }
.sw-wrap-strip::-webkit-scrollbar-thumb {
  background: var(--sand-200, #efe5d6);
  border-radius: 4px;
}

.sw-wrap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ── Base card ───────────────────────────────────────────────────────────── */
.sw-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--sand-200, #efe5d6);
  box-shadow: 0 2px 12px rgba(16,35,47,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.sw-card:hover {
  box-shadow: 0 8px 28px rgba(16,35,47,.15);
  transform: translateY(-3px);
}
.sw-card:focus-visible {
  outline: 3px solid var(--green-700, #0f5b45);
  outline-offset: 2px;
}

/* Strip variant: fixed width */
.sw-card-strip {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

/* Grid variant: full column */
.sw-card-grid {
  width: 100%;
}

/* ── Card thumbnail ──────────────────────────────────────────────────────── */
.sw-card-thumb {
  height: 136px;
  background: linear-gradient(135deg, var(--green-700,#0f5b45) 0%, var(--blue-700,#1f4f86) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.sw-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-card-icon { line-height: 1; }

/* Featured ribbon */
.sw-featured-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
}

/* ── Card body ───────────────────────────────────────────────────────────── */
.sw-card-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.sw-card-name {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text-900, #10232f);
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sw-card-city {
  font-size: .73rem;
  color: var(--text-700, #5d6c78);
  margin: 0;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.sw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.sw-badges-modal { margin-bottom: 8px; }

.sw-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}
.sw-badge-open    { background: #d1fae5; color: #065f46; }
.sw-badge-closed  { background: #fee2e2; color: #991b1b; }
.sw-badge-free    { background: #dbeafe; color: #1e40af; }
.sw-badge-paid    { background: #fef9c3; color: #92400e; }
.sw-badge-dist    { background: rgba(15,91,69,.08); color: var(--green-700,#0f5b45); }
.sw-badge-weather {
  background: transparent;
  border: 1px solid var(--sand-200,#efe5d6);
  color: var(--text-700,#5d6c78);
}
.sw-badge-weather img { display: inline; vertical-align: middle; }

/* ── Location label ──────────────────────────────────────────────────────── */
.sw-location-label {
  font-size: .75rem;
  color: var(--green-700, #0f5b45);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Geo permission prompt ───────────────────────────────────────────────── */
.sw-geo-prompt {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--sand-200, #efe5d6);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(16,35,47,.08);
}
.sw-geo-denied { border-color: #fca5a5; background: #fff9f9; }

.sw-geo-icon { font-size: 2.4rem; line-height: 1; }
.sw-geo-text strong { display: block; font-size: .95rem; font-weight: 800; color: var(--text-900,#10232f); margin-bottom: 4px; }
.sw-geo-text p { font-size: .83rem; color: var(--text-700,#5d6c78); margin: 0; line-height: 1.5; }

.sw-geo-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sw-geo-btn {
  padding: 11px 18px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
  border: none;
}
.sw-geo-allow {
  background: var(--green-700, #0f5b45);
  color: #fff;
}
.sw-geo-allow:hover { background: var(--green-900, #07372b); }
.sw-geo-skip {
  background: var(--sand-100, #f6f1e8);
  color: var(--text-700, #5d6c78);
  border: 1px solid var(--sand-200, #efe5d6);
}
.sw-geo-skip:hover { background: var(--sand-200, #efe5d6); }

/* ── Empty / error states ────────────────────────────────────────────────── */
.sw-empty, .sw-error {
  padding: 28px;
  text-align: center;
  color: var(--text-700, #5d6c78);
  font-size: .88rem;
}
.sw-error button {
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--green-700,#0f5b45);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Skeleton loading ────────────────────────────────────────────────────── */
.sw-skeleton { pointer-events: none; }
.sw-skel-block, .sw-skel-line, .sw-skel-pill {
  background: linear-gradient(90deg, #ede9e0 25%, #f6f3ee 50%, #ede9e0 75%);
  background-size: 200% 100%;
  animation: swShimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes swShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sw-card-thumb.sw-skel-block {
  height: 136px;
  border-radius: 0;
}
.sw-skel-line { height: 12px; margin-bottom: 6px; }
.sw-skel-line--title { width: 80%; height: 14px; }
.sw-skel-line--sub   { width: 55%; }
.sw-skel-badges { display: flex; gap: 6px; margin-top: 6px; }
.sw-skel-pill   { width: 56px; height: 20px; border-radius: 20px; }

/* ── Modal overlay ───────────────────────────────────────────────────────── */
.sw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: swFadeIn .2s ease;
}
@media (min-width: 600px) {
  .sw-modal-overlay { align-items: center; padding: 20px; }
}
@keyframes swFadeIn { from { opacity: 0; } to { opacity: 1; } }

.sw-modal {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: swSlideUp .25s ease;
}
@media (min-width: 600px) {
  .sw-modal { border-radius: 24px; max-height: 85vh; }
}
@keyframes swSlideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.sw-modal-hd {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.sw-modal-hd h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.sw-modal-close {
  background: #f4f4f4;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.sw-modal-close:hover { background: #e8e8e8; }

.sw-modal-hero {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--green-700,#0f5b45), var(--blue-700,#1f4f86));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sw-modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-modal-icon { font-size: 4.5rem; opacity: .65; }

.sw-modal-body {
  padding: 20px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sw-modal-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  line-height: 1.4;
}
.sw-modal-row > span:first-child { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.sw-modal-row a { color: var(--green-700,#0f5b45); }

.sw-modal-tips-wrap > strong { display: block; margin-bottom: 8px; font-size: .9rem; }
.sw-modal-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sw-modal-tips li {
  font-size: .86rem;
  color: var(--text-700,#5d6c78);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.sw-modal-tips li::before {
  content: '💡';
  position: absolute;
  left: 0;
  font-size: .82rem;
}

.sw-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.sw-btn-directions, .sw-btn-share {
  flex: 1;
  min-width: 130px;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  cursor: pointer;
  transition: opacity .15s, background .15s;
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.sw-btn-directions {
  background: var(--green-700,#0f5b45);
  color: #fff;
}
.sw-btn-directions:hover { opacity: .88; }
.sw-btn-fullpage {
  background: var(--sand-100, #f6f1e8) !important;
  color: var(--green-700, #0f5b45) !important;
  border: 1.5px solid var(--green-700, #0f5b45) !important;
}
.sw-btn-fullpage:hover { background: var(--sand-200, #efe5d6) !important; }
.sw-btn-share {
  background: var(--sand-100,#f6f1e8);
  color: var(--text-900,#10232f);
  border: 1.5px solid #d0d7df;
}
.sw-btn-share:hover { background: var(--sand-200,#efe5d6); }

/* ── Mobile refinements ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sw-card-strip { flex: 0 0 185px; }
  .sw-card-thumb { height: 112px; }
  .sw-card-name  { font-size: .85rem; }
}

/* ── Grid wrapper (3 colunas, responsive) ─────────────────────────────────── */
.sw-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Strip wrapper (scroll horizontal) ────────────────────────────────────── */
.sw-strip-wrap {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.sw-card-strip {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .sw-grid-wrap {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
  }
  .sw-card-strip { flex: 0 0 185px; }
}

/* ═════ Refinamento moderno ═════ */
.sw-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef2f0;
  box-shadow: 0 4px 12px rgba(16,35,47,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16,35,47,0.14);
  border-color: rgba(15,91,69,0.20);
}
.sw-card-main {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.sw-card-thumb {
  height: 160px;
  background: linear-gradient(135deg, #0f5b45 0%, #1f4f86 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.sw-card:hover .sw-card-thumb img { transform: scale(1.05); }
.sw-card-icon { font-size: 3.5rem; opacity: 0.8; }

.sw-featured-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.03em;
}

.sw-card-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.sw-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: #10232f;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sw-card-city {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
  font-weight: 600;
}

.sw-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}
.sw-badge-open    { background: #d1fae5; color: #065f46; }
.sw-badge-closed  { background: #fee2e2; color: #991b1b; }
.sw-badge-free    { background: #dbeafe; color: #1e40af; }
.sw-badge-paid    { background: #fef9c3; color: #92400e; }
.sw-badge-dist    { background: rgba(15,91,69,0.10); color: #0f5b45; }
.sw-badge-tidal   { background: rgba(31,79,134,0.10); color: #1f4f86; }
.sw-badge-featured{ background: rgba(245,184,0,0.12); color: #8a6d23; }

.sw-card-actions {
  padding: 0 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px dashed #eef2f0;
  padding-top: 10px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .sw-card-thumb { height: 130px; }
  .sw-card-name { font-size: 0.92rem; }
}
