/* Location bar */
.location-bar {
    text-align: center;
    margin-bottom: 1.25rem;
}
.location-name {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.25rem;
}
.change-location-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.78rem;
    color: #bbb;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
    transition: color 0.12s;
}
.change-location-btn:hover { color: #777; }

/* Location search */
.location-search {
    display: none;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}
.location-search.open { display: block; }
.location-search input {
    width: 100%;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #1a1a1a;
}
.location-search input:focus { border-color: #999; }
.loc-suggestions {
    margin-top: 0.4rem;
    max-height: 200px;
    overflow-y: auto;
}
.loc-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.45rem 0.6rem;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #f5f5f3;
    border-radius: 5px;
    transition: background 0.1s;
}
.loc-suggestion:hover { background: #f5f5f3; }
.loc-suggestion .sug-country { color: #bbb; font-size: 0.8rem; margin-left: 0.4em; }

/* Date navigation */
.date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.date-nav-btn {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    padding: 0.35rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    transition: border-color 0.12s, color 0.12s;
    line-height: 1;
}
.date-nav-btn:hover { border-color: #bbb; color: #222; }
.date-nav input[type="date"] {
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1.5px solid #e0e0e0;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
}
.date-nav input[type="date"]:focus { border-color: #999; }

/* Time format toggle */
.time-format-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #bbb;
    margin-bottom: 0.5rem;
}

/* SVG arc */
.arc-wrap {
    margin-bottom: 1.5rem;
}
.sun-arc {
    display: block;
    width: 100%;
}
/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
}
.stat-card.wide {
    grid-column: 1 / -1;
}
.stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #bbb;
    margin-bottom: 0.25rem;
}
.stat-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: auto;
    font-variant-numeric: tabular-nums;
}
.stat-sub {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 0.15rem;
}

/* Loading / error */
.status-msg {
    text-align: center;
    font-size: 0.875rem;
    color: #bbb;
    padding: 2rem 0;
}
.status-msg.error { color: #d4380d; }
