/* Swashbuckling.io - Luxury Yacht Charter Styles */
:root {
  --navy: #0a1628;
  --navy-light: #132337;
  --gold: #c9a227;
  --gold-hover: #e0b83d;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray: #6b7280;
  --dark-text: #1f2937;
  --border: #e5e7eb;
  --success: #10b981;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.15);
  --transition: all 0.3s ease;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 18px 0;
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 12px 0;
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--gold-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  touch-action: pan-y;
}

.hero-slides {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.hero-slides.is-dragging {
  transition: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10,22,40,0.35);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}

.hero-nav:hover {
  background: rgba(10,22,40,0.65);
  border-color: rgba(255,255,255,0.7);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.hero-dot.is-active {
  background: var(--gold, #c9a227);
  border-color: var(--gold, #c9a227);
  transform: scale(1.15);
}

.hero-dot:hover {
  border-color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.78) 0%, rgba(10,22,40,0.15) 40%, rgba(10,22,40,0.05) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px)) 0;
  display: flex;
  flex-direction: column;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px 24px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-bottom h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.spec-pill {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.spec-pill strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.overview-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
}

.overview-specs .spec-pill {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--dark-text);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.overview-specs .spec-pill strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Section common */
section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 640px;
}

/* Overview */
.overview {
  background: var(--off-white);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.overview-text p {
  margin-bottom: 18px;
  color: #374151;
}

.features-list {
  margin-top: 24px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.features-list li::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.overview-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

/* Accommodation */
.accommodation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.cabin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

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

.cabin-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cabin-body {
  padding: 20px;
}

.cabin-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.cabin-body p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Amenities */
.amenities {
  background: var(--navy);
  color: var(--white);
}

.amenities .section-title {
  color: var(--white);
}

.amenities .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.amenity-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.amenity-item:hover {
  background: rgba(201,162,39,0.15);
  border-color: var(--gold);
}

.amenity-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--gold);
}

.amenity-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Specs */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.specs-table th,
.specs-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  width: 40%;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: #f9fafb;
}

/* Rates */
.rates {
  background: var(--off-white);
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.rate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  text-align: center;
}

.rate-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.rate-card .season {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.rate-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.rate-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}

.rate-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 12px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* CTA / Contact */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2d4a 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}

.cta h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta p {
  max-width: 520px;
  margin: 0 auto 32px;
  opacity: 0.85;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}

.cta-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  flex: 1 1 100%;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.cta-form select {
  appearance: none;
  cursor: pointer;
}

.cta-form select option {
  background: var(--navy);
  color: var(--white);
}

/* Footer */
.footer {
  background: #060d18;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-size: 1.4rem;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  max-width: 280px;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

@media (max-width: 600px) {
  .hero {
    height: 100svh;
    min-height: 480px;
    max-height: 100svh;
  }

  .hero-slide.is-mobile-contain {
    background-size: contain;
    background-color: #0a3a6b;
  }

  .hero-nav {
    display: none;
  }

  .hero-dots {
    margin: 0 auto 20px;
    gap: 7px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-content {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-bottom h1,
  .hero h1 {
    font-size: 1.35rem;
    letter-spacing: 0.06em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .specs-table th,
  .specs-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* Availability Calendar */
.availability {
  background: var(--off-white);
  padding: 80px 0;
}

.avail-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.avail-calendar-card,
.avail-result-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--navy);
  line-height: 1;
  transition: var(--transition);
}

.cal-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--dark-text);
  transition: var(--transition);
  position: relative;
}

.cal-day:hover:not(.empty):not(.booked):not(.past) {
  background: rgba(201, 162, 39, 0.15);
}

.cal-day.empty {
  cursor: default;
}

.cal-day.past {
  color: #ccc;
  cursor: default;
}

.cal-day.booked {
  background: #fee2e2;
  color: #b91c1c;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-day.available {
  background: #ecfdf5;
  color: #047857;
}

.cal-day.selected,
.cal-day.in-range {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.cal-day.range-start,
.cal-day.range-end {
  background: var(--navy);
  color: var(--white);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--gray);
}

.cal-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.leg-available { background: #ecfdf5; border: 1px solid #047857; }
.leg-booked { background: #fee2e2; border: 1px solid #b91c1c; }
.leg-selected { background: var(--gold); }

.avail-result-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.avail-hint {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.avail-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.avail-dates label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 6px;
}

.avail-date-box {
  padding: 12px 14px;
  background: var(--off-white);
  border-radius: 4px;
  font-weight: 600;
  color: var(--navy);
  min-height: 46px;
  display: flex;
  align-items: center;
}

.avail-status {
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  background: var(--off-white);
  color: var(--gray);
}

.avail-status.is-available {
  background: #ecfdf5;
  color: #047857;
}

.avail-status.is-unavailable {
  background: #fee2e2;
  color: #b91c1c;
}

.avail-status.is-partial {
  background: #fef3c7;
  color: #b45309;
}

@media (max-width: 800px) {
  .avail-wrapper {
    grid-template-columns: 1fr;
  }
}


