/* ==============================================================================
 * FILE: flip-cards.css
 * CATEGORY: MarlonWalksLA Website - Polaroid Review Cards & Carousel Controls
 * ============================================================================== */

/* =========================================================
   1. POLAROID SWIPER CONTAINER & ROOT
   ========================================================= */
.pc-root {
  position: relative;
  width: 100%;
  padding: 16px 0;
  box-sizing: border-box;
  overflow: hidden;
}

.pc-root .swiper {
  width: 100%;
  overflow: visible !important;
}

.pc-root .swiper-slide {
  width: 290px !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* =========================================================
   2. POLAROID CARD GRID STRUCTURE
   ========================================================= */
.pc-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr auto auto 1fr !important;
  grid-template-rows: auto 1fr auto !important;
  column-gap: 0px !important;
  row-gap: 10px !important;
  align-items: center !important;
  width: 100%;
  height: 470px;
  padding: 18px 14px 24px !important;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transform: rotate(calc(var(--card-rot, 0deg) + var(--drag-rot, 0deg)));
  transition: transform 0.35s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.3s ease;
  cursor: grab;
}

.pc-card:active {
  cursor: grabbing;
}

/* Active & Hover Card Straightens Out */
.pc-root .swiper-slide-active .pc-card,
.pc-root .swiper-slide:hover .pc-card {
  --card-rot: 0deg !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

/* Row 1: Guest Photo */
.pc-image {
  grid-column: 1 / 5 !important;
  grid-row: 1 !important;
  width: 100%;
  height: 230px !important;
  object-fit: cover;
  border-radius: 8px;
  margin: 0;
}

/* Row 2: Review Quote Text */
.pc-description-back {
  grid-column: 1 / 5 !important;
  grid-row: 2 !important;
  display: block !important;
  font-size: 0.88rem !important;
  line-height: 1.48;
  font-weight: 500;
  color: #334155;
  text-align: center;
  font-style: italic;
  margin: 2px 0 0 0;
  padding: 0 8px;
  align-self: center;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* Row 3 - Left: Ernesto Mascot */
.pc-image-back {
  grid-column: 2 !important;
  grid-row: 3 !important;
  display: block !important;
  position: static !important;
  height: 84px !important;
  width: auto !important;
  max-height: 84px !important;
  object-fit: contain;
  justify-self: end !important;
  align-self: center !important;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
  pointer-events: none;
  margin: 0 12px 0 0 !important;
}

/* Row 3 - Right: Reviewer Name & Gold Stars */
.pc-title {
  grid-column: 3 !important;
  grid-row: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  justify-self: start !important;
  align-self: center !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.pc-reviewer-name {
  font-size: 0.88rem !important;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
}

.pc-reviewer-stars {
  font-size: 0.92rem !important;
  color: #f59e0b !important;
  letter-spacing: 1.8px;
  line-height: 1;
  margin-top: 4px;
  display: block !important;
}

/* Hide Unused Legacy Fields */
.pc-description,
.pc-button,
.pc-front-hint,
.pc-back-hint,
.pc-review-plate,
.pc-footer-group {
  display: none !important;
}

/* =========================================================
   3. MOBILE VIEWPORT ADJUSTMENTS (MAX-WIDTH: 600px)
   ========================================================= */
@media (max-width: 600px) {
  .pc-root .swiper-slide {
    width: 260px !important;
  }
  
  .pc-card {
    height: 440px;
    padding: 16px 12px 20px !important;
  }

  .pc-image {
    height: 210px !important;
  }

  .pc-image-back {
    height: 72px !important;
    max-height: 72px !important;
    margin-right: 10px !important;
  }

  .pc-description-back {
    font-size: 0.82rem !important;
  }

  .pc-reviewer-name {
    font-size: 0.82rem !important;
  }

  .pc-reviewer-stars {
    font-size: 0.84rem !important;
    letter-spacing: 1.2px;
  }
}

/* =========================================================
   4. HORIZONTAL CONTROLS ROW [ < ] [ • • • ] [ > ]
   ========================================================= */
.swiper-custom-controls {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 18px auto 0 auto !important;
  position: relative !important;
  z-index: 20 !important;
  clear: both !important;
}

/* Arrow Buttons */
.swiper-custom-prev,
.swiper-custom-next {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #2563eb !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: all 0.2s ease !important;
}

.swiper-custom-prev:hover,
.swiper-custom-next:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  transform: scale(1.08) !important;
}

.swiper-custom-prev svg,
.swiper-custom-next svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  stroke-width: 2.5px !important;
  fill: none !important;
  pointer-events: none !important;
}

/* Dots Track */
.swiper-custom-pagination {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

/* Inactive Dots */
.swiper-custom-pagination .swiper-pagination-bullet {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  background: transparent !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

.swiper-custom-pagination .swiper-pagination-bullet:hover {
  border-color: #94a3b8 !important;
  transform: scale(1.15) !important;
}

/* Active Dot */
.swiper-custom-pagination .swiper-pagination-bullet-active {
  width: 22px !important;
  border-radius: 10px !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35) !important;
}
