/* 
 * Goodkit-inspired CSS for Okup.AI Check-in
 * Based on Goodkit Template Design System
 */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display:wght@400;500&display=swap');

/* Color System */
:root {
  --white: #FFF;
  --gray-100: #F3F8FF;
  --gray-200: #EAF2FE;
  --gray-300: #DCE0F3;
  --gray-500: #8D9AAE;
  --gray-600: #575A7B;
  --gray-800: #342E6C;
  --gray-900: #2B265A;
  --black: #1B1642;
  
  --primary-dark: #564CAF;
  --primary: #6658EA;
  --primary-light: #687DED;
  --secondary: #575A7B;
  --success: #2CD4A2;
  --info: #0dcaf0;
  --warning: #F5C070;
  --danger: #F9655B;
  --light: #F3F8FF;
  --dark: #1B1642;

  /* Spacing */
  --spacer: 1rem;
  --border-radius: 1rem;
  --border-radius-lg: 2rem;
  --border-radius-sm: 0.5rem;
  --box-shadow: 0 0 6px rgba(27, 22, 66, 0.03), 0 14px 24px rgba(27, 22, 66, 0.06);
  --box-shadow-lg: 0 0 24px rgba(27, 22, 66, 0.04), 0 44px 74px rgba(27, 22, 66, 0.06);
  --box-shadow-lift: 0 1rem 2.5rem rgba(27, 22, 66, 0.1), 0 0.5rem 1rem -0.75rem rgba(27, 22, 66, 0.1);
}

/* Base Typography */
body {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  font-weight: 500;
  line-height: 1.32;
  color: var(--black);
}

.display-1 { font-size: 5.125rem; }
.display-2 { font-size: 4.5rem; }
.display-3 { font-size: 4rem; }
.display-4 { font-size: 3rem; }

.lead {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.6;
}

.text-muted {
  color: var(--gray-600) !important;
}

/* Color utilities */
.text-primary { color: var(--primary) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }

/* Spacing utilities */
.pt-6 { padding-top: calc(var(--spacer) * 2) !important; }
.pt-8 { padding-top: calc(var(--spacer) * 3) !important; }
.pt-10 { padding-top: calc(var(--spacer) * 5) !important; }
.pt-12 { padding-top: calc(var(--spacer) * 8) !important; }
.pb-6 { padding-bottom: calc(var(--spacer) * 2) !important; }
.pb-8 { padding-bottom: calc(var(--spacer) * 3) !important; }
.pb-10 { padding-bottom: calc(var(--spacer) * 5) !important; }
.pb-12 { padding-bottom: calc(var(--spacer) * 8) !important; }
.py-8 { padding-top: calc(var(--spacer) * 3) !important; padding-bottom: calc(var(--spacer) * 3) !important; }
.py-10 { padding-top: calc(var(--spacer) * 5) !important; padding-bottom: calc(var(--spacer) * 5) !important; }

.mb-4 { margin-bottom: calc(var(--spacer) * 1.5) !important; }
.mb-6 { margin-bottom: calc(var(--spacer) * 2) !important; }
.mb-8 { margin-bottom: calc(var(--spacer) * 3) !important; }

/* Card Components */
.card {
  border: none;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.card-lg {
  border-radius: var(--border-radius-lg);
}

.card-body {
  padding: 2rem;
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
  font-weight: 500;
}

/* Rounded corners - Goodkit style */
.rounded-top-start {
  border-top-left-radius: var(--border-radius) !important;
}

.rounded-bottom-end {
  border-bottom-right-radius: var(--border-radius) !important;
}

.rounded-top-start-3 {
  border-top-left-radius: calc(var(--border-radius) * 1.5) !important;
}

.rounded-bottom-end-3 {
  border-bottom-right-radius: calc(var(--border-radius) * 1.5) !important;
}

/* Button Components */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: calc(var(--border-radius-sm) * 0.8);
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lift);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--black);
  border: 1px solid var(--gray-200);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Icon styling */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  flex: 0 0 auto;
  flex-shrink: 0;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.icon-lg {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  min-height: 4rem;
}

/* Badge Components */
.badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
}

.badge-primary {
  background-color: var(--primary);
  color: white;
}

.badge-success {
  background-color: var(--success);
  color: white;
}

.badge-warning {
  background-color: var(--warning);
  color: var(--black);
}

.badge-light {
  background-color: var(--light);
  color: var(--black);
}

/* Container and layout */
.container-lg {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* List Group */
.list-group-item {
  border: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0;
}

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

/* Prevent leading icons from being squashed in flex list items with long text */
.list-group-item .icon {
  margin-bottom: 0;
}

/* Allow the text column to wrap/ellipsis without forcing siblings to shrink */
.list-group-item .flex-grow-1 {
  min-width: 0;
}

/* Lift effect for cards */
.lift {
  transition: all 0.3s ease;
}

.lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-lift);
}

/* Utility classes */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-decoration-none { text-decoration: none !important; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

/* Grid system simplified */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col, .col-md-6, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-12 {
  padding: 0 1rem;
  flex: 1;
}

.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-lg-12 { flex: 0 0 100%; max-width: 100%; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-md-6, .col-lg-4, .col-lg-6, .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 3rem; }
  .display-3 { font-size: 2.5rem; }
  .display-4 { font-size: 2.25rem; }
  
  .lead {
    font-size: 1.25rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .hero-section {
    padding: 3rem 1.5rem;
  }
  
  .checkin-status-card .card-body {
    padding: 2.5rem 1.5rem !important;
  }
  
  .bg-primary .card-body,
  .bg-primary-light .card-body {
    padding: 2rem 1.5rem !important;
  }
  
  .bg-light .card-body {
    padding: 1.5rem 1.5rem !important;
  }
}

/* Guest landing specific styles */
.hero-section {
  padding: 4rem 2.5rem;
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
}

.section-card {
  transition: all 0.3s ease;
  height: 100%;
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-lift);
}

.checkin-status-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.checkin-status-card .card-body {
  padding: 3rem 2.5rem;
}

.map-container {
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--gray-200);
}

/* Trip details styling */
.trip-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.trip-detail-label {
  font-weight: 500;
  color: var(--gray-600);
}

.trip-detail-value {
  font-weight: 500;
  color: var(--black);
}

/* Activities and extras grid */
.service-item {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--border-radius);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Additional services carousel: keep CTA aligned across cards */
.additional-services-carousel {
  align-items: stretch;
}

.additional-services-carousel .service-details {
  /* Reserve space so price/CTA don't jump up when details are missing */
  min-height: 2.6rem;
}

.additional-services-carousel .service-price {
  /* Reserve space so CTA baseline stays consistent */
  min-height: 1.6rem;
}

.additional-services-carousel .service-item .btn,
.additional-services-carousel .service-item a.btn {
  margin-top: auto;
}

.service-item:hover {
  border-color: var(--primary);
  box-shadow: var(--box-shadow-lift);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Status indicators */
.status-completed {
  background-color: var(--success);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pending {
  background-color: var(--warning);
  color: var(--black);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Font Size utilities */
.fs-xxs { font-size: 0.75rem !important; }
.fs-xs { font-size: 0.875rem !important; }
.fs-sm { font-size: 1rem !important; }
.fs-lg { font-size: 1.25rem !important; }

/* Font Weight utilities */
.fw-bold { font-weight: 500 !important; }

/* Background-specific padding adjustments */
.bg-primary .card-body,
.bg-primary-light .card-body {
  padding: 2.5rem 2.5rem !important;
}

.bg-light .card-body {
  padding: 2rem 2.5rem !important;
}

/* Footer styling - consistent across all pages */
footer {
  padding: 1.5rem 0 !important;
}

footer h6 {
  font-size: 1.125rem !important;
  margin-bottom: 0.5rem !important;
}

footer p {
  font-size: 0.75rem !important;
}

footer .btn-sm {
  font-size: 0.75rem !important;
  padding: 0.375rem 0.75rem !important;
}

footer .text-muted {
  font-size: 0.75rem !important;
}

footer hr {
  margin: 1.5rem 0 !important;
}

footer a {
  font-size: 0.75rem !important;
}