/* Tour Card Styles - Erg Chigaga Adventure */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-sand: #e67e22;
  --primary-dark: #b85d0d;
  --sand-accent: #f39c12;
  --terracotta: #c0392b;
  --ta-green: #00aa6c;
  --ta-green-light: #e6f7f0;
  --ta-green-dark: #00875a;
  
  --bg-card: #ffffff;
  --bg-card-subtle: #fbf9f6;
  --border-color: #eadecf;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 20, 10, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 20, 10, 0.12);
  --shadow-hover: 0 22px 50px rgba(217, 119, 6, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: #f4efe9;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Card Container */
.desert-tour-card {
  font-family: var(--font-body);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.desert-tour-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .desert-tour-card.layout-horizontal {
    flex-direction: row;
    min-height: 440px;
  }
}

/* Media / Gallery Area */
.card-media {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.desert-tour-card.layout-horizontal .card-media {
  flex: 0 0 46%;
  min-height: 380px;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

/* Badges & Overlays */
.card-badges-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.badge-featured {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-featured svg {
  color: #f59e0b;
}

.btn-wishlist {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-wishlist:hover {
  background: #ffffff;
  transform: scale(1.08);
  color: #e11d48;
}

.btn-wishlist.active {
  color: #e11d48;
  background: #fff;
}

/* Carousel Controls */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1f2937;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 5;
}

.card-media:hover .carousel-nav-btn {
  opacity: 1;
}

.carousel-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.dot-btn {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot-btn.active {
  background: #ffffff;
  width: 20px;
  border-radius: 10px;
}

.duration-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #f3f4f6;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
}

/* Card Content Details */
.card-details {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header-info {
  margin-bottom: 12px;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-sand);
  margin-bottom: 6px;
}

.tour-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 10px;
}

.tour-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tour-title a:hover {
  color: var(--primary-sand);
}

/* TripAdvisor Rating Box */
.ta-rating-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  background: var(--ta-green-light);
  border: 1px solid rgba(0, 170, 108, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.ta-logo-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ta-bubbles {
  display: flex;
  gap: 2.5px;
}

.ta-bubble {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ta-green);
  display: inline-block;
}

.ta-score {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ta-green-dark);
}

.ta-review-count {
  font-size: 0.8rem;
  color: #2c5946;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.ta-review-count:hover {
  color: #004b32;
}

.ta-choice-badge {
  font-size: 0.7rem;
  background: #00aa6c;
  color: #fff;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Highlights Chips */
.tour-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-icon {
  font-size: 0.85rem;
}

/* Excerpt / Summary */
.tour-excerpt {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Quick Perks */
.tour-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 16px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #374151;
  font-weight: 500;
}

.perk-item svg {
  color: var(--ta-green);
  flex-shrink: 0;
}

/* Footer / Pricing & CTA */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pricing-block {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.price-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #f0eae1;
  border-color: #d6c5b0;
}

.btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: none;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
  transform: translateY(-1px);
}

/* Mini Compact Embed View */
.desert-tour-card.compact-embed {
  max-width: 420px;
}
.desert-tour-card.compact-embed .card-media {
  min-height: 220px;
}
.desert-tour-card.compact-embed .card-details {
  padding: 18px;
}
.desert-tour-card.compact-embed .tour-title {
  font-size: 1.15rem;
}
.desert-tour-card.compact-embed .tour-perks {
  grid-template-columns: 1fr;
}

/* Interactive Modal & Drawer styles */
.tour-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}

.tour-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.tour-modal {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.tour-modal-backdrop.open .tour-modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.modal-body {
  padding: 24px;
}

/* Reviews List Styles */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid #f1f1f1;
}

.review-item:last-child {
  border-bottom: none;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fcd34d;
  color: #78350f;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1f2937;
}

.review-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.review-bubbles {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 6px;
}

.review-text {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
}

/* Toast notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}
