body { background: var(--sand-light, #f8f6f2); }
main { padding: 1rem 0 3rem; }
@media (min-width: 768px) { main { padding: 2.5rem 0 4rem; } }

.weather-hero {
    background: linear-gradient(135deg, #0B2545 0%, #134E6F 100%);
    color: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
}
.weather-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 0 .4rem;
}
.weather-hero p {
    opacity: .85;
    margin: 0 auto;
    max-width: 640px;
    font-size: .88rem;
    line-height: 1.45;
}
@media (min-width: 640px) {
    .weather-hero { padding: 2rem 0; }
    .weather-hero h1 { font-size: 2.4rem; }
    .weather-hero p { font-size: .95rem; }
}

.weather-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
    margin: 1.25rem 0 .75rem;
    padding: 0 .5rem;
}
.weather-tab {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: #fff;
    color: #0B2545;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    transition: background .2s, color .2s, transform .2s, border-color .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    min-height: 40px;
    -webkit-tap-highlight-color: rgba(46,196,182,.2);
}
@media (min-width: 640px) {
    .weather-tabs { gap: .5rem; margin: 1.5rem 0 1rem; }
    .weather-tab { padding: .55rem 1rem; font-size: .9rem; gap: .4rem; }
}
@media (hover: hover) {
    .weather-tab:hover { transform: translateY(-1px); }
}
.weather-tab.active {
    background: #2EC4B6;
    color: #fff;
    border-color: #2EC4B6;
}

.weather-panel {
    display: none;
    background: #fff;
    padding: .75rem;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    max-width: 900px;
    margin: 0 auto 1.25rem;
    text-align: center;
}
@media (min-width: 640px) {
    .weather-panel { padding: 1rem; border-radius: 16px; margin: 0 auto 1.5rem; }
}
.weather-panel.active { display: block; }
.weather-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #0B2545;
    margin: 0 0 .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.weather-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
.weather-note {
    font-size: .8rem;
    color: #64748b;
    margin-top: .75rem;
}

.hour-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin: 0 auto .75rem;
    padding: .35rem .5rem;
    background: #f1f5f9;
    border-radius: 999px;
    max-width: 280px;
}
.hour-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #0B2545;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(46,196,182,.2);
}
@media (hover: hover) {
    .hour-btn:hover:not(:disabled) { background: #2EC4B6; transform: scale(1.05); }
}
.hour-btn:active:not(:disabled) { transform: scale(.95); }
.hour-btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.hour-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 90px;
}
.hour-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    font-weight: 600;
}
.hour-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0B2545;
    font-variant-numeric: tabular-nums;
}

.source-box {
    max-width: 900px;
    margin: 0 auto;
    padding: .85rem 1rem;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #2EC4B6;
    font-size: .85rem;
    color: #334155;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.source-box a { color: #0B2545; font-weight: 600; }
@media (min-width: 640px) {
    .source-box { padding: 1rem 1.25rem; font-size: .9rem; }
}

/* Windy widget */
.windy-section {
    max-width: 1000px;
    margin: 1rem auto 1.5rem;
    background: #fff;
    padding: .75rem;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
@media (min-width: 640px) {
    .windy-section { margin: 1.5rem auto 2rem; padding: 1rem; border-radius: 16px; }
}
.windy-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #0B2545;
    margin: 0 0 .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
@media (min-width: 640px) {
    .windy-title { font-size: 1.3rem; margin: 0 0 .75rem; }
}
.windy-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}
@media (max-width: 640px) { .windy-wrap { aspect-ratio: 4 / 5; } }
.windy-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.windy-note {
    margin-top: .5rem;
    font-size: .8rem;
    color: #64748b;
    text-align: right;
}
.windy-note a { color: #0B2545; font-weight: 600; }

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #0B2545;
    text-align: center;
    margin: 1.5rem 0 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
@media (min-width: 640px) {
    .section-heading { font-size: 1.4rem; margin: 2rem 0 0; padding: 0; }
}

/* Adriatic winds */
.winds-figure {
    max-width: 480px;
    margin: 1.25rem auto .25rem;
    padding: .75rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    text-align: center;
}
.winds-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.winds-figure figcaption {
    margin-top: .55rem;
    font-size: .78rem;
    color: #64748b;
}
.winds-figure figcaption a { color: #0B2545; font-weight: 600; }

.winds-grid {
    max-width: 1000px;
    margin: 1rem auto 1.5rem;
    padding: 0 .5rem;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 560px) {
    .winds-grid { padding: 0; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.wind-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1rem .9rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-top: 4px solid var(--wind-color, #0B2545);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
@media (min-width: 640px) {
    .wind-card { padding: 1.1rem 1.15rem 1rem; gap: .55rem; }
}
.wind-head {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.wind-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--wind-color, #0B2545);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.wind-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #0B2545;
    line-height: 1.1;
    margin: 0;
}
.wind-alias {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: .75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: .02em;
}
.wind-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .78rem;
}
.wind-tag {
    background: #f1f5f9;
    color: #334155;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-weight: 600;
}
.wind-tag i { margin-right: .3rem; opacity: .7; }
.wind-desc {
    font-size: .9rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}
.wind-tip {
    font-size: .82rem;
    color: #475569;
    line-height: 1.5;
    padding: .55rem .7rem;
    background: #f8fafc;
    border-left: 3px solid var(--wind-color, #0B2545);
    border-radius: 4px;
    margin: 0;
}
.wind-tip strong { color: var(--wind-color, #0B2545); }
