:root {
  --navy: #082e45;
  --navy-deep: #041f30;
  --blue: #0e7892;
  --aqua: #32b5b0;
  --cream: #f5f1e8;
  --paper: #fffefa;
  --ink: #18313d;
  --muted: #5f727a;
  --coral: #e85c3f;
  --line: rgba(8, 46, 69, .13);
  --shadow: 0 18px 45px rgba(5, 38, 56, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  background: rgba(4, 31, 48, .97);
  box-shadow: 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.site-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; color: white; line-height: 1; text-decoration: none; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 500; }
.brand span { margin-top: 7px; color: #9cccd3; font-size: .62rem; letter-spacing: .17em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a { color: white; font-size: .9rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: #8de1dc; }
.main-nav .book-link { padding: 11px 18px; border-radius: 999px; background: var(--coral); }
.main-nav .book-link:hover, .main-nav .book-link:focus-visible { color: white; background: #ca432b; }
.menu-toggle { display: none; border: 0; color: white; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }

.page-hero {
  position: relative;
  min-height: 335px;
  display: grid;
  align-items: end;
  color: white;
  background: var(--navy-deep);
  overflow: hidden;
}
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3,27,41,.96), rgba(3,27,41,.76) 52%, rgba(3,27,41,.34)),
    url("/modern-home-assets/boat.jpg") center 49%/cover no-repeat;
}
.page-hero::after {
  position: absolute;
  right: -8%;
  bottom: -128px;
  width: 620px;
  height: 180px;
  border-radius: 50%;
  background: var(--cream);
  content: "";
  transform: rotate(-4deg);
}
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 70px; }
.eyebrow { margin: 0 0 10px; color: #8de1dc; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.page-hero h1 { max-width: 830px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 6vw, 4.8rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }

.page-main { padding: 58px 0 90px; }
.legacy-content {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(8,46,69,.08);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.legacy-content, .legacy-content font { font-family: inherit !important; }
.legacy-content font { color: inherit !important; font-size: inherit; }
.legacy-content font[size="6"],
.legacy-content .style4,
.legacy-content .style5,
.legacy-content .style12,
.legacy-content .style15 {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--navy) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  font-weight: 500 !important;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.legacy-content p { margin: 0 0 1.15em; }
.legacy-content ul, .legacy-content ol { padding-left: 1.35rem; }
.legacy-content li { margin: .45rem 0; }
.legacy-content hr { height: 1px; margin: 28px 0; border: 0; background: var(--line); }
.legacy-content blockquote { margin: 18px 0; padding: 18px 22px; border-left: 4px solid var(--aqua); background: #edf7f6; }
.legacy-content iframe { display: block; max-width: 100%; margin: 20px auto; border: 0; border-radius: 16px; }
.legacy-content > center { display: block; }

.legacy-content table {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  margin: 18px 0 28px;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  color: var(--ink);
  background: transparent;
}
.legacy-content table td,
.legacy-content table th {
  width: auto !important;
  height: auto !important;
  padding: 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink);
  background: white !important;
  vertical-align: top;
}
.legacy-content table tr:first-child td:first-child { border-top-left-radius: 14px; }
.legacy-content table tr:first-child td:last-child { border-top-right-radius: 14px; }
.legacy-content table tr:last-child td:first-child { border-bottom-left-radius: 14px; }
.legacy-content table tr:last-child td:last-child { border-bottom-right-radius: 14px; }
.legacy-content table tr:last-child td { border-bottom: 0 !important; }
.legacy-content table[id="table2"] { border: 1px solid var(--line) !important; border-radius: 16px; overflow: hidden; }
.legacy-content table[width="570"] td,
.legacy-content table[width="581"] td,
.legacy-content table[width="562"] td,
.legacy-content table[width="563"] td {
  background: #f0f7f7 !important;
}
.legacy-content table[width="570"]:first-of-type td { padding: 12px 8px !important; text-align: center; font-weight: 800; }
.legacy-content img[align="left"] { float: left; margin: 5px 24px 16px 0; }
.legacy-content img[align="right"] { float: right; margin: 5px 0 16px 24px; }
.legacy-content img[border="1"] { border: 0 !important; border-radius: 12px; }
.legacy-content a img { transition: transform .2s, opacity .2s; }
.legacy-content a:hover img { opacity: .9; transform: translateY(-2px); }
.legacy-content strong { color: var(--navy); }

.page--trips .legacy-content table[id="table2"] > tbody > tr > td { padding: 26px !important; }
.page--fish .legacy-content table img,
.page--tour .legacy-content table img,
.page--about .legacy-content table img { border-radius: 12px; }
.page--contact .legacy-content .style7 { color: var(--navy); font-size: 1.35rem; font-weight: 800; }
.photo-viewer { text-align: center; }
.photo-viewer > img { width: min(760px, 100%); border-radius: 16px; box-shadow: var(--shadow); }
.photo-back { display: inline-block; margin-top: 24px; font-weight: 800; }

/* Modern photo gallery */
.page--gallery .legacy-content { width: min(1100px, 100%); }
.page--gallery .legacy-content > p:first-child { display: none; }
.page--gallery iframe { width: min(760px, 100%); aspect-ratio: 16/9; height: auto; }
#photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100% !important;
  margin: 24px auto 10px;
}
#photo-gallery-grid tbody, #photo-gallery-grid tr { display: contents; }
#photo-gallery-grid td {
  width: auto !important;
  height: 185px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #dcebec !important;
  box-shadow: 0 8px 22px rgba(5,38,56,.12);
  overflow: hidden;
}
#photo-gallery-grid td:empty, #photo-gallery-grid .gallery-spacer { display: none; }
#photo-gallery-grid a, #photo-gallery-grid img { display: block; width: 100%; height: 100%; }
#photo-gallery-grid img { object-fit: cover; transition: transform .2s, filter .2s; }
#photo-gallery-grid a:hover img, #photo-gallery-grid a:focus img { transform: scale(1.045); filter: brightness(1.06); }
#photo-gallery-grid a:focus { outline: 3px solid var(--coral); outline-offset: 3px; }
body.lightbox-open { overflow: hidden; }
.photo-lightbox[hidden] { display: none; }
.photo-lightbox { position: fixed; z-index: 2000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 54px 70px 36px; background: rgba(0,20,29,.95); }
.photo-lightbox figure { max-width: 100%; max-height: 100%; margin: 0; text-align: center; }
.photo-lightbox figure img { display: block; max-width: 100%; max-height: calc(100vh - 125px); margin: 0 auto; border: 5px solid white; box-shadow: 0 10px 40px rgba(0,0,0,.55); }
.photo-lightbox figcaption { margin-top: 12px; color: white; font-weight: 800; }
.lightbox-button { position: absolute; border: 0; color: white; background: var(--coral); cursor: pointer; }
.lightbox-button:hover, .lightbox-button:focus { background: #c7442d; outline: 3px solid white; }
.lightbox-close { top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; }
.lightbox-previous, .lightbox-next { top: 50%; width: 48px; height: 64px; margin-top: -32px; border-radius: 8px; font-size: 34px; }
.lightbox-previous { left: 14px; }
.lightbox-next { right: 14px; }

/* Enhanced editorial photo gallery */
.gallery-main { padding: 70px 0 92px; }
.gallery-intro { display: grid; grid-template-columns: 1fr .85fr; gap: 60px; align-items: end; margin-bottom: 38px; }
.gallery-intro h2, .gallery-video-card h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,4vw,3.35rem); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.gallery-intro > p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.gallery-kicker { margin: 0 0 10px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.enhanced-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-flow: dense; grid-auto-rows: 190px; gap: 14px; }
.gallery-card { position: relative; display: block; min-width: 0; border-radius: 16px; background: #d7e8ea; box-shadow: 0 8px 25px rgba(5,38,56,.1); overflow: hidden; }
.gallery-card:nth-child(12n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-card:nth-child(12n + 6) { grid-column: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; }
.gallery-card span { position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; color: white; background: rgba(4,31,48,.82); font-size: .72rem; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.gallery-card:hover img, .gallery-card:focus img { transform: scale(1.045); filter: brightness(.9); }
.gallery-card:hover span, .gallery-card:focus span { opacity: 1; transform: none; }
.gallery-card:focus { outline: 4px solid var(--coral); outline-offset: 3px; }
.gallery-video-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 45px; align-items: center; margin-top: 70px; padding: clamp(25px,4vw,45px); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.gallery-video-card p:not(.gallery-kicker) { color: var(--muted); }
.gallery-video-card iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 16px; }
.enhanced-lightbox[hidden] { display: none; }
.enhanced-lightbox { position: fixed; z-index: 2500; inset: 0; display: flex; align-items: center; justify-content: center; padding: 62px 84px 45px; background: rgba(2,18,28,.96); }
.enhanced-lightbox figure { max-width: 100%; max-height: 100%; margin: 0; text-align: center; }
.enhanced-lightbox figure img { display: block; max-width: 100%; max-height: calc(100vh - 145px); margin: 0 auto; border-radius: 10px; box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.enhanced-lightbox figcaption { margin-top: 14px; color: #dcebed; font-size: .9rem; font-weight: 800; }
.enhanced-lightbox button { border: 0; color: white; background: var(--coral); cursor: pointer; }
.enhanced-lightbox button:hover, .enhanced-lightbox button:focus { background: #c7442d; outline: 3px solid white; }
.enhanced-lightbox-close { position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; }
.enhanced-lightbox-nav { position: absolute; top: 50%; width: 52px; height: 70px; margin-top: -35px; border-radius: 10px; font-size: 38px; }
.enhanced-lightbox-prev { left: 18px; }
.enhanced-lightbox-next { right: 18px; }

.site-cta { padding: 62px 0; color: white; background: var(--coral); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-cta h2 { margin: 0 0 7px; font-family: Georgia, serif; font-size: clamp(2rem,4vw,3rem); font-weight: 500; line-height: 1.1; }
.site-cta p { margin: 0; color: #fff0eb; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; }
.site-cta .button { flex: none; color: white; border-color: rgba(255,255,255,.55); }

.site-footer { padding: 55px 0 30px; color: #c4d6da; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 45px; }
.site-footer h3 { margin: 0 0 12px; color: white; line-height: 1.2; }
.site-footer p { margin-top: 0; }
.site-footer a { color: #c4d6da; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-links { display: grid; gap: 8px; }
.fine-print { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #829da4; font-size: .78rem; }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; inset: 76px 0 auto; display: none; padding: 22px 20px 28px; flex-direction: column; align-items: stretch; gap: 16px; background: var(--navy-deep); }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .page-hero::before { background-position: 62% center; }
  .gallery-intro, .gallery-video-card { grid-template-columns: 1fr; gap: 24px; }
  .enhanced-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .page-hero { min-height: 285px; }
  .page-hero .wrap { padding-bottom: 58px; }
  .page-main { padding: 34px 0 62px; }
  .legacy-content { padding: 24px 18px; border-radius: 16px; }
  .legacy-content table, .legacy-content tbody, .legacy-content tr, .legacy-content td { max-width: 100% !important; }
  .legacy-content td { padding: 15px !important; }
  .legacy-content img[align="left"], .legacy-content img[align="right"] { float: none; display: block; margin: 12px auto 20px; }
  .legacy-content iframe { width: 100%; }
  .legacy-content table[width="570"]:first-of-type,
  .legacy-content table[width="570"]:first-of-type tbody,
  .legacy-content table[width="570"]:first-of-type tr { display: grid; }
  #photo-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #photo-gallery-grid td { height: 145px !important; padding: 0 !important; }
  .photo-lightbox { padding: 62px 16px 74px; }
  .lightbox-previous, .lightbox-next { top: auto; bottom: 12px; width: 76px; height: 48px; margin: 0; }
  .lightbox-previous { left: calc(50% - 86px); }
  .lightbox-next { right: calc(50% - 86px); }
  .gallery-main { padding: 48px 0 68px; }
  .gallery-intro { margin-bottom: 28px; }
  .enhanced-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 145px; gap: 10px; }
  .gallery-card:nth-child(12n + 1) { grid-column: span 2; grid-row: span 2; }
  .gallery-card:nth-child(12n + 6) { grid-column: span 1; }
  .gallery-card span { display: none; }
  .gallery-video-card { margin-top: 48px; padding: 22px; }
  .enhanced-lightbox { padding: 65px 14px 82px; }
  .enhanced-lightbox-nav { top: auto; bottom: 16px; width: 78px; height: 50px; margin: 0; }
  .enhanced-lightbox-prev { left: calc(50% - 86px); }
  .enhanced-lightbox-next { right: calc(50% - 86px); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .site-cta .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
