:root{
  color-scheme: light;
  --font-ui: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bg:#ffffff;
  --card:#ffffff;
  --text:#202124;
  --muted:#70757a;
  --border:#dadce0;
  --accent:#4285F4;
  --blue:#4285F4;
  --yellow:#F9BC05;
  --moon:#8ab4f8;
  --google-gray:#E8EAED;
  --google-gray-dark:#BDC1C6;
  --wrap-max:1400px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-ui);
  font-size:14px;
  line-height:1.4;
}

body{
  overflow-x:hidden;
}

button,
input,
select,
textarea{
  font:inherit;
}

.weather-page{
  min-height:100vh;
  background:var(--bg);
}

.container{
  width:100%;
  max-width:var(--wrap-max);
  margin:0 auto;
  padding:16px;
  position:relative;
}

.card{
  position:relative;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:0;
  overflow:hidden;
}

.card-head{
  padding:14px 16px 0;
}

.card-head h2{
  margin:0;
  font-size:20px;
  line-height:1.2;
  font-weight:600;
  color:var(--text);
}

.card-head p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.hero{
  padding:16px 0 0;
}

.hero-inner{
  width:100%;
  max-width:var(--wrap-max);
  margin:0 auto;
  padding:16px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
  gap:20px;
  align-items:start;
}

.hero-copy{
  background:#fff;
  border:1px solid var(--border);
  padding:16px;
  min-width:0;
}

.hero-select-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  margin-bottom:16px;
}

.hero-copy h1{
  margin:0 0 10px;
  font-size:30px;
  line-height:1.12;
  font-weight:400;
}

.hero-copy p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
}

.hero-cities{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
  max-width:560px;
}

.hero-city-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  min-height:92px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-width:0;
}

.hero-city-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.hero-city-name{
  font-size:13px;
  line-height:1.2;
  font-weight:500;
  color:var(--muted);
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hero-city-icon{
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.hero-city-temp{
  margin-top:8px;
  font-size:22px;
  line-height:1;
  font-weight:500;
}

.hero-city-desc{
  margin-top:4px;
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
}

.loading-card{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}

.hero-controls{
  background:#fff;
  border:1px solid var(--border);
  padding:12px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}

.hero-current-box{
  width:100%;
}

.city-select{
  width:100%;
  height:42px;
  padding:0 36px 0 16px;
  border:1px solid var(--border);
  border-radius:24px;
  background:#fff;
  color:var(--text);
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2370757a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:calc(100% - 12px) center;
  background-size:12px 12px;
}

.city-select:focus{
  border-color:var(--accent);
}

.last-update{
  margin-top:0;
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
  border-bottom:1px solid #eef0f2;
  padding-bottom:8px;
}

.overview-section{
  padding-top:0;
}

.overview-grid{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:20px;
  align-items:start;
}

.map-wrap{
  padding:16px;
}

.weather-map{
  position:relative;
  width:100%;
  max-width:560px;
  margin:0 auto;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#f8f9fa;
}

.weather-map::before{
  content:"";
  display:block;
  width:100%;
  padding-top:100%;
}

.map-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  user-select:none;
  pointer-events:none;
}

.map-markers{
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
}

.map-empty{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  padding:16px;
  color:var(--muted);
  margin-top:12px;
}

.map-point-hit{
  position:absolute;
  outline:none;
  pointer-events:auto;
  z-index:6;
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  border-radius:0;
  box-shadow:none;
  appearance:none;
  -webkit-appearance:none;
}

.map-point-hit:focus,
.map-point-hit:active,
.map-point-hit:hover{
  background:transparent;
  border:0;
  box-shadow:none;
}

.map-point-core{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--accent);
  border:0;
  box-shadow:none;
  pointer-events:none;
}

.map-point-ring{
  display:none;
}

/* cursor pointer kur afrohet maus */
.map-point-hit{
  cursor:pointer;
}

/* pika normale */
.map-point-core{
  transition:all .15s ease;
}

/* hover efekt */
.map-point-hit:hover .map-point-core{
  transform:translate(-50%, -50%) scale(1.2);
}

/* AKTIVE - rrethi i bardhë */
.map-point-hit[aria-pressed="true"] .map-point-core{
  box-shadow:0 0 0 3px #fff, 0 0 0 5px rgba(66,133,244,.4);
  transform:translate(-50%, -50%) scale(1.15);
}

#currentWeather{
  width:100%;
  margin:0;
}

.current-shell{
  display:flex;
  flex-direction:column;
}

.current-top{
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px;
  background:#fff;
  margin:0;
}

.current-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.current-topline h3{
  margin:0;
  font-size:24px;
  line-height:1.15;
  font-weight:600;
}

.current-meta{
  margin-top:6px;
  margin-bottom:10px;
  font-size:13px;
  line-height:1.4;
  color:var(--muted);
}

.current-side-stats{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:8px;
  min-width:250px;
  max-width:320px;
}

.current-mini{
  border:1px solid #f1f3f4;
  border-radius:10px;
  background:#fff;
  padding:8px 10px;
}

.current-mini-label{
  font-size:11px;
  line-height:1.2;
  font-weight:500;
  color:var(--muted);
  margin-bottom:4px;
}

.current-mini-value{
  font-size:14px;
  line-height:1.2;
  font-weight:500;
}

.current-hero{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.current-icon{
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  flex:0 0 auto;
}

.current-temp{
  font-size:58px;
  line-height:1;
  font-weight:400;
  letter-spacing:-.8px;
}

.current-desc{
  margin-top:4px;
  font-size:16px;
  line-height:1.35;
  color:var(--muted);
}

.daily-section{
  padding-top:0;
}

.hourly-grid,
.daily-grid{
  padding:16px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.hour-card{
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  overflow:hidden;
}

.hour-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 12px;
  border:0;
  background:#fff;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}

.hour-toggle-left{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.hour-toggle-icon{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.hour-toggle-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.hour-toggle-name{
  font-size:15px;
  line-height:1.2;
  font-weight:600;
}

.hour-toggle-time{
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
}

.hour-toggle-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.hour-toggle-temp{
  font-size:16px;
  line-height:1.2;
  font-weight:600;
  white-space:nowrap;
}

.hour-toggle-arrow{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f1f3f4;
  border:1px solid #dadce0;
  font-size:0;
}

.hour-toggle-arrow::before{
  content:"⌄";
  display:block;
  font-size:24px;
  line-height:1;
  font-weight:700;
  color:var(--accent);
  transform:translateY(-1px);
}

.hour-panel{
  display:none;
  padding:0 12px 12px;
}

.hour-card.is-open .hour-panel{
  display:block;
}

.hour-card.is-open .hour-toggle-arrow{
  transform:rotate(180deg);
  background:#e8f0fe;
  border-color:#c6dafc;
}

.hour-line-main{
  margin:0 0 10px;
  font-size:13px;
  line-height:1.35;
  color:var(--muted);
}

.hour-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.hour-meta-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px;
}

.hour-meta-k{
  display:block;
  font-size:12px;
  line-height:1.2;
  font-weight:500;
  color:var(--muted);
  margin-bottom:6px;
}

.hour-meta-v{
  display:block;
  font-size:15px;
  line-height:1.2;
  font-weight:500;
}

.day-row{
  display:grid;
  grid-template-columns:160px 180px 1fr 1fr;
  gap:12px;
  align-items:center;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:12px;
}

.day-main{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.day-name{
  font-size:16px;
  line-height:1.2;
  font-weight:600;
}

.day-date{
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
}

.day-icon{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  line-height:1.35;
}

.day-icon .emoji{
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.day-temps,
.day-extra{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
}

.mini{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px;
}

.mini .k{
  font-size:12px;
  line-height:1.2;
  font-weight:500;
  color:var(--muted);
  margin-bottom:6px;
}

.mini .v{
  font-size:15px;
  line-height:1.2;
  font-weight:500;
}

.loading,
.error-box{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  padding:16px;
  font:500 13px/1.35 var(--font-ui);
}

.loading{
  color:var(--muted);
}

.error-box{
  color:#b91c1c;
  background:#fff5f5;
  border-color:#f1caca;
}

/* WEATHER ICONS */
.wx-ico{
  position:relative;
  display:inline-block;
  width:60px;
  height:60px;
  flex:0 0 auto;
}

.wx-ico-sm{
  width:22px;
  height:22px;
  transform:scale(.38);
  transform-origin:center;
}

.wx-ico-md{
  width:28px;
  height:28px;
  transform:scale(.48);
  transform-origin:center;
}

.wx-ico-lg{
  width:54px;
  height:54px;
  transform:scale(.90);
  transform-origin:center;
}

.wx-i-sun::before{
  content:"";
  position:absolute;
  width:34px;
  height:34px;
  background:var(--yellow);
  border-radius:50%;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 0 0 6px rgba(249,188,5,.16);
}

.wx-i-moon::before{
  content:"";
  position:absolute;
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--moon);
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:10px -2px 0 0 #fff inset;
}

.wx-i-cloud::before{
  content:"";
  position:absolute;
  width:38px;
  height:18px;
  background:var(--google-gray);
  border-radius:20px;
  top:55%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:-10px -6px 0 -2px var(--google-gray), 10px -4px 0 -2px var(--google-gray-dark);
}

.wx-i-partly::before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  background:var(--yellow);
  border-radius:50%;
  top:20%;
  left:18%;
  box-shadow:0 0 0 5px rgba(249,188,5,.14);
}

.wx-i-partly::after{
  content:"";
  position:absolute;
  width:34px;
  height:18px;
  background:var(--google-gray);
  border-radius:20px;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:-10px -6px 0 -2px var(--google-gray), 10px -4px 0 -2px var(--google-gray-dark);
}

.wx-i-night-partly::before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--moon);
  top:20%;
  left:18%;
  box-shadow:8px -2px 0 0 #fff inset;
}

.wx-i-night-partly::after{
  content:"";
  position:absolute;
  width:34px;
  height:18px;
  background:var(--google-gray);
  border-radius:20px;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:-10px -6px 0 -2px var(--google-gray), 10px -4px 0 -2px var(--google-gray-dark);
}

.wx-i-rain::before{
  content:"";
  position:absolute;
  width:36px;
  height:18px;
  background:var(--google-gray-dark);
  border-radius:20px;
  top:40%;
  left:50%;
  transform:translateX(-50%);
}

.wx-i-rain::after{
  content:"";
  position:absolute;
  width:3px;
  height:9px;
  background:var(--blue);
  border-radius:3px;
  top:65%;
  left:40%;
  box-shadow:10px 2px 0 var(--blue), 20px -1px 0 var(--blue);
}

.wx-i-partly-rain::before{
  content:"";
  position:absolute;
  width:24px;
  height:24px;
  background:var(--yellow);
  border-radius:50%;
  top:20%;
  left:18%;
  box-shadow:0 0 0 5px rgba(249,188,5,.14);
}

.wx-i-partly-rain::after{
  content:"";
  position:absolute;
  width:34px;
  height:18px;
  background:var(--google-gray);
  border-radius:20px;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:-10px -6px 0 -2px var(--google-gray), 10px -4px 0 -2px var(--google-gray-dark);
}

.wx-i-partly-rain .wx-drop{
  position:absolute;
  width:3px;
  height:8px;
  background:var(--blue);
  border-radius:3px;
  top:65%;
  left:45%;
  box-shadow:8px 2px 0 var(--blue), 16px -1px 0 var(--blue);
}

.wx-i-snow::before{
  content:"";
  position:absolute;
  width:34px;
  height:18px;
  background:var(--google-gray);
  border-radius:20px;
  top:42%;
  left:50%;
  transform:translate(-50%,-50%);
  box-shadow:-10px -6px 0 -2px var(--google-gray), 10px -4px 0 -2px var(--google-gray-dark);
}

.wx-i-snow::after{
  content:"❄";
  position:absolute;
  color:#8AB4F8;
  font-size:30px;
  line-height:1;
  top:66%;
  left:50%;
  transform:translate(-50%,-50%);
}

.wx-i-storm::before{
  content:"";
  position:absolute;
  width:36px;
  height:18px;
  background:#5F6368;
  border-radius:20px;
  top:40%;
  left:50%;
  transform:translateX(-50%);
}

.wx-i-storm::after{
  content:"⚡";
  position:absolute;
  color:var(--yellow);
  font-size:30px;
  line-height:1;
  top:62%;
  left:50%;
  transform:translateX(-50%);
}

.wx-i-fog::before{
  content:"";
  position:absolute;
  width:38px;
  height:4px;
  background:var(--google-gray-dark);
  border-radius:4px;
  top:45%;
  left:50%;
  transform:translateX(-50%);
  box-shadow:0 10px 0 var(--google-gray-dark), 0 20px 0 var(--google-gray-dark);
}

.wx-loading-inline{
  width:100%;
}

.wx-loading-card{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:16px 24px;
  border:1px solid #dadce0;
  background:#ffffff;
  border-radius:8px;
  min-height:74px;
}

.wx-loading-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.wx-loading-text{
  font:600 13px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#202124;
}

.wx-loading-sub{
  font:500 12px/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#667085;
}

.wx-spinner{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(60,64,67,.20);
  border-top-color:#4285F4;
  animation:wxSpin .8s linear infinite;
  flex:0 0 auto;
}

@keyframes wxSpin{
  to{ transform:rotate(360deg); }
}

@media (max-width:1180px){
  .hero-inner{
    grid-template-columns:1fr;
  }

  .overview-grid{
    grid-template-columns:1fr;
  }

  .hero-cities{
    max-width:100%;
  }

  .weather-map{
    max-width:560px;
  }
}

@media (max-width:980px){
  .day-row{
    grid-template-columns:1fr;
    align-items:start;
  }

  .hero-copy h1{
    font-size:28px;
  }

  .current-topline{
    flex-direction:column;
  }

  .current-topline h3{
    font-size:20px;
  }

  .current-temp{
    font-size:48px;
  }

  .current-icon{
    width:64px;
    height:64px;
  }

  .current-side-stats{
    min-width:0;
    max-width:none;
    width:100%;
  }
}

@media (max-width:640px){
  .container,
  .hero-inner{
    padding:5px;
  }

  .hero-copy,
  .hero-controls{
    padding:14px;
  }

  .hero-copy h1{
    font-size:24px;
    line-height:1.16;
    margin-bottom:6px;
  }

  .card-head{
    padding:12px 12px 0;
  }

  .map-wrap,
  .hourly-grid,
  .daily-grid{
    padding:12px;
  }

  .hero-select-row{
    gap:8px;
    margin-bottom:12px;
  }

  .hero-cities{
    display:none !important;
  }

  .city-select{
    height:42px;
    padding:0 34px 0 14px;
    border-radius:24px;
    font-size:15px;
  }

  .current-top{
    padding:14px;
  }

  .current-temp{
    font-size:44px;
  }

  .current-side-stats{
    grid-template-columns:1fr 1fr;
  }

  .current-topline h3{
    font-size:18px;
  }

  .current-meta{
    margin-top:4px;
    margin-bottom:6px;
    font-size:12px;
  }

  .current-icon{
    width:60px;
    height:60px;
  }

  .current-desc{
    font-size:15px;
  }

  .day-name{
    font-size:15px;
  }

  .day-icon{
    font-size:13px;
  }

  .daily-grid{
    gap:10px;
  }

  .day-row{
    display:block;
    padding:0;
    overflow:hidden;
  }

  .day-toggle{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 12px;
    border:0;
    background:#fff;
    color:var(--text);
    text-align:left;
    cursor:pointer;
  }

  .day-toggle-left{
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
  }

  .day-toggle-icon{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
  }

  .day-toggle-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  .day-toggle-name{
    font-size:15px;
    line-height:1.2;
    font-weight:600;
  }

  .day-toggle-date{
    font-size:12px;
    line-height:1.35;
    color:var(--muted);
  }

  .day-toggle-right{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
  }

  .day-toggle-temp{
    font-size:13px;
    line-height:1.2;
    font-weight:600;
    white-space:nowrap;
  }

  .day-toggle-arrow{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#f1f3f4;
    border:1px solid #dadce0;
    font-size:0;
  }

  .day-toggle-arrow::before{
    content:"⌄";
    display:block;
    font-size:24px;
    line-height:1;
    font-weight:700;
    color:var(--accent);
    transform:translateY(-1px);
  }

  .day-row.is-open .day-toggle-arrow{
    transform:rotate(180deg);
    background:#e8f0fe;
    border-color:#c6dafc;
  }

  .day-panel{
    display:none;
    padding:0 12px 12px;
  }

  .day-row.is-open .day-panel{
    display:block;
  }

  .day-icon{
    margin-bottom:10px;
  }

  .day-temps,
  .day-extra,
  .hour-meta,
  .current-side-stats{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .map-card{
    display:none;
  }
}

@media (max-width:460px){
  .day-temps,
  .day-extra,
  .hour-meta,
  .current-side-stats{
    grid-template-columns:1fr;
  }

  .hero-copy h1{
    font-size:22px;
  }

  .current-temp{
    font-size:38px;
  }
}