@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #0a0a0a;
  --text-color: #f5f5f5;
  --primary-accent: #ffffff;
  --secondary-accent: #888888;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(10, 10, 10, 0.5);
  --glass-border: rgba(255, 255, 255, 0.05);

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Syne', sans-serif;
  
  --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

p {
  color: var(--secondary-accent);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--secondary-accent);
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--secondary-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary-accent);
  color: #000;
  border: 1px solid var(--primary-accent);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d0d0d0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-fast);
}

.btn-primary:hover::before {
  transform: scaleY(1);
}

.btn-outline {
  background: transparent;
  color: var(--primary-accent);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-accent);
  color: var(--bg-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: padding var(--transition-fast), background var(--transition-fast), border-bottom var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1.2rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--primary-accent);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--primary-accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Nav Actions (Sign In + Hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#navLoginBtn {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

#navLoginBtn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* Image Utilities */
.img-reveal {
  overflow: hidden;
  position: relative;
  background: #111;
  border-radius: 4px;
}

.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #000;
  overflow: hidden;
}

.hero-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.video-overlay {
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.5) 40%, rgba(10,10,10,0.2) 100%);
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.sound-btn {
  padding: 1.2rem 2rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-content p {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  margin-bottom: 2.5rem;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.85);
}

/* Grid Layout */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.trip-card {
  display: block;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trip-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
}

.trip-image {
  height: 400px;
}

.trip-info {
  padding: 2.5rem;
}

.trip-duration {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-accent);
  display: block;
  margin-bottom: 0.8rem;
}

.trip-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.trip-price {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 500;
}

@media (max-width: 768px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Trip Page Layout */
.trip-hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}

.trip-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.trip-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.trip-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.1) 100%);
}

.trip-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.trip-meta {
  color: var(--secondary-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.trip-tagline {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

.trip-main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.trip-section {
  margin-bottom: 5rem;
}

.trip-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trip-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7px;
  width: 1px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--primary-accent);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.gallery-item {
  height: 300px;
  border-radius: 8px;
}

/* Booking Sidebar */
.booking-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.booking-card {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

.price-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.price-label {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary-accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-value {
  font-size: 2.5rem;
}

.price-suffix {
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary-accent);
}

.booking-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.booking-details {
  margin-bottom: 2rem;
}

.w-100 {
  width: 100%;
}

.booking-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--secondary-accent);
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .trip-main-layout {
    grid-template-columns: 1fr;
  }
}

/* --- UNI CAPTAIN PAGE STYLES --- */

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(10px);
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.4);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 2rem;
  display: inline-block;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 50%;
}

.benefit-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-accent);
}

.benefit-card p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.premium-list {
  list-style: none;
  padding: 0;
}

.premium-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
}

.premium-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-accent);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

/* Form Styles */
.form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-color);
  padding: 4rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.urgency-line {
  color: var(--secondary-accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: inline-block;
}

.premium-form {
  margin-top: 3rem;
}

.form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-accent);
  margin-bottom: 0.8rem;
}

.input-field, .textarea-field {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.input-field:focus, .textarea-field:focus {
  border-bottom-color: var(--primary-accent);
}

.input-field::placeholder, .textarea-field::placeholder {
  color: rgba(255,255,255,0.2);
}

.textarea-field {
  resize: vertical;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 2rem;
  }
  .form-wrapper {
    padding: 2rem;
  }
}

/* --- INTERNAL/LEGAL PAGES STYLES --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 5% 4rem;
}

.legal-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  color: var(--primary-accent);
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-accent);
}

.legal-content p, .legal-content li {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.footer-links-group h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-group a {
  color: var(--secondary-accent);
  font-size: 0.9rem;
}

.footer-links-group a:hover {
  color: var(--primary-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--secondary-accent);
}

/* --- SIDE DRAWER STYLES --- */
.menu-toggle {
  background: transparent;
  border: none;
  color: var(--primary-accent);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

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

.side-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 3rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.side-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header h2 {
  font-size: 1.8rem;
  margin: 0;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--primary-accent);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.drawer-close:hover {
  transform: rotate(90deg);
  color: var(--secondary-accent);
}

.drawer-section h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
}

.drawer-input, .drawer-select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.drawer-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.drawer-select option {
  background: var(--bg-color);
  color: var(--text-color);
}

.drawer-input:focus, .drawer-select:focus {
  border-color: var(--primary-accent);
}

.drawer-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.drawer-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-trip-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.drawer-trip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.drawer-trip-img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

.drawer-trip-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.drawer-trip-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.drawer-trip-price {
  font-size: 0.95rem;
  color: var(--secondary-accent);
  margin-bottom: 0.5rem;
}

.drawer-trip-view {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: flex-start;
}

.drawer-account-links {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-account-links a {
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-account-links a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.drawer-account-links a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.drawer-account-links .highlight-link {
  color: #000;
  background: var(--primary-accent);
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  margin-top: 1rem;
}

.drawer-account-links .highlight-link::after {
  display: none;
}

.drawer-account-links .highlight-link:hover {
  background: #d0d0d0;
  color: #000;
}

.no-results {
  color: var(--secondary-accent);
  font-style: italic;
  font-size: 0.95rem;
}

/* --- GLOBE INTRO STYLES --- */
body.intro-active {
  overflow: hidden;
  height: 100vh;
}

.globe-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.5s;
}

.globe-intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#globe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  z-index: 2;
}

#globe-container:active {
  cursor: grabbing;
}

.globe-overlay-content {
  position: absolute;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.globe-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.globe-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Cinematic Sun Rays */
.sun-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200vw;
  height: 200vh;
  background: 
      radial-gradient(circle, rgba(255,245,210,0.8) 0%, rgba(255,210,120,0.4) 15%, rgba(255,180,50,0.1) 35%, rgba(0,0,0,0) 60%),
      conic-gradient(from 0deg, 
        transparent 0deg, rgba(255,220,150,0.15) 15deg, transparent 30deg, 
        transparent 45deg, rgba(255,220,150,0.15) 60deg, transparent 75deg, 
        transparent 100deg, rgba(255,220,150,0.08) 120deg, transparent 140deg, 
        transparent 180deg, rgba(255,220,150,0.2) 195deg, transparent 210deg, 
        transparent 250deg, rgba(255,220,150,0.1) 270deg, transparent 290deg, 
        transparent 320deg, rgba(255,220,150,0.2) 340deg, transparent 360deg);
  z-index: 1;
  pointer-events: none;
  animation: rotateRays 80s linear infinite;
  opacity: 0.35;
}

@keyframes rotateRays {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- UPCOMING TRIPS --- */
.upcoming-trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.upcoming-card {
  background: var(--bg-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.upcoming-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.upcoming-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #111;
}

.upcoming-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.upcoming-card:hover .upcoming-img-wrapper img {
  transform: scale(1.08);
}

.upcoming-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.upcoming-duration {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-accent);
  margin-bottom: 0.8rem;
}

.upcoming-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.upcoming-price {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.upcoming-info .btn-outline {
  margin-top: auto;
  width: 100%;
}

/* --- FEATURES GRID (WHY US) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}

.feature-card {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-accent);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.feature-card:hover .feature-icon {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--secondary-accent);
  line-height: 1.6;
}

/* --- COMMUNITY GALLERY (GRID) --- */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.masonry-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.masonry-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition-fast);
  filter: grayscale(30%);
}

.masonry-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* --- URGENCY BADGE --- */
.urgency-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(220, 50, 50, 0.9);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(220, 50, 50, 0.3);
  animation: pulse-badge 2.5s infinite;
}

.urgency-badge.inline {
  position: relative;
  top: 0;
  right: 0;
  display: inline-block;
  margin-bottom: 1.5rem;
  width: fit-content;
}

@keyframes pulse-badge {
  0% { box-shadow: 0 0 0 0 rgba(220, 50, 50, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(220, 50, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 50, 50, 0); }
}

/* --- BOOKING MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #111;
  border: 1px solid rgba(255,255,255, 0.1);
  padding: 2.5rem;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-medium);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--secondary-accent);
  transition: color var(--transition-fast);
  line-height: 1;
}

.close-modal:hover {
  color: #fff;
}

.booking-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-accent);
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-accent);
}

.booking-message {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 500;
}
.booking-message.success {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.booking-message.error {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ==============================================
   RESPONSIVE DESIGN - TABLET (max-width: 768px)
   ============================================== */
@media (max-width: 768px) {

  /* --- Navbar --- */
  .navbar {
    padding: 1.2rem 5% !important;
    flex-wrap: nowrap !important;
  }

  .navbar .nav-links {
    display: none !important;
  }

  .navbar .logo {
    font-size: 1.4rem;
    flex: unset !important;
  }

  .nav-actions {
    flex: unset !important;
    gap: 0.5rem !important;
  }

  #navLoginBtn {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.8rem !important;
  }

  /* --- Sections --- */
  .section {
    padding: 5rem 0;
  }

  /* --- Hero Section --- */
  .hero {
    height: 85vh;
    padding-top: 4rem;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 0.85rem;
  }

  .sound-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
  }

  /* --- Trip Cards Grid --- */
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trip-image {
    height: 280px;
  }

  .trip-info {
    padding: 1.8rem;
  }

  .trip-info h3 {
    font-size: 1.6rem;
  }

  /* --- Upcoming Trips --- */
  .upcoming-trips-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .upcoming-info {
    padding: 1.8rem;
  }

  /* --- Features Grid (Why Us) --- */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* --- Gallery Masonry --- */
  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .masonry-item {
    aspect-ratio: 1 / 1;
  }

  /* --- Trip Detail Page --- */
  .trip-hero {
    height: 50vh;
    padding-bottom: 3rem;
  }

  .trip-hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .trip-main-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .trip-section {
    margin-bottom: 3rem;
  }

  .trip-section h2 {
    font-size: 1.6rem;
  }

  /* trip.html inline grid override */
  .content-container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .trip-header-dynamic {
    height: 45vh !important;
  }

  #dtTitle {
    font-size: 2.5rem !important;
  }

  .booking-sidebar {
    position: relative;
    top: 0;
  }

  /* --- Gallery Grid (Triund) --- */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    height: 220px;
  }

  /* --- Booking Card --- */
  .booking-card {
    padding: 2rem;
  }

  .price-value {
    font-size: 2rem;
  }

  /* --- Benefits Grid (Uni Captain) --- */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .benefit-card {
    padding: 2rem 1.5rem;
  }

  /* --- Split Layout (Uni Captain) --- */
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* --- Form Wrapper --- */
  .form-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* --- Footer --- */
  .footer-content {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  footer {
    padding: 4rem 0 2rem;
  }

  /* --- Modal --- */
  .modal-content {
    padding: 2rem 1.5rem;
    width: 92%;
    border-radius: 12px;
  }

  /* --- Side Drawer --- */
  .side-drawer {
    width: 85vw;
    max-width: 85vw;
  }

  .drawer-filters {
    grid-template-columns: 1fr;
  }

  /* --- Legal Content --- */
  .legal-content {
    padding: 7rem 5% 3rem;
  }

  .legal-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .legal-content h2 {
    font-size: 1.4rem;
  }

  /* --- Globe Intro --- */
  .globe-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .globe-subtitle {
    font-size: 0.95rem;
  }

  /* --- Section Titles --- */
  h2 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  h3 {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }

  /* --- Urgency Badge --- */
  .urgency-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  /* --- CTA Section (Lead the Journey) --- */
  .section[style*="text-align: center"] h2 {
    font-size: 2rem !important;
  }
}

/* ==============================================
   RESPONSIVE DESIGN - MOBILE (max-width: 480px)
   ============================================== */
@media (max-width: 480px) {

  /* --- Sections --- */
  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 6%;
  }

  /* --- Hero --- */
  .hero {
    height: 80vh;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.9rem 1.6rem;
    font-size: 0.8rem;
  }

  /* --- Trip Cards --- */
  .trip-image {
    height: 220px;
  }

  .trip-info {
    padding: 1.5rem;
  }

  .trip-info h3 {
    font-size: 1.4rem;
  }

  /* --- Upcoming Cards --- */
  .upcoming-img-wrapper {
    height: 200px;
  }

  .upcoming-info {
    padding: 1.5rem;
  }

  .upcoming-title {
    font-size: 1.3rem;
  }

  .upcoming-price {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  /* --- Features Grid --- */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  /* --- Gallery Masonry --- */
  .gallery-masonry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .masonry-item {
    aspect-ratio: 4 / 3;
  }

  /* --- Trip Detail Page --- */
  .trip-hero {
    height: 40vh;
    padding-bottom: 2rem;
  }

  .trip-meta {
    font-size: 0.75rem;
  }

  .trip-tagline {
    font-size: 1rem;
  }

  .trip-main-layout {
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .trip-section {
    margin-bottom: 2rem;
  }

  .trip-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .trip-section p {
    font-size: 1rem;
  }

  .trip-header-dynamic {
    height: 35vh !important;
  }

  #dtTitle {
    font-size: 1.8rem !important;
  }

  .content-container {
    gap: 2rem !important;
  }

  /* --- Booking Card --- */
  .booking-card {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .price-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .price-value {
    font-size: 1.8rem;
  }

  /* --- Timeline --- */
  .timeline-content h3 {
    font-size: 1.1rem;
  }

  /* --- Benefits (Uni Captain) --- */
  .benefit-card {
    padding: 1.8rem 1.2rem;
  }

  .benefit-icon {
    font-size: 2.5rem;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .benefit-card h3 {
    font-size: 1.2rem;
  }

  /* --- Form --- */
  .form-wrapper {
    padding: 2rem 1.2rem;
    border-radius: 8px;
  }

  .input-field, .textarea-field {
    font-size: 0.9rem;
    padding: 0.8rem 0;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  /* --- Footer --- */
  footer {
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-brand .logo {
    font-size: 1.6rem;
  }

  .footer-links-group h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .footer-links-group a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1.5rem;
  }

  /* --- Legal Content --- */
  .legal-content {
    padding: 6rem 5% 2rem;
  }

  .legal-content p, .legal-content li {
    font-size: 0.95rem;
  }

  /* --- Modals --- */
  .modal-content {
    padding: 1.8rem 1.2rem;
    width: 95%;
    max-width: 95% !important;
  }

  .close-modal {
    top: 0.8rem;
    right: 1rem;
    font-size: 1.6rem;
  }

  /* --- Side Drawer --- */
  .side-drawer {
    width: 100vw;
    max-width: 100vw;
    padding: 2rem 1.5rem;
  }

  .drawer-header h2 {
    font-size: 1.4rem;
  }

  .drawer-trip-card {
    flex-direction: column;
    text-align: center;
  }

  .drawer-trip-img {
    width: 100%;
    height: 140px;
    border-radius: 8px;
  }

  /* --- Globe Intro --- */
  .globe-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .globe-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  /* --- Urgency Badge --- */
  .urgency-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    top: 1rem;
    right: 1rem;
  }

  /* --- Section Labels --- */
  .section-label {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }

  /* --- Price Box (trip.html) --- */
  .price-box {
    text-align: center;
  }

  .price-box .amount {
    font-size: 2rem;
  }
}
