/* Desktop-specific styles */

/* Desktop layout - horizontal images with text underneath */
@media (min-width: 768px) {
  .weather-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  
  .weather-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 49.2%;
    width: 49.2%;
    align-self: flex-start;
    justify-content: flex-start;
    position: relative;
    min-height: 400px; /* Ensure minimum height for alignment */
  }
  
  .weather-item img {
    max-width: 100%;
    width: 100%;
    margin: 0 0 8px 0;
  }
  
  /* First and second weather item images should have pointer cursor */
  .weather-item:first-child img,
  .weather-item:nth-child(2) img {
    cursor: pointer;
  }
  
  .weather-info {
    padding: 0 1rem;
    min-height: 80px;
    display: flex;
    align-items: flex-start;
  }
  
  .status-text {
    padding-left: 1rem;
  }
  
  .footer {
    padding: 10px 0; /* add vertical padding on desktop */
    text-align: center;
  }
  
  .weather-item:last-child .weather-info {
    margin-bottom: 0;
  }
  
  /* Desktop widgets - same width as images */
  .desktop-widget {
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
    align-self: flex-start;
    min-height: 327px;
    position: relative;
    display: block;
  }

  /* Unified WindGuru container on desktop */
  #windguru-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 15px;
    align-self: flex-start;
    min-height: 327px; /* match video/map height for alignment */
    position: relative;
    visibility: visible !important;
  }

  /* Ensure WindGuru widget inside unified container fills width */
  #windguru-container table,
  #windguru-container iframe,
  #windguru-container div[id*="wg_fwdg_"] {
    width: 100% !important;
    max-width: 100% !important;
    transform: scale(1) !important;
  }
  
  /* Ensure video and widget are aligned by bottom edge */
  #desktop-webcam-container {
    align-self: flex-end;
    position: relative;
    bottom: 3px; /* Move video placeholder 3px up */
  }
  
  #desktop-windguru-container {
    align-self: flex-start;
    position: relative;
    display: block !important;
    visibility: visible !important;
    min-height: 200px;
  }
  
  .desktop-widget iframe,
  .desktop-widget table,
  .desktop-widget div,
  .desktop-widget video {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Force WindGuru widget to full width */
  .desktop-widget table,
  .desktop-widget iframe,
  .desktop-widget div[id*="wg_fwdg_"] {
    width: 100% !important;
    max-width: 100% !important;
    transform: scale(1) !important;
  }
  
  /* Force video to fill container */
  #desktop-valencia-stream,
  #desktop-pobla-stream,
  #desktop-oliva-stream {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
}
