/* ═══════════════════════════════════════════════════════════════════════
   TOURS BUY & SUCCESS PAGES — Out & About
   Follows existing Webflow variable & class patterns
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Section: Hero / Header ─────────────────────────────────────────── */
.section-tours-hero {
  padding: 120px 0 60px;
  text-align: center;
}

.section-tours-hero .heading-style-large {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-tours-hero .text-color-muted {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ── Tour Grid ──────────────────────────────────────────────────────── */
.section-tours-grid {
  padding: 40px 0 80px;
}

.tours-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.tour-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Dark mode card */
body.is-dark-mode .tour-card {
  background: #1a1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.is-dark-mode) .tour-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tour-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.tour-card-image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

body.is-dark-mode .tour-card-image-placeholder {
  background: linear-gradient(135deg, #2a2d30 0%, #1a1c1e 100%);
  color: rgba(255, 255, 255, 0.3);
}

body:not(.is-dark-mode) .tour-card-image-placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  color: rgba(0, 0, 0, 0.2);
}

.tour-card-body {
  padding: 20px;
}

.tour-card-title {
  font-family: var(--global--body-font-family, 'Inter', sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 6px;
}

body.is-dark-mode .tour-card-title { color: #ffffff; }
body:not(.is-dark-mode) .tour-card-title { color: #000000; }

.tour-card-location {
  font-size: 0.85rem;
  margin: 0 0 8px;
}

body.is-dark-mode .tour-card-location { color: rgba(255, 255, 255, 0.5); }
body:not(.is-dark-mode) .tour-card-location { color: rgba(0, 0, 0, 0.5); }

.tour-card-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.is-dark-mode .tour-card-description { color: rgba(255, 255, 255, 0.7); }
body:not(.is-dark-mode) .tour-card-description { color: rgba(0, 0, 0, 0.7); }

.tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tour-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tour-card-price {
  font-size: 1.4rem;
  font-weight: 700;
}

body.is-dark-mode .tour-card-price { color: #ffffff; }
body:not(.is-dark-mode) .tour-card-price { color: #000000; }

.tour-card-duration {
  font-size: 0.8rem;
}

body.is-dark-mode .tour-card-duration { color: rgba(255, 255, 255, 0.4); }
body:not(.is-dark-mode) .tour-card-duration { color: rgba(0, 0, 0, 0.4); }

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--global--body-font-family, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-add-cart:active { transform: scale(0.97); }

.btn-add-cart {
  background: #000000;
  color: #ffffff;
}

.btn-add-cart:hover {
  background: #333333;
}

.btn-add-cart.in-cart {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.btn-add-cart.in-cart:hover {
  background: #f0f0f0;
}

/* ── Loading / Empty States ────────────────────────────────────────── */
.tours-loading,
.tours-empty {
  text-align: center;
  padding: 80px 24px;
  font-size: 1.1rem;
}

body.is-dark-mode .tours-loading,
body.is-dark-mode .tours-empty { color: rgba(255, 255, 255, 0.5); }
body:not(.is-dark-mode) .tours-loading,
body:not(.is-dark-mode) .tours-empty { color: rgba(0, 0, 0, 0.5); }

.tours-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

body.is-dark-mode .tours-loading-spinner {
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: #ffffff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Cart Sidebar ──────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  z-index: 1000;
  padding: 32px 24px;
  overflow-y: auto;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

body.is-dark-mode .cart-sidebar {
  background: #1a1c1e;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.is-dark-mode) .cart-sidebar {
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cart-header h2 {
  font-family: var(--global--body-font-family, 'Inter', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

body.is-dark-mode .cart-header h2 { color: #ffffff; }
body:not(.is-dark-mode) .cart-header h2 { color: #000000; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

body.is-dark-mode .cart-close { color: #ffffff; }
body.is-dark-mode .cart-close:hover { background: rgba(255, 255, 255, 0.1); }
body:not(.is-dark-mode) .cart-close { color: #000000; }
body:not(.is-dark-mode) .cart-close:hover { background: rgba(0, 0, 0, 0.05); }

.cart-items {
  flex: 1;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

body.is-dark-mode .cart-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body:not(.is-dark-mode) .cart-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item-info { flex: 1; }

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
}

body.is-dark-mode .cart-item-title { color: #fff; }
body:not(.is-dark-mode) .cart-item-title { color: #000; }

.cart-item-price {
  font-size: 0.85rem;
}

body.is-dark-mode .cart-item-price { color: #667eea; }
body:not(.is-dark-mode) .cart-item-price { color: #5a67d8; }

.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

body.is-dark-mode .cart-item-remove { color: rgba(255,255,255,0.4); }
body.is-dark-mode .cart-item-remove:hover { color: #e53e3e; background: rgba(229,62,62,0.1); }
body:not(.is-dark-mode) .cart-item-remove { color: rgba(0,0,0,0.3); }
body:not(.is-dark-mode) .cart-item-remove:hover { color: #e53e3e; background: rgba(229,62,62,0.05); }

.cart-empty-message {
  text-align: center;
  padding: 40px 0;
  font-size: 0.95rem;
}

body.is-dark-mode .cart-empty-message { color: rgba(255, 255, 255, 0.4); }
body:not(.is-dark-mode) .cart-empty-message { color: rgba(0, 0, 0, 0.4); }

/* ── Cart Footer / Checkout ────────────────────────────────────────── */
.cart-footer {
  padding-top: 20px;
  margin-top: auto;
}

body.is-dark-mode .cart-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body:not(.is-dark-mode) .cart-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label {
  font-size: 1rem;
  font-weight: 600;
}

body.is-dark-mode .cart-total-label { color: rgba(255, 255, 255, 0.7); }
body:not(.is-dark-mode) .cart-total-label { color: rgba(0, 0, 0, 0.7); }

.cart-total-amount {
  font-size: 1.4rem;
  font-weight: 700;
}

body.is-dark-mode .cart-total-amount { color: #ffffff; }
body:not(.is-dark-mode) .cart-total-amount { color: #000000; }

.cart-email-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--global--body-font-family, 'Inter', sans-serif);
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

body.is-dark-mode .cart-email-input {
  background: #0e1011;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.is-dark-mode .cart-email-input:focus {
  border-color: #667eea;
}

body:not(.is-dark-mode) .cart-email-input {
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
}

body:not(.is-dark-mode) .cart-email-input:focus {
  border-color: #5a67d8;
}

.cart-email-input::placeholder {
  color: rgba(128, 128, 128, 0.6);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 2px solid #000000;
  cursor: pointer;
  font-family: var(--global--body-font-family, 'Inter', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  background: #000000;
  color: #ffffff;
  transition: all 0.2s, transform 0.1s;
}

.btn-checkout:hover {
  background: #333333;
  border-color: #333333;
}

.btn-checkout:active {
  transform: scale(0.98);
}

.btn-checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.cart-error {
  color: #e53e3e;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
}

/* ── Floating Cart Button ──────────────────────────────────────────── */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 998;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cart-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

body.is-dark-mode .cart-fab {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.is-dark-mode .cart-fab-badge {
  background: #ffffff;
  color: #000000;
}

.cart-fab-badge:empty {
  display: none;
}

/* ── Success Page ──────────────────────────────────────────────────── */
.section-success {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.success-container {
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 4px solid;
}

body.is-dark-mode .success-icon {
  background: #000000;
  border-color: #ffffff;
}

body:not(.is-dark-mode) .success-icon {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.success-title {
  font-family: var(--global--body-font-family, 'Inter', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
}

body.is-dark-mode .success-title { color: #ffffff; }
body:not(.is-dark-mode) .success-title { color: #000000; }

.success-subtitle {
  font-size: 1rem;
  margin: 0 0 32px;
}

body.is-dark-mode .success-subtitle { color: rgba(255, 255, 255, 0.6); }
body:not(.is-dark-mode) .success-subtitle { color: rgba(0, 0, 0, 0.6); }

.success-code-box {
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

body.is-dark-mode .success-code-box {
  background: #1a1c1e;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

body:not(.is-dark-mode) .success-code-box {
  background: #f8f9fa;
  border: 2px dashed rgba(0, 0, 0, 0.2);
}

.success-code-label {
  font-size: 0.85rem;
  margin: 0 0 8px;
}

body.is-dark-mode .success-code-label { color: rgba(255, 255, 255, 0.5); }
body:not(.is-dark-mode) .success-code-label { color: rgba(0, 0, 0, 0.5); }

.success-code-value {
  font-family: 'Courier New', 'Inconsolata', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0 0 16px;
}

body.is-dark-mode .success-code-value { color: #ffffff; }
body:not(.is-dark-mode) .success-code-value { color: #000000; }

.success-code-loading {
  font-size: 1rem;
  margin: 12px 0;
}

body.is-dark-mode .success-code-loading { color: rgba(255, 255, 255, 0.4); }
body:not(.is-dark-mode) .success-code-loading { color: rgba(0, 0, 0, 0.4); }

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid #000000;
  cursor: pointer;
  font-family: var(--global--body-font-family, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  background: #000000;
  color: #ffffff;
  transition: all 0.2s;
}

.btn-copy-code:hover { 
  background: #ff0000; 
  border-color: #ff0000;
}
.btn-copy-code.copied { 
  background: #000000;
  border-color: #000000;
}

.success-steps {
  text-align: left;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

body.is-dark-mode .success-steps {
  background: rgba(255, 255, 255, 0.03);
}

body:not(.is-dark-mode) .success-steps {
  background: rgba(0, 0, 0, 0.03);
}

.success-steps h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
}

body.is-dark-mode .success-steps h3 { color: #ffffff; }
body:not(.is-dark-mode) .success-steps h3 { color: #000000; }

.success-steps ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

body.is-dark-mode .success-steps ol { color: rgba(255, 255, 255, 0.7); }
body:not(.is-dark-mode) .success-steps ol { color: rgba(0, 0, 0, 0.7); }

.btn-open-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid #000000;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--global--body-font-family, 'Inter', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  transition: all 0.2s;
}

.btn-open-app:hover { background: #000000; color: #ffffff; }

/* ── Cart Empty Message ────────────────────────────────────────────── */
.cart-empty-msg {
  padding: 40px 20px;
  text-align: center;
}

.cart-empty-msg p {
  margin: 0 0 8px;
}

body.is-dark-mode .cart-empty-msg { color: rgba(255, 255, 255, 0.5); }
body:not(.is-dark-mode) .cart-empty-msg { color: rgba(0, 0, 0, 0.5); }

.cart-empty-hint {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── Cart Secure Note ──────────────────────────────────────────────── */
.cart-secure-note {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 12px;
  opacity: 0.6;
}

/* ── Cart Email Section ────────────────────────────────────────────── */
.cart-email-section {
  margin-bottom: 16px;
}

.cart-email-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

body.is-dark-mode .cart-email-label { color: rgba(255, 255, 255, 0.7); }
body:not(.is-dark-mode) .cart-email-label { color: rgba(0, 0, 0, 0.7); }

/* ── Canceled Banner ───────────────────────────────────────────────── */
.canceled-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 997;
  background: #000000;
  color: #ffffff;
}

.canceled-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.dismiss-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.dismiss-btn:hover {
  opacity: 1;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-tours-hero {
    padding: 100px 24px 40px;
  }

  .section-tours-hero .heading-style-large {
    font-size: 2.2rem;
  }

  .tours-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-sidebar {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }

  .success-code-value {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }
}
