/* Event Detail Page Styles */

/* Review Detail Modal */
.review-detail-content {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.review-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.review-detail-images:empty {
  display: none;
}

.review-detail-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.reviewer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-details h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.review-detail-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.review-detail-rating span {
  color: #ffc107;
  font-size: 16px;
}

.review-detail-date {
  font-size: 14px;
  color: #666;
}

.review-detail-content {
  line-height: 1.6;
}

.review-detail-content p {
  margin: 0;
  font-size: 16px;
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}


@media (max-width: 768px) {
  .review-detail-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .reviewer-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .review-detail-images {
    grid-template-columns: 1fr;
  }
}

/* Make review cards clickable */
.review-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Event date and time section */
.event-datetime {
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
}

.datetime-info,
.location-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.datetime-info:last-child,
.location-info:last-child {
  margin-bottom: 0;
}

.datetime-label,
.location-label {
  font-size: 1rem;
  flex-shrink: 0;
}

.datetime-text,
.location-text {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Experience Details Sections */
.event-includes,
.event-excludes,
.event-requirements,
.meeting-point {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.event-includes h2,
.event-excludes h2,
.event-requirements h2,
.meeting-point h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-includes h2:before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  font-size: 1.2em;
}

.event-excludes h2:before {
  content: "✗";
  color: #ef4444;
  font-weight: bold;
  font-size: 1.2em;
}

.event-requirements h2:before {
  content: "📋";
  font-size: 1em;
}

.meeting-point h2:before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: #ff6b6b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.inclusions-list,
.exclusions-list,
.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.inclusions-list li,
.exclusions-list li,
.requirements-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  padding-left: 24px;
}

.inclusions-list li:before {
  content: "•";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.exclusions-list li:before {
  content: "•";
  color: #ef4444;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.requirements-list li:before {
  content: "•";
  color: #6366f1;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.inclusions-list li:last-child,
.exclusions-list li:last-child,
.requirements-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meeting-point-text {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Detailed Description Styles */
.detailed-description {
  margin-bottom: 24px;
}

.detailed-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* This style is overridden by the more specific selector below for continuous images */

.event-detail-content .detailed-image-item {
  width: auto;
  max-width: 100%;
}

/* This style is overridden by the more specific selector below for continuous images */

/* Reservation Modal Styles */
.reservation-modal-content {
  max-width: 500px;
  width: 90%;
}

.reservation-summary {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.event-summary h4 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
}

.reservation-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #64748b;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  background: white;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.total-price {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #64748b;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
  font-size: 16px;
  color: #1e293b;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  margin-top: 20px;
}

.event-detail-section {
  padding: var(--spacing-lg) 0;
}

@media (max-width: 768px) {
  .main {
    padding-top: 0 !important;
  }

  .event-detail-section {
    padding-top: 0;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Event Header */
.event-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.event-images {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  height: 400px;
}

.event-detail-wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-detail-wishlist-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-detail-wishlist-btn.active {
  background: #FF385C;
}

.event-detail-wishlist-btn.active .heart-icon {
  fill: white;
  stroke: white;
}

.event-detail-wishlist-btn .heart-icon {
  stroke: #FF385C;
  transition: all 0.2s;
}

.event-detail-wishlist-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.event-detail-wishlist-btn:disabled:hover {
  transform: none;
}

.event-swiper {
  height: 100%;
}

.event-swiper .swiper-slide {
  height: 100%;
}

.event-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-swiper .swiper-pagination {
  bottom: 16px;
}

.event-swiper .swiper-button-next,
.event-swiper .swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.event-swiper .swiper-button-next::after,
.event-swiper .swiper-button-prev::after {
  font-size: 16px;
}

/* Event Info */
.event-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-category {
  margin-bottom: var(--spacing-sm);
}

.event-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.event-meta {
  margin-bottom: var(--spacing-lg);
}

.event-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.rating-stars {
  color: #ffd700;
  font-size: 1.2rem;
}

.event-rating span {
  color: var(--text-secondary);
}

.event-price {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
}

.event-price span:first-child {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-per {
  color: var(--text-secondary);
}

.event-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.event-actions .btn {
  flex: 1;
}

/* Event Description */
.event-description {
  margin-bottom: var(--spacing-xl);
}

.event-description h2 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.event-description p {
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

/* Quill editor content styles for lists */
#event-description-content ol,
#event-description-content ul {
  margin: 1em 0;
  padding-left: 1.5em;
  color: var(--text-secondary);
  line-height: 1.6;
}

#event-description-content ol {
  list-style-type: decimal;
}

#event-description-content ul {
  list-style-type: disc;
}

#event-description-content li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}

/* Nested lists */
#event-description-content ol ol {
  list-style-type: lower-alpha;
}

#event-description-content ol ol ol {
  list-style-type: lower-roman;
}

#event-description-content ul ul {
  list-style-type: circle;
}

#event-description-content ul ul ul {
  list-style-type: square;
}

/* Other Quill formatting */
#event-description-content strong {
  font-weight: bold;
}

#event-description-content em {
  font-style: italic;
}

#event-description-content u {
  text-decoration: underline;
}

#event-description-content s {
  text-decoration: line-through;
}

#event-description-content a {
  color: #3b82f6;
  text-decoration: underline;
}

#event-description-content a:hover {
  color: #2563eb;
}

/* Experience Details */
.experience-details {
  margin-bottom: var(--spacing-xl);
}

.experience-details h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.experience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.experience-text {
  line-height: 1.6;
}

.experience-text p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.experience-text h3 {
  color: var(--text-primary);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  font-size: 1.25rem;
}

.experience-text ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.experience-text li {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.experience-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.experience-image {
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.experience-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.experience-image:hover img {
  transform: scale(1.05);
}

.experience-image-caption {
  padding: var(--spacing-md);
  background: var(--background-white);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Detailed Description Toggle */
.detailed-description {
  margin-top: var(--spacing-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.detailed-description.show {
  display: block !important;
}

.detailed-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
  padding: var(--spacing-lg);
  background: var(--background-light);
  border-radius: var(--radius-large);
  margin-top: var(--spacing-md);
}

.detailed-text {
  line-height: 1.6;
}

.detailed-text p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.detailed-text h3 {
  color: var(--text-primary);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  font-size: 1.25rem;
}

.detailed-text ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.detailed-text li {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.detailed-image {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.detailed-image-item {
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.detailed-image-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.detailed-image-item:hover img {
  transform: scale(1.05);
}

.toggle-btn {
  margin-top: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  justify-content: center;
  transition: all 0.3s ease;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.toggle-btn.expanded .toggle-icon {
  transform: rotate(180deg);
}


/* Host Information */
.host-info {
  margin-bottom: var(--spacing-xl);
}

.host-info h2 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.host-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--background-light);
  border-radius: var(--radius-large);
}

.host-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.host-details h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.host-details p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.host-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Reviews Section */
.reviews-section {
  margin-bottom: var(--spacing-xl);
}

.reviews-section h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.reviews-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.reviews-nav-btn {
  display: none; /* Hide navigation buttons for simple scroll */
}

.reviews-scroll {
  display: flex;
  gap: 20px;
  padding: 12px 0 20px 0;
  min-width: max-content;
  scroll-behavior: smooth;
  user-select: none; /* Prevent text selection while dragging */
}

.reviews-scroll.dragging {
  scroll-behavior: auto; /* Disable smooth scroll while dragging */
}

.reviews-scroll.dragging .review-card {
  pointer-events: none; /* Prevent card interactions while dragging */
}

/* Ensure review cards are clickable by default */
.review-card {
  pointer-events: auto;
}

.review-card {
  flex: 0 0 260px;
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.review-main-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.review-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.review-main-image img:hover {
  transform: scale(1.05);
}

.review-card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-user-info {
  flex: 1;
}

.review-user-name {
  font-weight: 600;
  font-size: 13px;
  color: #1a1a1a;
  margin: 0 0 2px 0;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 1px;
}

.review-star {
  color: #ffd700;
  font-size: 12px;
}

.review-content {
  margin-bottom: 12px;
  flex: 1;
}

.review-text {
  color: #444;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.review-date {
  color: #888;
  font-size: 11px;
}

.review-likes {
  display: flex;
  align-items: center;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
  font-size: 11px;
}

.like-btn:hover {
  background-color: #f5f5f5;
}

.like-icon {
  font-size: 12px;
}

.like-count {
  color: #666;
  font-weight: 500;
}


/* Write Review Button Section */
.write-review-section {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--background-white);
  border-radius: var(--radius-large);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--background-light);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  justify-content: flex-end;
}

.modal-actions .btn {
  min-width: 100px;
}

.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 4px;
}

.rating-input input[type="radio"] {
  display: none;
}

.rating-input label {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s ease;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #ffd700;
}

/* Photo Preview */
.photo-preview {
  position: relative;
  margin-top: var(--spacing-sm);
  border-radius: var(--radius-medium);
  overflow: hidden;
  max-width: 200px;
}

.photo-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.remove-photo:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Review Image Preview */
#review-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.preview-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: rgba(255, 59, 48, 0.95);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.remove-image-btn:hover {
  background: rgba(255, 59, 48, 1);
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(255, 59, 48, 0.4);
}

/* No reviews state */
.no-reviews {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
}

.no-reviews p {
  margin-bottom: var(--spacing-md);
}

/* Loading placeholder in reviews */
.reviews-loading {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-secondary);
}

/* Reviews mobile styling - similar to table-wrapper */
@media (max-width: 768px) {
  .reviews-container {
    margin: 0 -20px;
    padding: 0 20px;
  }
  
  .reviews-scroll {
    min-width: 800px; /* Ensure horizontal scroll on mobile */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .event-header {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .event-images {
    height: 250px;
  }

  .event-detail-wishlist-btn {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }

  .event-detail-wishlist-btn .heart-icon {
    width: 20px;
    height: 20px;
  }

  .event-info h1 {
    font-size: 1.5rem;
  }

  .event-actions {
    flex-direction: column;
  }

  .event-actions .btn {
    width: 100%;
  }

  .event-includes ul {
    grid-template-columns: 1fr;
  }

  .experience-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .experience-images {
    order: -1;
  }

  .detailed-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .detailed-image {
    order: -1;
  }

  .host-card {
    flex-direction: column;
    text-align: center;
  }

  .host-avatar {
    align-self: center;
  }

  .modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .modal-header {
    padding: var(--spacing-md);
  }

  .modal-body {
    padding: var(--spacing-md);
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }

}

@media (max-width: 480px) {
  .event-detail-section {
    padding: var(--spacing-md) 0;
  }

  .breadcrumb {
    font-size: 0.8rem;
    margin-bottom: var(--spacing-md);
  }

  .event-info h1 {
    font-size: 1.25rem;
  }

  .event-price span:first-child {
    font-size: 1.5rem;
  }

  .rating-input label {
    font-size: 1.5rem;
  }

}

/* Payment Information */
.payment-info {
  background: var(--background-light);
  padding: var(--spacing-xl);
  border-radius: var(--radius-large);
  margin: var(--spacing-xl) 0;
}

.payment-info h2 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.payment-card {
  background: var(--background-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-large);
  box-shadow: 0 4px 16px var(--shadow-light);
  border: 2px solid var(--primary-color);
}

.payment-method h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.payment-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.bank-details {
  background: var(--background-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-medium);
  margin-bottom: var(--spacing-lg);
}

.bank-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.bank-detail-item:last-child {
  border-bottom: none;
  font-weight: 600;
  color: var(--primary-color);
}

.detail-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-value {
  font-weight: 600;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 1.1rem;
}

.payment-note {
  background: var(--warning-light, #fff3cd);
  padding: var(--spacing-lg);
  border-radius: var(--radius-medium);
  border-left: 4px solid var(--warning-color, #ffc107);
}

.payment-note h4 {
  color: var(--warning-dark, #856404);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.payment-note ul {
  margin: 0;
  padding-left: var(--spacing-lg);
}

.payment-note li {
  color: var(--warning-dark, #856404);
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.payment-note strong {
  color: var(--primary-color);
}

/* Mobile responsiveness for payment info */
@media (max-width: 768px) {
  .payment-info {
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
  }

  .payment-card {
    padding: var(--spacing-lg);
  }

  .bank-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .detail-value {
    font-size: 1rem;
  }
}

/* Override existing detailed-image styles specifically for continuous images */
.app-container .main .event-detail-section .container .event-detail-content .detailed-description .detailed-content .detailed-image #detailed-image-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-left: 0;
  display: block;
  text-align: center;
  line-height: 0;
  font-size: 0;
  padding: 0;
}

/* Continuous Detailed Images - override all existing styles */
.app-container .main .event-detail-section .container .event-detail-content .detailed-description .detailed-content .detailed-image #detailed-image-container .detailed-image-continuous {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 0;
  border: none;
  outline: none;
  vertical-align: bottom;
  line-height: 0;
  font-size: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: none;
  position: static;
  float: none;
  clear: none;
  object-fit: contain;
}

/* Override the grid layout for detailed content when showing continuous images */
.event-detail-content .detailed-content.continuous-images {
  display: block;
  width: 100%;
  max-width: none;
}

.event-detail-content .detailed-image.continuous-images {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .app-container .main .event-detail-section .container .event-detail-content .detailed-description .detailed-content .detailed-image #detailed-image-container {
    max-width: 100%;
  }
  
  .app-container .main .event-detail-section .container .event-detail-content .detailed-description .detailed-content .detailed-image #detailed-image-container .detailed-image-continuous {
    max-width: 100%;
  }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .app-container .main .event-detail-section .container .event-detail-content .detailed-description .detailed-content .detailed-image #detailed-image-container {
    max-width: 700px;
  }

  .app-container .main .event-detail-section .container .event-detail-content .detailed-description .detailed-content .detailed-image #detailed-image-container .detailed-image-continuous {
    max-width: 700px;
  }
}

/* ========================================
   Wishlist Button Styles
   ======================================== */

.btn-wishlist {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-wishlist:hover {
  border-color: #FF385C;
  background: #FFF5F7;
  transform: scale(1.1);
}

.btn-wishlist.active {
  background: #FF385C;
  border-color: #FF385C;
}

.btn-wishlist.active .heart-icon {
  color: white;
}

.btn-wishlist .heart-icon {
  color: #FF385C;
  transition: all 0.2s;
}

.btn-wishlist:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-wishlist:disabled:hover {
  transform: none;
}

@media (max-width: 768px) {
  .btn-wishlist {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Fresha-style sections: Team / Business Hours / Location Map / Nearby
   ========================================================================== */
.team-section,
.hours-section,
.location-section,
.nearby-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.team-section h2,
.hours-section h2,
.location-section h2,
.nearby-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* --- Team members --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
}

.team-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
}

.team-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.team-role {
  font-size: 0.82rem;
  color: #6b7280;
}

/* --- Business hours --- */
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 0.95rem;
}

.hours-day {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  font-weight: 400;
}

.hours-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.hours-dot-closed {
  background: #d1d5db;
}

.hours-time {
  color: #374151;
}

/* Today: bold both day and time (Fresha style) */
.hours-today .hours-day,
.hours-today .hours-time {
  font-weight: 700;
  color: #111827;
}

.hours-closed {
  color: #9ca3af;
}

/* --- Location map --- */
.location-map iframe {
  display: block;
}

.location-address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #374151;
  font-size: 0.95rem;
  margin: 14px 0 0 0;
}

.location-maps-link {
  color: #6d28d9;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.location-maps-link:hover {
  text-decoration: underline;
}

/* --- Nearby venues --- */
.nearby-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.nearby-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  background: #fff;
}

.nearby-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.nearby-img {
  width: 100%;
  height: 130px;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}

.nearby-body {
  padding: 12px;
}

.nearby-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nearby-loc {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 6px;
}

.nearby-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff6b6b;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
  }
  .team-avatar {
    width: 72px;
    height: 72px;
  }
  .nearby-card {
    flex-basis: 180px;
  }
}

/* --- Discount coupons ------------------------------------------------- */
.coupons-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.coupons-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.coupons-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px 0;
}

.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* The notch on the left edge is what makes it read as a torn-off ticket
   rather than another card in the stack. */
.coupon-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  border: 1px dashed #fca5a5;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 60%);
  padding: 14px 14px 14px 16px;
}

.coupon-card-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
  border-right: 1px dashed #fca5a5;
  min-width: 68px;
}

.coupon-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ff6b6b;
  line-height: 1.1;
}

.coupon-off {
  font-size: 11px;
  font-weight: 600;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coupon-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.coupon-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-scope {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-expiry {
  font-size: 11px;
  color: #9ca3af;
}

.coupon-card-action {
  display: flex;
  align-items: center;
}

.coupon-claim-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #ff6b6b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.coupon-claim-btn:hover:not(:disabled) {
  background: #ff5252;
}

.coupon-claim-btn.is-done,
.coupon-claim-btn:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

/* --- Prepaid passes ---------------------------------------------------- */
.pass-products-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pass-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* Keep in step with the same card in reserve.css. */
/* A ticket: dark stub, dashed tear line, and a notch at each end of the line. */
.pass-product-card {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
}

.pass-product-stub {
  position: relative;
  flex: 0 0 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px 4px;
  border-radius: 9px 0 0 9px;
  border-right: 1px dashed #ffffff;
  background: #333333;
  color: #ffffff;
  text-align: center;
}

.pass-product-stub::before,
.pass-product-stub::after {
  content: '';
  position: absolute;
  right: -6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: #ffffff;
}

.pass-product-stub::before {
  top: -6px;
  border-right-color: #d1d5db;
  border-bottom-color: #d1d5db;
  transform: rotate(45deg);
}

.pass-product-stub::after {
  bottom: -6px;
  border-left-color: #d1d5db;
  border-top-color: #d1d5db;
  transform: rotate(45deg);
}

.pass-product-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.pass-product-value-label {
  font-size: 11px;
  color: #d1d5db;
}

.pass-product-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 10px 8px 10px 12px;
}

.pass-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.pass-product-price {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.pass-product-meta {
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.pass-product-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 10px;
}

.pass-product-buy {
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  background: #333333;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.pass-product-buy:hover:not(:disabled) {
  background: #111111;
}

.pass-product-buy:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
}

@media (max-width: 640px) {
  .coupons-grid,
  .pass-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
