/* Reset e configurações base */
* {
  box-sizing: border-box;
}

/* Header responsivo com altura fluida usando clamp() */
.destinations-header {
  height: clamp(40vh, 50vh, 60vh);
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/destinations-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: clamp(60px, 8vw, 80px);
}

.destinations-header-content {
  max-width: min(90%, 800px);
  padding: clamp(15px, 4vw, 30px);
}

/* Tipografia responsiva usando clamp() para melhor adaptação */
.destinations-header-content h1 {
  font-size: clamp(24px, 6vw, 48px);
  margin-bottom: clamp(10px, 2vw, 20px);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.destinations-header-content p {
  font-size: clamp(14px, 3vw, 18px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

/* Seções com padding responsivo */
.featured-destinations {
  padding: clamp(40px, 8vw, 80px) 0;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(30px, 6vw, 50px);
}

.section-title h2 {
  color: #0b3d91;
  font-size: clamp(24px, 5vw, 36px);
  margin-bottom: clamp(10px, 2vw, 20px);
  line-height: 1.3;
}

.section-title p {
  color: #666;
  max-width: min(90%, 700px);
  margin: 0 auto;
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
}

/* Grid totalmente responsivo com breakpoints específicos */
.destinations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 30px);
}

/* Cards otimizados para todos os dispositivos */
.destination-card {
  background-color: white;
  border-radius: clamp(6px, 1.5vw, 12px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.destination-image {
  height: clamp(180px, 25vw, 220px);
  overflow: hidden;
  position: relative;
}

.destination-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .destination-image img {
  transform: scale(1.05);
}

.destination-content {
  padding: clamp(15px, 4vw, 25px);
}

.destination-title {
  font-size: clamp(16px, 3vw, 22px);
  color: #0b3d91;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.3;
}

.destination-location {
  color: #666;
  font-size: clamp(12px, 2vw, 14px);
  margin-bottom: clamp(12px, 2vw, 18px);
  display: flex;
  align-items: center;
}

.destination-location i {
  margin-right: 6px;
  color: #00b4d8;
}

/* Grid de detalhes responsivo */
.destination-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2vw, 12px);
  margin-bottom: clamp(12px, 2vw, 18px);
  padding-bottom: clamp(12px, 2vw, 18px);
  border-bottom: 1px solid #eee;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: clamp(10px, 1.8vw, 12px);
  color: #666;
  margin-bottom: 4px;
}

.detail-value {
  font-weight: 500;
  color: #333;
  font-size: clamp(12px, 2vw, 14px);
}

.destination-description {
  color: #666;
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.6;
  margin-bottom: clamp(15px, 3vw, 25px);
}

.destination-button {
  display: block;
  background-color: #0b3d91;
  color: white;
  text-align: center;
  padding: clamp(10px, 2vw, 14px) clamp(15px, 3vw, 20px);
  border-radius: clamp(4px, 1vw, 6px);
  font-weight: 500;
  font-size: clamp(12px, 2vw, 14px);
  transition: all 0.3s ease;
  text-decoration: none;
}

.destination-button:hover {
  background-color: #072a66;
  transform: translateY(-2px);
}

/* Seção all-destinations responsiva */
.all-destinations {
  padding: clamp(40px, 8vw, 80px) 0;
  background-color: #f9f9f9;
}

.no-destinations {
  text-align: center;
  padding: clamp(30px, 6vw, 50px);
  background-color: #f8f9fa;
  border-radius: clamp(6px, 1.5vw, 12px);
  margin: clamp(15px, 3vw, 25px) 0;
}

.no-destinations h3 {
  color: #0b3d91;
  margin-bottom: clamp(8px, 2vw, 15px);
  font-size: clamp(18px, 4vw, 24px);
}

.no-destinations p {
  color: #666;
  margin-bottom: clamp(15px, 3vw, 25px);
  font-size: clamp(14px, 2.5vw, 16px);
}

/* CTA section totalmente responsiva */
.cta-section {
  padding: clamp(50px, 10vw, 100px) 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("images/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.cta-content {
  max-width: min(90%, 700px);
  margin: 0 auto;
  padding: 0 clamp(15px, 4vw, 30px);
}

.cta-content h2 {
  font-size: clamp(24px, 6vw, 42px);
  margin-bottom: clamp(15px, 3vw, 25px);
  line-height: 1.2;
}

.cta-content p {
  font-size: clamp(14px, 3vw, 18px);
  margin-bottom: clamp(25px, 5vw, 40px);
  opacity: 0.9;
  line-height: 1.6;
}

/* Botões CTA responsivos com melhor adaptação */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: clamp(15px, 3vw, 25px);
  flex-wrap: wrap;
}

.cta-btn-primary,
.cta-btn-secondary {
  padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 35px);
  border-radius: clamp(4px, 1vw, 6px);
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: clamp(120px, 25vw, 160px);
  text-align: center;
}

.cta-btn-primary {
  background-color: #00b4d8;
  color: white;
}

.cta-btn-primary:hover {
  background-color: #0096c7;
  transform: translateY(-2px);
}

.cta-btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn-secondary:hover {
  background-color: white;
  color: #0b3d91;
  transform: translateY(-2px);
}

.container {
  max-width: min(95%, 1200px);
  margin: 0 auto;
  padding: 0 clamp(15px, 4vw, 30px);
}

/* Media queries específicas para diferentes dispositivos */

/* Mobile pequeno (320px - 480px) */
@media (max-width: 480px) {
  .destinations-header {
    background-attachment: scroll;
    margin-top: 60px;
  }

  .destination-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta-section {
    background-attachment: scroll;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* Mobile grande e tablet pequeno (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .destinations-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .destination-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .destinations-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }

  .cta-buttons {
    gap: 20px;
  }
}

/* Desktop pequeno (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .destinations-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
  }
}

/* Desktop grande (1201px+) */
@media (min-width: 1201px) {
  .destinations-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
  }

  .destination-card {
    max-width: 420px;
  }
}

/* Otimizações para dispositivos com hover */
@media (hover: hover) {
  .destination-card:hover {
    transform: translateY(-10px);
  }

  .destination-button:hover {
    transform: translateY(-3px);
  }

  .cta-btn-primary:hover,
  .cta-btn-secondary:hover {
    transform: translateY(-3px);
  }
}

/* Otimizações para telas de alta densidade */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .destinations-header,
  .cta-section {
    background-size: cover;
  }
}

/* Modo paisagem para dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
  .destinations-header {
    height: 80vh;
    margin-top: 50px;
  }

  .destinations-header-content h1 {
    font-size: clamp(20px, 4vw, 32px);
  }
}

/* Acessibilidade - redução de movimento */
@media (prefers-reduced-motion: reduce) {
  .destination-card,
  .destination-image img,
  .destination-button,
  .cta-btn-primary,
  .cta-btn-secondary {
    transition: none;
  }

  .destination-card:hover {
    transform: none;
  }

  .destination-card:hover .destination-image img {
    transform: none;
  }
}
