<% if city.latest_weather_art&.image&.attached? %>
<%= image_tag city.latest_weather_art.image, class: "w-full h-full object-cover transform group-hover:scale-105 transition-transform duration-500" %>
<%= city.latest_weather_art.temperature %>°C
Feels <%= city.latest_weather_art.feeling_temp %>°C

<%= city.name %>

<%= city.country.name %>, <%= city.region.name %>
<%= city.latest_weather_art.description %>
<%= city.latest_weather_art.weather_date.strftime("%b %d, %Y") %>
Humidity
<%= city.latest_weather_art.humidity %>%
Wind
<%= city.latest_weather_art.wind_scale %>
Visibility
<%= city.latest_weather_art.visibility %>km
<%= link_to city_path(city), class: "btn btn-primary btn-sm gap-2" do %> View Details <% end %>
<% else %>

<%= city.name %>

<%= city.country.name %>, <%= city.region.name %>
Lat: <%= city.latitude %>
Long: <%= city.longitude %>
<%= link_to city_path(city), class: "btn btn-primary btn-sm gap-2" do %> View Details <% end %>
<% end %>