/* ── PREKVAP MA – Stránka náhodnej destinácie ── */

/* Hero */
.pm-hero { min-height: 52vh; display: flex; align-items: center; }
.pm-hero-content { text-align: center; width: 100%; }
.pm-hero-content h1 { font-size: clamp(52px, 7vw, 88px); margin-bottom: 20px; }
.pm-hero-text {
  font-size: 17px;
  color: rgba(245,240,232,0.65);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 300;
}

/* Sekcia */
.pm-section { background: var(--cream); }
.pm-inner { max-width: 860px; }

/* Filter */
.pm-filter-wrap { text-align: center; margin-bottom: 40px; }
.pm-filter-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: 16px;
}
.pm-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pm-filter-btn {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--cream-dark);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.pm-filter-btn:hover { border-color: var(--forest); color: var(--forest); }
.pm-filter-btn.active { background: var(--forest); border-color: var(--forest); color: var(--cream); }

/* Hlavné tlačidlo */
.pm-btn-wrap { text-align: center; margin-bottom: 56px; }
.pm-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--forest);
  color: var(--gold-light);
  border: none;
  padding: 18px 40px;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(26,58,42,0.2);
}
.pm-generate-btn:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(26,58,42,0.25);
}
.pm-generate-btn:active { transform: translateY(0); }
.pm-btn-icon { display: flex; align-items: center; }

/* Label nad kartou */
.pm-result-label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 24px;
}

/* Karta výsledku */
.pm-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 12px 48px rgba(26,58,42,0.1);
  opacity: 0;
  transform: translateY(16px);
}
.pm-card-animate {
  animation: pmCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes pmCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fotografia */
.pm-card-img {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--forest);
}
.pm-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}
.pm-card:hover .pm-card-img img { transform: scale(1.04); }
.pm-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(245,240,232,0.08));
  z-index: 1;
}
.pm-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
}

/* Obsah karty */
.pm-card-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pm-card-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pm-card-kraj {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest-light);
}
.pm-card-typ {
  font-size: 11px;
  background: rgba(26,58,42,0.08);
  color: var(--forest);
  padding: 3px 10px;
  border-radius: 100px;
}
.pm-card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 14px;
}
.pm-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

/* Štatistiky */
.pm-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 24px;
}
.pm-stat { display: flex; flex-direction: column; gap: 4px; }
.pm-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
}
.pm-stat-val { font-size: 13px; color: var(--ink); font-weight: 500; }

/* Akcie */
.pm-card-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pm-btn-primary {
  background: var(--forest) !important;
  color: var(--gold-light) !important;
  border-color: var(--forest) !important;
  padding: 12px 24px;
  font-size: 14px;
}
.pm-btn-primary:hover {
  background: var(--forest-light) !important;
  border-color: var(--forest-light) !important;
}
.pm-btn-reroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--stone);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.pm-btn-reroll:hover { color: var(--forest); }

/* Prázdny stav */
.pm-empty { text-align: center; padding: 48px 24px; color: var(--stone); }
.pm-empty-icon { font-size: 48px; margin-bottom: 16px; }
.pm-empty p { font-size: 15px; line-height: 1.7; }

/* Farby hviezdičiek a hôr na svetlom pozadí */
.pm-card-stats .star.filled { color: var(--gold); }
.pm-card-stats .star.empty  { color: var(--cream-dark); }
.pm-card-stats .difficulty-mountain.active  { color: var(--gold); }
.pm-card-stats .difficulty-mountain.inactive { color: var(--cream-dark); }

/* ── SPINNING KARTA ── */
.pm-spinning {
  text-align: center;
  padding: 20px 0 40px;
}
.pm-spinning-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8a9e8a;
  margin-bottom: 24px;
}

.pm-spin-card {
  max-width: 420px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e4dc;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,58,42,0.1);
  display: grid;
  grid-template-columns: 140px 1fr;
}
.pm-spin-card-img {
  position: relative;
  height: 120px;
  background: #1a3a2a;
  overflow: hidden;
}
.pm-spin-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pm-spin-card-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, #1a3a2a, #4a8c5c);
}
.pm-spin-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: left;
}
.pm-spin-card-kraj {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a8c5c;
}
.pm-spin-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #1a3a2a;
  line-height: 1.2;
  margin: 0;
}
.pm-spin-card-typ {
  font-size: 11px;
  color: #8a9e8a;
}
.pm-spin-card-flash {
  animation: spinCardFlash 0.15s ease-out;
}
.pm-spin-card-final {
  border-color: #c9a84c !important;
  box-shadow: 0 8px 32px rgba(201,168,76,0.25) !important;
  animation: spinCardFinal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes spinCardFlash {
  0%   { opacity: 0.4; transform: scale(0.98) translateY(4px); }
  100% { opacity: 1;   transform: scale(1) translateY(0); }
}
@keyframes spinCardFinal {
  0%   { transform: scale(0.97); }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Bodky */
.pm-spinning-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.pm-spinning-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1a3a2a;
  opacity: 0.25;
  animation: dotPulse 1.2s ease-in-out infinite;
}
.pm-spinning-dots span:nth-child(2) { animation-delay: 0.2s; }
.pm-spinning-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1; transform: scale(1.2); background: #c9a84c; }
}

/* ── MAPA KRAJOV ── */
.pm-map-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 36px;
  max-width: 520px;
  width: 100%;
}
.pm-map-stage {
  position: relative;
  width: 100%;
  /* výška sa prispôsobí pomeru obrázka (cca 420×280) */
  aspect-ratio: 3 / 2;
}
.pm-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  user-select: none;
}
.pm-map-img.active {
  opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .pm-hero-content h1 { font-size: clamp(40px, 10vw, 60px); }
  .pm-hero-text { font-size: 15px; }
  .pm-card { grid-template-columns: 1fr; }
  .pm-card-img { min-height: 240px; }
  .pm-card-body { padding: 28px 24px; }
  .pm-card-title { font-size: clamp(22px, 6vw, 28px); }
  .pm-generate-btn { padding: 16px 28px; font-size: 15px; width: 100%; justify-content: center; }
  .pm-card-actions { flex-direction: column; align-items: flex-start; }
  .pm-btn-primary { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .pm-filter-btn { font-size: 12px; padding: 8px 14px; }
  .pm-card-body { padding: 24px 20px; }
  .pm-spin-card { grid-template-columns: 100px 1fr; }
  .pm-spin-card-img { height: 100px; }
  .pm-spin-card-title { font-size: 15px; }
}

