/* ========================================
   MOBILE SWIPE INTERFACE
   ======================================== */

.mobile-swipe-wrapper {
  min-height: 100vh;
  background: var(--cream-white);
  padding: 20px;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.mobile-title {
  text-align: center;
  color: var(--primary-black);
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  flex: 1;
}

.back-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--hover-red);
  text-decoration: underline;
}

.mobile-swipe-container {
  max-width: 500px;
  margin: 0 auto;
}

.card-stack {
  position: relative;
  min-height: 550px;
  margin-bottom: 30px;
}

.swipe-card {
  position: absolute;
  width: 100%;
  background: var(--soft-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.15);
  overflow: hidden;
  cursor: grab;
  transition: transform 0.3s ease, opacity 0.3s ease;
  touch-action: none;
  user-select: none;
}

.swipe-card.swiping {
  transition: none;
  cursor: grabbing;
}

.swipe-card.removing {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-image {
  width: 100%;
  height: 320px;
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.card-image .listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  background: linear-gradient(135deg, var(--cream-white) 0%, var(--light-gray) 100%);
}

.no-image span {
  font-size: 64px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.no-image p {
  font-size: 18px;
  margin: 0;
}

.card-info {
  padding: 24px;
}

.card-title {
  font-size: 24px;
  color: var(--primary-black);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.card-price {
  font-size: 22px;
  color: var(--primary-red);
  font-weight: 700;
  margin: 0 0 12px 0;
}

.card-location {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-availability {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
  font-style: italic;
}

/* Swipe Indicators - Match DwellX Red */
.swipe-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  font-weight: bold;
  padding: 20px 24px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  text-align: center;
  z-index: 10;
}

.swipe-indicator span {
  display: block;
  font-size: 64px;
  line-height: 1;
}

.swipe-indicator p {
  margin: 8px 0 0 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
}

.swipe-left {
  left: 20px;
  color: var(--primary-red);
  border: 5px solid var(--primary-red);
  background: rgba(220, 38, 38, 0.1);
}

.swipe-right {
  right: 20px;
  color: #10b981;
  border: 5px solid #10b981;
  background: rgba(16, 185, 129, 0.1);
}

/* Action Buttons - Match DwellX Design */
.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.btn-skip,
.btn-save {
  flex: 1;
  max-width: 160px;
  padding: 18px 24px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.1);
}

.btn-skip {
  background: var(--soft-white);
  color: var(--primary-red);
  border: 3px solid var(--primary-red);
}

.btn-skip:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  background: var(--primary-red);
  color: var(--soft-white);
}

.btn-save {
  background: #10b981;
  color: var(--soft-white);
}

.btn-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  background: #059669;
}

.btn-skip:disabled,
.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-skip span,
.btn-save span {
  font-size: 28px;
  line-height: 1;
}

/* Empty State */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 400px;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.empty-state h2 {
  font-size: 28px;
  color: var(--primary-black);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.empty-state p {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0 0 32px 0;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary-red);
  color: var(--soft-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  background: var(--hover-red);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .mobile-swipe-wrapper {
    padding: 15px;
  }
  
  .mobile-title {
    font-size: 24px;
  }
  
  .card-image {
    height: 280px;
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .card-price {
    font-size: 20px;
  }
  
  .action-buttons {
    gap: 15px;
  }
  
  .btn-skip,
  .btn-save {
    padding: 16px 20px;
    font-size: 16px;
  }
}