/* =============================================
   SEARCH DROPDOWN
   ============================================= */
.search-dropdown {
  position: absolute;
  top: calc(var(--header-height) - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  max-width: calc(100vw - 32px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 999;
  overflow: hidden;
  display: none;
}
[data-theme="dark"] .search-dropdown {
  background: #1a2540;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.search-dropdown.is-visible { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.15s;
}
[data-theme="dark"] .search-result-item {
  border-color: rgba(255,255,255,0.07);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--color-surface-2); }
[data-theme="dark"] .search-result-item:hover { background: rgba(255,255,255,0.05); }

.search-result-icon {
  font-size: 1.35rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.08);
  border-radius: 9px;
  flex-shrink: 0;
}

.search-result-item > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-result-item strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  display: block;
}
.search-result-item small {
  font-size: 0.775rem;
  color: var(--color-text-muted);
  display: block;
}

.search-loading,
.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* =============================================
   PAGINATION
   ============================================= */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.nav-links .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* =============================================
   WEATHER IFRAME SHIMMER
   ============================================= */
.weather-iframe-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(184,216,248,.3) 25%,rgba(218,238,255,.6) 50%,rgba(184,216,248,.3) 75%);
  background-size: 200% 100%;
  animation: wxShimmer 1.8s infinite;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s;
}
.weather-iframe-container.wx-loaded::before { opacity: 0; }
@keyframes wxShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
[data-theme="dark"] .weather-iframe-container { background: #060c1e; }
[data-theme="dark"] .weather-iframe-container::before {
  background: linear-gradient(90deg,rgba(5,14,43,.4) 25%,rgba(12,25,60,.7) 50%,rgba(5,14,43,.4) 75%);
  background-size: 200% 100%;
}

/* =============================================
   WEATHER PAGE — hide site header inside iframe
   ============================================= */
body.nimbus-weather-page #site-header { display: none; }
