/* ================================================================
   Weather & Living Expenses Page Styles
   ================================================================ */

* { box-sizing: border-box; }

body {
    font-family: "Poppins", sans-serif;
    background: #f0f4f8;
    color: #1e293b;
    margin: 0;
    min-height: 100vh;
}

/* ── Top nav strip ── */
.wl-topbar {
    background: #0f172a;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.wl-topbar a {
    color: #94a3b8;
    font-size: .82rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .2s;
}
.wl-topbar a:hover { color: #fff; }
.wl-topbar .brand {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    margin-left: auto;
    letter-spacing: .5px;
}
.wl-topbar .brand span { color: #60a5fa; }

/* ── Hero search ── */
.wl-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a3a6b 55%, #1e4d9b 100%);
    padding: 44px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.wl-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wl-hero-title {
    color: #f87171;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}
.wl-hero-title .title-icon { color: #fbbf24; }

.wl-hero-subtitle {
    color: #94a3b8;
    font-size: .88rem;
    margin-bottom: 28px;
    position: relative;
}

/* Search card */
.wl-search-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px 28px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.wl-search-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.wl-field label {
    display: block;
    color: #cbd5e1;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.wl-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 9px;
    font-size: .875rem;
    font-family: inherit;
    outline: none;
    background: rgba(255,255,255,.95);
    color: #1e293b;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    appearance: auto;
}
.wl-field select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,.25);
}
.wl-field select:disabled { opacity: .6; cursor: not-allowed; }

.wl-btn-search {
    padding: 11px 30px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(239,68,68,.4);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}
.wl-btn-search:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,.5); }
.wl-btn-search:active { transform: translateY(0); }

/* Stats strip */
.wl-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
    position: relative;
}
.wl-stat          { text-align: center; }
.wl-stat-val      { display: block; color: #fbbf24; font-size: 1.1rem; font-weight: 700; }
.wl-stat-lbl      { color: #94a3b8; font-size: .72rem; }

/* ── Content area ── */
.wl-content { max-width: 1150px; margin: 0 auto; padding: 32px 16px 60px; }

/* Breadcrumb / result bar */
.wl-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}
.wl-result-info         { font-size: .83rem; color: #64748b; }
.wl-result-info strong  { color: #1e293b; }

.wl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: .76rem;
    font-weight: 600;
}
.wl-clear-link {
    font-size: .8rem;
    color: #64748b;
    text-decoration: none;
}
.wl-clear-link:hover { color: #1e293b; }

/* Table card */
.wl-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(15,23,42,.10);
    border: 1px solid #e2e8f0;
}
.wl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}
.wl-table thead tr          { background: linear-gradient(135deg, #1e293b, #334155); }
.wl-table thead th {
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
    font-size: .78rem;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
}
.wl-table tbody tr           { transition: background .15s; }
.wl-table tbody tr:nth-child(odd)  { background: #f8fafc; }
.wl-table tbody tr:nth-child(even) { background: #fff; }
.wl-table tbody tr:hover           { background: #eff6ff; }
.wl-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: top;
}
.wl-table .td-country { font-weight: 600; }
.wl-table .td-expense { font-weight: 600; color: #15803d; }
.wl-table .td-remarks { color: #1d4ed8; font-size: .82rem; line-height: 1.5; max-width: 280px; }

/* Season badges */
.season-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: .73rem;
    font-weight: 600;
}
.season-Winter { background: #dbeafe; color: #1d4ed8; }
.season-Spring { background: #dcfce7; color: #15803d; }
.season-Summer { background: #fef9c3; color: #a16207; }
.season-Autumn,
.season-Fall   { background: #ffedd5; color: #c2410c; }

/* Empty state */
.wl-empty { text-align: center; padding: 70px 20px; }
.wl-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.wl-empty-icon i { font-size: 2rem; color: #3b82f6; }
.wl-empty h3     { font-size: 1.05rem; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.wl-empty p      { font-size: .85rem; color: #64748b; max-width: 360px; margin: 0 auto; }

/* Loading spinner */
.wl-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wl-spin .6s linear infinite;
}
@keyframes wl-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 768px) {
    .wl-search-row  { grid-template-columns: 1fr 1fr; }
    .wl-btn-search  { grid-column: span 2; justify-content: center; }
    .wl-hero-title  { font-size: 1.35rem; }
    .wl-stats       { gap: 18px; }
    .wl-table       { font-size: .78rem; }
    .wl-table td,
    .wl-table thead th { padding: 10px; }
}
@media (max-width: 480px) {
    .wl-search-row { grid-template-columns: 1fr; }
    .wl-btn-search { grid-column: span 1; }
    .wl-search-card { padding: 18px 16px; }
}
