/* ========================================
   City Tours Southampton — Global Styles
   Premium Dark Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(10, 10, 26, 0.5); /* sleek dark transparent */
  --bg-glass: rgba(255, 255, 255, 0.08); 
  --border-glass: rgba(255, 255, 255, 0.15); /* More visible border for glassy reflection */

  --text-primary: #e8e8f0;
  --text-secondary: #9898b8;
  --text-muted: #6868888;

  --accent-primary: #00d4aa;
  --accent-secondary: #00b4d8;
  --accent-gradient: linear-gradient(135deg, #00d4aa, #00b4d8);
  --accent-gradient-hover: linear-gradient(135deg, #00e6bb, #00c8ec);

  --danger: #ff4466;
  --warning: #ffaa33;
  --success: #00d4aa;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.15);

  --font-body: 'JetBrains Mono', monospace;
  --font-heading: 'Outfit', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s ease;
  --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Animated Background ---- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 180, 216, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(120, 80, 220, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Page Wrapper ---- */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.container-wide {
  max-width: 800px;
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: cardFadeIn 0.6s var(--transition-slow);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---- Logo / Brand ---- */
.brand {
  text-align: center;
  margin-bottom: 36px;
}

.brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.25);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 170, 0.25); }
  50% { box-shadow: 0 0 50px rgba(0, 212, 170, 0.4); }
}

.brand h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.brand .subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 400;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }

/* ---- Welcome Text ---- */
.welcome-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 24px 0 32px;
  text-align: left;
}

.welcome-text strong {
  color: var(--text-primary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #0a0a1a;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 30px rgba(0, 212, 170, 0.45);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(255, 68, 102, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 68, 102, 0.2);
}

.btn-danger:hover {
  background: rgba(255, 68, 102, 0.25);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Button loading spinner */
.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 10, 26, 0.3);
  border-top: 2px solid #0a0a1a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn.loading .spinner {
  display: block;
}

.btn.loading .btn-text {
  opacity: 0.7;
}

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

/* ---- Form Styles ---- */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

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

/* ---- Alerts / Messages ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
  animation: alertSlide 0.3s ease;
}

@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert.show {
  display: block;
}

.alert-error {
  background: rgba(255, 68, 102, 0.12);
  border: 1px solid rgba(255, 68, 102, 0.25);
  color: var(--danger);
}

.alert-success {
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.25);
  color: var(--success);
}

.alert-warning {
  background: rgba(255, 170, 51, 0.12);
  border: 1px solid rgba(255, 170, 51, 0.25);
  color: var(--warning);
}

.alert-info {
  background: rgba(0, 180, 216, 0.12);
  border: 1px solid rgba(0, 180, 216, 0.25);
  color: var(--accent-secondary);
}

/* ---- Code Display (6-digit code) ---- */
.code-display {
  text-align: center;
  margin: 24px 0;
  padding: 28px;
  background: rgba(0, 212, 170, 0.06);
  border: 2px dashed rgba(0, 212, 170, 0.25);
  border-radius: var(--radius-md);
}

.code-display .code-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-display .code-value {
  font-family: 'Courier New', monospace;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.code-display .code-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border-glass);
  margin: 28px 0;
}

/* ---- Navigation / Header ---- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 26, 0.5);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
}

.top-bar .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-bar .btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ---- Map Page ---- */
.map-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
}

.map-controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 12px;
}

.map-controls .btn {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
}

.map-controls .btn-secondary {
  background: rgba(10, 10, 26, 0.6);
}

/* POI List Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.4s var(--transition-slow);
}

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

.modal h2 {
  margin-bottom: 20px;
  text-align: center;
}

.modal .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

/* POI List */
.poi-list {
  list-style: none;
}

.poi-list li {
  padding: 16px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.poi-list li:hover {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.2);
  transform: translateX(4px);
}

.poi-list li .poi-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.poi-list li .poi-name {
  font-weight: 500;
  color: var(--text-primary);
}

.poi-list li .poi-distance {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ---- Steps / Progress ---- */
.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.steps .step {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-medium);
}

.steps .step.active {
  background: var(--accent-gradient);
  width: 56px;
}

.steps .step.completed {
  background: rgba(0, 212, 170, 0.4);
}

/* ---- Footer ---- */
.page-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-footer a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.page-footer a:hover {
  color: var(--accent-secondary);
}

/* ---- Payment Features ---- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.feature {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.feature .feature-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.feature .feature-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Price display */
.price-display {
  text-align: center;
  margin: 20px 0;
}

.price-display .price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-display .price-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }

  .brand h1 {
    font-size: 1.6rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .map-controls {
    bottom: 20px;
    flex-direction: row;
  }

  .map-controls .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .code-display .code-value {
    font-size: 2rem;
  }
}

/* ---- Utility ---- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden { display: none !important; }


