/* ==========================================================================
   Ocean Report Page — /ocean-report
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   ========================================================================== */

/* --- Hero --- */
.or-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center center;
  background-color: #0d2a3a;
}
.or-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.or-hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.or-hero h1 i { margin-right: 8px; }
.or-hero p {
  color: rgba(255,255,255,.92);
  font-size: 19px;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .or-hero { min-height: 340px; }
  .or-hero h1 { font-size: 42px; }
  .or-hero p { font-size: 21px; }
}

/* --- Island Tabs --- */
.or-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px auto 6px;
  padding: 0 12px;
  max-width: 780px;
}
.or-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border: 2px solid #ddd;
  border-radius: 40px;
  background: #fff;
  color: #555;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.or-tab:hover {
  border-color: #bbb;
  color: #333;
  background: #f8f8f8;
}
.or-tab.is-active {
  background: #0a5e8c;
  border-color: #0a5e8c;
  color: #fff;
}
.or-tab .or-tab-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* --- Last Updated --- */
.or-updated {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin: 16px 0 4px;
  min-height: 20px;
}

/* --- Quick Conditions Cards --- */
.or-conditions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 32px;
}
@media (min-width: 640px) {
  .or-conditions { grid-template-columns: repeat(4, 1fr); }
}
.or-cond-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  padding: 22px 16px 18px;
  text-align: center;
  transition: box-shadow .2s ease;
}
.or-cond-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.or-cond-icon {
  font-size: 28px;
  color: #0a5e8c;
  margin-bottom: 8px;
}
.or-cond-value {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 4px;
}
.or-cond-label {
  font-size: 14px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}

/* --- Section blocks --- */
.or-section {
  margin: 36px 0;
}
.or-section h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
  line-height: 1.3;
}
.or-section h2 i {
  margin-right: 8px;
  color: #0a5e8c;
}

/* --- Loading state --- */
.or-loading {
  text-align: center;
  padding: 40px 20px;
  font-size: 17px;
  color: #888;
}
.or-loading i {
  margin-right: 6px;
  animation: or-spin 1s linear infinite;
}
@keyframes or-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Surf Forecast Panel --- */
.or-forecast-panel {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  min-height: 120px;
}
.or-forecast-shore {
  margin-bottom: 20px;
}
.or-forecast-shore:last-child {
  margin-bottom: 0;
}
.or-forecast-shore h3 {
  font-size: 18px;
  color: #0a5e8c;
  margin: 0 0 6px;
  font-weight: 700;
}
.or-forecast-shore p {
  font-size: 17px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}
.or-forecast-error {
  text-align: center;
  padding: 30px 20px;
  color: #888;
  font-size: 16px;
}
.or-forecast-error a {
  color: #0a5e8c;
  text-decoration: underline;
}

/* --- Tide Chart --- */
.or-tide-panel {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  min-height: 200px;
}
.or-tide-canvas-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}
.or-tide-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}
.or-tide-extremes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
}
.or-tide-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #333;
}
.or-tide-item .or-tide-type {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 3px 10px;
  border-radius: 6px;
}
.or-tide-high {
  background: #dbeafe;
  color: #1e40af;
}
.or-tide-low {
  background: #fef3c7;
  color: #92400e;
}

/* --- Jellyfish Calendar --- */
.or-jelly-intro {
  font-size: 17px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 20px;
}
.or-jelly-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .or-jelly-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .or-jelly-grid { grid-template-columns: repeat(3, 1fr); }
}
.or-jelly-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.or-jelly-card.is-warning {
  background: #fef3c7;
  border-color: #f59e0b;
}
.or-jelly-card.is-active-warning {
  background: #fee2e2;
  border-color: #ef4444;
}
.or-jelly-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  color: #0a5e8c;
}
.or-jelly-card.is-warning .or-jelly-icon {
  background: #fde68a;
  color: #92400e;
}
.or-jelly-card.is-active-warning .or-jelly-icon {
  background: #fecaca;
  color: #dc2626;
}
.or-jelly-body {
  flex: 1;
}
.or-jelly-month {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 2px;
}
.or-jelly-dates {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* --- Source attribution --- */
.or-source {
  font-size: 13px;
  color: #999;
  margin: 10px 0 0;
}
.or-source a {
  color: #0a5e8c;
  text-decoration: underline;
}

/* --- Ocean Safety Grid --- */
.or-safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .or-safety-grid { grid-template-columns: repeat(2, 1fr); }
}
.or-safety-card {
  background: #f0f7ff;
  border: 1px solid #d0e2f2;
  border-radius: 14px;
  padding: 22px 24px;
}
.or-safety-card h3 {
  font-size: 19px;
  color: #0a5e8c;
  margin: 0 0 8px;
  font-weight: 700;
}
.or-safety-card p {
  font-size: 16px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}

/* --- Bottom CTA --- */
.or-bottom-cta {
  text-align: center;
  margin: 44px 0 30px;
  padding: 40px 28px;
  background: linear-gradient(135deg, #eef5fa 0%, #e0f0fa 100%);
  border-radius: 20px;
}
.or-bottom-cta h3 {
  font-size: 26px;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.or-bottom-cta p {
  font-size: 19px;
  color: #444;
  margin: 0 0 22px;
  line-height: 1.55;
}
.or-bottom-cta .or-cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: #0a5e8c;
  color: #fff;
  border-radius: 40px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}
.or-bottom-cta .or-cta-btn:hover {
  background: #084a6e;
}

/* --- Print --- */
@media print {
  .or-tabs, .or-bottom-cta { display: none; }
  .or-hero { min-height: 80px; border-radius: 0; }
}
