/* Guías de destino — efecto WOW */

.dest-page--wow {
  padding-bottom: 0;
}

/* Hero cinematográfico */
.dest-hero--wow {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 3rem;
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}

.dest-hero--wow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 20, 0.15) 0%, rgba(15, 23, 20, 0.35) 55%, rgba(15, 23, 20, 0.78) 100%),
    linear-gradient(135deg, rgba(45, 122, 69, 0.25) 0%, transparent 55%);
  pointer-events: none;
}

.dest-hero--wow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #fff, transparent);
  pointer-events: none;
}

.dest-hero--wow .dest-hero__inner {
  position: relative;
  z-index: 1;
  animation: dest-hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dest-hero-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dest-hero--wow .dest-eyebrow--light {
  color: #a7f3d0;
  letter-spacing: 0.14em;
}

.dest-hero--wow .dest-title--light {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.dest-hero--wow .dest-lead--light {
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  max-width: 40rem;
}

/* Sin foto de provincia: degradado andaluz (no stock genérico) */
.dest-hero--fallback {
  background-image: none !important;
  background: linear-gradient(135deg, #2d7a45 0%, #3ea35d 45%, #1e5631 100%);
}

.dest-hero--fallback::before {
  background:
    linear-gradient(180deg, rgba(15, 23, 20, 0.1) 0%, rgba(15, 23, 20, 0.45) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.dest-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-muted) 100%);
  color: var(--brand-dark);
  font-size: 2rem;
  font-weight: 800;
}

.dest-hero--wow .dest-best-time {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.45rem 1rem;
}

/* Stats pills WOW */
.dest-detail-v2__stats--wow {
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.dest-detail-v2__stat--wow {
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.8125rem;
  animation: dest-stat-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.08s + 0.3s);
}

.dest-detail-v2__stat--wow strong {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}

@keyframes dest-stat-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Ideal for tags */
.dest-ideal-for {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.dest-ideal-for__tag {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Jump nav mejorado */
.dest-detail-v2__jump--wow {
  top: 4.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.dest-detail-v2__jump--wow a {
  transition: all 0.2s ease;
}

/* Prose enriquecida */
.dest-prose--wow {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #374151;
}

.dest-prose--wow p {
  margin-bottom: 1.15rem;
}

.dest-prose--wow p:last-child {
  margin-bottom: 0;
}

.dest-prose--teaser {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
  max-width: none;
}

.dest-prose--teaser p {
  margin-bottom: 0.85rem;
}

.dest-read-more {
  margin-top: 1.25rem;
  max-width: none;
}

.dest-read-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-dark, #2d7a45);
  list-style: none;
}

.dest-read-more summary::-webkit-details-marker {
  display: none;
}

.dest-read-more summary::after {
  content: '→';
  transition: transform 0.2s ease;
}

.dest-read-more[open] summary::after {
  transform: rotate(90deg);
}

.dest-read-more .dest-prose--full {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
}

.dest-read-more .dest-prose--full p {
  margin-bottom: 1rem;
}

/* Highlights grid WOW */
.dest-highlights--wow {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .dest-highlights--wow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dest-highlight--wow {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.25rem 1.25rem;
  background: linear-gradient(165deg, #fff 0%, #f8fbf9 100%);
  border: 1px solid rgba(62, 163, 93, 0.14);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(62, 163, 93, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
  overflow: hidden;
  animation: dest-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.dest-highlight--wow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #6ee7a8 100%);
}

.dest-highlight--wow:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(62, 163, 93, 0.16);
}

.dest-highlight--wow .dest-highlight__num {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 4px 12px rgba(62, 163, 93, 0.35);
}

.dest-highlight--wow h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111;
}

.dest-highlight--wow p {
  font-size: 0.875rem;
  color: #525252;
  line-height: 1.55;
}

@keyframes dest-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar WOW */
.dest-sidebar-card--wow {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(62, 163, 93, 0.18);
  background: linear-gradient(165deg, #fff 0%, var(--brand-soft) 100%);
  box-shadow: 0 16px 48px rgba(62, 163, 93, 0.12);
}

.dest-sidebar-card--wow::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 163, 93, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.dest-sidebar-card--wow h3 {
  position: relative;
  font-size: 1.0625rem;
  font-weight: 700;
}

.dest-sidebar-card--wow .dest-sidebar-stat {
  position: relative;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* Layout guía — main ancho + sidebar alojamientos */
.dest-detail-layout {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

@media (min-width: 992px) {
  .dest-detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 3rem;
  }
}

.dest-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .dest-detail-sidebar {
    position: sticky;
    top: 5rem;
  }
}

.dest-sidebar-properties {
  padding: 1.25rem;
  border-radius: 20px;
  border: 1px solid #ebebeb;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.dest-sidebar-properties__title {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
}

.dest-sidebar-properties__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dest-sidebar-property {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dest-sidebar-property:hover {
  background: var(--brand-soft);
  border-color: var(--brand-muted);
  transform: translateX(2px);
}

.dest-sidebar-property__img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}

.dest-sidebar-property__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dest-sidebar-property__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.625rem;
  font-weight: 600;
  color: #9ca3af;
}

.dest-sidebar-property__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dest-sidebar-property__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dest-sidebar-property__meta {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  color: #6b7280;
}

.dest-sidebar-property__price {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.dest-sidebar-property__price span {
  font-weight: 500;
  color: #6b7280;
}

.dest-sidebar-properties__link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.dest-sidebar-properties__link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (max-width: 991px) {
  .dest-sidebar-properties__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
  }

  .dest-sidebar-property {
    flex-direction: column;
    padding: 0;
    border: none;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .dest-sidebar-property:hover {
    transform: translateY(-2px);
  }

  .dest-sidebar-property__img {
    width: 100%;
    height: 140px;
    border-radius: 0;
  }
}

/* Secciones extra */
.dest-extra-section {
  margin-bottom: 2.5rem;
}

.dest-extra-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}

.dest-gastro-grid {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .dest-gastro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dest-gastro-card {
  padding: 1.125rem 1.25rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ebebeb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dest-gastro-card:hover {
  border-color: var(--brand-muted);
  box-shadow: 0 8px 24px rgba(62, 163, 93, 0.1);
}

.dest-gastro-card strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.35rem;
}

.dest-gastro-card p {
  font-size: 0.8125rem;
  color: #525252;
  line-height: 1.5;
  margin: 0;
}

.dest-tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dest-tips-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

.dest-tips-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

.dest-nearby-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .dest-nearby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dest-nearby-card {
  padding: 1rem 1.125rem;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}

.dest-nearby-card strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
}

.dest-nearby-card p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #525252;
  line-height: 1.45;
}

/* FAQ SEO */
.dest-faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dest-faq details {
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dest-faq details[open] {
  border-color: var(--brand-muted);
  box-shadow: 0 8px 24px rgba(62, 163, 93, 0.08);
}

.dest-faq summary {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  list-style: none;
}

.dest-faq summary::-webkit-details-marker {
  display: none;
}

.dest-faq summary::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
}

.dest-faq details[open] summary::after {
  content: '−';
}

.dest-faq details p {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #525252;
}

@media (prefers-reduced-motion: reduce) {
  .dest-hero--wow .dest-hero__inner,
  .dest-detail-v2__stat--wow,
  .dest-highlight--wow {
    animation: none;
  }

  .dest-highlight--wow:hover {
    transform: none;
  }
}
