/* =========================================================
   Hidden Spot Cafe — Rain Check page styles
   File: /rain-check/weather.css

   CLEANED VERSION NOTES:
   - Tinanggal ang duplicated at conflicting rules
   - Iningatan lahat ng may silbi sa website
   - Inayos ang mobile overflow at section alignment
   - Uniform na ang left/right spacing ng lahat ng cards
   - Nilagyan ng comments bawat major block para madaling i-debug
   ========================================================= */


/* =========================================================
   GLOBAL PAGE SAFETY
   Prevent unwanted horizontal scroll and set base defaults
   ========================================================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  color: #eaeaf0;
}


/* =========================================================
   PAGE BACKGROUND / OVERALL ATMOSPHERE
   Nagbabago ang mood gamit ang body classes:
   .weather-clear / .weather-cloudy / .weather-rain / .weather-storm
   ========================================================= */
.weather-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.18) 0%, rgba(168, 85, 247, 0) 36%),
    radial-gradient(circle at 80% 10%, rgba(67, 97, 238, 0.2) 0%, rgba(67, 97, 238, 0) 32%),
    radial-gradient(circle at 50% -10%, #303060 0%, #14142a 48%, #050509 90%);
  transition: background 0.4s ease;
}

.weather-page.weather-clear {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 210, 120, 0.18) 0%, rgba(255, 210, 120, 0) 32%),
    radial-gradient(circle at 80% 10%, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0) 34%),
    radial-gradient(circle at 50% -10%, #4f63c9 0%, #1c2348 48%, #070913 90%);
}

.weather-page.weather-cloudy {
  background:
    radial-gradient(circle at 20% 0%, rgba(180, 180, 210, 0.12) 0%, rgba(180, 180, 210, 0) 34%),
    radial-gradient(circle at 80% 10%, rgba(120, 130, 170, 0.18) 0%, rgba(120, 130, 170, 0) 36%),
    radial-gradient(circle at 50% -10%, #434a72 0%, #181b31 48%, #050509 90%);
}

.weather-page.weather-rain {
  background:
    radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0) 34%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 36%),
    radial-gradient(circle at 50% -10%, #27345e 0%, #11172b 48%, #030509 90%);
}

.weather-page.weather-storm {
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.16) 0%, rgba(168, 85, 247, 0) 34%),
    radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 36%),
    radial-gradient(circle at 50% -10%, #2d2356 0%, #120f22 48%, #020206 90%);
}


/* =========================================================
   HERO SECTION + PAGE WIDTH
   Top layout wrapper and content width control
   ========================================================= */
.weather-hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 110px 20px 30px;
}

.weather-shell,
.weather-main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.weather-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.weather-main {
  padding: 10px 20px 60px;
}


/* =========================================================
   GLASS CARDS
   Reusable card style for intro, summary, hourly, guide
   ========================================================= */
.glass-card {
  background: rgba(18, 18, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.weather-intro,
.weather-summary,
.hourly-card,
.guide-card,
.smart-engine {
  padding: 28px;
}


/* =========================================================
   BADGES / PILLS
   Small labels across the UI
   ========================================================= */
.weather-badge,
.summary-pill,
.art-label,
.smart-engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.weather-badge,
.summary-pill,
.art-label {
  color: #f8d6ff;
}

.smart-engine-badge {
  color: #f2f4ff;
  font-weight: 600;
}


/* =========================================================
   TYPOGRAPHY
   Main text styles
   ========================================================= */
.weather-intro h1 {
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 1.02;
  margin: 16px 0 14px;
}

.weather-summary h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  margin: 14px 0 8px;
}

.big-answer {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  margin: 8px 0;
  letter-spacing: -0.02em;
}

.weather-intro p,
.main-explanation,
.section-copy,
#readingGuide,
.guide-note,
.art-copy p,
.advice-list li,
.smart-engine-copy {
  color: #d6d6e7;
  line-height: 1.7;
}


/* =========================================================
   SEARCH AREA
   Input, button, chips, loading, error states
   ========================================================= */
.weather-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 24px;
  min-width: 0;
}

.weather-search-row > * {
  min-width: 0;
}

.weather-input,
.weather-btn,
.weather-chip,
.summary-stat,
.hour-row {
  box-sizing: border-box;
  max-width: 100%;
}

.weather-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  outline: none;
}

.weather-input::placeholder {
  color: #b9b9ca;
}

.weather-btn {
  border: 0;
  border-radius: 18px;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #4361ee);
  box-shadow: 0 14px 28px rgba(108, 72, 214, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.weather-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.weather-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.weather-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.weather-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.weather-loading,
.weather-error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
}

.weather-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.weather-error {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.28);
  color: #ffd6de;
}

.loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #60a5fa);
  box-shadow: 0 0 0 rgba(168, 85, 247, 0.45);
  animation: weatherPulse 1.2s infinite;
}

.hidden {
  display: none !important;
}

@keyframes weatherPulse {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.35);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(168, 85, 247, 0);
  }
  100% {
    transform: scale(0.8);
  }
}


/* =========================================================
   SUMMARY CARD
   Main result card at the top
   ========================================================= */
.weather-summary,
.weather-intro,
.advice-card,
.hourly-card,
.guide-card,
.smart-engine {
  overflow: hidden;
}

.summary-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.summary-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-emoji {
  font-size: clamp(4rem, 8vw, 6rem);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
  animation: floatEmoji 3s ease-in-out infinite;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.summary-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-stat span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: #cfc1ff;
  letter-spacing: 0.08em;
}

.summary-stat strong {
  font-size: 1.05rem;
}

@keyframes floatEmoji {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}


/* =========================================================
   MAIN CONTENT GRID
   Layout ng cards sa lower section
   ========================================================= */
.weather-grid {
  display: grid;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}

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

.weather-grid-secondary {
  grid-template-columns: 1.1fr 0.9fr;
  margin-top: 24px;
}


/* =========================================================
   ADVICE CARDS
   Image cards for Going Out and Laundry advice
   ========================================================= */
.advice-card {
  padding: 0;
  background: rgba(18, 18, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.advice-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #151827;
}

.advice-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transform: scale(1.01);
}

.art-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 10, 20, 0.10) 0%, rgba(8, 10, 20, 0.18) 35%, rgba(8, 10, 20, 0.76) 100%),
    radial-gradient(circle at top right, rgba(255, 180, 100, 0.12) 0%, rgba(255, 180, 100, 0) 30%);
}

.advice-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(transparent 0%, transparent 80%, rgba(255, 255, 255, 0.03) 100%),
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.10) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 10%, rgba(255, 255, 255, 0.08) 0 1.5px, transparent 3px),
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.08) 0 2px, transparent 4px),
    radial-gradient(circle at 18% 34%, rgba(255, 255, 255, 0.06) 0 1px, transparent 3px);
  animation: sparkleDrift 8s linear infinite;
}

.art-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  max-width: 82%;
  padding: 24px;
}

.art-copy h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 12px 0 8px;
}

.art-copy h3,
.art-copy p,
.art-label {
  position: relative;
  z-index: 4;
}

.advice-list {
  padding: 24px 28px 28px;
}

.advice-list h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #fff;
}

.advice-list ul {
  margin: 0;
  padding-left: 18px;
}

@keyframes sparkleDrift {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}


/* =========================================================
   HOURLY TIMELINE META
   Small meta pill above the hourly list
   ========================================================= */
.timeline-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9ddff;
  font-size: 0.92rem;
  font-weight: 600;
}

.timeline-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.timeline-time::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(170, 180, 255, 0.8);
}

.timeline-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.timeline-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-place::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6a6a, #ff3d3d);
  box-shadow: 0 0 6px rgba(255, 70, 70, 0.5);
}


/* =========================================================
   HOURLY FORECAST CARD
   Clickable premium hourly rows
   ========================================================= */
.hourly-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.hour-row {
  display: grid;
  grid-template-columns: 110px 1fr 82px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
  color: #dfe3ff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.hour-row:hover {
  transform: translateY(-1px);
  border-color: rgba(160, 170, 255, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.hour-row.active {
  border-color: rgba(110, 124, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(90, 112, 255, 0.14), rgba(168, 85, 247, 0.14)),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  box-shadow:
    0 0 0 1px rgba(120, 140, 255, 0.16) inset,
    0 14px 30px rgba(29, 35, 80, 0.28);
}

.hour-time-label,
.hour-row div:first-child {
  color: #eef1ff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hour-row div:last-child {
  color: #d9dcff;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.hour-row.active div:first-child,
.hour-row.active div:last-child {
  color: #fff;
}

.hour-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hour-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  box-shadow: 0 0 12px rgba(120, 140, 255, 0.22);
}

.current-row .hour-time-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  color: #f3f5ff;
  font-weight: 700;
}

.current-row .hour-time-label::before {
  content: "Now";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(140, 150, 255, 0.18);
  border: 1px solid rgba(160, 170, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hour-row.active .hour-time-label::before {
  background: rgba(140, 150, 255, 0.24);
  border-color: rgba(170, 180, 255, 0.22);
}


/* =========================================================
   GUIDE CARD
   Additional explanation card
   ========================================================= */
.guide-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================================================
   BACKGROUND FX
   Clouds, rain, stars, and glow effects
   ========================================================= */
.weather-bg,
.weather-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
}

.weather-bg {
  z-index: 0;
}

.weather-glow {
  top: 40px;
  right: 10%;
  width: 180px;
  height: 180px;
  inset: auto 10% auto auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 105, 0.8) 0%, rgba(255, 211, 105, 0.18) 55%, rgba(255, 211, 105, 0) 74%);
  filter: blur(6px);
  opacity: 0.15;
  z-index: 0;
}

.fx-clouds,
.fx-rain,
.fx-stars {
  overflow: hidden;
}

.fx-clouds::before,
.fx-clouds::after {
  content: "";
  position: absolute;
  top: 60px;
  width: 260px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    48px -18px 0 10px rgba(255, 255, 255, 0.12),
    112px -10px 0 10px rgba(255, 255, 255, 0.12),
    168px 0 0 0 rgba(255, 255, 255, 0.12);
  filter: blur(2px);
  animation: cloudDriftX 28s linear infinite;
  will-change: transform;
}

.fx-clouds::before {
  left: -320px;
}

.fx-clouds::after {
  top: 150px;
  left: -360px;
  animation-duration: 36s;
  animation-delay: -8s;
  scale: 0.82;
}

.fx-rain {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fx-rain::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  pointer-events: none;
}

.fx-stars {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fx-stars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 16%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 8%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px);
  animation: twinkleSky 3s ease-in-out infinite;
}

.weather-clear #rainFx,
.weather-cloudy #rainFx {
  opacity: 0;
}

.weather-rain #rainFx,
.weather-storm #rainFx {
  opacity: 1;
}

.weather-storm #starsFx {
  opacity: 0.3;
}

.weather-clear .weather-glow {
  opacity: 1;
}

@keyframes cloudDriftX {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100% + 420px));
  }
}

@keyframes twinkleSky {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}


/* =========================================================
   SMART WEATHER ADVICE ENGINE
   Extra compact decision card, mostly for smaller screens
   ========================================================= */
.smart-engine {
  display: none;
}

.smart-engine-header {
  margin-bottom: 14px;
}

.smart-engine-copy {
  margin: 12px 0 0;
  font-size: 0.96rem;
  color: #d3d7f5;
}

.smart-engine-box {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(8, 10, 18, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.smart-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.smart-row + .smart-row {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.smart-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.smart-label {
  color: #f2f4ff;
  font-size: 1rem;
}

.smart-row strong {
  color: #fff;
  font-size: 1rem;
  text-align: right;
}


/* =========================================================
   RESPONSIVE - TABLET
   Stack layout below 980px
   ========================================================= */
@media (max-width: 980px) {
  .weather-shell,
  .weather-grid-main,
  .weather-grid-secondary {
    grid-template-columns: 1fr;
  }

  .smart-engine {
    display: block;
    order: 2;
  }

  .weather-summary {
    order: 3;
  }

  .art-copy {
    max-width: 100%;
  }
}


/* =========================================================
   RESPONSIVE - MOBILE
   Uniform side spacing for all sections/cards on small screens
   ========================================================= */
@media (max-width: 640px) {
  :root {
    --mobile-side-space: 16px;
  }

  .weather-hero-section {
    padding: 96px var(--mobile-side-space) 18px;
  }

  .weather-main {
    padding: 10px var(--mobile-side-space) 48px;
  }

  .weather-shell,
  .weather-grid,
  .weather-grid-main,
  .weather-grid-secondary {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .weather-intro,
  .weather-summary,
  .advice-card,
  .hourly-card,
  .guide-card,
  .smart-engine {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .weather-intro,
  .weather-summary,
  .hourly-card,
  .guide-card,
  .smart-engine {
    padding: 20px;
  }

  .weather-search-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .weather-input,
  .weather-btn {
    width: 100%;
    max-width: 100%;
  }

  .summary-top {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .advice-media {
    min-height: 280px;
  }

  .art-copy {
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  .advice-list {
    padding: 20px;
    box-sizing: border-box;
  }

  .hour-row {
    grid-template-columns: 92px 1fr 72px;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .hour-time-label,
  .hour-row div:first-child {
    font-size: 0.95rem;
  }

  .hour-row div:last-child {
    font-size: 0.92rem;
  }

  .hour-bar {
    height: 10px;
  }

  .current-row .hour-time-label::before {
    min-height: 22px;
    padding: 3px 9px;
    font-size: 10px;
  }

  .smart-engine {
    padding: 18px;
  }

  .smart-engine-box {
    padding: 14px;
    border-radius: 18px;
  }

  .smart-row {
    grid-template-columns: 22px 1fr auto;
    gap: 8px;
  }

  .smart-label,
  .smart-row strong {
    font-size: 0.95rem;
  }
}
/* =========================================================
   FINAL MOBILE EDGE FIX
   Force uniform outer spacing for all major sections/cards
   Ilagay ito sa PINAKAILALIM ng weather.css
   ========================================================= */
@media (max-width: 640px) {
  /* Main outer wrappers */
  .weather-hero-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  .weather-main {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  /* Remove inherited extra side spacing from inner layout wrappers */
  .weather-shell,
  .weather-grid,
  .weather-grid-main,
  .weather-grid-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  /* Every direct child inside wrappers should respect same width */
  .weather-shell > *,
  .weather-grid > *,
  .weather-grid-main > *,
  .weather-grid-secondary > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  /* Main cards */
  .weather-intro,
  .weather-summary,
  .smart-engine,
  .advice-card,
  .hourly-card,
  .guide-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  /* Prevent image card content from visually touching edges */
  .advice-media,
  .advice-list,
  .art-copy {
    box-sizing: border-box;
  }
}
/* =========================================================
   SEARCH WRAP + SUGGESTIONS
   Search input with autocomplete dropdown
   ========================================================= */
.weather-search-wrap {
  position: relative;
  width: 100%;
}

.suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(28, 32, 58, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.suggestion-item {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.suggestion-main {
  display: block;
  font-weight: 700;
}

.suggestion-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: #cfd3ee;
}

.location-btn {
  background: linear-gradient(135deg, #4f7cff, #5f9cff);
}

.weather-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  margin-top: 24px;
  min-width: 0;
}

@media (max-width: 640px) {
  .weather-search-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* =========================================================
   FINAL FIX - SUGGESTION DROPDOWN VISIBILITY
   Para kita lahat ng suggestions at pwede i-scroll
   ========================================================= */

/* Search wrapper should allow dropdown to extend */
.weather-search-wrap {
  position: relative;
  overflow: visible !important;
}

/* Main cards/wrappers should not clip the dropdown */
.weather-intro,
.glass-card,
.weather-shell,
.weather-hero-section {
  overflow: visible !important;
}

/* Suggestions dropdown */
.suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(20, 24, 48, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Suggestion items */
.suggestion-item {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.suggestion-main {
  display: block;
  font-weight: 700;
}

.suggestion-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: #cfd3ee;
}

/* Scrollbar styling */
.suggestions-box::-webkit-scrollbar {
  width: 8px;
}

.suggestions-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.suggestions-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

/* =========================================================
   FIX CURRENT ROW ACTIVE LOOK
   Current row should not look selected unless active
   ========================================================= */
.current-row:not(.active) {
  border-color: rgba(255, 255, 255, 0.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035)) !important;
  box-shadow: none !important;
}

.current-row:not(.active) .hour-time-label,
.current-row:not(.active) div:last-child {
  color: #eef1ff !important;
}

.current-row:not(.active) .hour-time-label::before {
  background: rgba(140, 150, 255, 0.14) !important;
  border-color: rgba(160, 170, 255, 0.12) !important;
}

/* =========================================================
   REMOVE STATIC "NOW" PILL IN CURRENT ROW
   Para hindi na redundant ang first row label
   ========================================================= */
.current-row .hour-time-label::before {
  display: none !important;
  content: none !important;
}

.current-row .hour-time-label {
  display: block !important;
}


