@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up {
  transform: translateY(30px);
}

.bg-warm-gradient {
  background: linear-gradient(135deg, #F8FAFC 0%, #F7F3E9 100%);
}

.bg-pattern-curves {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 C 20 0, 50 0, 100 100' stroke='%232F7D73' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3C/svg%3E");
}

.bg-pattern-waves {
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 C 50 50, 150 150, 200 100' stroke='%23F4A261' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3Cpath d='M0 120 C 50 70, 150 170, 200 120' stroke='%232F7D73' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3C/svg%3E");
}

/* Glassmorphism */
.glass-surface {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-teal {
  background: rgba(47, 125, 115, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(47, 125, 115, 0.1);
}

/* Bento Grid Utilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
}

.bento-item {
  border-radius: 2rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 40px rgba(47, 125, 115, 0.08);
}

/* Shimmer Button */
.btn-shimmer {
  background: linear-gradient(90deg, #F4B400 0%, #D99A00 50%, #F4B400 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Typography Balance */
.text-balance {
  text-wrap: balance;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.is-expanded .accordion-content {
  max-height: 200px;
}

.accordion-item.is-expanded .accordion-icon {
  transform: rotate(180deg);
}

/* Header scroll effect */
#main-header.header-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E6ECEA;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Go to Top Button */
#go-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
}

#go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Cookie Consent Banner */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #FFFFFF;
  border-top: 2px solid #E6ECEA;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
  padding: 1.25rem 1.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

#cookie-consent-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 280px;
}

.cookie-consent-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #EAF4F1;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F4B400;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #5F6B6F;
}

.cookie-consent-title {
  font-weight: 700;
  color: #2E3A3A !important;
  margin-bottom: 0.25rem !important;
}

.cookie-link {
  color: #F4B400;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-link:hover {
  color: #1a5c52;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn:active {
  transform: translateY(0);
}

.cookie-btn-primary {
  background: #F4B400;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(47, 125, 115, 0.25);
}

.cookie-btn-primary:hover {
  background: #266359;
}

.cookie-btn-secondary {
  background: #F9FBFA;
  color: #2E3A3A;
  border: 1px solid #E6ECEA;
}

.cookie-btn-secondary:hover {
  background: #EAF4F1;
  border-color: #F4B400;
}

.cookie-btn-ghost {
  background: transparent;
  color: #F4B400;
}

.cookie-btn-ghost:hover {
  background: #EAF4F1;
}

.cookie-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #8FA3A0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.cookie-close-btn:hover {
  background: #F9FBFA;
  color: #2E3A3A;
}

/* Config Panel */
.cookie-config-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-config-panel.visible {
  max-height: 400px;
  padding-top: 1rem;
}

.cookie-config-inner {
  background: #F9FBFA;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #E6ECEA;
}

.cookie-config-title {
  font-weight: 700;
  color: #2E3A3A;
  margin: 0 0 1rem 0;
}

.cookie-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E6ECEA;
  cursor: pointer;
}

.cookie-config-item:last-of-type {
  border-bottom: none;
}

.cookie-config-item strong {
  color: #2E3A3A;
  font-size: 0.9375rem;
}

.cookie-config-item small {
  color: #8FA3A0;
  font-size: 0.8125rem;
}

.cookie-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #F4B400;
  cursor: pointer;
}

.cookie-config-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* Cookie Toggle Switches */
.toggle-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: #D1D9D6;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}

.toggle-switch.checked {
  background: #F4B400;
}

.toggle-switch.checked::after {
  transform: translateX(1.25rem);
}

.toggle-switch.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-switch.disabled.checked {
  background: #8FA3A0;
}

.toggle-switch:focus-visible {
  outline: 2px solid #F4B400;
  outline-offset: 2px;
}

/* Cookie Status in Footer */
#cookie-status-text {
  font-size: 0.75rem;
}

.cookie-know-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #F4B400;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie-know-more:hover {
  color: #1a5c52;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-actions {
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* Home trips slider: keep native horizontal scrolling and snap, but hide the
   native scrollbar. The dots and the prev/next buttons are the affordance. */
.trips-slider {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trips-slider::-webkit-scrollbar {
  display: none;
}

/* Dots are created by trips-slider.js, so they cannot carry Tailwind classes.
   Navy marks the active page; the neutral track matches the card borders. */
.trips-slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.trips-slider-dot[aria-current="true"] {
  background: #102b50;
  transform: scale(1.25);
}

