/* ==========================================================================
   Weather Forecast Page — /weather-forecast
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   ========================================================================== */

/* --- Hero --- */
.wf-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: #1a3a4a;
}
.wf-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%);
}
.wf-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;
}
.wf-hero h1 i { margin-right: 8px; }
.wf-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) {
  .wf-hero { min-height: 340px; }
  .wf-hero h1 { font-size: 42px; }
  .wf-hero p { font-size: 21px; }
}

/* --- Island Tabs --- */
.wf-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px auto 6px;
  padding: 0 12px;
  max-width: 780px;
}
.wf-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;
}
.wf-tab:hover {
  border-color: #bbb;
  color: #333;
  background: #f8f8f8;
}
.wf-tab.is-active {
  background: #2a7b5b;
  border-color: #2a7b5b;
  color: #fff;
}
.wf-tab .wf-tab-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

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

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

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

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

/* --- Microclimate Grid --- */
.wf-micro-intro {
  font-size: 17px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 20px;
}
.wf-micro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .wf-micro-grid { grid-template-columns: repeat(2, 1fr); }
}
.wf-micro-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.wf-micro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}
.wf-micro-windward::before { background: #3b82f6; }
.wf-micro-leeward::before { background: #f59e0b; }
.wf-micro-card h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 4px;
  font-weight: 700;
}
.wf-micro-card .wf-micro-loc {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 12px;
}
.wf-micro-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  color: #444;
}
.wf-micro-row:last-child { border-bottom: none; }
.wf-micro-row strong {
  color: #1a1a1a;
}

/* --- 7-Day Forecast --- */
.wf-forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  min-height: 200px;
}
@media (min-width: 560px) {
  .wf-forecast-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .wf-forecast-grid { grid-template-columns: repeat(7, 1fr); }
}
.wf-day-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: box-shadow .2s ease;
}
.wf-day-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.wf-day-card.is-today {
  border-color: #2a7b5b;
  background: #f0faf5;
}
.wf-day-name {
  font-size: 15px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 8px;
}
.wf-day-card.is-today .wf-day-name {
  color: #2a7b5b;
}
.wf-day-icon {
  font-size: 30px;
  color: #2a7b5b;
  margin-bottom: 8px;
}
.wf-day-temp {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 2px;
}
.wf-day-low {
  font-size: 15px;
  color: #999;
  margin-bottom: 6px;
}
.wf-day-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.35;
}
.wf-day-rain {
  font-size: 13px;
  color: #4a90c4;
  margin-top: 4px;
}
.wf-forecast-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 16px;
}
.wf-forecast-error a {
  color: #2a7b5b;
  text-decoration: underline;
}

/* --- Seasonal Context --- */
.wf-context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .wf-context-grid { grid-template-columns: repeat(2, 1fr); }
}
.wf-context-card {
  background: #f0f7f4;
  border: 1px solid #d0e8db;
  border-radius: 14px;
  padding: 22px 24px;
}
.wf-context-card h3 {
  font-size: 19px;
  color: #2a7b5b;
  margin: 0 0 8px;
  font-weight: 700;
}
.wf-context-card p {
  font-size: 16px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}

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

/* --- Bottom Links --- */
.wf-bottom-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 44px 0 30px;
}
@media (min-width: 560px) {
  .wf-bottom-links { grid-template-columns: repeat(2, 1fr); }
}
.wf-bottom-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f4ec 100%);
  border: 1px solid #d0e8db;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  font-size: 17px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.wf-bottom-link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.wf-bottom-link i {
  font-size: 28px;
  color: #2a7b5b;
  flex-shrink: 0;
}
.wf-bottom-link strong {
  color: #2a7b5b;
}

/* --- Island Weather Guides --- */
.wf-island-guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .wf-island-guides { grid-template-columns: 1fr; }
}
.wf-island-guide {
  display: block;
  padding: 14px 18px;
  background: #fafafa;
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.wf-island-guide:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.wf-island-guide strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.wf-island-guide span {
  display: block;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

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