/* ============================================================
   BLUE WATER FISHING & CAR RENTAL — Premium Custom Styles
   Glassmorphism · Sea-Inspired Palette · Smooth Animations
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --ocean-deep: #0a1628;
  --ocean-mid: #0d2137;
  --ocean-teal: #0e8c8c;
  --ocean-teal-light: #14b8a6;
  --ocean-sky: #38bdf8;
  --ocean-foam: #e0f2fe;
  --coral-accent: #f97316;
  --gold-accent: #f59e0b;
  --success-green: #22c55e;
  --danger-red: #ef4444;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-bg-strong: rgba(255, 255, 255, 0.14);
  --glass-bg-card: rgba(10, 22, 40, 0.75);
  --card-radius: 1.5rem;
  --card-radius-sm: 1rem;
  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-glow: 0 0 30px rgba(14, 140, 140, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--ocean-deep);
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Selection --- */
::selection {
  background: var(--ocean-teal);
  color: #fff;
}

/* --- Glassmorphism Utility Classes --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-smooth);
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1.5rem;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ocean-foam), var(--ocean-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ocean-teal-light);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.nav-link:hover {
  color: #e2e8f0;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: linear-gradient(135deg, var(--ocean-teal), var(--ocean-teal-light));
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(14, 140, 140, 0.3);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 140, 140, 0.45);
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: transparent;
  color: #e2e8f0;
  font-weight: 600;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-outline:hover {
  border-color: var(--ocean-teal-light);
  background: rgba(20, 184, 166, 0.1);
}

/* --- Hero Section Background --- */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-boat .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(13, 33, 55, 0.5) 40%,
    rgba(14, 140, 140, 0.15) 70%,
    rgba(10, 22, 40, 0.65) 100%
  );
}

.hero-car .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.9) 0%,
    rgba(13, 33, 55, 0.55) 40%,
    rgba(249, 115, 22, 0.1) 70%,
    rgba(10, 22, 40, 0.7) 100%
  );
}

/* --- Hero Card --- */
.hero-card {
  position: relative;
  z-index: 10;
}

.hero-info-card {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* --- Unified Hero Card (text + carousel in one) --- */
.hero-unified-card {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-unified-text {
  padding: 3rem 2.5rem;
}

.hero-info-card h2,
.hero-unified-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--ocean-foam));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-info-card .subhead,
.hero-unified-text .subhead {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-info-card .features-list,
.hero-unified-text .features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-info-card .features-list li,
.hero-unified-text .features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.hero-info-card .features-list li .check-icon,
.hero-unified-text .features-list li .check-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-teal-light);
  font-size: 0.8rem;
}

/* --- Image Carousel Card --- */
.carousel-card {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  z-index: 5;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
  left: 0.75rem;
}

.carousel-nav-btn.next {
  right: 0.75rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.carousel-dot.active {
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  transform: scale(1.25);
}

/* --- Status Badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-badge.available {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.booked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-dot.green {
  background: #22c55e;
  animation: pulse-green 2s infinite;
}

.pulse-dot.red {
  background: #ef4444;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* --- Quick Filter Tabs --- */
.filter-tab {
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #94a3b8;
}

.filter-tab.active {
  background: var(--ocean-teal);
  color: #fff;
  border-color: var(--ocean-teal);
  box-shadow: 0 4px 15px rgba(14, 140, 140, 0.3);
}

.filter-tab:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.3);
  color: #e2e8f0;
}

/* --- Booking Form --- */
.booking-section {
  background: linear-gradient(180deg, var(--ocean-mid), var(--ocean-deep));
  position: relative;
}

.booking-card {
  background: rgba(13, 33, 55, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevated);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all var(--transition-smooth);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--ocean-teal-light);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
  color: #64748b;
}

.form-select option {
  background: var(--ocean-mid);
  color: #e2e8f0;
}

/* --- Payment Policy Badge --- */
.payment-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1.5px solid rgba(34, 197, 94, 0.25);
  border-radius: 0.85rem;
  color: #4ade80;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.payment-badge .icon {
  font-size: 1.2rem;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
}

.faq-question .arrow {
  transition: transform var(--transition-smooth);
  font-size: 0.8rem;
  color: var(--ocean-teal-light);
  min-width: 24px;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: rgba(6, 14, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--ocean-foam), var(--ocean-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 2000;
  padding: 5rem 2rem 2rem;
  transition: right var(--transition-smooth);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition-smooth);
}

.mobile-menu a:hover {
  color: var(--ocean-teal-light);
}

.mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Toast Notifications --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  padding: 1rem 1.5rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 400px;
}

.toast.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Confirmation Block --- */
.confirmation-block {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--card-radius-sm);
  padding: 1.5rem;
  animation: fadeIn 0.4s ease;
}

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

/* --- Admin Specific --- */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.status-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.confirmed {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-pill.completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pill.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  margin-right: 0.35rem;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ocean-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Scroll Lock Transition (Boat → Car → Fleet) --- */
.scroll-lock-wrapper {
  position: relative;
  height: 300vh;
}

.pinned-section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  will-change: transform;
}

.boat-pinned {
  z-index: 1;
}

.car-sliding {
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.2s ease-out;
}

.fleet-sliding {
  transform: translateY(200%);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-info-card h2 {
    font-size: 1.65rem;
  }
  .hero-info-card {
    padding: 1.75rem 1.25rem;
  }
  .booking-card {
    padding: 1.5rem;
  }
  .navbar-brand {
    font-size: 1rem;
  }
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Responsive footer */
  footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
  footer .footer-grid > div:first-child > div:first-child {
    justify-content: center;
  }
  footer .footer-grid > div:last-child {
    padding-left: 0 !important;
  }
  footer .footer-grid > div:last-child a {
    justify-content: center;
  }

  /* Responsive scroll lock */
  .scroll-lock-wrapper {
    height: auto;
  }
  .pinned-section {
    position: relative;
    height: auto;
    min-height: 100vh;
  }
  .car-sliding {
    transform: none !important;
  }
  .fleet-sliding {
    transform: none !important;
    opacity: 1 !important;
  }
}
