/********** Ocean Odyssey theme — ported from the legacy oceanodysseyfishing.com
 * template (HTML-Codex "Charity" family) and recolored from its cyan palette
 * to the site's ocean palette. Loaded instead of the old "Active" main.css. **********/

:root {
  --primary: #1a8fd1;      /* ocean-blue accent (was cyan #0fdfff) */
  --secondary: #e9f2f8;    /* pale ocean (was cream #FFF0E6) */
  --light: #eef4f9;        /* light section bg (was #F8F8F9) */
  --dark: #0b2236;         /* deep navy (was teal-black #001D23) */
  --heading: #0b3d5b;      /* heading navy */

  /* Fonts (match the legacy site) */
  --oo-body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --oo-head-font: "Saira", "Inter", sans-serif;

  /* Bring Bootstrap's own primary utilities onto the ocean accent so
     .text-primary / .bg-primary / .border-primary / .btn-primary match. */
  --bs-primary: #1a8fd1;
  --bs-primary-rgb: 26, 143, 209;
}

body { font-family: var(--oo-body-font); color: #2b3a45; }
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--oo-head-font);
  color: var(--heading);
}

/* --- Bootstrap primary utility overrides (ocean accent) --- */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important; }
.border-primary { border-color: var(--primary) !important; }
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #146fa5;
  --bs-btn-hover-border-color: #146fa5;
  --bs-btn-active-bg: #146fa5;
}
a { color: var(--primary); }

/* --- Legacy helper classes, recolored --- */
.t-primary { color: var(--primary); }
.td-primary { color: var(--heading); }
.t-b-d-primary { border-color: var(--primary) !important; color: #000; }

.btn-t-blue {
  color: #fff; background: var(--heading);
  border-color: var(--heading);
  font-weight: bold; letter-spacing: 0.05em; border-radius: 8px; padding: 5px;
}
.btn-t-blue:hover, .btn-t-blue:active, .btn-t-blue:focus, .btn-t-blue.active {
  color: #fff; background: var(--primary); border-color: var(--primary);
}
.btn-t-primary {
  font-weight: bold; color: #fff; background: var(--primary);
  letter-spacing: 0.05em; border-color: var(--primary);
  border-radius: 8px; padding: 5px;
}
.btn-t-primary:hover, .btn-t-primary:active, .btn-t-primary:focus, .btn-t-primary.active {
  color: #fff; background: var(--heading); border-color: var(--heading);
}
.btn-t-primary-outline {
  color: #fff; border-color: #fff;
  font-weight: bold; letter-spacing: 0.05em; border-radius: 8px; padding: 5px;
}
.btn-t-primary-outline:hover, .btn-t-primary-outline:active,
.btn-t-primary-outline:focus, .btn-t-primary-outline.active {
  color: var(--heading); background: #fff; border-color: #fff;
}
.pill-t {
  color: var(--heading); background-color: var(--secondary);
  font-weight: bold; letter-spacing: 0.05em;
  border: 2px solid rgba(26, 143, 209, 0.5); border-radius: 12px; padding: 5px;
}

.back-to-top { position: fixed; display: none; right: 30px; bottom: 30px; z-index: 99; }

/*** Spinner ***/
#spinner {
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s; z-index: 99999;
}
#spinner.show {
  transition: opacity .5s ease-out, visibility 0s linear 0s;
  visibility: visible; opacity: 1;
}

/*** Buttons ***/
.btn { font-weight: 500; transition: .5s; }
.btn.btn-primary, .btn.btn-outline-primary:hover { color: #fff; }
.btn.btn-primary:hover { color: var(--primary); background: transparent; }
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
  padding: 0; display: flex; align-items: center; justify-content: center; font-weight: normal;
}

/*** Navbar ***/
.fixed-top { transition: .5s; }
.top-bar { height: 45px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.navbar { background: var(--dark); }
.navbar.bg-dark { background: var(--dark) !important; }
.navbar .dropdown-toggle::after {
  content: ""; display: inline-block;
  width: 0.42em; height: 0.42em; margin-left: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); vertical-align: middle;
}
.navbar .navbar-nav .nav-link {
  margin-right: 30px; padding: 25px 0; color: #fff; font-weight: 500; outline: none;
}
.navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link.active { color: var(--primary); }
@media (max-width: 991.98px) {
  .navbar .navbar-nav { margin-top: 10px; border-top: 1px solid rgba(0,0,0,.07); background: var(--dark); }
  .navbar .navbar-nav .nav-link { padding: 10px 0; }
}
@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block; visibility: hidden; top: 100%;
    transform: rotateX(-75deg); transform-origin: 0% 0%; transition: .5s; opacity: 0;
  }
  .navbar .nav-item:hover .dropdown-menu { transform: rotateX(0deg); visibility: visible; transition: .5s; opacity: 1; }
}

/*** Header / carousel ***/
.carousel-caption {
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(11, 34, 54, .8); z-index: 1;
}
.carousel-control-prev, .carousel-control-next { width: 15%; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 3rem; height: 3rem; background-color: var(--dark);
  border: 12px solid var(--dark); border-radius: 3rem;
}
@media (max-width: 768px) {
  #header-carousel .carousel-item { position: relative; min-height: 450px; }
  #header-carousel .carousel-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
}
.page-header {
  padding-top: 12rem; padding-bottom: 6rem;
  background: linear-gradient(rgba(11,34,54,.85), rgba(11,34,54,.85)),
              url(../img/oo/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}
.page-header .breadcrumb-item + .breadcrumb-item::before { color: #cfe0ee; }
.page-header h1, .page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: #fff; }

/*** Causes cards ***/
.causes-item .causes-overlay {
  position: absolute; width: 100%; height: 0; top: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,34,54,.6); overflow: hidden; opacity: 0; transition: .5s;
}
.causes-item:hover .causes-overlay { height: 100%; opacity: 1; }

/*** Service ***/
.service-item { box-shadow: 0 0 45px rgba(0, 0, 0, .06); }

/*** Donate / signup strip ***/
.donate { background: rgba(11,34,54,.85); }

/*** Team ***/
.team-item img { position: relative; top: 0; transition: .5s; }
.team-item:hover img { top: -30px; }

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text { background: var(--light); transform: scale(.8); transition: .5s; }
.testimonial-carousel .owl-item.center .testimonial-text { background: var(--primary); transform: scale(1); }
.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img { transition: .5s; }
.testimonial-carousel .owl-item.center .testimonial-text * { color: #fff !important; }
.testimonial-carousel .owl-nav {
  position: absolute; width: 350px; top: 15px; left: 50%; transform: translateX(-50%);
  display: flex; justify-content: space-between; opacity: 0; transition: .5s; z-index: 1;
}
.testimonial-carousel:hover .owl-nav { width: 300px; opacity: 1; }
.testimonial-carousel .owl-nav .owl-prev, .testimonial-carousel .owl-nav .owl-next {
  position: relative; color: var(--primary); font-size: 45px; transition: .5s;
}
.testimonial-carousel .owl-nav .owl-prev:hover, .testimonial-carousel .owl-nav .owl-next:hover { color: var(--dark); }

/*** Footer ***/
.oo-footer { background: var(--dark); }
.oo-footer .btn.btn-link {
  display: block; margin-bottom: 5px; padding: 0; text-align: left;
  color: rgba(255,255,255,0.55); font-weight: normal; text-transform: capitalize; transition: .3s;
}
.oo-footer .btn.btn-link::before {
  content: ""; display: inline-block;
  width: 0.38em; height: 0.38em; margin-right: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg); vertical-align: middle;
}
.oo-footer .btn.btn-link:hover { color: #fff; letter-spacing: 1px; box-shadow: none; }
.oo-footer .btn.btn-square { color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.55); }
.oo-footer .btn.btn-square:hover { color: var(--primary); border-color: var(--primary); }
.oo-footer .copyright { padding: 25px 0; font-size: 15px; border-top: 1px solid rgba(255,255,255,.1); }
.oo-footer .copyright a { color: var(--secondary); }
.oo-footer .copyright a:hover { color: var(--primary); }

/* --- Compatibility layer for reused Bootstrap-based section includes
 * (fish counts, fish reports, testimonials) that carry the old Active
 * template's structural classes. Keeps them looking at home in this theme. --- */
.section { padding: 60px 0; }
.section > .container { position: relative; }
.section-title { text-align: center; padding-bottom: 40px; max-width: 720px; margin: 0 auto; }
.section-title h2 { color: var(--heading); font-weight: 700; margin-bottom: .5rem; }
.section-title p { color: #5a6b78; margin-bottom: 0; }
.light-background { background: var(--light); }
.dark-background { background: var(--dark); color: #fff; }
.dark-background h1, .dark-background h2, .dark-background h3 { color: #fff; }
.fish-count-box .count-number { font-size: 2.4rem; line-height: 1; color: var(--primary); }
.fish-count-box .species-name { color: var(--heading); }
.fish-report-card { transition: transform .3s, box-shadow .3s; }
.fish-report-card:hover { transform: translateY(-5px); box-shadow: 0 1rem 2rem rgba(11,34,54,.12) !important; }
.fish-report-card .card-img-top-wrapper { height: 220px; overflow: hidden; }
.fish-report-card .card-img-top { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card { background: var(--light); border-radius: 1rem; padding: 2rem; }
.testimonial-card .testimonial-stars { color: #f5b301; margin-bottom: 1rem; }
.testimonial-card .quote-mark { color: var(--primary); margin-right: .35rem; }
.testimonial-card .author-name { display: block; font-weight: 700; color: var(--heading); }
.testimonial-card .author-trip { color: #5a6b78; font-size: .9rem; }

/* --- Directions page: framed map + compass overlay --- */
.oo-map-card { background: #fff; }
.oo-map-bar {
  background: linear-gradient(135deg, var(--dark), var(--heading));
  color: #fff; font-family: var(--oo-head-font); font-weight: 700;
  letter-spacing: .3px; padding: 12px 18px; font-size: 1.05rem;
}
.oo-map-frame { position: relative; line-height: 0; }
.oo-map-frame iframe { width: 100%; height: 460px; border: 0; display: block; }
.oo-compass {
  position: absolute; right: 16px; bottom: 16px; width: 96px; height: 96px;
  filter: drop-shadow(0 4px 10px rgba(11,34,54,.45));
  pointer-events: none; z-index: 2;
}
@media (max-width: 575.98px) {
  .oo-map-frame iframe { height: 340px; }
  .oo-compass { width: 72px; height: 72px; right: 12px; bottom: 12px; }
}

/* --- Gallery lightbox --- */
.gallery-item { cursor: zoom-in; }
.oo-lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center;
  background: rgba(11, 34, 54, 0.94);
}
.oo-lightbox.open { display: flex; }
.oo-lightbox img {
  max-width: 92vw; max-height: 82vh; border-radius: 8px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55); background: #0b2236;
}
.oo-lightbox .oo-lb-cap {
  position: absolute; bottom: 18px; left: 0; right: 0; padding: 0 20px;
  text-align: center; color: #fff; font-size: .95rem;
}
.oo-lightbox .oo-lb-close {
  position: absolute; top: 14px; right: 22px; background: none; border: 0;
  color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .85;
}
.oo-lightbox .oo-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: none;
  border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 10px 18px; opacity: .8;
}
.oo-lightbox .oo-lb-close:hover, .oo-lightbox .oo-lb-nav:hover { opacity: 1; }
.oo-lightbox .oo-lb-prev { left: 6px; }
.oo-lightbox .oo-lb-next { right: 6px; }
@media (max-width: 575.98px) { .oo-lightbox .oo-lb-nav { font-size: 2rem; padding: 8px 10px; } }

/* Alias the legacy Active CSS variables so inline var() refs on the reused
   dynamic pages resolve to the ocean palette. */
:root {
  --accent-color: #1a8fd1;
  --heading-color: #0b3d5b;
  --default-color: #2b3a45;
  --contrast-color: #ffffff;
  --surface-color: #ffffff;
}

/* --- Inner-page banner (used by reused dynamic pages via .page-title) --- */
.page-title.dark-background { position: relative; }
.page-title.dark-background h1 { color: #fff; }
.page-title .breadcrumb-item, .page-title .breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; }

/* --- Trip schedule (schedule.php) --- */
/* Mirrors the legacy 976-TUNA tripcalendar layout, but in the site's own
   fonts (Inter/Saira) and ocean palette instead of the calendar's
   giltutligregular/Neuton — which we can't restyle inside its iframe. */
.oo-trips { max-width: 1000px; }
.oo-trips-day { background: var(--dark); color: #fff; font-family: var(--oo-head-font); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; padding: 10px 18px; border-radius: 8px; margin: 28px 0 14px; }
.oo-trips .oo-trips-day:first-child { margin-top: 0; }
.oo-trip { display: flex; align-items: stretch; gap: 18px; background: #fff; border: 1px solid #e6eef4; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 0 30px rgba(11,34,54,.05); transition: .2s; }
.oo-trip:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(11,34,54,.10); }
.oo-trip-photo { flex: 0 0 170px; width: 170px; height: 128px; object-fit: cover; border-radius: 8px; }
.oo-trip-body { flex: 1 1 auto; min-width: 0; }
.oo-trip-title { font-family: var(--oo-head-font); font-size: 1.15rem; font-weight: 700; color: var(--heading); margin: 0 0 6px; }
.oo-trip-desc { font-size: .88rem; color: #5a6b78; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oo-trip-details { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .84rem; color: #2b3a45; }
.oo-trip-details b { color: var(--heading); font-weight: 600; }
.oo-trip-note { margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--primary); background: var(--light); border-radius: 6px; padding: 6px 10px; display: inline-block; }
.oo-trip-side { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-left: 1px solid #e6eef4; padding-left: 16px; }
.oo-trip-spots { text-align: center; line-height: 1.1; }
.oo-trip-spots .number { font-family: var(--oo-head-font); font-size: 1.45rem; font-weight: 700; color: var(--heading); }
.oo-trip-spots .split { color: #b8c4cd; margin: 0 2px; }
.oo-trip-spots .label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #5a6b78; font-weight: 600; }
.oo-trip-price { font-family: var(--oo-head-font); font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.oo-trip-btn { width: 100%; padding: 8px 10px; font-size: .9rem; white-space: nowrap; }
/* :disabled needed to outrank Bootstrap's .btn:disabled (higher specificity). */
.oo-trip-btn-sold, .oo-trip-btn-sold:disabled { background: #b0474e; border-color: #b0474e; color: #fff; opacity: 1; }
.oo-trip.is-sold { background: #fbfcfd; }
.oo-trip.is-sold .oo-trip-photo { filter: grayscale(.7); opacity: .75; }
.oo-trip.is-sold .oo-trip-title, .oo-trip.is-sold .oo-trip-spots .number { color: #6b7c88; }
@media (max-width: 767.98px) {
  .oo-trip { flex-wrap: wrap; gap: 12px; }
  .oo-trip-photo { flex: 0 0 84px; width: 84px; height: 84px; }
  .oo-trip-body { flex: 1 1 calc(100% - 96px); }
  .oo-trip-side { flex: 1 1 100%; flex-direction: row; justify-content: space-between; border-left: 0; border-top: 1px solid #e6eef4; padding: 12px 0 0; }
  .oo-trip-btn { width: auto; min-width: 132px; }
  .oo-trip-details { gap: 2px 14px; }
}

/* --- Charter rates table --- */
.charter-rates-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 0 30px rgba(11,34,54,.06); border-radius: 12px; overflow: hidden; }
.charter-rates-table thead th { background: var(--dark); color: #fff; padding: 14px 16px; font-weight: 600; font-size: .95rem; }
.charter-rates-table tbody td { padding: 14px 16px; border-bottom: 1px solid #e6eef4; vertical-align: middle; }
.charter-rates-table tbody tr:hover { background: var(--light); }
.charter-rates-table .trip-area { font-size: .85rem; color: #5a6b78; font-weight: 400; }
.charter-rates-table .rate-price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.charter-rates-table .charter-rates-footer { background: var(--light); font-size: .85rem; color: #5a6b78; text-align: center; }
.rate-info-card { box-shadow: 0 0 30px rgba(11,34,54,.06); }
.rate-info-card h5 { color: var(--heading); }
@media (max-width: 767.98px) {
  .charter-rates-table thead { display: none; }
  .charter-rates-table, .charter-rates-table tbody, .charter-rates-table tr, .charter-rates-table td { display: block; width: 100%; }
  .charter-rates-table tr { margin-bottom: 1rem; border: 1px solid #e6eef4; border-radius: 10px; overflow: hidden; }
  .charter-rates-table td { text-align: right; padding-left: 45%; position: relative; }
  .charter-rates-table td::before { content: attr(data-label); position: absolute; left: 16px; font-weight: 600; color: var(--heading); }
}

/* --- Fish counts table --- */
.fish-counts-table { width: 100%; background: #fff; box-shadow: 0 0 30px rgba(11,34,54,.06); border-radius: 12px; overflow: hidden; }
.fish-counts-table thead th { background: var(--dark); color: #fff; padding: 14px 16px; }
.fish-counts-table tbody td { padding: 14px 16px; border-bottom: 1px solid #e6eef4; }
.fish-counts-table tbody tr:hover { background: var(--light); }
.fish-counts-table .fish-count-cell { color: var(--heading); }
@media (max-width: 767.98px) {
  .fish-counts-table thead { display: none; }
  .fish-counts-table, .fish-counts-table tbody, .fish-counts-table tr, .fish-counts-table td { display: block; width: 100%; }
  .fish-counts-table tr { margin-bottom: 1rem; border: 1px solid #e6eef4; border-radius: 10px; }
  .fish-counts-table td { text-align: right; padding-left: 45%; position: relative; }
  .fish-counts-table td::before { content: attr(data-label); position: absolute; left: 16px; font-weight: 600; color: var(--heading); }
}

/* --- Reports list --- */
.report-list-item { background: #fff; box-shadow: 0 0 20px rgba(11,34,54,.05); transition: transform .3s, box-shadow .3s; }
.report-list-item:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.5rem rgba(11,34,54,.1); }
.report-date { color: var(--primary) !important; }

/* --- Gallery grid --- */
.gallery-item { overflow: hidden; border-radius: 10px; border: 1px solid #e6eef4; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; display: block; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 767.98px) { .gallery-masonry { grid-template-columns: repeat(2, 1fr); } }

/* --- Fish report detail --- */
.report-body { color: #33424e; line-height: 1.8; }
.report-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.report-body a { color: var(--primary); }

/* --- CTA-2 dark band --- */
.call-to-action-2.dark-background { background: var(--dark); }
.call-to-action-2 h3 { color: #fff; }
.call-to-action-2 p { color: rgba(255,255,255,.75); }
.cta-btn { display: inline-block; background: var(--primary); color: #fff; padding: 12px 30px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: .3s; }
.cta-btn:hover { background: #fff; color: var(--heading); }

/* --- Contact info blocks --- */
.info-item { margin-bottom: 1.5rem; }
.info-item i { font-size: 1.4rem; color: var(--primary); margin-right: 1rem; }
.info-item h4 { color: var(--heading); font-size: 1.05rem; margin-bottom: .25rem; }
.php-email-form button[type="submit"] { background: var(--primary); border: 0; color: #fff; padding: 12px 36px; border-radius: 8px; font-weight: 600; transition: .3s; }
.php-email-form button[type="submit"]:hover { background: var(--heading); }
.php-email-form .error-message { display: none; color: #fff; background: #df1529; text-align: left; padding: 15px; margin-bottom: 15px; border-radius: 6px; font-weight: 600; }
.php-email-form .sent-message { display: none; color: #fff; background: #059652; text-align: center; padding: 15px; margin-bottom: 15px; border-radius: 6px; font-weight: 600; }
.php-email-form .loading { display: none; background: #fff; text-align: center; padding: 15px; }
