/* =============================================
   POUSADAS SINOP - GRID DE CARDS (Override)
   Substitui o carrossel Embla por grid 2x3
   ============================================= */

/* ---- Gallery Section ---- */
.ps-gallery-section {
  position: relative;
  padding: 3rem 1rem 5rem;
  background: linear-gradient(to bottom, hsl(0, 0%, 98%) 0%, hsl(0, 0%, 100%) 30%, hsl(0, 0%, 98%) 100%);
  overflow: hidden;
}

.ps-gallery-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

/* ---- Section Header ---- */
.ps-section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}

.ps-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsla(32, 89%, 71%, 0.1);
  border: 1px solid hsla(32, 89%, 71%, 0.2);
  margin-bottom: 1.5rem;
}
.ps-badge span {
  color: hsl(32, 89%, 71%);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ps-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(0, 0%, 5%);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.ps-accent-text {
  background: linear-gradient(135deg, hsl(202, 36%, 20%), hsl(32, 89%, 71%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-divider {
  width: 6rem;
  height: 4px;
  background: linear-gradient(to right, transparent, hsl(32, 89%, 71%), transparent);
  margin: 0 auto 1.5rem;
}

.ps-section-subtitle {
  font-size: 1.125rem;
  color: hsl(0, 0%, 45%);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
}

/* ---- Grid 2x3 ---- */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .ps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ---- Card ---- */
.ps-card {
  background: hsl(0, 0%, 100%);
  border: 2.5px solid hsl(32, 89%, 71%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ps-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ---- Image Slider ---- */
.ps-image-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
}
.ps-slides {
  width: 100%;
  height: 100%;
  position: relative;
}
.ps-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.ps-slide-img.active {
  opacity: 1;
  pointer-events: auto;
}

/* Nav arrows */
.ps-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  z-index: 5;
}
.ps-image-slider:hover .ps-nav {
  opacity: 1;
}
.ps-nav:hover {
  background: rgba(0,0,0,0.7);
}
.ps-prev { left: 8px; }
.ps-next { right: 8px; }

/* Counter */
.ps-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 5;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Dots */
.ps-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.ps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ps-dot.active {
  background: hsl(32, 89%, 71%);
  transform: scale(1.3);
}

/* ---- Card Body ---- */
.ps-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.ps-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(0, 0%, 5%);
  line-height: 1.3;
  margin: 0;
}

.ps-card-desc {
  font-size: 0.875rem;
  color: hsl(0, 0%, 45%);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Tags ---- */
.ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ps-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: hsla(32, 89%, 71%, 0.1);
  color: hsl(32, 50%, 35%);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid hsla(32, 89%, 71%, 0.2);
}

/* ---- Meta (Quartos + Capacidade) ---- */
.ps-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid hsl(202, 20%, 90%);
}
.ps-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(202, 36%, 25%);
  white-space: nowrap;
}
.ps-meta-item svg {
  flex-shrink: 0;
  color: hsl(32, 89%, 71%);
}

/* ---- Airbnb Button ---- */
.ps-airbnb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, #f7b872, #e8a35c);
  color: white;
  border: none;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ps-airbnb-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(247, 184, 114, 0.5);
}
.ps-airbnb-btn svg {
  flex-shrink: 0;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 639px) {
  .ps-section-title {
    font-size: 1.75rem;
  }
  .ps-section-subtitle {
    font-size: 0.95rem;
  }
  .ps-card {
    border-radius: 0.75rem;
  }
}


/* ---- HIDE OLD CAROUSEL ELEMENTS (fallback) ---- */
/* These hide the Embla carousel arrows that come from React */
#gallery .absolute.inset-0 {
  /* keep */ 
}