/* ==========================================================================
   FRESHU (freshu.ir) - PERSIAN FRESHA.COM COMPONENTS
   Venue Marketplace Cards, Popular Treatments, Verified Reviews, Booking Modal & Drawer
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-farsi);
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--bg-surface-secondary);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.825rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   FRESHA MARKETPLACE VENUE CARDS (Frameless, Clean Modern Style)
   ========================================================================== */
.fresha-venue-card {
  background: transparent;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  transition: transform var(--transition-fast), background var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.5rem;
}

.fresha-venue-card:hover {
  transform: translateY(-4px);
}

/* Man & Woman Specific Subtle Ambient Soft Glow on Hover */
.fresha-venue-card.man-venue:hover {
  background: rgba(6, 32, 69, 0.03);
}

.fresha-venue-card.woman-venue:hover {
  background: rgba(242, 196, 206, 0.15);
}

/* Card Photo Gallery Container */
.venue-gallery-box {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #101928;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(16, 25, 40, 0.08);
}

.venue-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fresha-venue-card:hover .venue-gallery-img {
  transform: scale(1.05);
}

.venue-featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(16, 25, 40, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-farsi);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.venue-gender-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-farsi);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
}

.venue-gender-badge.man {
  background: rgba(6, 32, 69, 0.9);
  color: #FFFFFF;
}

.venue-gender-badge.woman {
  background: rgba(242, 196, 206, 0.95);
  color: #0F172A;
}

/* Card Info Body */
.venue-info-body {
  padding: 0.25rem 0.25rem 0.4rem;
}

.venue-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.venue-name-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 900;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.venue-rating-star {
  color: #F59E0B;
  font-size: 0.85rem;
}

.venue-rating-val {
  color: #0F172A;
  font-weight: 900;
}

.venue-location-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-card-footer {
  padding: 0.65rem 0.25rem 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: none;
  background: transparent;
}

.venue-starting-price {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 700;
}

.venue-starting-price strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 900;
}

/* ==========================================================================
   POPULAR TREATMENTS CARDS
   ========================================================================== */
.fresha-treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.fresha-treatment-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.fresha-treatment-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ==========================================================================
   VERIFIED TESTIMONIAL REVIEWS
   ========================================================================== */
.review-bubble-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-user-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.review-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
}

.review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #027A48;
  font-size: 0.725rem;
  font-weight: 700;
}

.review-text-p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.review-venue-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}

/* ==========================================================================
   ASANSPORT 4-STEP TIME-SLOT BOOKING MODAL
   ========================================================================== */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 40, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.booking-modal-overlay.active {
  display: flex;
}

.booking-modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 30px 80px rgba(16, 25, 40, 0.25);
  overflow: hidden;
  border: 1px solid var(--border-light);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.booking-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-stepper-bar {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface-secondary);
}

.stepper-step-item {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  transition: all var(--transition-fast);
}

.stepper-step-item.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--bg-surface);
}

.booking-modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.booking-date-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.date-pill-item {
  flex: 0 0 74px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.date-pill-item:hover {
  border-color: var(--color-primary);
}

.date-pill-item.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.date-pill-item.active span {
  color: var(--text-inverse) !important;
}

.date-day-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
}

.slots-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.slot-time-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.slot-time-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--bg-surface-secondary);
}

.slot-time-btn.selected {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

.slot-time-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.service-option-item {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.service-option-item:hover {
  border-color: var(--color-primary);
}

.service-option-item.selected {
  border-color: var(--color-primary);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 25, 40, 0.06);
}

.booking-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   DRAWER FOR MY BOOKINGS
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 40, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2100;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  box-shadow: 10px 0 40px rgba(16, 25, 40, 0.2);
  z-index: 2200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-body {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-msg {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-farsi);
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile App View Modal and Drawer Adjustments */
@media (max-width: 768px) {
  .booking-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .booking-modal-card {
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    animation: modalSheetUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes modalSheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .booking-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .booking-modal-body {
    padding: 1.25rem 1.5rem;
    max-height: calc(90vh - 170px);
    overflow-y: auto;
  }

  .booking-modal-footer {
    padding: 1rem 1.25rem;
  }

  .stepper-step-item {
    font-size: 0.725rem;
    padding: 0.65rem 0.4rem;
  }

  .drawer-panel {
    max-width: 100%;
  }

  #toast-container {
    bottom: 5rem;
    right: 1.25rem;
    left: 1.25rem;
  }
}
