/* ============================================
   ALOHA TICKETS — Activity detail page styles
   Mobile-first, extends style.css
   ============================================ */

/* Override body padding for detail page */
.detail-page {
  padding-top: 0;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* ── DETAIL NAV ─────────────────────────────── */
.detail-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 100;
  background: transparent;
  transition: background 0.25s, box-shadow 0.25s;
}
.detail-nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}
.detail-nav-back,
.detail-nav-share {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85);
  color: var(--text-1);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.detail-nav.scrolled .detail-nav-back,
.detail-nav.scrolled .detail-nav-share {
  background: transparent;
}
.detail-nav-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  opacity: 0;
  transition: opacity 0.2s;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-nav.scrolled .detail-nav-title { opacity: 1; }

/* ── PHOTO CAROUSEL ─────────────────────────── */
.photo-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--bg-2);
}
.photo-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: grab;
  user-select: none;
}
.photo-track.dragging { cursor: grabbing; transition: none; }
.photo-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.photo-slide img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.photo-slide.photo-fallback { background: linear-gradient(135deg, var(--ocean-lite), var(--teal-lite)); }
.photo-fallback-emoji {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  opacity: 0;
}
.photo-slide.photo-fallback .photo-fallback-emoji { opacity: 1; }

.photo-dots {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.photo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, transform 0.2s;
}
.photo-dot-active {
  background: #fff;
  transform: scale(1.3);
}
.photo-counter {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 99px;
}

/* ── CONTENT CARD ───────────────────────────── */
.content-card {
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 1;
  padding-bottom: 32px;
}

/* ── TITLE BLOCK ────────────────────────────── */
.title-block {
  padding: 20px 16px 0;
}
.title-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.island-tag {
  background: var(--ocean-lite);
  color: var(--ocean);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wishlist-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: color 0.15s, border-color 0.15s;
}
.wishlist-btn.saved { color: #E24B4A; border-color: #E24B4A; }

.activity-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.activity-provider {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 500;
  margin-bottom: 10px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.stars-lg { color: var(--amber); font-size: 14px; }
.rating-num { font-weight: 500; color: var(--text-1); }
.rating-count { color: var(--text-3); }
.rating-sep { color: var(--border); }
.booked-count { color: var(--text-3); }

/* ── QUICK FACTS ────────────────────────────── */
.quick-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.qf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
}
.qf-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1px;
}
.qf-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}

/* ── TABS ───────────────────────────────────── */
.tab-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-row::-webkit-scrollbar { display: none; }
.tab {
  flex: 1;
  min-width: 80px;
  padding: 13px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: color 0.15s, border-color 0.15s;
}
.tab-active {
  color: var(--ocean);
  border-bottom-color: var(--ocean);
}
.tab-panel {
  padding: 20px 16px;
}
.tab-panel.hidden { display: none; }

/* ── OVERVIEW TAB ───────────────────────────── */
.body-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.4;
}
.hi-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.info-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--ocean-lite);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 18px;
}
.info-box p { font-size: 13px; color: var(--ocean); line-height: 1.5; }

/* ── ITINERARY TAB ──────────────────────────── */
.itin-list { display: flex; flex-direction: column; }
.itin-step { display: flex; gap: 14px; }
.itin-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.itin-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ocean-lite);
  border: 1.5px solid var(--ocean-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--ocean);
  flex-shrink: 0;
}
.itin-line {
  width: 1.5px;
  flex: 1;
  background: var(--border);
  margin: 4px 0;
  min-height: 16px;
}
.itin-step:last-child .itin-line { display: none; }
.itin-body { padding-bottom: 20px; padding-top: 3px; }
.itin-time {
  font-size: 10px;
  font-weight: 500;
  color: var(--ocean-mid);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}
.itin-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 3px;
  line-height: 1.3;
}
.itin-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── INCLUDES TAB ───────────────────────────── */
.includes-heading {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 12px;
}
.includes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-1);
}
.inc-no { color: var(--text-3); }
.cancel-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--teal-lite);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 24px;
}
.cancel-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-dark);
  margin-bottom: 2px;
}
.cancel-desc {
  font-size: 13px;
  color: var(--teal-dark);
  opacity: 0.8;
}

/* ── REVIEWS TAB ────────────────────────────── */
.review-summary {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.review-big-num {
  font-size: 52px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -0.03em;
}
.review-stars-lg { color: var(--amber); font-size: 20px; margin: 6px 0 2px; }
.review-total { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.rating-bars { text-align: left; display: flex; flex-direction: column; gap: 5px; }
.rbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.rbar-track {
  flex: 1;
  height: 5px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
}
.rbar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 99px;
}
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 14px;
}
.reviewer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.reviewer-name { font-size: 13px; font-weight: 500; color: var(--text-1); }
.reviewer-location { font-size: 11px; color: var(--text-3); }
.review-stars-sm { color: var(--amber); font-size: 12px; margin-left: auto; flex-shrink: 0; }
.review-text { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ── STICKY BOOK BAR ────────────────────────── */
.book-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 100;
}
.book-bar-price { display: flex; align-items: baseline; gap: 4px; }
.book-price { font-size: 24px; font-weight: 600; color: var(--text-1); letter-spacing: -0.02em; }
.book-per { font-size: 13px; color: var(--text-3); }
.book-btn {
  flex: 1;
  max-width: 200px;
  justify-content: center;
  font-size: 15px;
  padding: 13px 20px;
}

/* ── DESKTOP ADJUSTMENTS ────────────────────── */
@media (min-width: 768px) {
  .detail-page { padding-bottom: 0; }
  .photo-carousel { height: 420px; }
  .book-bar { max-width: 680px; margin: 0 auto; left: 50%; transform: translateX(-50%); right: auto; width: 100%; border-radius: 16px 16px 0 0; }
  .content-card { max-width: 680px; margin: -20px auto 0; }
  .quick-facts { grid-template-columns: repeat(4, 1fr); }
  .activity-title { font-size: 26px; }
}
