/* === Card 25 – Card 8 layout + Marine/Tide footer === */  

.mw-card.card-25 {
  background: #01252b;
  color: #ffffff;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 1.08rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

/* keep everything inside sane regardless of theme */
.mw-card.card-25 *,
.mw-card.card-25 *::before,
.mw-card.card-25 *::after {
  box-sizing: border-box;
}

.mw-card.card-25 h1,
.mw-card.card-25 h2,
.mw-card.card-25 h3,
.mw-card.card-25 h4,
.mw-card.card-25 h5,
.mw-card.card-25 h6,
.mw-card.card-25 p {
  margin: 0;
  padding: 0;
}

/* ---------- Alerts ---------- */

.mw-card.card-25 .mw-alert-banner {
  background: #00838f;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.mw-card.card-25 .mw-alert-item small {
  display: block;
  font-size: 0.8rem;
  color: #ccf7ff;
  margin-top: 2px;
}

/* ---------- Header ---------- */

.mw-card.card-25 .mw-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #015e6b;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mw-card.card-25 .mw-header-left {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.mw-card.card-25 .mw-city {
  font-size: 1.6rem;
}

.mw-card.card-25 .mw-date-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mw-card.card-25 .mw-date {
  font-size: 1.15rem;
}

.mw-card.card-25 .mw-local-time {
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  opacity: 0.9;
  margin-top: 3px;
}

/* ---------- Layout: current + hourly ---------- */

.mw-card.card-25 .mw-current-hourly-wrap {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;          /* stack on small screens */
  align-items: stretch;
}

/* ≥600px: side-by-side */
@media (min-width: 600px) {
  .mw-card.card-25 .mw-current-hourly-wrap {
    flex-wrap: nowrap;
  }

  .mw-card.card-25 .mw-current {
    flex: 0 0 360px;
  }

  .mw-card.card-25 .mw-hourly {
    flex: 1 1 auto;
  }
}

/* <600px: stack */
@media (max-width: 599px) {
  .mw-card.card-25 .mw-current,
  .mw-card.card-25 .mw-hourly {
    flex: 1 1 100%;
  }
}

/* ---------- Current block ---------- */

.mw-card.card-25 .mw-current {
  background: #017786;
  padding: 1rem;
  border-radius: 8px;
}

.mw-card.card-25 .mw-weather-icon-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.mw-card.card-25 .mw-icon-now {
  font-size: 100px;
  line-height: 1;
  color: #fff;
  display: block;
  margin: 0 auto 0.5rem;
}

/* moon image position */
.mw-card.card-25 .mw-moon-img {
  position: absolute;
  top: -10px;
  right: -220px;
  width: 100px;
  height: auto;
  opacity: 0.95;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.mw-card.card-25 .mw-temp {
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
}

.mw-card.card-25 .mw-desc {
  font-size: 1.05rem;
  text-align: center;
  text-transform: capitalize;
  margin: 0.25rem 0 1rem;
}

.mw-card.card-25 .mw-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
  font-size: 1.05rem;
}

/* ---------- Hourly grid ---------- */

.mw-card.card-25 .mw-hourly {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
}

.mw-card.card-25 .mw-hour-block {
  background: #026674;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}

.mw-card.card-25 .mw-hour-time {
  font-weight: bold;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.mw-card.card-25 .mw-hour-block i.wi {
  font-size: 32px;
  color: #fff;
}

.mw-card.card-25 .mw-hour-temp {
  font-size: 1.3rem;
  margin-top: 0.25rem;
}

.mw-card.card-25 .mw-hour-pop,
.mw-card.card-25 .mw-hour-wind,
.mw-card.card-25 .mw-hour-extra {
  font-size: 1rem;
  margin-top: 0.2rem;
  color: #b2ebf2;
}

/* ---------- 7-day forecast strip (same layout as card 8) ---------- */

.mw-card.card-25 .mw-forecast-title {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  text-align: center;
  color: #d2f8ff;
}

.mw-card.card-25 .mw-forecast-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  overflow-x: visible;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.mw-card.card-25 .mw-forecast-item {
  min-width: 0;
  background: #015665;
  padding: 0.7rem 0.6rem;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
  font-size: 1rem;
}

.mw-card.card-25 .mw-forecast-item i.wi {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.mw-card.card-25 .mw-day {
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.mw-card.card-25 .mw-temps {
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.mw-card.card-25 .mw-pop,
.mw-card.card-25 .mw-wind {
  font-size: 1rem;
  color: #b2ebf2;
}

/* ---------- Marine & Tide footer ---------- */

.mw-card.card-25 .mw-marine-tide-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  background: #02404a;
  border-radius: 8px;
  padding: 1rem;
  color: #fff;
  margin-top: 1rem;
  font-size: 1.25rem;
}

/* Card 25 — keep buttons bottom-left, move "Last updated" to bottom-right */
.mw-card.card-25 {
  position: relative !important;
}

/* Ensure the dock exists as a positioning context */
.mw-card.card-25 .mwpl-userloc-dock {
  position: absolute !important;
  left: 10px !important;
  bottom: 10px !important;
  z-index: 9999 !important;
}

/* Target the last-updated/freshness line and pin it to bottom-right */
.mw-card.card-25 .mw-timezone-hint,
.mw-card.card-25 .mw-freshness {
  position: absolute !important;
  right: 12px !important;
  bottom: 10px !important;
  left: auto !important;
  margin: 0 !important;
  width: auto !important;
  text-align: right !important;
  z-index: 9998 !important;
  pointer-events: none !important;
}

/* If card 25 has the clock icon + text inside, keep it aligned nicely */
.mw-card.card-25 .mw-timezone-hint *,
.mw-card.card-25 .mw-freshness * {
  vertical-align: middle !important;
}

/* CARD 25 — true bottom footer (buttons left, last-updated right) */
.mw-card.card-25{
  position: relative !important;
  padding-bottom: 44px !important; /* makes room for footer so nothing overlaps */
}

/* keep the marine/tide area from eating the footer space visually */
.mw-card.card-25 .mw-marine-tide-wrap{
  margin-bottom: 0 !important;
}

/* Buttons: bottom-left */
.mw-card.card-25 .mwpl-userloc-inline{
  position: absolute !important;
  left: 12px !important;
  bottom: 10px !important;
  transform: none !important;
  z-index: 9999 !important;
}

/* Last updated: bottom-right */
.mw-card.card-25 .mw-timezone-hint,
.mw-card.card-25 .mw-freshness{
  position: absolute !important;
  right: 12px !important;
  bottom: 10px !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  z-index: 9998 !important;
  pointer-events: none !important;
  text-align: right !important;
  width: auto !important;
}

