/* ═══════════════════════════════════════════════════════════
   WIDGET HOTEL — OVERRIDE CSS
   Aggiungere come ultimo <link> nel <head>, DOPO custom2.css
   Questo file sovrascrive qualsiasi stile precedente sul widget
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  .hotel-selector-widget,
  .widget-open-tab { display: none !important; }
}

/* ── Tab laterale di riapertura ── */
.widget-open-tab {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  background: #6783a2 !important;
  width: 32px !important;
  padding: 22px 0 !important;
  margin: 0 !important;
  border-radius: 8px 0 0 8px !important;
  cursor: pointer !important;
  border-left: 3px solid #a08e50 !important;
  box-shadow: -2px 0 12px rgba(0,0,0,0.18) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, background 0.2s !important;
  font-size: inherit !important;
  line-height: normal !important;
}
.widget-open-tab.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.widget-open-tab:hover { background: #a08e50 !important; }
.widget-open-tab .tab-icon {
  color: rgba(255,255,255,0.85) !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
.widget-open-tab .tab-text {
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: #fff !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

/* ── Widget principale ── */
.hotel-selector-widget {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) translateX(0) !important;
  z-index: 999998 !important;
  width: 258px !important;
  max-width: 258px !important;
  min-width: 0 !important;
  background: #ffffff !important;
  border-radius: 12px 0 0 12px !important;
  border-left: 4px solid #a08e50 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: -6px 0 32px rgba(103,131,162,0.22), 0 0 0 1px rgba(103,131,162,0.08) !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: Arial, sans-serif !important;
  color: #333 !important;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1) !important;
}
.hotel-selector-widget.widget-closed {
  transform: translateY(-50%) translateX(258px) !important;
}

/* Header */
.hotel-selector-widget .widget-header {
  background: linear-gradient(135deg, #4d6480 0%, #3a4f65 100%) !important;
  padding: 14px 16px 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  border: none !important;
  border-radius: 0 !important;
}
.hotel-selector-widget .widget-header::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 40px !important;
  height: 2px !important;
  background: #a08e50 !important;
  border-radius: 2px !important;
}
.hotel-selector-widget .widget-header-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fff !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hotel-selector-widget .widget-header-title i {
  color: #a08e50 !important;
  font-size: 13px !important;
}
.hotel-selector-widget .widget-close-btn {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.45) !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  font-size: 13px !important;
  border-radius: 4px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  transition: color 0.2s, background 0.2s !important;
}
.hotel-selector-widget .widget-close-btn:hover {
  color: #a08e50 !important;
  background: rgba(255,255,255,0.1) !important;
  transform: none !important;
  box-shadow: none !important;
}
.hotel-selector-widget .widget-close-btn i {
  font-size: 13px !important;
  color: inherit !important;
}

/* Body */
.hotel-selector-widget .widget-body {
  padding: 16px 16px 14px !important;
  background: #fff !important;
}

/* Label */
.hotel-selector-widget label[for="hotelSelect"] {
  display: block !important;
  font-size: 9px !important;
  font-family: Verdana, Arial, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1.8px !important;
  color: #a08e50 !important;
  font-weight: 700 !important;
  margin: 0 0 7px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}
.hotel-selector-widget label[for="hotelSelect"] i {
  margin-right: 4px !important;
  font-size: 9px !important;
  color: #a08e50 !important;
}

/* Select */
#hotelSelect {
  display: block !important;
  width: 100% !important;
  padding: 10px 32px 10px 12px !important;
  border: 1px solid #dce4ed !important;
  border-radius: 6px !important;
  background-color: #f8fafc !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a08e50' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  color: #3a4f65 !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  margin: 0 0 10px 0 !important;
  box-sizing: border-box !important;
  height: auto !important;
  line-height: normal !important;
}
#hotelSelect:focus {
  outline: none !important;
  border-color: #6783a2 !important;
  box-shadow: 0 0 0 3px rgba(103,131,162,0.12) !important;
}

/* Bottone prenota */
#hotelSelectorBtn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 11px 14px !important;
  background: #6783a2 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-align: center !important;
  box-shadow: 0 3px 12px rgba(103,131,162,0.3) !important;
  margin: 0 0 12px 0 !important;
  line-height: normal !important;
  height: auto !important;
  transition: background 0.2s, transform 0.15s !important;
}
#hotelSelectorBtn i {
  color: #e8d5a0 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
#hotelSelectorBtn:hover {
  background: #a08e50 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 16px rgba(160,142,80,0.35) !important;
}
#hotelSelectorBtn:active { transform: translateY(0) !important; }

/* Divisore */
.hotel-selector-widget .widget-divider {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}
.hotel-selector-widget .widget-divider::before {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #dce4ed) !important;
  display: block !important;
}
.hotel-selector-widget .widget-divider::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg, #dce4ed, transparent) !important;
  display: block !important;
}
.hotel-selector-widget .widget-divider span {
  font-size: 9px !important;
  color: #b0bec8 !important;
  font-family: Verdana, Arial, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* Pulsanti contatto */
.hotel-selector-widget .contact-buttons {
  display: flex !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hotel-selector-widget .contact-buttons .btn-contact-phone,
.hotel-selector-widget .contact-buttons .btn-contact-wa {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 6px !important;
  border-radius: 6px !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  color: #fff !important;
  margin: 0 !important;
  line-height: normal !important;
  transition: transform 0.15s, filter 0.2s !important;
}
.hotel-selector-widget .contact-buttons .btn-contact-phone {
  background: #6783a2 !important;
}
.hotel-selector-widget .contact-buttons .btn-contact-phone:hover {
  background: #4d6480 !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.hotel-selector-widget .contact-buttons .btn-contact-wa {
  background: #25D366 !important;
}
.hotel-selector-widget .contact-buttons .btn-contact-wa:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.hotel-selector-widget .contact-buttons .btn-contact-phone i,
.hotel-selector-widget .contact-buttons .btn-contact-wa i {
  font-size: 12px !important;
  margin: 0 !important;
  color: #fff !important;
}

/* Footer */
.hotel-selector-widget .widget-footer {
  padding: 9px 16px 12px !important;
  text-align: center !important;
  background: #f8fafc !important;
  border-top: 1px solid #edf1f5 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  position: relative !important;
  margin: 0 !important;
}
.hotel-selector-widget .widget-footer::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 50% !important;
  transform: translateX(-50%) !important;
  width: 28px !important; height: 1px !important;
  background: #a08e50 !important;
}
.hotel-selector-widget .widget-footer span {
  font-size: 8.5px !important;
  color: #6783a2 !important;
  font-family: Verdana, Arial, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  font-weight: 700 !important;
}
.hotel-selector-widget .widget-footer i {
  color: #a08e50 !important;
  font-size: 8px !important;
  margin-right: 4px !important;
}