.webcams-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.webcams-header {
  text-align: center;
  margin-bottom: 36px;
}

.webcams-header h1 {
  font-size: 2rem;
  color: #a8d8b0;
  margin-bottom: 8px;
}

.webcams-subtitle {
  color: #6aab7a;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.webcams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.webcams-grid.hidden { display: none; }

.webcam-card {
  background: #0f2318;
  border: 1px solid #2d5a3d;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.webcam-card:hover {
  transform: translateY(-3px);
  border-color: #6aab7a;
}

.webcam-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: #0a1628;
  overflow: hidden;
}

.webcam-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.webcam-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6aab7a;
  font-size: 0.85rem;
  background: #0a1628;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.webcam-card.refreshing .webcam-loading { opacity: 1; }
.webcam-card.refreshing .webcam-img { opacity: 0.4; }

.webcam-fullscreen {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10,22,40,0.75);
  color: #a8d8b0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.webcam-card:hover .webcam-fullscreen { opacity: 1; }

.webcam-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
}

.webcam-name {
  color: #a8d8b0;
  font-size: 0.9rem;
  font-weight: 600;
}

.webcam-island {
  color: #6aab7a;
  font-size: 0.75rem;
}

.webcams-note {
  text-align: center;
  color: #6aab7a;
  font-size: 0.8rem;
  margin-top: 16px;
}

.webcams-note a {
  color: #a8d8b0;
  text-decoration: none;
}

@media (max-width: 768px) {
  .webcams-grid {
    grid-template-columns: 1fr;
  }
}

.island-selector {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.island-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #2d5a3d;
  background: #0f2318;
  color: #6aab7a;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.island-btn:hover,
.island-btn.active {
  background: #2d5a3d;
  color: #a8d8b0;
}

.radar-note {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hidden {
  display: none !important;
}   

.webcam-minimap {
  position: absolute;
  bottom: 8px;
  left: 8px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(168,216,176,0.5);
  opacity: 0.85;
  transition: opacity 0.2s;
  background: #0a1628;
}

.webcam-card:hover .webcam-minimap {
  opacity: 1;
}

.webcam-minimap img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.webcam-minimap .minimap-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ff4444;
  border-radius: 50%;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  animation: pin-pulse 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pin-pulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(1.8); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

.mapa-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mapa-tab {
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid #2d5a3d;
  background: none;
  color: #6aab7a;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.mapa-tab.active {
  background: #2d5a3d;
  color: #a8d8b0;
}

.mapa-content { display: none; }
.mapa-content.active { display: block; }


/* MODE CLAR */
body.light .webcam-card { background: #ffffff; border-color: #6aab7a; }
body.light .webcams-header h1 { color: #1a3a2a; }
body.light .webcam-name { color: #1a3a2a; }