/* BeeHotel */
/* Stile base del banner */

/* Stile base del banner */
#bybeehotel {
  display: inline-block;
  margin: 40px auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

#bybeehotel a.main-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  /*background: rgba(248, 249, 250, 0.7);*/
  color: #555;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  /*border: 1px solid rgba(224, 224, 224, 0.5);*/
  min-height: 80px;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#bybeehotel a.main-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: rgba(192, 192, 192, 0.7);
/*   background: rgb(252 252 240 / 90%); */
  background: #2c528221;
}

/* Stile dell'immagine ape con animazione hover */
#bybeehotel .bee {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  transition: all 0.5s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
  opacity: 0.85;
}

/* Animazione dell'ape su hover */
#bybeehotel a.main-link:hover .bee {
  transform: scale(1.05);
  opacity: 0.95;
  animation: beeFloatHover 2s ease-in-out infinite;
}

@keyframes beeFloatHover {
  0%, 100% {
    transform: translateY(0) scale(1.05);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
  }
}

/* Testo principale */
#bybeehotel .main-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #666;
}

#bybeehotel .brand-name {
  font-weight: 600;
  color: #bac316;
  font-size: 17px;
}

/* Testo secondario */
#bybeehotel .sub-text {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  font-weight: 400;
}

/* Container per le opzioni (nascosto inizialmente) */
#bybeehotel .options-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Stato attivo al click */
#bybeehotel.expanded a.main-link {
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  color: #333;
  font-weight: 600;
}

#bybeehotel.expanded .bee {
  opacity: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

#bybeehotel.expanded .main-text {
  color: #444;
}

#bybeehotel.expanded .brand-name {
  color: #2c5282;
  font-weight: 700;
}

#bybeehotel.expanded .sub-text {
  color: #666;
  font-weight: 500;
}

#bybeehotel.expanded .options-container {
  max-height: 200px;
  opacity: 1;
  margin-top: 0;
  padding: 0;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animazione dell'ape durante l'espansione (continua) */
#bybeehotel.expanded .bee {
  animation: beeFloatExpanded 3s ease-in-out infinite;
}

@keyframes beeFloatExpanded {
  0%, 100% {
    transform: translateY(0) scale(1.1);
  }
  25% {
    transform: translateY(-4px) scale(1.1) rotate(5deg);
  }
  50% {
    transform: translateY(0) scale(1.1);
  }
  75% {
    transform: translateY(-4px) scale(1.1) rotate(-5deg);
  }
}

/* Stile delle opzioni */
#bybeehotel .option-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: white;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#bybeehotel .option-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border-color: #c0c0c0;
}

#bybeehotel .option-link:first-child {
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #e0e0e0;
  background: #2c5282;
  color: white;
  border-color: #2c5282;
}

#bybeehotel .option-link:first-child:hover {
  background: #1a365d;
  border-color: #1a365d;
}

#bybeehotel .option-link:last-child {
  border-radius: 8px;
  background: #38a169;
  color: white;
  border-color: #38a169;
}

#bybeehotel .option-link:last-child:hover {
  background: #2f855a;
  border-color: #2f855a;
}

/* Icone delle opzioni */
#bybeehotel .option-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

#bybeehotel .option-link:first-child .option-icon {
  filter: brightness(0) invert(1);
}

#bybeehotel .option-link:last-child .option-icon {
  filter: brightness(0) invert(1);
}

/* Contenitore per l'ape e il testo */
#bybeehotel .bee-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  #bybeehotel {
    margin: 30px auto;
    padding: 0 15px;
  }

  #bybeehotel a.main-link {
    padding: 14px 24px;
    font-size: 15px;
    min-height: 75px;
    max-width: 280px;
  }

  #bybeehotel .bee {
    width: 32px;
    height: 32px;
  }

  #bybeehotel .main-text {
    font-size: 15px;
  }

  #bybeehotel .brand-name {
    font-size: 16px;
  }

  #bybeehotel .sub-text {
    font-size: 11px;
  }

  #bybeehotel .options-container {
    max-width: 280px;
  }

  #bybeehotel .option-link {
    padding: 14px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #bybeehotel a.main-link {
    max-width: 260px;
  }

  #bybeehotel .options-container {
    max-width: 260px;
  }

  #bybeehotel .main-text {
    font-size: 14px;
  }
}

/* Ottimizzazione per performance delle animazioni */
@media (prefers-reduced-motion: reduce) {
  #bybeehotel .bee,
  #bybeehotel a.main-link,
  #bybeehotel .option-link {
    transition: none;
    animation: none;
  }

  #bybeehotel a.main-link:hover .bee,
  #bybeehotel.expanded .bee {
    animation: none;
    transform: none;
  }
}
