/* --- Header banner layout --- */
:root{
  --header-bar-h: 64px;
  --banner-h: 320px;
}




.site-header{ position:relative; z-index:100; }


/* Banner wrapper with rounded bottom corners */
.header-banner{
  position:relative;
  height:var(--banner-h);
  border:4px solid var(--mock-border,#ffffff);
  overflow:hidden;
  border-bottom-left-radius:20px;
  border-bottom-right-radius:20px;
  margin:0 auto;
  width:min(100%, 1200px); /* keeps same max width as content */
}
.header-banner__overlay{ position:absolute; inset:0; background:#000; pointer-events:none; }

/* NAV overlays the top of the banner */
.header-bar{
  position:absolute; inset:0 0 auto 0;
  height:var(--header-bar-h);
  display:flex; align-items:center; gap:16px;
  padding:0 16px;
  z-index:2;
}
.brand{ text-decoration:none; }
.brand__name{ color:#fff; font-weight:800; text-shadow:0 1px 3px rgba(0,0,0,.5); }
.primary-nav{
margin: 0 auto;
}
.primary-nav ul{
display:flex;
gap:18px; list-style:none;
margin:0;
padding:0;
}
.primary-nav a{
  color:#fff; text-decoration:none; font-weight:700; padding:10px 6px;
  text-shadow:0 1px 3px rgba(0,0,0,.6); position:relative;
}
/* orange rounded underline for active link */
.primary-nav a[aria-current="page"]::after{
  content:""; position:absolute; left:0; right:0; bottom:-8px; height:6px;
  background:#f04000; border-radius:6px 6px 0 0;
}

/* Center the brand block within the banner */
.header-banner__inner{
  position:relative; z-index:1; height:100%;
  display:flex; align-items:center; justify-content:center;
  padding-top:var(--header-bar-h);
}
.header-banner__brand{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.header-banner__logo{
  width:280px; height:auto; padding-top:20px;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.header-banner__title{
  margin:0; font-size:clamp(1.6rem,1.2rem + 2vw,2.4rem);
  font-weight:800; color:#fff; text-shadow:0 2px 8px rgba(0,0,0,.5);
}
/* Let the main content take up the leftover space */
.site-main {
  flex: 1;
  display: block;   
padding:24px 0 48px;
}

/* Mobile adjustments */
@media (max-width:700px){
  :root{ --banner-h:240px; }
  .header-banner__logo{ width:110px; }
  .primary-nav ul{ gap:16px; }
  .primary-nav a[aria-current="page"]::after{ bottom:-6px; height:4px; }
}

/* Center all page content and give it a max-width */
.container{ max-width:1200px; margin:0 auto; padding:0 16px; }

/* Ensure images don’t overflow and create odd widths */
img{ max-width:100%; height:auto; display:block; }

/* ===== Typography ===== */
html, body{
  margin:0; padding:0;
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  color:#111827;
  height: 100%;
}
h1, h2, h3, h4, h5, h6{ font-weight:800; letter-spacing:-.015em; margin:0 0 .5rem; }
p{ margin:0 0 .75rem; }
strong{ font-weight:700; }

/* ===== Homepage features grid ===== */
.features{ padding:8px 0 32px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch; /* important */
}
@media (max-width:1000px){ .features__grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .features__grid{ grid-template-columns:1fr; } }

.feat{
  border:1px solid #e5e7eb;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 100%;
}
.feat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feat__body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  flex: 1 1 auto;
}
.feat__title{
margin:0 0 6px;
font-size:1.15rem;
color:#0b7e8a;
}
.btn{
  display:inline-block; padding:8px 12px; border-radius:10px;
  background:#0ea5b1; color:#fff; text-decoration:none; font-weight:600;
}
.btn:hover{ background:#0b7e8a; }

/* ===== Footer ===== */
.site-footer{
  margin-top:36px;
  background:#fff;
  border-top:1px solid #e5e7eb;
  box-shadow:0 -4px 12px rgba(0,0,0,.03);
  position: static;
}
.footer__inner{
padding:28px 16px;
}
.footer__grid{
  display:grid; gap:24px;
  grid-template-columns:2fr 1fr 1fr;
  align-items:start;
}
@media (max-width:900px){ .footer__grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .footer__grid{ grid-template-columns:1fr; } }

.footer__heading{
  margin:0 0 8px;
  font-size:1.05rem; font-weight:800; letter-spacing:-.015em;
  color:#0b7e8a;
}
.footer__text{ margin:0; color:#374151; }
.footer__links{ list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.footer__links a{
  text-decoration:none; color:#0b7285; font-weight:600;
}
.footer__links a:hover{ text-decoration:underline; }

.footer__form{ display:flex; gap:8px; margin-top:6px; }
.footer__input{
  flex:1 1 auto; min-width:160px;
  height:38px; padding:0 10px;
  border:1px solid #d1d5db; border-radius:10px; outline:none;
}
.footer__input:focus{ border-color:#0ea5b1; box-shadow:0 0 0 3px rgba(14,165,177,.15); }
.footer__btn{
  height:38px; padding:0 12px; border:0; border-radius:10px;
  background:#0ea5b1; color:#fff; font-weight:700; cursor:pointer;
}
.footer__btn:hover{ filter:brightness(1.05); }
.footer__small{ margin:.5rem 0 0; color:#6b7280; font-size:.9rem; }

.footer__rule{ border:0; border-top:1px solid #e5e7eb; margin:22px 0; }
.footer__bar{
  display:flex; justify-content:space-between; align-items:center;
  color:#6b7280; font-size:.95rem;
}
.footer__muted{ color:#9ca3af; }
@media (max-width:600px){
  .footer__bar{ flex-direction:column; gap:6px; align-items:flex-start; }
}

/* Visually hidden (for accessible labels) */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ===== Page heading beneath banner ===== */
.page-head{ margin:0px 0 12px; }


.page-title{
  margin:0 0 4px;
  letter-spacing:-.015em;
  font-size: 1.75rem;
  font-weight: 700;
  color: #00695c;
    text-align: center;
}
.page-sub{ margin:0; color:#4b5563; }

/* ===== Directory bar (count + filters) ===== */
.dir-bar{
  display:flex; align-items:center; gap:16px; margin:8px 0 8px;
}
.dir-bar .count{ margin:0; color:#ffffff; }
.dir-bar .filters{ margin-left:auto; }
.dir-bar .filters form{ display:flex; gap:10px; flex-wrap:nowrap; }
.dir-bar input[type="text"], .dir-bar select{
  padding:8px 10px; border:1px solid #e5e7eb; border-radius:8px; outline:none;
}
.dir-bar input[type="text"]:focus, .dir-bar select:focus{
  border-color:#0ea5b1; box-shadow:0 0 0 3px rgba(14,165,177,.15);
}

/* ===== Directory grid & cards ===== */
.grid.container{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:22px;
  margin:32px auto 48px;
  padding:0 0px;
}
.card{
  position:relative;
  background:#fff;
  border:1px solid var(--mock-border,#e5e7eb);
  border-radius:20px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  padding:18px 20px 20px;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease, box-shadow .15s ease;
}

.card h2{
  margin:0 0 18px; font-size:1.1rem; color:#0b7e8a; font-weight:700;
}
.card h2 a.card-link{
  color:#0b7e8a; text-decoration:none; transition:color .2s ease;
}
.card h2 a.card-link:hover{
  color:#0ea5b1; text-decoration:underline;
}
.card .meta{ color:#374151; margin:0 0 6px; font-size:.95rem; }
.card .muted{ color:#6b7280; font-size:.9rem; margin-bottom:10px; }
.card .actions{ margin-top:auto; display:flex; gap:8px; flex-wrap:wrap; }
.card .btn{
  background:#0ea5b1; color:#fff; font-size:.9rem; font-weight:600;
  text-decoration:none; padding:6px 10px; border-radius:8px;
  display:inline-block; box-shadow:0 3px 6px rgba(0,0,0,.15);
  transition:background .2s ease;
}
.card .btn:hover{ background:#0b7e8a; }
.btn.secondary{ background:#00a0b0; }
.btn.secondary:hover{ background:#008896; }

/* ===== Modal (Map) — animated ===== */
.modal{
  opacity:0; visibility:hidden; /* start hidden so transitions work */
  transition:opacity .18s ease, visibility .18s ease;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  padding: 20px;
}
.modal.is-open{
  opacity:1; visibility:visible;
}

/* dark overlay */
.modal__backdrop{
  position:absolute; inset:0;
  background:rgba(17,24,39,0);
  backdrop-filter: blur(2px);
  transition:background .18s ease;
}
.modal.is-open .modal__backdrop{
  background:rgba(17,24,39,.6);
}

/* dialog animates in */
.modal__dialog{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%, calc(-50% + 10px));
  width:min(95vw,900px); height:min(85vh,640px);
  background:#fff; border-radius:16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .22s ease, box-shadow .22s ease;
}
.modal.is-open .modal__dialog{
  transform:translate(-50%, -50%);
  box-shadow:0 28px 70px rgba(0,0,0,.28);
}

/* close button and body stay the same */
.modal__close{
  position:absolute; top:10px; right:12px;
  width:34px; height:34px; border:0; border-radius:8px;
  background:#0ea5b1; color:#fff; font-size:20px; line-height:1; cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
}
.modal__close:hover{ filter:brightness(1.05); }
.modal__body{ flex:1 1 auto; }
#map-frame{ width:100%; height:100%; border:0; display:block; }

/* --- Opening hours tidy --- */
.hours {
  display: grid;
  grid-template-columns: 64px 1fr;
  row-gap: 10px;
  align-items: center;
}
.hours .row { display: contents; } /* lets each row share the grid columns */
.hours .day { color: #6b7280; }
.hours .time {
  font-variant-numeric: tabular-nums; /* align digits vertically */
  letter-spacing: 0.2px;
}
.hours .time.closed { color: #94a3b8; }
.hours .today .day,
.hours .today .time {
  color: #0f766e;       /* subtle accent for today */
  font-weight: 600;
}
.hours-sep {
  border: none; border-top: 1px solid #e5e7eb; margin: 14px 0;
}



.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border: 2px dashed #ccc;
  border-radius: 12px;
  color: #888;
  font-weight: 500;
  font-size: 1.1rem;
  text-align: center;
}
.establishment-photo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.feat__body p {
  margin-bottom: 1rem;
  flex: 1 1 auto;           /* takes up spare space */
}

.feat__body .btn {
  margin-top: auto;         /* button sits at the bottom */
  align-self: flex-start;
}
/* Make the whole tile clickable */
.feat-link {
  display: flex;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.feat-link .feat {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feat-link:hover .feat {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

/* Media keeps a consistent visual height */
.feat__media {
  aspect-ratio: 16 / 9;     /* keeps the image area uniform */
  overflow: hidden;
}


/* Primary nav reset */
.site-header .primary-nav ul{display:flex;gap:2.5rem;list-style:none;margin:0;padding:0;}
.site-header .primary-nav a{
  position:relative;
  display:inline-block;
  text-decoration:none;
  color:#fff;                 /* header over hero image */
  font-weight:800;
  padding:.25rem .25rem;      /* base tap target; pill adds extra */
  line-height:1.2;
}
/* Kill any old underline decoration/pseudo */
.site-header .primary-nav a::after{content:none !important;}

/* Hover: soft translucent chip */
.site-header .primary-nav a:hover{
  background:rgba(20,184,166,.18);
  border-radius:999px;
}

/* Active/current page: pill button */
.site-header .primary-nav a[aria-current="page"],
.site-header .primary-nav a.is-active{
  background:linear-gradient(90deg,#14b8a6 0%,#0ea5e9 100%);
  color:#fff !important;
  padding:.45rem 1rem;        /* bigger tap target */
  border-radius:999px;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
}

/* Keyboard focus ring (accessibility) */
.site-header .primary-nav a:focus-visible{
  outline:3px solid rgba(14,165,233,.5);
  outline-offset:3px;
  border-radius:12px;
}

/* ============================================================
   It’s Fishy — Catch Reports styles
   Works with site.css (header/footer)
   ============================================================ */

/* -----------------------------
   General layout
--------------------------------*/
body {
  background: #f9fafb;
  color: #222;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-image: url('/assets/img/waterBG.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;  /* header -> main -> footer in a column */
}

main.container {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* -----------------------------
   Filters & search bar
--------------------------------*/
.catch-filter,
.catch-form,
.catch-feed {
  margin-bottom: 2rem;
}

.catch-filter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.catch-filter input[type="text"],
.catch-filter select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccd;
  border-radius: 6px;
  font-size: 0.9rem;
}

.catch-filter button,
.catch-filter .btn {
  padding: 0.45rem 0.9rem;
  background: #009688;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.catch-filter button:hover {
  background: #00796b;
}

/* -----------------------------
   Feed view & cards
--------------------------------*/
.catch-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.catch-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.catch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

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

.catch-card .content {
  padding: 1rem;
  flex: 1;
}

.catch-card .species {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00695c;
}

.catch-card .meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.catch-card .desc {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.catch-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #555;
}

.catch-card .actions a {
  color: #009688;
  text-decoration: none;
}

.catch-card .actions a:hover {
  text-decoration: underline;
}

/* -----------------------------
   Submit form
--------------------------------*/
.catch-form.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.catch-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem 1.25rem; /* 🧩 adds space between boxes (row + column) */
}
.catch-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #333;
}
.catch-form input[type="text"],
.catch-form input[type="number"],
.catch-form input[type="date"],
.catch-form input[type="email"],
.catch-form select,
.catch-form textarea {
  padding: 0.5rem 0.7rem;
  border: 1px solid #ccd;
  border-radius: 6px;
  font-size: 0.95rem;
  resize: vertical;
width: 98%;
}

.catch-form input[type="file"] {
  margin-top: 0.5rem;
}

.catch-form .checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.catch-form .actions {
  display: flex;
  margin-top: 1.5rem;
  gap: 1rem;
  justify-content: flex-end;
}

.catch-form .btn {
  background: #009688;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.catch-form .btn:hover {
  background: #00796b;
}

.catch-form .btn-secondary {
  background: #ccc;
  color: #222;
}

.catch-form .btn-secondary:hover {
  background: #bbb;
}

/* -----------------------------
   Alerts
--------------------------------*/
.alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
}

.alert-error {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

/* -----------------------------
   Utilities
--------------------------------*/
.hp {
  display: none !important; /* honeypot field */
}

.muted {
  color: #777;
}

.small {
  font-size: 0.85rem;
}

/* -----------------------------
   Responsive tweaks
--------------------------------*/
@media (max-width: 640px) {
  .catch-feed {
    grid-template-columns: 1fr;
  }

  .catch-form .actions {
    flex-direction: column;
    align-items: stretch;
  }
}



/* ===========================
   Catch Reports — Layout & UI
   =========================== */

/* Page wrapper */
.page-catch-reports main.container {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
}

/* Toolbar (search + filters) */
.page-catch-reports .catch-toolbar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.06);
  margin-bottom: 1.25rem;
}
.page-catch-reports .catch-toolbar .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.page-catch-reports .catch-toolbar .filters input[type="search"],
.page-catch-reports .catch-toolbar .filters input[type="text"],
.page-catch-reports .catch-toolbar .filters select {
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.page-catch-reports .catch-toolbar .filters input:focus,
.page-catch-reports .catch-toolbar .filters select:focus {
  outline: none;
  border-color: #059669;             /* brand teal-ish */
  box-shadow: 0 0 0 3px rgba(5,150,105,.15);
}
.page-catch-reports .catch-toolbar .btn.btn-primary {
  background: #059669;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 600;
  cursor: pointer;
}
.page-catch-reports .catch-toolbar .btn.btn-primary:hover {
  filter: brightness(0.95);
}
.page-catch-reports .catch-toolbar a.active {
  font-weight: 700;
  text-decoration: underline;
}

/* Card shell used across grid/feed */
.page-catch-reports .card,
.page-catch-reports .catch-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.04);
}

/* GRID view */
.page-catch-reports .catch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: .5rem;                  /* space from toolbar */
}
.page-catch-reports .catch-grid .catch-card {
  display: block;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.page-catch-reports .catch-grid .catch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2,6,23,0.08);
}
.page-catch-reports .catch-grid .catch-card .imgwrap {
  position: relative;
  background: #f3f4f6;
  height: 180px;
}
.page-catch-reports .catch-grid .catch-card .noimg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #9ca3af;
  font-size: 14px;
}
.page-catch-reports .catch-grid .catch-card .overlay {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; gap: 8px;
  background: rgba(17,24,39,0.6);
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 600;
}
.page-catch-reports .catch-grid .catch-card .meta {
  display: flex; justify-content: space-between;
  padding: 10px 12px;
  color: #6b7280;
  font-size: 13px;
}

/* FEED view */
.page-catch-reports .catch-feed {
  display: grid; gap: 12px;
  margin-top: .5rem;                  /* space from toolbar */
}
.page-catch-reports .catch-feed .catch-card {
  padding: 12px 14px;
}
.page-catch-reports .catch-feed .content .species {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: #111827;
}
.page-catch-reports .catch-feed .content .meta {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}
.page-catch-reports .catch-feed .content .desc {
  color: #374151;
  margin: 6px 0 10px;
}
.page-catch-reports .catch-feed .actions {
  display: flex; justify-content: space-between; align-items: center;
}
.page-catch-reports .catch-feed .actions a {
  color: #059669; font-weight: 600;
}
.page-catch-reports .catch-feed .small.muted { color: #9ca3af; }

/* VIEW page */
.page-catch-reports .catch-hero {
  padding: 16px;
  margin-top: 1.5rem;
}
.page-catch-reports .catch-hero .carousel img {
  border-radius: 10px;
}
.page-catch-reports .likebtn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.page-catch-reports .likebtn:hover { background: #f9fafb; }

/* Utilities */
.page-catch-reports .muted { color: #6b7280; }
.page-catch-reports .small { font-size: 12.5px; }

/* Responsive */
@media (max-width: 1024px) {
  .page-catch-reports .catch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-catch-reports .catch-toolbar .filters { gap: 6px; }
  .page-catch-reports .catch-grid { grid-template-columns: 1fr; }
}

.catch-form {
  padding: 1.5rem;
}

.catch-form input,
.catch-form select,
.catch-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.modal__card {
  max-width: 600px; /* 👈 sets a sensible max width */
  width: 100%;
}

.modal__card form {
  display: grid;
  gap: 1rem;
}

.modal__card input,
.modal__card select,
.modal__card textarea {
  max-width: 100%;
  width: 100%;
  border-radius: 10px;
  padding: .65rem .8rem;
  border: 1px solid rgba(0,0,0,.15);
}


/* Review modal */
#if-review-modal {
  position: fixed;
  inset: 0;
  display: none; /* JS sets to flex */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  padding: 20px;
}

#if-review-modal > [role="dialog"] {
  width: min(600px, 92vw);
  max-width: 600px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  overflow: hidden;
}

/* --- Interactive star rating input --- */
.rating-input{
  display:inline-flex; gap:6px; align-items:center;
}
.rating-input .star{
  width:28px; height:28px; display:inline-block; cursor:pointer;
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') center/contain no-repeat;
          mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') center/contain no-repeat;
  background: rgba(0,0,0,.15);
  transition: background .15s ease, transform .05s ease;
}
.rating-input .star.filled{ background:#2ea3ff; }
.rating-input .star:hover{ transform: translateY(-1px); }
.rating-input[aria-disabled="true"] .star{ cursor:default; }

/* Keyboard focus ring (when tabbing) */
.rating-input .star:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(46,163,255,.35);
  border-radius: 6px; /* for visible ring */
}
/* --- Ensure only the banner shows the photo --- */
.site-header,
.header-bar {
  background: none !important;
  background-image: none !important;
}

/* Mobile polish: make the hero behave like a proper banner */
@media (max-width: 700px){
  .header-banner{
    background-size: cover !important;
    background-position: center !important;
  }
}


@media (max-width: 480px) {
  .header-bar nav ul {
    display: flex;
    flex-wrap: wrap;      /* allow items to break to next line if needed */
    justify-content: space-around;
    padding: 0;
    margin: 0;
  }

  .header-bar nav ul li {
    flex: 1 1 auto;
    margin: 0 4px;       /* smaller gap */
  }

  .header-bar nav ul li a {
    font-size: 14px;     /* shrink text slightly */
    padding: 6px 8px;
  }
}
/* --- Hamburger button (hidden on desktop) --- */
.nav-toggle{
  display:none;
  position:absolute; right:12px; top:10px;
  width:40px; height:40px;
  background:transparent; border:0; padding:0;
  z-index:20; /* above hero */
}
.nav-toggle span{
  display:block; width:22px; height:2px; margin:4px 0;
  background:#fff;                 /* readable over hero */
  transition:transform .2s ease, opacity .2s ease;
}

/* --- Mobile menu behaviour --- */
@media (max-width:768px){
  .nav-toggle{ display:block; }

  /* collapse the horizontal list into a hidden panel */
  .primary-nav ul{
    display:none;                   /* hidden until toggled */
    position:absolute;
    left:12px; right:12px;
    top:56px;                       /* below your header bar */
    flex-direction:column;
    gap:0; margin:0; padding:8px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(6px);
    border-radius:14px;
    box-shadow:0 10px 24px rgba(0,0,0,.12);
  }
  .primary-nav a{
    display:block; padding:12px 10px;
    color:#0b5461; text-shadow:none; /* readable on white panel */
    border-radius:10px;
  }

  /* open state */
  .site-header.nav-open .primary-nav ul{ display:flex; }

  /* animate burger to an X */
  .site-header.nav-open .nav-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2){ opacity:0; }
  .site-header.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
}

/* --- Mobile behaviour --- */
@media (max-width: 768px) {
  /* hide menu by default */
  .primary-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;      /* below the header bar */
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    margin: 0;
    padding: 8px;
    z-index: 1000;
  }

  /* show only when header has nav-open */
  .site-header.nav-open .primary-nav ul {
    display: flex;
  }

  /* link styling inside dropdown */
  .primary-nav a {
    color: #0b5461;
    text-shadow: none;
    padding: 12px 10px;
    display: block;
  }
}

/* ---- FINAL MOBILE OVERRIDES (fix always-visible menu) ---- */
@media (max-width:768px){
  /* 1) Hide list by default on mobile (beat earlier .site-header .primary-nav ul) */
  .site-header .primary-nav ul{
    display:none !important;
    position:absolute;
    left:12px; right:12px; top:56px;
    flex-direction:column;
    margin:0; padding:8px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(6px);
    border-radius:14px;
    box-shadow:0 10px 24px rgba(0,0,0,.12);
    z-index:1000;
  }

  /* 2) Show when header has the toggle class */
  .site-header.nav-open .primary-nav ul{
    display:flex !important;
  }

  /* 3) Link styling inside the dropdown */
  .site-header .primary-nav a{
    display:block;
    padding:12px 10px;
    color:#0b5461 !important;
    text-shadow:none !important;
    border-radius:10px;
  }

  /* 4) Show the hamburger */
  .nav-toggle{ display:block; }
}

/* === Mobile dropdown tidy (spacing + width) === */
@media (max-width:768px){
  /* hide by default remains the same; just tightening layout */
  .site-header .primary-nav ul{
    /* visibility handled already */
    gap: 0 !important;                    /* kill the desktop 2.5rem gap */
    top: calc(var(--header-bar-h, 56px) + 8px);

    /* make it a neat panel under the hamburger (not full width) */
    left: auto;                           /* stop stretching across */
    right: 12px;
    width: min(88vw, 360px);              /* nice size on phones */
    padding: 6px;                         /* slightly tighter padding */
    border-radius: 12px;
  }

  /* tighten item padding and add subtle separators */
  .site-header .primary-nav li{ margin: 0; }
  .site-header .primary-nav a{
    display: block;
    padding: 10px 12px;                   /* was 12px 10px */
    color: #0b5461 !important;
    text-shadow: none !important;
    border-radius: 10px;
  }
  .site-header .primary-nav ul > li + li a{
    border-top: 1px solid rgba(12, 30, 40, .08);
  }
}
/* ===== Mobile menu overlay & sheet ===== */
.mobile-menu-overlay{
  position: fixed;
  inset: 0;                       /* full screen */
  background: rgba(0,0,0,.4);     /* dim the hero behind */
  backdrop-filter: blur(2px);
  z-index: 1000;
}

.mobile-menu-panel{
  position: absolute;
  top: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 0 0 24px 24px;   /* rounded only at the bottom */
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  padding: 14px 16px 12px;
  max-height: 85vh;               /* scroll inside if tall */
  overflow-y: auto;
}

/* Prevent background page from scrolling when menu is open */
body.nav-open{ overflow: hidden; }

/* Headings directly over the background */
.page-head .page-title,
.page-head .page-sub {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55); /* makes them pop without overlay */
}

/* Feature cards – stronger border + shadow */
.features .feat {
  background: #fff;
  border: 8px solid #ffffff;                /* thicker border */
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);  /* subtle depth */
  overflow: hidden;
}

/* Card text colors (ensure contrast) */
.features .feat__title { color: #0e1f25; }
.features .feat__body p { color: #24343a; }

/* Buttons more prominent */
.features .btn {
  background: #1e7b7b; /* tweak to your brand teal */
  color: #fff;
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.features .btn:hover {
  filter: brightness(1.06);
}
/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.card:hover {
  animation: shake 0.4s; /* fast little shake */
}
/* --- One-off horizontal shake for homepage feature tiles --- */
@keyframes feat-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-3px); }
  40%  { transform: translateX(3px); }
  60%  { transform: translateX(-2px); }
  80%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* Base tile (keep your existing transitions) */
.feat-link .feat {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Replace the lift with a one-off shake */
.feat-link:hover .feat {
  transform: none;                     /* cancel the translateY */
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  animation: feat-shake 0.4s ease;     /* plays once */
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  .feat-link:hover .feat { animation: none; }
}


.page-catch-reports main,
.page-catch-reports main.container {
  flex: 1 0 auto;
}

/* --- Catch Submit: page-scoped styles (won't affect other pages) --- */
.catch-submit-page { 
  flex: 1 0 auto;                 /* keeps sticky footer working on this page */
}

.catch-submit-page .catch-form.card {
  max-width: 760px;               /* nice width, centered */
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  position: relative;             /* float above hero edge */
  z-index: 200;
  overflow: visible;              /* let dropdowns/calendars escape the card */
}

.catch-submit-page .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .catch-submit-page .form-grid {
    grid-template-columns: 1fr 1fr;   /* two columns on desktop */
  }
  .catch-submit-page .form-grid .full,
  .catch-submit-page .form-grid .checkbox,
  .catch-submit-page .form-grid [style*="grid-column"] {
    grid-column: 1 / -1;              /* full-width rows stay full width */
  }
}

/* If your header banner has a higher z-index, keep it below the form on this page */
.catch-submit-page .header-banner { z-index: 100; }
