body{
  margin:0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background:#edf2f7;
  color:#243447;
  line-height:1.5;
}
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 48px;
  background:white;
  border-bottom:1px solid #e2e8f0;
  min-height: auto;
}

.logo h1{
  margin:0;
  color:#1b6ca8;
}

.logo span{
  color:#5e7387;
  font-size:14px;
}

nav a{
  margin-left:25px;
  text-decoration:none;
  color:#3f5873;
  font-weight:600;
  transition:0.25s ease;
}

nav a:hover{
  color:#1b6ca8;
}

.container{
    width:min(94%, 1400px);
    margin:auto;
}

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:25px;
  padding: 10px 0 20px;
}

.page-head-left h2{
  margin:0 0 10px 0;
}

.subtitle{
  color:#6b7a90;
  margin:0;
}

.date-time-card{
  background:#e8f1f6;
  padding:14px 18px;
  border-radius:8px;
  min-width:220px;
  text-align:left;
}

.dt-label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}

.dt-value{
  display:flex;
  flex-direction:column;
  gap:3px;
  color:#435a70;
}

.card{
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(12px);
  padding:22px;
  border-radius:22px;
  box-shadow:
    0 10px 30px rgba(15, 40, 70, 0.06);
  margin-bottom:26px;
  border:1px solid rgba(220,230,240,0.7);
  transition:0.25s ease;
}

.forecast-grid .card{
    min-height: auto;
}

.card:hover{
  transform:translateY(-2px);
}
.forecast-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.tide-status{
  background:#dff7e3;
  color:#198754;
  font-size:24px;
  font-weight:700;
  padding:14px 24px;
  border-radius:12px;
  display:inline-block;
  min-width:140px;
  text-align:center;
  letter-spacing:0.5px;
}

.live-panel{
  position:relative;
  overflow:hidden;
  min-height:auto;
  color:white;
  background:
    linear-gradient(
      135deg,
      #67b7f7,
      #4e9fe0,
      #2d78bf
    );
  box-shadow:
    0 12px 30px rgba(39,110,180,0.22);
  padding: 24px;
}
.live-content{
  position:relative;
  z-index:2;
}

.live-label{
  background:red;
  color:white;
  padding:6px 12px;
  border-radius:6px;
  font-size:12px;
  display:inline-block;
  margin-bottom:10px;
}

.live-grid{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.live-texts p{
  margin:8px 0;
  line-height:1.5;
}

.live-mini-panel{
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:16px;
  padding:18px;
  display:flex;
  align-items:center;
  gap:18px;
  min-width:220px;
}

.mini-circle{
  width:78px;
  height:78px;
  border-radius:50%;
  background:linear-gradient(135deg,#f9b7c9,#f58cae);
  color:#253648;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:20px;
  box-shadow:0 6px 18px rgba(245,140,174,0.35);
}

.mini-meta{
  font-size:13px;
  line-height:1.7;
}

.wave-container{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  overflow:hidden;
}

.wave-container::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-image:url("images/calumpang_bg.jpg");
  background-size:cover;
  background-position:center;
  opacity:0.5;
}

.wave-container::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:#7ec7ff;
  opacity:0.85;
}

.wave-container svg{
  position:absolute;
  bottom:0;
  width:200%;
  height:120px;
  fill:#03467a;
  animation:waveMove 20s linear infinite;
}

@keyframes waveMove{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}

.middle-grid{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:20px;
}

.climate-grid-3{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  text-align:center;
  gap:10px;
}

.climate-grid-3 div{
  padding:10px;
}

.climate-grid-3 p{
  margin-bottom:8px;
  color:#6b7a90;
}

.climate-grid-3 h2{
  margin:0;
  font-size:32px;
  color:#1b6ca8;
  white-space: nowrap;
}

table{
  width:100%;
  border-collapse:collapse;
  text-align:center;
}

table th{
  background:#e8f1fb;
  padding:12px;
  text-align:center;
}

table td{
  padding:12px;
  border-bottom:1px solid #eee;
  text-align:center;
}

.map-card iframe{
  border:none;
  border-radius:6px;
}

/* ===== CUSTOM TIDE MODULE ===== */
.hidden{
  display:none !important;
}

.tide-module-card{
  padding:18px;
  overflow:hidden;
}

.tide-module-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.tide-module-topbar h3{
  margin:0;
}

.tide-module-controls{
  display:flex;
  gap:8px;
  align-items:center;
}

.tide-nav-btn,
.tide-back-btn{
  border:none;
  background:#2e6fa7;
  color:#fff;
  border-radius:6px;
  cursor:pointer;
  height:32px;
}

.tide-nav-btn{
  width:32px;
  font-size:16px;
}

.tide-back-btn{
  padding:0 14px;
  font-size:13px;
}

.tide-header-compact{
  display:grid;
  grid-template-columns:repeat(12, minmax(64px, 1fr));
  border:1px solid #cfd9e4;
  border-bottom:none;
  overflow-x:auto;
  background:#fff;
}

.tide-day-block{
  border-right:1px solid #cfd9e4;
  min-width:64px;
}

.tide-day-block:last-child{
  border-right:none;
}

.tide-day-block.active .tide-date-top{
  background:#1b6ca8;
}

.tide-day-block.active .tide-date-top span{
  color:#fff;
}

.tide-date-top{
  background:#2e6fa7;
  color:#fff;
  font-size:12px;
  font-weight:700;
  text-align:center;
  padding:8px 4px;
  border-bottom:1px solid #cfd9e4;
}

.tide-date-sub{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:4px 2px;
  background:#f7fbff;
  border-bottom:1px solid #cfd9e4;
  font-size:11px;
  color:#30465b;
}

.tide-expand-btn{
  width:16px;
  height:16px;
  border:1px solid #93a8ba;
  background:#fff;
  color:#2c3e50;
  border-radius:3px;
  font-size:9px;
  line-height:1;
  cursor:pointer;
  padding:0;
}

.tide-expanded-header{
  border:1px solid #cfd9e4;
  border-bottom:none;
  background:#fff;
}

.tide-expanded-title{
  background:#2e6fa7;
  color:#fff;
  text-align:center;
  font-weight:700;
  padding:10px 8px;
  font-size:15px;
  border-bottom:1px solid #cfd9e4;
}

.tide-expanded-sub{
  display:grid;
  grid-template-columns:1fr 1fr;
}

.tide-expanded-sub div{
  text-align:center;
  padding:8px 0;
  background:#f7fbff;
  border-right:1px solid #d8e2ec;
  font-size:12px;
  font-weight:700;
}

.tide-expanded-sub div:last-child{
  border-right:none;
}

.tide-main-grid{
  display:grid;
  grid-template-columns:56px 1fr;
  border:1px solid #d8e2ec;
  border-bottom:none;
  min-height:360px;
}

.tide-y-label{
  display:flex;
  align-items:center;
  justify-content:center;
  border-right:1px solid #d8e2ec;
  background:#fafcff;
}

.tide-y-label span{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  color:#496176;
  font-size:11px;
  font-weight:600;
}

.tide-graph-wrap{
  background:#fff;
  padding:10px;
  height:360px;
}

.tide-graph-wrap canvas{
  width:100% !important;
  height:100% !important;
}

.tide-info-grid{
  border:1px solid #d8e2ec;
}

.tide-info-row{
  display:grid;
  grid-template-columns:96px 1fr;
  border-top:1px solid #d8e2ec;
}

.tide-info-row:first-child{
  border-top:none;
}

.tide-info-label{
  background:#f3f7fb;
  color:#1b6ca8;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:14px 8px;
  border-right:1px solid #d8e2ec;
}

.tide-info-cells{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
}

.tide-info-cell{
  min-height:68px;
  border-right:1px solid #d8e2ec;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:6px;
  background:#fff;
}

.tide-info-cell:last-child{
  border-right:none;
}

.tide-info-cell strong{
  font-size:12px;
  color:#1f3550;
  margin-bottom:3px;
}

.tide-info-cell span{
  font-size:11px;
  color:#5f7488;
}

.tide-info-cell.empty{
  background:#fcfdff;
}

@media (max-width: 980px){
  header{
    flex-direction:column;
    align-items:flex-start;
    gap:15px;
  }

  nav a{
    margin-left:0;
    margin-right:18px;
    display:inline-block;
  }

  .page-head,
  .forecast-grid,
  .middle-grid,
  .live-grid{
    grid-template-columns:1fr;
    display:grid;
  }

  .container{
    padding:20px;
  }

  .tide-main-grid{
    grid-template-columns:1fr;
  }

  .tide-y-label{
    display:none;
  }

  .tide-header-compact{
    grid-template-columns:repeat(6, minmax(70px, 1fr));
  }

  .tide-info-row{
    grid-template-columns:1fr;
  }

  .tide-info-label{
    border-right:none;
    border-bottom:1px solid #d8e2ec;
  }

  .tide-info-cells{
    grid-template-columns:repeat(4, 1fr);
  }

  .climate-grid-3{
    grid-template-columns:1fr;
  }
}

/* ===== BASIS-STYLE TIDE MODULE ===== */
.hidden{
  display:none !important;
}

.tide-basis-card{
  padding:16px;
  overflow:hidden;
}

.tide-basis-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.tide-basis-topbar h3{
  margin:0;
}

.tide-basis-controls{
  display:flex;
  gap:8px;
  align-items:center;
}

.basis-back-btn{
  border:none;
  background:#2f6fa6;
  color:#fff;
  border-radius:6px;
  cursor:pointer;
  height:30px;
  padding:0 14px;
  font-size:13px;
}

.basis-expanded-head{
  border:1px solid #cfd9e4;
  border-bottom:none;
  background:#fff;
}

.basis-expanded-title{
  background:#2f6fa6;
  color:#fff;
  text-align:center;
  font-weight:700;
  font-size:15px;
  padding:10px 8px;
  border-bottom:1px solid #cfd9e4;
}

.basis-expanded-half{
  display:grid;
  grid-template-columns:1fr 1fr;
}

.basis-expanded-half div{
  text-align:center;
  padding:8px 0;
  background:#f7fbff;
  border-right:1px solid #d8e2ec;
  font-size:12px;
  font-weight:700;
}

.basis-expanded-half div:last-child{
  border-right:none;
}

.basis-chart-shell{
  display:grid;
  grid-template-columns:54px 1fr;
  border:1px solid #d8e2ec;
  border-bottom:none;
  min-height:360px;
}

.basis-y-axis{
  display:flex;
  align-items:center;
  justify-content:center;
  border-right:1px solid #d8e2ec;
  background:#fafcff;
}

.basis-y-axis span{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  color:#4a6278;
  font-size:11px;
  font-weight:700;
}

.basis-chart-wrap{
  background:#fff;
  padding:8px;
  height:360px;
}

.basis-chart-wrap canvas{
  width:100% !important;
  height:100% !important;
}

.basis-info-table{
  border:1px solid #d8e2ec;
}

.basis-info-row{
  display:grid;
  grid-template-columns:82px 1fr;
  border-top:1px solid #d8e2ec;
}

.basis-info-row:first-child{
  border-top:none;
}

.basis-info-label{
  background:#f3f7fb;
  color:#1b6ca8;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px 6px;
  border-right:1px solid #d8e2ec;
  font-size:12px;
}

.basis-info-cells{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
}

.basis-info-cell{
  min-height:78px;
  border-right:1px solid #d8e2ec;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:10px 6px;
  background:#fff;
}

.basis-info-cell:hover,
.basis-day-col:hover{
    background:#f5f9fd;
    transition:0.2s;
}

.basis-info-cell:last-child{
  border-right:none;
}

.basis-info-cell strong{
  font-size:12px;
  color:#1f3550;
  margin-bottom:2px;
}

.basis-info-cell span{
  font-size:11px;
  line-height:1.45;
  color:#607689;
}

.basis-info-cell.empty{
  background:#fcfdff;
}

@media (max-width: 980px){
  .basis-chart-shell{
    grid-template-columns:1fr;
  }

  .basis-y-axis{
    display:none;
  }

  .basis-header-grid{
    grid-template-columns:repeat(6, minmax(65px, 1fr));
  }

  .basis-info-row{
    grid-template-columns:1fr;
  }

  .basis-info-label{
    border-right:none;
    border-bottom:1px solid #d8e2ec;
  }

  .basis-info-cells{
    grid-template-columns:repeat(4, 1fr);
  }
}

/* ===== BASIS MULTI-DAY TIDE MODULE ===== */
.tide-basis-card{
  padding:16px;
  overflow:hidden;
}

.tide-basis-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.tide-basis-topbar h3{
  margin:0;
}

.tide-basis-controls{
  display:flex;
  gap:8px;
  align-items:center;
}

.basis-nav-btn{
  border:none;
  background:#2f6fa6;
  color:#fff;
  border-radius:6px;
  cursor:pointer;
  width:30px;
  height:30px;
  font-size:15px;
}

.basis-header-grid{
  display:flex;
  width:100%;
  border:1px solid #cfd9e4;
  border-bottom:none;
  background:#fff;
  overflow:hidden;
}

.basis-day-col{
  min-width:0;
  border-right:1px solid #cfd9e4;
}

.basis-day-col:last-child{
  border-right:none;
}

.basis-date-row{
  background:#2f6fa6;
  color:#fff;
  text-align:center;
  font-weight:700;
  font-size:11px;
  padding:7px 4px;
  border-bottom:1px solid #cfd9e4;
}

.basis-sub-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:4px;
  background:#f7fbff;
  border-bottom:1px solid #cfd9e4;
  font-size:10px;
  color:#334b62;
  padding:4px 2px;
  cursor:pointer;
}

.basis-day-col.selected .basis-date-row{
  background:#1b6ca8;
}

.basis-day-col.selected .basis-sub-row{
  background:#eaf3ff;
  font-weight:700;
}

.basis-day-col.expanded .basis-date-row{
  background:#16598f;
}

.basis-expand-btn{
  width:15px;
  height:15px;
  border:1px solid #97abbd;
  border-radius:3px;
  background:#fff;
  color:#2d4256;
  font-size:9px;
  line-height:1;
  padding:0;
  cursor:pointer;
}

.basis-chart-shell{
  display:grid;
  grid-template-columns:54px 1fr;
  border:1px solid #d8e2ec;
  border-bottom:none;
  min-height:340px;
}

.basis-y-axis{
  display:flex;
  align-items:center;
  justify-content:center;
  border-right:1px solid #d8e2ec;
  background:#fafcff;
}

.basis-y-axis span{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  color:#4a6278;
  font-size:11px;
  font-weight:700;
}

.basis-chart-wrap{
  background:#fff;
  padding:8px;
  height:340px;
}

.basis-chart-wrap canvas{
  width:100% !important;
  height:100% !important;
}

.basis-info-table{
  border:1px solid #d8e2ec;
}

.basis-info-row{
  display:grid;
  grid-template-columns:82px 1fr;
  border-top:1px solid #d8e2ec;
}

.basis-info-row:first-child{
  border-top:none;
}

.basis-info-label{
  background:#f3f7fb;
  color:#1b6ca8;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px 6px;
  border-right:1px solid #d8e2ec;
  font-size:12px;
}

.basis-info-cells{
  display:flex;
  width:100%;
}

.basis-info-cell{
  min-width:0;
  min-height:64px;
  border-right:1px solid #d8e2ec;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:4px;
  background:#fff;
}

.basis-info-cell:last-child{
  border-right:none;
}

.basis-info-cell strong{
  font-size:11px;
  color:#1f3550;
  margin-bottom:2px;
}

.basis-info-cell span{
  font-size:10px;
  color:#607689;
  line-height:1.35;
}

.basis-info-cell.empty{
  background:#fcfdff;
}

.basis-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  justify-content:center;
}

@media (max-width:980px){
  .basis-chart-shell{
    grid-template-columns:1fr;
  }

  .basis-y-axis{
    display:none;
  }

  .basis-header-grid,
  .basis-info-cells{
    overflow-x:auto;
  }
}

.basis-icon-cell{
  font-size:20px;
  line-height:1;
}

.basis-time-pair{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
  justify-content:center;
}

.basis-time-pair span{
  font-size:11px;
  color:#607689;
  line-height:1.35;
}

.basis-mini-stack{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:center;
    justify-content:center;
}

.basis-mini-stack div{
    display:flex;
    flex-direction:column;
    gap:2px;
    align-items:center;
}

.basis-mini-stack strong{
    font-size:12px;
    font-weight:700;
    color:#1f3550;
    line-height:1.2;
}

.basis-mini-stack span{
    font-size:11px;
    color:#607689;
    line-height:1.2;
}

.basis-info-label{
  letter-spacing:0.3px;
}

.basis-icon-cell{
  font-size:20px;
  line-height:1;
}

.basis-single-time{
  font-size:11px;
  color:#607689;
  line-height:1.3;
  text-align:center;
}

.basis-highlow-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  justify-content:center;
}

.basis-highlow-item{
  display:flex;
  flex-direction:column;
  gap:2px;
  align-items:center;
  padding: 10px 6px;
  border-radius: 12px;
}

.basis-highlow-am-pm{
    gap: 12px;
}

.basis-highlow-half{
    padding: 4px 6px;
}

.basis-highlow-item strong{
  font-size:12px;
  color:#1f3550;
  line-height:1.2;
}

.basis-highlow-item span{
  font-size:11px;
  color:#607689;
  line-height:1.2;
}

.basis-year-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef7ff;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #d7e8f7;
}

.basis-year-filter label {
  font-size: 13px;
  font-weight: 600;
  color: #174a75;
}

#yearSelect {
  border: none;
  outline: none;
  background: #ffffff;
  color: #174a75;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 60, 120, 0.08);
}

#yearSelect:hover {
  background: #f7fbff;
}

#yearSelect:focus {
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.18);
}

.footer {
  margin-top: 40px;
  padding: 30px 20px;
  background: #0f2f4f;
  color: #ffffff;
  text-align: center;
}

.footer h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.footer p {
  margin: 4px 0;
  font-size: 13px;
  opacity: 0.85;
}

.footer-meta {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.6;
}

.footer {
  margin-top: 60px;
}

.card {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.live-panel {
  box-shadow: 0 10px 25px rgba(27, 108, 168, 0.2);
}

.tide-basis-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.basis-day-col.selected {
  background: #1b6ca8;
  color: white;
  border-radius: 6px;
}

.basis-icon-cell {
  font-size: 18px;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.card:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}

.footer-pro {
  margin-top: 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0f2f4f, #1b6ca8);
  color: #ffffff;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.footer-brand p {
  font-size: 13px;
  opacity: 0.8;
}

.footer-desc {
  margin: 15px 0;
}

.footer-desc p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.75;
}

.footer-meta {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-meta p {
  font-size: 12px;
  opacity: 0.6;
}

.footer-pro:hover {
  box-shadow: 0 -5px 30px rgba(27, 108, 168, 0.2);
  transition: 0.3s ease;
}

.footer-pro {
  margin-top: 70px;
  padding: 40px 60px;
  background: linear-gradient(135deg, #0f2f4f, #1b6ca8);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 30px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.footer-col p {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.6;
}

.footer-pro {
  border-top: 1px solid rgba(255,255,255,0.15);
}

.daily-tide-section {
  margin-top: 28px;
}

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

.daily-tide-header h3 {
  margin-bottom: 4px;
}

.daily-tide-header p {
  font-size: 13px;
  color: #6b7f92;
}

.daily-filter-group {
  display: flex;
  gap: 10px;
}

.daily-filter-group select {
  padding: 8px 12px;
  border: 1px solid #d7e8f7;
  border-radius: 10px;
  background: #ffffff;
  color: #174a75;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.daily-filter-group select:focus {
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.16);
}

.daily-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.daily-tide-card {
  background: #ffffff;
  border: 1px solid #e0ecf5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(20, 70, 110, 0.08);
}

.daily-card-date {
  border-bottom: 1px solid #e8f0f7;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.daily-card-date h4 {
  margin: 0;
  font-size: 15px;
  color: #12314d;
}

.daily-card-date span {
  font-size: 12px;
  color: #6b7f92;
}

.daily-tide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-tide-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px dashed #e3edf5;
}

.daily-tide-row span {
  font-size: 12px;
  color: #5c6f82;
}

.daily-tide-row strong {
  font-size: 13px;
  color: #12314d;
}

.daily-tide-row em {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #1b6ca8;
  font-style: normal;
}

.daily-sunmoon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8f0f7;
}

.daily-sunmoon-grid div {
  font-size: 14px;
}

.daily-sunmoon-grid span {
  display: block;
  font-size: 11px;
  color: #6b7f92;
  margin-top: 2px;
}

.daily-sunmoon-grid strong {
  display: block;
  font-size: 12px;
  color: #12314d;
  margin-top: 2px;
}

.daily-muted,
.daily-empty {
  color: #7c8c9b;
  font-size: 13px;
}

.daily-tide-card {
  background: #ffffff;
  border: 1px solid #e0ecf5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(20, 70, 110, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
}

/* 🔥 HOVER EFFECT */
.daily-tide-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, #f5fbff, #eaf4ff);
  border: 1px solid #bcdcff;
  box-shadow: 0 12px 28px rgba(27, 108, 168, 0.18);
}

.daily-tide-card:hover strong {
  color: #1b6ca8;
}

.daily-tide-card:hover h4 {
  color: #1b6ca8;
}

.daily-tide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #1b6ca8;
  transition: 0.3s ease;
}

.daily-tide-card:hover::before {
  width: 100%;
}

.daily-tide-card {
  position: relative;
  overflow: hidden;
}

.basis-header-shell {
  display: flex;
  width: 100%;
}

.basis-header-spacer {
  width: 100px; /* adjust if needed */
  flex-shrink: 0;
  border-right: 1px solid #d7e8f7;
  background: #f3f8fc;
}

.basis-header-grid {
  flex: 1;
}

.basis-header-spacer {
  width: 74px;
  flex-shrink: 0;
  background: #f3f8fc;
  border-right: 1px solid #d7e8f7;
}

.fox-mini {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #8aa7bf;
  letter-spacing: 1px;
}

.fox-icon {
  display: block;
  font-size: 20px;
  animation: foxFloat 2s ease-in-out infinite;
  margin-bottom: 4px;
}

.fox-label {
  font-size: 9px;
}

@keyframes foxFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.05);
  }
}

nav a {
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #12314d;
  transition: 0.25s;
}

nav a:hover {
  background: #e3f2fd;
}

nav a.active {
  background: #1b6ca8;
  color: white;
  font-weight: 600;
}

header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(14px);
  box-shadow:
    0 4px 18px rgba(15,40,70,0.08);
  border-bottom:
    1px solid rgba(220,230,240,0.7);
}
#comparisonChart {
  width: 100% !important;
  height: 300px !important;
}

.HIGH {
  color: #16a34a;
  font-weight: 700;
}

.LOW {
  color: #dc2626;
  font-weight: 700;
}

.HIGH {
  color:  #dc2626;
  font-weight: bold;
}

.LOW {
  color: #16a34a;
  font-weight: bold;
}

.badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.HIGH {
  background: #dcfce7;
  color: #991b1b #166534;
}

.LOW {
  background: #fee2e2;
  color: #166534;
}

.HIGH {
  background: #dcfce7;
  color: #15803d;
}

.LOW {
  background: #fee2e2;
  color: #b91c1c;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.data-card {
  background: #ffffff;
  border: 1px solid #e0ecf5;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(20, 70, 110, 0.08);
  transition: 0.25s ease;
}

.data-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(27, 108, 168, 0.18);
}

.data-row {
  margin-bottom: 8px;
  font-size: 13px;
  color: #5c6f82;
}

.data-row strong {
  display: block;
  font-size: 14px;
  color: #12314d;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.HIGH {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.LOW {
  background: #fee2e2;
  color: #b91c1c;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

.data-row {
  margin: 6px 0;
  font-size: 14px;
  color: #2c3e50;
}

.label {
  font-weight: 600;
  color: #1b6ca8;
  margin-right: 6px;
}

#actualChart {
  width: 100% !important;
  height: 350px !important;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.data-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.status-badge.HIGH {
  background: #d4edda;
  color: #155724;
}

.status-badge.LOW {
  background: #f8d7da;
  color: #721c24;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.download-btn {
  background: #2b7cd3;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
}

.download-btn:hover {
  background: #1f5fa8;
}

.download-section {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.download-section select,
.download-section button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.download-section button {
  background: #2b7cd3;
  color: white;
  border: none;
  cursor: pointer;
}

.download-section button:hover {
  background: #1f5fa8;
}

/* ======================================
COMPARISON PAGE
====================================== */

.summary-grid {

    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 25px;
}

.summary-card {

    background: white;

    border-radius: 18px;

    padding: 24px;

    box-shadow:
    0 4px 20px rgba(0,0,0,0.05);

    text-align: center;
}

.summary-card h4 {

    color: #64748b;

    margin-bottom: 10px;

    font-size: 14px;
}

.summary-card p {

    font-size: 30px;

    font-weight: 700;

    color: #0f172a;
}

.chart-container {

    position: relative;

    height: 380px;
}

.card {

    background: white;

    border-radius: 18px;

    padding: 28px;

    margin-bottom: 25px;

    box-shadow:
    0 4px 20px rgba(0,0,0,0.05);
}

.card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}

.badge {

    background: #dbeafe;

    color: #2563eb;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;
}

.table-wrapper {

    overflow-x: auto;
}

#comparisonTable {

    width: 100%;

    border-collapse: collapse;
}

#comparisonTable th {

    background: #eff6ff;

    color: #1e3a5f;

    padding: 15px;

    text-align: left;
}

#comparisonTable td {

    padding: 14px;

    border-bottom:
    1px solid #e5e7eb;
}

#comparisonTable tr:hover {

    background: #f8fafc;
}

#accuracy {

    color: #16a34a;
}

/* ===================================== */
/* COMPARISON SUMMARY FINAL */
/* ===================================== */

.comparison-summary{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin:25px 0;

}

/* ===================================== */
/* SUMMARY CARDS */
/* ===================================== */

.summary-card{

    background:#ffffff;

    border-radius:24px;

    padding:28px;

    box-shadow:
    0 8px 24px rgba(0,0,0,0.05);

    transition:0.3s ease;

    position:relative;
    overflow:hidden;

    border-left:5px solid #2563eb;

    min-height:260px;

    display:flex;
    flex-direction:column;
    justify-content:flex-start;

}

.summary-card:hover{

    transform:translateY(-3px);

}

/* ===================================== */
/* CARD COLORS */
/* ===================================== */

.accuracy-card{
    border-left-color:#22c55e;
}

.actual-card{
    border-left-color:#2563eb;
}

.predicted-card{
    border-left-color:#8b5cf6;
}

/* ===================================== */
/* ICON */
/* ===================================== */

.summary-icon{

    width:70px;
    height:70px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:2.2rem;

    margin-bottom:18px;

    background:#eff6ff;

}

.accuracy-card .summary-icon{
    background:#dcfce7;
}

.actual-card .summary-icon{
    background:#dbeafe;
}

.predicted-card .summary-icon{
    background:#f3e8ff;
}

/* ===================================== */
/* TITLES */
/* ===================================== */

.summary-card h3{

    font-size:1.2rem;
    color:#64748b;

    margin-bottom:14px;

    font-weight:600;

}

/* ===================================== */
/* MAIN VALUES */
/* ===================================== */

.summary-card h1{

    font-size:3.2rem;

    font-weight:800;

    margin-bottom:14px;

    line-height:1;

}

.accuracy-card h1{
    color:#16a34a;
}

.actual-card h1{
    color:#2563eb;
}

.predicted-card h1{
    color:#7c3aed;
}

/* ===================================== */
/* BADGES */
/* ===================================== */

.badge{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    width:fit-content;

    padding:8px 16px;

    border-radius:999px;

    font-size:0.9rem;
    font-weight:700;

    margin-bottom:18px;

}

.green{
    background:#dcfce7;
    color:#15803d;
}

.blue{
    background:#dbeafe;
    color:#1d4ed8;
}

.purple{
    background:#ede9fe;
    color:#7c3aed;
}

/* ===================================== */
/* DESCRIPTION */
/* ===================================== */

.summary-card p{

    font-size:0.95rem;

    line-height:1.6;

    color:#475569;

    border-top:1px solid #e2e8f0;

    padding-top:18px;

    margin-top:auto;

}

/* ===================================== */
/* LIVE BADGE */
/* ===================================== */

.live-badge{

    background:#dbeafe;
    color:#2563eb;

    padding:8px 16px;

    border-radius:999px;

    font-weight:700;

}

/* ===================================== */
/* CHART + TABLE */
/* ===================================== */

.card{

    width:100%;

    border-radius:24px;

    padding:28px;

    background:#fff;

    box-shadow:
    0 8px 24px rgba(0,0,0,0.05);

    margin-bottom:28px;

}

.chart-container{

    width:100%;

    min-height:420px;

}

.table-wrapper{

    width:100%;
    overflow-x:auto;

}

#comparisonTable{

    width:100%;
    min-width:850px;

}

/* ===================================== */
/* MOBILE */
/* ===================================== */

@media(max-width:1100px){

    .comparison-summary{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .summary-card{

        min-height:auto;

        padding:24px;

    }

    .summary-card h1{

        font-size:2.8rem;

    }

    .summary-icon{

        width:65px;
        height:65px;

        font-size:2rem;

    }

    .card{

        padding:18px;

    }

    .chart-container{

        min-height:320px;

    }

}

/* ======================================
DOWNLOAD SYSTEM
====================================== */

.filter-bar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    gap:15px;

    flex-wrap:wrap;

}

.filter-left{

    display:flex;

    gap:10px;

}

.filter-left select{

    padding:10px 14px;

    border-radius:10px;

    border:1px solid #dbe4ee;

    background:#fff;

    font-weight:600;

    cursor:pointer;

}

.download-main-btn{

    background:#2563eb;

    color:white;

    border:none;

    padding:11px 18px;

    border-radius:12px;

    font-weight:700;

    cursor:pointer;

    transition:0.25s;

}

.download-main-btn:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

/* ======================================
MODAL
====================================== */

.download-modal{

    position:fixed;

    inset:0;

    background:rgba(15,23,42,0.55);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.download-modal-content{

    width:420px;

    max-width:95%;

    background:white;

    border-radius:24px;

    padding:28px;

    box-shadow:
    0 20px 50px rgba(0,0,0,0.18);

    animation:modalPop 0.25s ease;

}

@keyframes modalPop{

    from{

        opacity:0;
        transform:scale(0.9);

    }

    to{

        opacity:1;
        transform:scale(1);

    }

}

.download-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:22px;

}

.download-header h3{

    margin:0;

    color:#1e293b;

}

.close-download-btn{

    background:#f1f5f9;

    border:none;

    width:36px;

    height:36px;

    border-radius:50%;

    cursor:pointer;

    font-size:16px;

}

.download-group{

    display:flex;

    flex-direction:column;

    gap:8px;

    margin-bottom:18px;

}

.download-group label{

    font-size:14px;

    font-weight:600;

    color:#475569;

}

.download-group select{

    padding:12px 14px;

    border-radius:12px;

    border:1px solid #dbe4ee;

    background:#fff;

    font-size:14px;

    font-weight:600;

}

.download-submit-btn{

    width:100%;

    padding:14px;

    border:none;

    border-radius:14px;

    background:#2563eb;

    color:white;

    font-size:15px;

    font-weight:700;

    cursor:pointer;

    transition:0.25s;

}

.download-submit-btn:hover{

    background:#1d4ed8;

}

.hidden{

    display:none;

}

/* ======================================
AM PM TIDE LAYOUT
====================================== */

.basis-am-pm-grid{
  display:flex;
  flex-direction:column;
  width:100%;
}

.basis-am-pm-row{
  display:grid;
  grid-template-columns:1fr 1px 1fr;
  align-items:center;
  min-height:58px;
  position:relative;
  padding-top:14px;
}

.basis-am-pm-row:not(:last-child){
  border-bottom:1px solid #eef3f8;
}

.basis-divider{
  width:1px;
  height:70%;
  background:#d8e2ec;
  margin:auto;
}

.basis-time-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:8px 4px;
}

.basis-time-block strong{
  font-size:12px;
  color:#1f3550;
  line-height:1.2;
}

.basis-time-block span{
  font-size:11px;
  color:#607689;
  margin-top:3px;
}

.basis-am-pm-row:first-child::before{
  content:"AM";
  position:absolute;
  left:25%;
  top:4px;
  transform:translateX(-50%);
  font-size:9px;
  font-weight:700;
  color:#7b8ea3;
  letter-spacing:0.5px;
}

.basis-am-pm-row:first-child::after{
  content:"PM";
  position:absolute;
  right:25%;
  top:4px;
  transform:translateX(50%);
  font-size:9px;
  font-weight:700;
  color:#7b8ea3;
  letter-spacing:0.5px;
}

/* ======================================
RESPONSIVE DASHBOARD FIX
====================================== */

/* LARGE SCREENS */
.container{
  width:min(96%, 1650px);
  margin:auto;
}

/* TABLETS */
@media (max-width: 1200px){

  .forecast-grid,
  .middle-grid{
    grid-template-columns:1fr;
  }

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

  .live-mini-panel{
    width:100%;
    justify-content:center;
  }

  .basis-info-cell{
    min-width:120px;
  }

}

/* MOBILE */
@media (max-width: 768px){

  body{
    overflow-x:hidden;
  }

  .container{
    width:100%;
    padding:14px;
  }

  header{
    padding:16px;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  nav{
    width:100%;
    overflow-x:auto;
    white-space:nowrap;
    padding-bottom:4px;
    gap: 18px;
  }

  nav a{
    display:inline-block;
    margin-right:8px;
    margin-left:0;
    font-size:13px;
  }

  .page-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .date-time-card{
    width:100%;
  }

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

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

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

  .live-mini-panel{
    width:100%;
    min-width:unset;
    justify-content:center;
  }

  .climate-grid-3{
    grid-template-columns:1fr;
  }

  /* TIDE CHART */
  .basis-header-shell,
  .basis-chart-shell,
  .basis-info-table{
    overflow-x:auto;
  }

.basis-header-grid{
  min-width:900px;
}

.basis-chart-wrap{
  min-width:900px;
}

.basis-info-cells{
  min-width:900px;
}
  .basis-info-cell{
    min-width:130px;
  }

  .basis-info-label{
    min-width:70px;
    font-size:11px;
  }

  /* HIGH LOW */
  .basis-time-block strong{
    font-size:11px;
  }

  .basis-time-block span{
    font-size:10px;
  }

  /* DAILY CARDS */
  .daily-cards-grid{
    grid-template-columns:1fr;
  }

  /* FOOTER */
  .footer-grid{
    grid-template-columns:1fr;
    text-align:left;
    gap:20px;
  }

  .footer-right{
    text-align:left;
  }

}

/* ======================================
BETTER TITLE LOOK
====================================== */

.logo h1{
    font-size: 2.2rem;
    line-height: 1.1;
}
.page-head-left h2{
  font-size:30px;
  margin-bottom:8px;
  color:#16324f;
}

.subtitle{
  font-size:15px;
  color:#6d7f92;
}

/* ======================================
TIDE CHART SECTION
====================================== */

.tide-basis-card{
  padding: 28px;
  border-radius:26px;
}

.basis-chart-wrap{
  background:
    linear-gradient(
      to bottom,
      #f8fbff,
      #eef5fb
    );
  height: 420px;
}

.basis-info-label{
  background:#f7fbff;
  font-size:13px;
  font-weight:800;
  letter-spacing:0.6px;
}

.basis-date-row{
  font-size:12px;
}

/* ======================================
DAILY CARDS IMPROVEMENT
====================================== */

.daily-tide-card{
  border-radius:20px;
}

.daily-card-date h4{
  font-size:15px;
}

.daily-tide-card:hover{
  transform:
    translateY(-5px)
    scale(1.01);
}

/* ======================================
FOOTER FIX
====================================== */

.footer-pro{
  border-radius:24px 24px 0 0;
}

html, body{
  overflow-x:hidden;
}

@media (max-width: 768px){

    .container{
        width: 95%;
    }

    .forecast-grid,
    .middle-grid{
        grid-template-columns: 1fr;
    }

    nav{
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .page-head{
        flex-direction: column;
        gap: 20px;
    }

    .live-grid{
        flex-direction: column;
        align-items: flex-start;
    }

    .basis-info-cells{
        overflow-x: auto;
    }

    .daily-cards-grid{
        grid-template-columns: 1fr;
    }

    .footer-grid{
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

}

/* =========================
   DASHBOARD WIDTH FIX
========================= */

.container,
.dashboard-container,
.main-content,
.content-wrapper{
    width: 100%;
    max-width: 1600px;
    margin: auto;
    padding-left: 35px;
    padding-right: 35px;
    box-sizing: border-box;
}

/* SECTION SPACING */
section,
.dashboard-section,
.card-section{
    margin-bottom: 30px;
}

/* TIDE CHART FIX */
.tide-chart-container{
    overflow-x: auto;
    padding-bottom: 10px;
}

/* DAILY CARDS GRID */
.daily-cards,
.daily-tide-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* MAP FIX */
.map-container iframe{
    width: 100%;
    border-radius: 18px;
}

/* RESPONSIVE */
@media (max-width: 768px){

    .container,
    .dashboard-container,
    .main-content,
    .content-wrapper{
        padding-left: 16px;
        padding-right: 16px;
    }

    .daily-cards,
    .daily-tide-grid{
        grid-template-columns: 1fr;
    }
}

/* FIX OVERFLOW RIGHT SIDE */

*{
    box-sizing: border-box;
}

html, body{
    width: 100%;
    overflow-x: hidden;
}

section,
div,
.container,
.row,
.col,
.card{
    max-width: 100%;
}

/* MAIN CONTENT CENTER */
.main-content,
.dashboard-container,
.content-wrapper{
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 25px;
    padding-right: 25px;
}

/* FIX LARGE ELEMENTS */
img,
iframe,
table,
canvas{
    max-width: 100%;
}

/* CHART SCROLL */
.tide-chart-container{
    overflow-x: auto;
}

/* =========================================
   NEW LIVE TIDE DESIGN
========================================= */

.live-tide{
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 40px;
    margin-top: 25px;

    background:
    linear-gradient(
        rgba(10, 35, 60, 0.55),
        rgba(10, 35, 60, 0.55)
    ),
    url("website_calumpang/css/images/calumpang_bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    min-height: 260px;

    box-shadow:
    0 15px 35px rgba(0,0,0,0.15);

    backdrop-filter: blur(4px);
}

/* LIVE LABEL */

.live-tide .badge,
.live-badge{
    background: #ff2b2b;
    color: white;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;

    animation: pulse 2s infinite;
}

/* TEXT */

.live-tide h2,
.live-tide h3{
    font-size: 38px;
    margin-bottom: 15px;
    font-weight: 800;
    color: white;
}

.live-tide p{
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
}

/* RIGHT CARD */

.live-meter,
.live-card-right{
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);

    backdrop-filter: blur(12px);

    padding: 25px;

    border-radius: 24px;

    min-width: 290px;

    display: flex;
    align-items: center;
    gap: 20px;
}

/* CIRCLE */

.live-circle,
.tide-circle{
    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #ff7aa2,
        #ffb3c8
    );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
    font-weight: 800;

    color: #17324f;

    box-shadow:
    0 10px 25px rgba(255, 122, 162, 0.4);
}

/* ANIMATION */

@keyframes pulse{
    0%{
        transform: scale(1);
        opacity: 1;
    }

    50%{
        transform: scale(1.05);
        opacity: 0.85;
    }

    100%{
        transform: scale(1);
        opacity: 1;
    }
}

/* MOBILE */

@media (max-width: 900px){

    .live-tide{
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

    .live-tide h2,
    .live-tide h3{
        font-size: 28px;
    }

    .live-tide p{
        font-size: 16px;
    }

    .live-meter,
    .live-card-right{
        width: 100%;
        justify-content: center;
    }

    .live-circle,
    .tide-circle{
        width: 90px;
        height: 90px;
        font-size: 26px;
    }
}

/* ===================================
   CINEMATIC LIVE TIDE PANEL
=================================== */

.live-tide-panel{
    position: relative;
    overflow: hidden;

    border-radius: 35px;
    padding: 45px;

    min-height: 420px;

    display: flex;
    align-items: center;

    background:
    linear-gradient(
        rgba(7,20,40,0.45),
        rgba(7,20,40,0.55)
    ),
    url("/calumpang_bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    backdrop-filter: blur(4px);

    color: white;

    box-shadow:
    0 15px 40px rgba(0,0,0,0.15);

    margin-top: 25px;
    margin-bottom: 55px;
}

/* CONTENT */

.live-content{
    position: relative;
    z-index: 2;

    width: 100%;
}

/* STATUS */

.live-status{
    display: flex;
    align-items: center;
    gap: 12px;

    color: white;

    font-size: 18px;
    font-weight: 700;

    margin-bottom: 45px;

    letter-spacing: 1px;
}

.live-dot{
    width: 16px;
    height: 16px;

    background: #ff4d67;

    border-radius: 50%;

    animation: pulseLive 1.5s infinite;
}

/* MAIN VALUE */

.live-label{
    color: rgba(255,255,255,0.7);

    font-size: 22px;

    margin-bottom: 15px;
}

.live-value{
    font-size: 90px;
    color: white;

    font-weight: 800;

    margin-bottom: 40px;

    line-height: 1;
}

/* TIDE BOXES */

.live-times{
    display: flex;
    gap: 30px;

    margin-bottom: 40px;

    flex-wrap: wrap;
}

.tide-box{
    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(8px);

    padding: 20px 28px;

    border-radius: 18px;

    min-width: 180px;
}

.tide-box span{
    color: rgba(255,255,255,0.7);

    font-size: 15px;
}

.tide-box h3{
    color: white;

    font-size: 32px;

    margin-top: 10px;
}

/* UPDATE TEXT */

.update-text{
    margin-top: 30px;
    margin-bottom: 10px;

    color: rgba(255,255,255,0.75);
    font-size: 18px;
}

/* ANIMATION */

@keyframes pulseLive{

    0%{
        transform: scale(1);
        opacity: 1;
    }

    50%{
        transform: scale(1.3);
        opacity: 0.6;
    }

    100%{
        transform: scale(1);
        opacity: 1;
    }
}

/* MOBILE */

@media (max-width: 768px){

    .live-tide-panel{
        padding: 30px;
        min-height: auto;
    }

    .live-value{
        font-size: 58px;
    }

    .live-times{
        flex-direction: column;
    }

    .tide-box{
        width: 100%;
    }
}

.live-overlay{
    position: absolute;
    inset: 0;

    background:
    linear-gradient(
        to bottom,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.25)
    );

    z-index: 1;
}

.live-content{
    position: relative;
    z-index: 5;
}

.live-status{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: rgba(255,255,255,0.12);

    padding: 10px 18px;
    border-radius: 999px;

    font-weight: 600;
    letter-spacing: 1px;

    backdrop-filter: blur(10px);
}

.live-dot{
    width: 12px;
    height: 12px;

    background: #ff4d6d;
    border-radius: 50%;

    box-shadow:
    0 0 12px #ff4d6d;
}

.live-main{
    margin-top: 35px;
}

.live-label{
    font-size: 18px;
    opacity: 0.9;
}

.live-value{
    font-size: 72px;
    font-weight: 700;

    margin: 10px 0 30px;
}

.live-times{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tide-box{
    background: rgba(255,255,255,0.12);

    padding: 18px 24px;

    border-radius: 18px;

    backdrop-filter: blur(12px);

    min-width: 180px;
}

.tide-box span{
    font-size: 14px;
    opacity: 0.85;
}

.tide-box h3{
    margin-top: 8px;
    font-size: 28px;
}

.update-text{
    margin-top: 25px;
    opacity: 0.8;
}

.live-tide-panel::before{
    content: "";

    position: absolute;
    left: -10%;
    bottom: -30px;

    width: 120%;
    height: 140px;

    background:
    rgba(255,255,255,0.10);

    border-radius: 100% 100% 0 0;

    animation: waveMove 8s ease-in-out infinite;

    backdrop-filter: blur(10px);
}

.live-tide-panel::after{
    content: "";

    position: absolute;
    left: -5%;
    bottom: -50px;

    width: 110%;
    height: 120px;

    background:
    rgba(255,255,255,0.07);

    border-radius: 100% 100% 0 0;

    animation: waveMove2 12s ease-in-out infinite;
}

@keyframes waveMove{
    0%{
        transform: translateX(0) translateY(0);
    }

    50%{
        transform: translateX(-8%) translateY(10px);
    }

    100%{
        transform: translateX(0) translateY(0);
    }
}

@keyframes waveMove2{
    0%{
        transform: translateX(0) translateY(0);
    }

    50%{
        transform: translateX(8%) translateY(-8px);
    }

    100%{
        transform: translateX(0) translateY(0);
    }
}

.live-content{
    position: relative;
    z-index: 5;
}

.water-motion{
    position: absolute;
    bottom: -10px;
    left: 0;

    width: 300%;
    height: 180px;

    background:
    radial-gradient(circle at 50% 50%,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0) 70%);

    border-radius: 45%;

    animation: waveMove 10s linear infinite;

    opacity: 0.6;

    z-index: 2;
}
.water-motion2{
    position: absolute;
    bottom: -25px;
    left: -50%;

    width: 300%;
    height: 200px;

    background:
    radial-gradient(circle at 50% 50%,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0) 70%);

    border-radius: 40%;

    animation: waveMove2 16s linear infinite;

    opacity: 0.5;

    z-index: 2;
}

@keyframes waterMove{
    from{
        transform: translateX(0);
    }

    to{
        transform: translateX(-50%);
    }
}

@keyframes waterMoveReverse{
    from{
        transform: translateX(-50%);
    }

    to{
        transform: translateX(0);
    }
}

.live-content{
    position: relative;
    z-index: 5;
}

.arrow-up,
.arrow-down{
    font-family: Arial, sans-serif;
}