/* /meteolocale/assets/widget.css v1.0.0 */
:root{
  --mh-primary:#0ea5e9;
  --mh-text:#0b1220;
  --mh-border:#e5e7eb;
  --mh-radius:18px;
  --mh-font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mh-font-mult: 1;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;padding:0}
body{background:#f5f7fb}
.mh-container{font-family:var(--mh-font);color:var(--mh-text);padding:16px}

/* Search */
.mh-toolbar{position:relative;z-index:40;display:block;margin:0 auto 12px;max-width:1180px}
.mh-search.pretty .mh-searchbox{display:flex;align-items:center;gap:8px;border:1px solid var(--mh-border);border-radius:999px;padding:10px 14px;background:white;box-shadow:0 1px 2px rgba(0,0,0,.03); position:relative; z-index:50;}
.mh-input{border:0;outline:0;flex:1;font-size:16px;background:white !important;-webkit-appearance:none;appearance:none;}
.mh-iconbtn{border:0;background:transparent;cursor:pointer;padding:6px;border-radius:10px}
.mh-iconbtn:hover{background:#f1f5f9}
.mh-search-ico{width:18px;height:18px;fill:#64748b}
.mh-suggest{position:absolute;margin-top:6px;left:0;right:0;border:1px solid var(--mh-border);background:white;border-radius:14px;padding:6px;display:none;max-height:300px;overflow:auto;z-index:1000;box-shadow:0 8px 24px rgba(2,6,23,.12)}
.mh-search{position:relative}
.mh-suggest.show{display:block}
.mh-suggest li{list-style:none;margin:0;padding:14px 12px;border-radius:10px;cursor:pointer;display:flex;justify-content:space-between;gap:12px;font-size:1rem}
.mh-suggest li:hover{background:#f8fafc}

/* Buttons */
.mh-btn{padding:.6rem .9rem;border:1px solid var(--mh-border);background:white;border-radius:12px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.03); font-size:1rem; display:inline-flex; align-items:center; gap:8px; white-space:nowrap; transition:background .15s,color .15s, filter .15s}
.mh-btn:hover{background:#f8fafc}
.mh-primary{background:var(--mh-primary);border-color:var(--mh-primary);color:white}
.mh-btn.mh-primary:hover, .mh-btn.mh-primary:active{background:var(--mh-primary); color:#fff; border-color:var(--mh-primary); filter:brightness(0.95)}
.mh-secondary{background:#f1f5f9;color:#0b1220;border-color:var(--mh-border)}

/* Widget */
.mh-widget-wrap{position:relative;max-width:1180px;margin:0 auto;border:1px solid var(--mh-border);border-radius:var(--mh-radius);overflow:hidden;background:white;box-shadow:0 8px 24px rgba(2,6,23,.06); z-index:1; font-size:calc(1rem * var(--mh-font-mult));}

/* Header */
.mh-header{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--mh-border);background:linear-gradient(180deg, color-mix(in oklab, var(--mh-primary) 22%, white), white)}
.mh-left{display:flex;align-items:center;gap:12px;min-width:0;grid-column:1 / 2;grid-row:1 / 2;}
.mh-brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit}
.mh-brand img{width:42px;height:42px;object-fit:contain;border-radius:10px;background:white;border:1px solid var(--mh-border)}
.mh-brand .nowrap{white-space:nowrap}
.mh-actions{grid-column:2 / 3;grid-row:1 / 2;display:flex;gap:8px;justify-self:end;flex-wrap:wrap}
.mh-citytime{grid-column:1 / 3;grid-row:2 / 3;display:flex;flex-direction:column}
.mh-city{font-size:calc(1.15rem * var(--mh-font-mult));margin:0;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.mh-sub{font-size:.92rem;color:#475569}

/* Days scroller */
.ml-days{display:flex;overflow:auto;gap:12px;padding:12px 14px;scroll-snap-type:x proximity; align-items:stretch}
.ml-day{min-width:320px;border:1px solid var(--mh-border);border-radius:16px;padding:12px;background:white;scroll-snap-align:start;box-shadow:0 2px 8px rgba(2,6,23,.04);display:flex;flex-direction:column;gap:10px}
.ml-day h3{margin:0;font-size:1rem}
.ml-date{color:#334155;font-weight:700}
.ml-grid{display:grid;grid-template-columns:1fr;gap:10px}
.ml-slot{border:1px solid var(--mh-border);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}
.ml-slot .ml-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ml-slot .ml-name{font-weight:700}
.ml-slot .ml-hour{color:#64748b;font-size:.9rem}
.ml-ico{width:42px;height:42px;object-fit:contain}
.ml-kv{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.ml-kv strong{font-weight:800}
.ml-arrow{display:inline-block;width:16px;height:16px}
.ml-arrow svg{width:16px;height:16px}

/* Pills reused */
.uv-pill{display:inline-flex;align-items:center;gap:6px;background:#fef3c7;color:#92400e;border:1px solid #fde68a;border-radius:999px;padding:2px 10px;font-weight:700}
.rain-pill{display:inline-flex;align-items:center;gap:6px;background:#e0f2fe;color:#075985;border:1px solid #bae6fd;border-radius:999px;padding:2px 10px;font-weight:700}

/* Bottom bar */
.mh-bottombar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--mh-border);padding:8px 12px;background:#fff;gap:12px}
.mh-footer{font-size:.85rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1 auto;text-align:right}
.mh-footer a{color:inherit;text-decoration:none}
.mh-footer a:hover{text-decoration:underline}
.mh-social{display:flex;gap:10px;flex:0 0 auto}
.mh-social a{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;border:1px solid var(--mh-border);background:white}
.mh-social a svg{width:16px;height:16px}

/* Dialogs */
.mh-dialog::backdrop{background:rgba(15,23,42,.45)}
.mh-dialog{border:0;border-radius:16px;padding:0;max-width:min(920px,95vw);width: min(920px,95vw);max-height:95vh}
.mh-dialog-inner{padding:18px 18px 14px;display:flex;flex-direction:column;gap:10px;max-height:calc(95vh - 16px);overflow:auto}
.mh-dialog h3{margin:0 0 6px;font-size:1.1rem}
.mh-share-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.mh-socialbtn svg{width:16px;height:16px}
.mh-dialog-actions{position:sticky;bottom:0;background:white;display:flex;gap:10px;justify-content:flex-end;margin-top:8px;padding-top:8px}
.mh-code{width:100%;border:1px solid var(--mh-border);border-radius:10px;padding:10px;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;min-height:260px;resize:vertical}

/* Embed preview */
.mh-iframe-preview{margin-top:6px;border:1px dashed var(--mh-border);padding:8px;border-radius:10px}
.mh-iframe-preview iframe{width:100%;min-height:560px;border:0;border-radius:12px}

/* Controls */
.mh-embed-controls .mh-style-grid{display:grid;grid-template-columns: repeat(6, 1fr);gap:10px}
.mh-embed-controls label{font-size:.95rem}

/* Responsive */
@media (max-width: 980px){
  .ml-day{min-width:320px}
  .mh-embed-controls .mh-style-grid{grid-template-columns: 1fr 1fr}
}
@media (max-width: 640px){
  .mh-left{flex-direction:column; align-items:flex-start}
  .mh-citytime{grid-column:1 / 3; grid-row:2 / 3}
  .mh-actions{gap:6px}
  .mh-brand img{width:36px;height:36px}
  .ml-day{min-width:320px}
}

.ml-kv.nowrap{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis }

/* v5 mobile refinements */
@media (max-width: 820px){
  .ml-grid{grid-template-columns:1fr}
  .ml-day{min-width: 320px}
  .ml-slot{padding:14px}
  .ml-kv{line-height:1.2}
}
@media (max-width: 420px){
  .ml-day{min-width: 300px}
  .ml-slot{padding:12px}
}

/* v6: place UV & Rain on the same row */
.ml-pills{ display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.ml-pills .uv-pill, .ml-pills .rain-pill{ margin:0 }


/* v8: mobile swipe hint styling */
.mh-hint{
  display:none;
  color:#475569;
  font-size:.92rem;
  padding:6px 14px 10px 14px;
}
